Skip to content

Instantly share code, notes, and snippets.

View btseytlin's full-sized avatar
👁️‍🗨️
https://t.me/boris_again

Boris Tseitlin btseytlin

👁️‍🗨️
https://t.me/boris_again
View GitHub Profile
import sys
def get_operations(diff, cookies):
operations = 0
for i, c in enumerate(cookies):
x = cookies[i]-diff
while x > 0:
operations+= x // 5
x = x % 5
import numpy as np
import math
import csv
input_file = 'output_5k.csv'
#N;ComparedIDs;Name;A;ADV;ADVPRO;ANUM;APRO;COM;CONJ;INTJ;NUM;PART;PR;SPRO;V;S;Duplicate;
#'i8, object, i4, i4, i4, i4, i4,i4, i4, i4, i4, i4,i4, i4, i4, i4,i4,i4')
#"i8,S30,i4, i4, i4, i4, i4,i4, i4, i4, i4, i4,i4, i4, i4, i4,i4,i4,i4"
#data = np.loadtxt(input_file, delimiter=';', usecols=(2,4,5,6,7,8,9,10,11,12,13,14,15,16,17),skiprows=1, dtype=int)