s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s032820946
p02269
u096922415
1469338753
Python
Python3
py
Runtime Error
0
0
3369
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_4_C&lang=jp sample_input = list(range(4)) sample_input[0] = '''6 insert AAA insert AAC find AAA find CCC insert CCC find CCC''' sample_input[1] = '''13 insert AAA insert AAC insert AGA insert AGG insert TTT find AAA find CCC find CCC insert CCC find CCC i...
s167464640
p02269
u096922415
1469339241
Python
Python3
py
Runtime Error
0
0
3321
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_4_C&lang=jp sample_input = list(range(4)) sample_input[0] = '''6 insert AAA insert AAC find AAA find CCC insert CCC find CCC''' sample_input[1] = '''13 insert AAA insert AAC insert AGA insert AGG insert TTT find AAA find CCC find CCC insert CCC find CCC i...
s763385345
p02269
u589886885
1471353455
Python
Python3
py
Runtime Error
0
0
241
mport sys n = int(input()) dic = {} input_ = sys.stdin.readlines() for i in input_: c, s = i.split() if c == 'insert': dic[s] = 0 else: if s in dic: print('yes') else: print('no')
s287158011
p02269
u135273382
1476160018
Python
Python3
py
Runtime Error
0
0
282
import sys dict = {} l = [] line = map(lambda x: x.split(), sys.stdin.readlines()) s = "" for (c, arg) in line: if c == "insert": dict[arg] = 0 elif c == "find": if arg in dict: s += "yes\n" else: s += "no\n" print(s, end="")
s337076763
p02269
u135273382
1476160071
Python
Python3
py
Runtime Error
0
0
306
import sys ?? n = int(input()) dic = {} input_ = sys.stdin.readlines() ?? for i in input_: ????????c, s = i.split() ????????if c == 'insert': ????????????????dic[s] = 0 ????????else: ????????????????if s in dic: ????????????????????????print('yes') ????????????????else: ????????????????????????print('no')
s039726043
p02269
u742013327
1480309741
Python
Python3
py
Runtime Error
0
0
400
#http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_4_C&lang=jp #?????? if __name__ == "__main__": n_line = int(input()) input_list = [tuple(input.split()) for i in range(n_line)] l = [] for c, s in input_list: if c == "insert": l.append(s) else: if s ...
s843508992
p02269
u923668099
1484391964
Python
Python3
py
Runtime Error
0
0
973
import sys def h1(key): return key % M def h2(key): return 1 + key % (M - 1) def H(key, i): return (h1(key) + i * h2(key)) % M def my_insert(dic, key): i = 0 while 1: j = H(key, i) if dic[j] is None: dic[j] = key return j else: i += 1 ...
s413538531
p02269
u086566114
1488197944
Python
Python
py
Runtime Error
0
0
2101
# -*- coding: utf-8 -*- def input_converter(key_string): key_string = key_string.replace('A', '1') key_string = key_string.replace('T', '2') key_string = key_string.replace('C', '3') key_string = key_string.replace('G', '4') return int(key_string) class HashTable(object): def __init__(self, h...
s234230849
p02269
u086566114
1488199047
Python
Python
py
Runtime Error
0
0
431
# -*- coding: utf-8 -*- def main(): dictionary = {} input_num = int(raw_input()) counter = 0 while counter < input_num: command, key = raw_input().split(' ') if command[0] == 'i': dictionary[key] = None else: if key in dictionary: print 'y...
s858125189
p02269
u227438830
1488273025
Python
Python3
py
Runtime Error
0
0
250
n = int(input()) dic = [] l = [list(i) for i in input().split] for i in range(n): if l[i][0] == "insert": dic.append(l[i][1]) else: if l[i][1] in dic: print("yes") else: print("no")
s025634628
p02269
u548155360
1489052536
Python
Python3
py
Runtime Error
0
0
204
from collection import deque D = deque() N = int(input()) for i in range(N): c, s = input().split() if c == "insert": d.append(s) elif c == "find": if (s in d): print(Yes) else: print(No)
s648644998
p02269
u548155360
1489052588
Python
Python3
py
Runtime Error
0
0
205
from collections import deque D = deque() N = int(input()) for i in range(N): c, s = input().split() if c == "insert": d.append(s) elif c == "find": if (s in d): print(Yes) else: print(No)
s965547887
p02269
u548155360
1489053067
Python
Python3
py
Runtime Error
0
0
207
from collections import deque D = set() N = int(input()) for i in range(N): c, s = input().split() if c == "insert": D.append(s) elif c == "find": if (s in D): print("yes") else: print("no")
s842852951
p02269
u130834228
1490518993
Python
Python3
py
Runtime Error
0
0
194
n = int(input()) dict = [] for i in range(n): order = input().split() if order[0] == "insert": dict.append(order[1]) else: if order[1] in dict: print(Yes)
s550400181
p02269
u796784914
1494655397
Python
Python
py
Runtime Error
10
6384
473
def main(): n = input() D = [] O = [] for i in range(n): c, k = raw_input().split() if c == 'insert': D.append(k) else: O.append(search(D,k)) for item in O: print item def search(D,k): Dc = D[:] if D == []: return 'no' el...
s973734423
p02269
u796784914
1494657424
Python
Python
py
Runtime Error
10
6352
474
def main(): n = input() D = [] O = [] for i in range(n): c, k = raw_input().split() if c == 'insert': D.append(k) else: O.append(search(D,k)) for item in O: print item def search(D,k): Dc = D[:] if Dc == []: return 'no' el...
s135914489
p02269
u796784914
1494658840
Python
Python
py
Runtime Error
10
6388
489
def main(): n = input() D = [] O = [] for i in range(n): c, k = raw_input().split() if c == 'insert': D.append(k) else: O.append(search(D,k)) for item in O: print item return 0 def search(D,k): Dc = D[:] if Dc == []: ret...
s080918926
p02269
u796784914
1494660034
Python
Python
py
Runtime Error
0
0
503
from collections import deque def main(): n = input() D = deque([]) O = deque([]) for i in range(n): c, k = raw_input().split() if c == 'insert': D.append(k) else: O.append(search(D,k)) for item in O: print item return 0 def search(D,k...
s644645295
p02269
u782850499
1498313093
Python
Python3
py
Runtime Error
0
0
795
d_list = set() times = int(input()) for i in range(times): elm = input().split() code = elm[1].replace("A","1") code = code.replace("C","2") code = code.replace("G","3") code = code.replace("T","4") if elm[0] == "insert": d_list.add(code) d_list = sorted(d_list) elif elm[0]...
s187638535
p02269
u591588652
1499003968
Python
Python3
py
Runtime Error
0
0
191
n = int(input()) dic = set() for i in range(n): Cmd, Key = input().split() if Cmd == "insert": dic.add(Key) else: if Key in dic: print("yes") else: print("no")
s894953521
p02269
u264972437
1500448737
Python
Python3
py
Runtime Error
0
0
205
n = int(input()) dictionary = dict() for i in range(n): command,data = input().split() if command = 'insert': dictionary[data] = 1 else: if data in dictionary: print('yes') else: print('no')
s049435595
p02269
u193453446
1500537692
Python
Python3
py
Runtime Error
30
7800
5306
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ??\????????????????????????????°?????????????????????????????£?????????????????????? insert str: ????????? str ?????????????????? find str: ????????? str ?????????????????´??? 'yes'??¨????????????????????´??? 'no'??¨??????????????? ??????????????????????????????'A', '...
s959849607
p02269
u519227872
1501953277
Python
Python3
py
Runtime Error
0
0
1103
n = int(input()) class Hash: def __init__(self): self.m = 1000003 self.T = [None] * self.m def insert(self, key): i = 0 while True: j = self.h(key, i) if i >0: if self.T[j] == None: self.T[j] = key break ...
s742722158
p02269
u510829608
1502248824
Python
Python3
py
Runtime Error
0
0
129
13 insert AAA insert AAC insert AGA insert AGG insert TTT find AAA find CCC find CCC insert CCC find CCC insert T find TTT find T
s310686763
p02269
u350064373
1502612574
Python
Python3
py
Runtime Error
0
0
191
import sys ls = [] line = map(lambda x:x.split(), sys.stdin.readlines()) for i in line: if i[0] == "insert": ls.append(i[1]) else: print("yes" if i[1] in ls else "no")
s942593541
p02269
u659034691
1503172766
Python
Python3
py
Runtime Error
20
7780
1410
def f(s,t): # As="ABCDEFGHIJKLMNOPQRSTUVWXYZ" As="ACGT" if s==t: return 0 else: i=0 while i<4 and s!=As[i]: i+=1 while i<4 and t!=As[i]: i+=1 if i<4: return -1 else: return 1 def f3(u,v): m=len(u) if l...
s031329897
p02269
u146816547
1506163842
Python
Python
py
Runtime Error
0
0
226
n = int(raw_input()) L = [] for i in xrange(n): a, b = map(raw_input().split()) if a == "insert": L.append(b) if a == "find": if b in L: print "yes" else: print "no"
s525604737
p02269
u588555117
1507990351
Python
Python3
py
Runtime Error
30
7728
841
n = int(input()) dic = [0]*n def hash1(x): return x % n def hash2(x): return x % (n-1) for i in range(n): line = input().split() com = line[0] st = str(line[1]) su = 0 for i in st: if i == 'A': su += 1 elif i == 'C': su += 2 elif i == 'G': ...
s317664068
p02269
u845015409
1512460739
Python
Python
py
Runtime Error
0
0
224
if __name__ == '__main__': n = int(input()) dic = set() for i in range(n): Cmd, Key = input().split() if Cmd == "insert": dic.add(Key) else: if Key in dic: print("yes") else: print("no") view raw
s903005450
p02269
u845015409
1512460748
Python
Python3
py
Runtime Error
0
0
224
if __name__ == '__main__': n = int(input()) dic = set() for i in range(n): Cmd, Key = input().split() if Cmd == "insert": dic.add(Key) else: if Key in dic: print("yes") else: print("no") view raw
s100254556
p02269
u845015409
1512460800
Python
Python
py
Runtime Error
0
0
219
n = int(input()) dic = set() for i in range(n): cmd, key = input().split() if cmd == "find": if key in dic: print("yes") else: print("no") else: dic.add(key)
s180992584
p02269
u530663965
1513837728
Python
Python3
py
Runtime Error
0
0
345
import sys def main(): _ = int(input()) imps = sys.stdin.readlines() db = [] for imp in imps: command = imp.split(' ') if command[0] == 'insert': db.append(command[1]) else if command[1] in db: print('yes') else: ...
s661279927
p02269
u530663965
1513837777
Python
Python3
py
Runtime Error
0
0
284
import sys def main(): _ = int(input()) imps = sys.stdin.readlines() db = {} for imp in imps: c, k = imp.split(' ') if c == 'insert': c[k] = 0 elif db in k: print('yes') else: print('no') main()
s371842814
p02269
u530663965
1513837840
Python
Python3
py
Runtime Error
0
0
284
import sys def main(): _ = int(input()) imps = sys.stdin.readlines() db = {} for imp in imps: c, k = imp.split(' ') if c == 'insert': c[k] = 0 elif db in k: print('yes') else: print('no') main()
s036642238
p02269
u530663965
1513837878
Python
Python3
py
Runtime Error
0
0
285
import sys def main(): _ = int(input()) imps = sys.stdin.readlines() db = {} for imp in imps: c, k = imp.split(' ') if c == 'insert': db[k] = 0 elif db in k: print('yes') else: print('no') main()
s917661619
p02269
u530663965
1513838116
Python
Python3
py
Runtime Error
0
0
285
import sys def main(): _ = int(input()) imps = sys.stdin.readlines() db = {} for imp in imps: c, k = imp.split(' ') if c == 'insert': db[k] = 0 elif db in k: print('yes') else: print('no') main()
s266057883
p02269
u662418022
1516716930
Python
Python3
py
Runtime Error
0
0
1369
# -*- coding: utf-8 -*- class HashTable(dict): def __init__(self, length): dict.__init__(self) self.length = length #self[:] = [None] * length def h1(self, key): return key % self.length def h2(self, key): return 1 + (key % (self.length - 1)) def h(self, key, ...
s819277923
p02269
u150984829
1518600504
Python
Python3
py
Runtime Error
0
0
124
import sys d={} for e in sys.stdin.readlines()[1:]: if'f'==e[0]:  print('yes'if e[5:]in d else'no') else:  d[e[7:]]=0
s166337795
p02269
u912143677
1522386124
Python
Python3
py
Runtime Error
0
0
1046
m = 1e13 NIL = -1 def h1(key): return key % m def h2(key): return 1 + (key % (m - 1)) def h(key, i): return (h1(key) + i * h2(key)) % m def insert(t, key): i = 0 while True: j = h(key, i) if t[j] == NIL: t[j] = key return j else: i += 1...
s669262813
p02269
u912143677
1522386146
Python
Python3
py
Runtime Error
0
0
1045
m = 1e8 NIL = -1 def h1(key): return key % m def h2(key): return 1 + (key % (m - 1)) def h(key, i): return (h1(key) + i * h2(key)) % m def insert(t, key): i = 0 while True: j = h(key, i) if t[j] == NIL: t[j] = key return j else: i += 1 ...
s475118702
p02269
u836133197
1524671305
Python
Python3
py
Runtime Error
0
0
276
n = int(input()) o = {""} for i in range(n): a = len(o) op, ob = map(str, input().split()) if op = "find" o.add(ob) if len(o) > a: print("no") o.discard(ob) else: print("yes") else: o.add(ob)
s234964837
p02269
u836133197
1524671344
Python
Python3
py
Runtime Error
0
0
277
n = int(input()) o = {""} for i in range(n): a = len(o) op, ob = map(str, input().split()) if op == "find" o.add(ob) if len(o) > a: print("no") o.discard(ob) else: print("yes") else: o.add(ob)
s875037183
p02269
u150984829
1524898186
Python
Python3
py
Runtime Error
0
0
290
import sys def m(): d={};input() for e in sys.stdin: if'f'==e[0]:print(['no','yes'][e[5:]in d]) else:d[e[7:]]=0 if'__main__'==__name__:m()import sys def m(): d={0};input() for e in sys.stdin: if'f'==e[0]:print(['no','yes'][e[5:]in d]) else:d|={e[7:]} if'__main__'==__name__:m()
s891307062
p02269
u126478680
1525234349
Python
Python3
py
Runtime Error
0
0
1074
import sys M = 1046527 def h1(key): return key % M def h2(key): return 1 + (key %(M-1)) def h3(key, i): return (h1(key) + i*h2(key)) % M word_dic = {'A': 1, 'T': 2, 'G': 3, 'C': 4} def getkey(text): sum = 0 p = 1 for c in text: sum += p*word_dic[c] p *= 5 return sum dict...
s830207641
p02269
u126478680
1525234998
Python
Python3
py
Runtime Error
0
0
1061
import sys M = 1046527 def h1(key): return key % M def h2(key): return 1 + (key %(M-1)) def h3(key, i): return (h1(key) + i*h2(key)) % M word_dic = {'A': 1, 'T': 2, 'G': 3, 'C': 4} def getkey(text): sum = 0 p = 1 for c in text: sum += p*word_dic[c] p *= 5 return sum dict...
s391195770
p02269
u063056051
1526116792
Python
Python3
py
Runtime Error
0
0
232
n = int(input()) s = set()//集合 for _ in range(n): inst = input().split() if inst[0] == "insert": s.add(inst[1]) else: if inst[1] in s: print("yes") else: print("no")
s065334139
p02269
u909075105
1526383060
Python
Python3
py
Runtime Error
0
0
193
n=input() A={} for i in range(n): x,y=input().split() if x=='insert': d.add(y) else: if b in d: print('yes') else: print('no')
s107216728
p02269
u909075105
1526383089
Python
Python3
py
Runtime Error
0
0
193
n=input() A={} for i in range(n): x,y=input().split() if x=='insert': A.add(y) else: if A in y: print('yes') else: print('no')
s830808565
p02269
u909075105
1526383133
Python
Python3
py
Runtime Error
0
0
196
n=input() A=set() for i in range(n): x,y=input().split() if x=='insert': A.add(y) else: if A in y: print('yes') else: print('no')
s965216837
p02269
u909075105
1526383187
Python
Python3
py
Runtime Error
0
0
201
n=int(input()) A=set() for i in range(n): x,y=input().split() if x=='insert': A.add(y) else: if A in y: print('yes') else: print('no')
s678895430
p02269
u728137020
1526424061
Python
Python3
py
Runtime Error
0
0
273
n=int(input()) list=[] list1=[] for i in range(n): a,b=map(str,input().split()) if a=="insert": list.append(b) if a=="find": if b in list: list1.append("yes") else: list1.append("no") for i in list1: print(i
s427660886
p02269
u055885332
1526436318
Python
Python3
py
Runtime Error
0
0
293
#16D8101014F Kurume Ryunosuke 久留米竜之介 2018/5/16 Python3 n = int(input()) box = set() for _ in range(n): tmp,mozi= input().split() if tmp == "find": if word in box: print("yes") else: print("no") else: dic.add(mozi)
s461951259
p02269
u055885332
1526436335
Python
Python3
py
Runtime Error
0
0
293
#16D8101014F Kurume Ryunosuke 久留米竜之介 2018/5/16 Python3 n = int(input()) box = set() for i in range(n): tmp,mozi= input().split() if tmp == "find": if word in box: print("yes") else: print("no") else: dic.add(mozi)
s881360129
p02269
u055885332
1526436424
Python
Python3
py
Runtime Error
0
0
292
#16D8101014F Kurume Ryunosuke 久留米竜之介 2018/5/16 Python3 n = int(input()) box = set() for _ in range(n): tmp,mozi= input().split() if tmp == "find": if word in box: print("yes") else: print("no") else: box.add(mozi)
s938898819
p02269
u055885332
1526436436
Python
Python3
py
Runtime Error
0
0
292
#16D8101014F Kurume Ryunosuke 久留米竜之介 2018/5/16 Python3 n = int(input()) box = set() for i in range(n): tmp,mozi= input().split() if tmp == "find": if word in box: print("yes") else: print("no") else: box.add(mozi)
s717390537
p02269
u896240461
1526440904
Python
Python3
py
Runtime Error
0
0
182
n = int(input()) d = set() for i in range(n): x = input() if x[0] == "i": d.append(x[7:]) else : if(x[5:] in d) : print("yes") else : print("no")
s394976369
p02269
u196653484
1526442734
Python
Python3
py
Runtime Error
0
0
337
def Dictionary(b): a=list(map(int,input().split())) if(a[0] == "insert"): b.append(a[1]) elif(a[0] == "find"): if(a[1] in b): print("yes") else: print("no") if __name__ == "__main__": n=int(input()) b=[] for i in range(n): Dictionary(b) ...
s122423645
p02269
u007270338
1527925471
Python
Python3
py
Runtime Error
0
0
1290
#coding:utf-8 n = int(input()) def converter(string): ch_list = ["A", "C", "G", "T"] new_string = "" for ch in string: for i in range(4): if ch == ch_list[i]: new_string += str(i+1) return int(new_string) def sosu(num): while True: i = 2 whi...
s765689951
p02269
u007270338
1527925529
Python
Python3
py
Runtime Error
0
0
1289
#coding:utf-8 n = int(input()) def converter(string): ch_list = ["A", "C", "G", "T"] new_string = "" for ch in string: for i in range(4): if ch == ch_list[i]: new_string += str(i+1) return int(new_string) def sosu(num): while True: i = 2 whi...
s979098772
p02269
u318430977
1528301717
Python
Python3
py
Runtime Error
20
5604
1270
class BTree: def __init__(self): self.value = None self.left = None self.right = None def insert(self, s): if self.value is None: self.value = s else: if self.value < s: if self.right is None: self.right = BTree...
s899850062
p02269
u318430977
1528301900
Python
Python3
py
Runtime Error
0
0
1271
class BTree: def __init__(self): self.value = "ZZZ" self.left = None self.right = None def insert(self, s): if self.value is None: self.value = s else: if self.value < s: if self.right is None: self.right = BTre...
s496634337
p02269
u318430977
1528301952
Python
Python3
py
Runtime Error
0
0
1271
class BTree: def __init__(self): self.value = "ZZZ" self.left = None self.right = None def insert(self, s): if self.value is None: self.value = s else: if self.value < s: if self.right is None: self.right = BTre...
s690508440
p02269
u445032255
1529906178
Python
Python3
py
Runtime Error
20
5604
890
D = [] def append(value): global D hashvalue = "" for letter in value: hashvalue += str(ord(letter)) D.append(int(hashvalue)) def find(value): hashvalue = "" for letter in value: hashvalue += str(ord(letter)) hashvalue = int(hashvalue) left = 0 right = len(D) - ...
s707412433
p02269
u633068244
1395993313
Python
Python
py
Runtime Error
100
43888
336
dict = {"A":1,"C":2,"G":3,"T":4} def a2n(a): ans = 0 for i in range(len(a)): ans += dict[a[i]]*4**i return ans n = int(raw_input()) ls = [0 for i in range(1000000)] for i in range(n): inp = raw_input() if inp[0] == "i": ls[a2n(inp[7:])] = 1 else: print "yes" if ls[a2n(inp[5:])] else "...
s751040241
p02269
u436634575
1400890860
Python
Python3
py
Runtime Error
0
0
155
n = int(input()) d = {} for i in n: cmd = input() if cmd[0] == 'i': d[cmd[7:]] = 0 else: print('yes' if cmd[5:] in d else 'no')
s277269280
p02270
u394181453
1551251769
Python
Python3
py
Runtime Error
20
5604
603
n, tracks = list(map(int, input().split())) loads = [] for _ in range(n): loads.append(int(input())) # print(loads) slices = [] def slicing(rest, s): if not rest: slices.append(s+[(s[-1][1], len(loads))]) return first = len(s) and s[-1][1] for s1 in range(first+1, len(loads)-rest+1):...
s978655452
p02270
u394181453
1551253049
Python
Python3
py
Runtime Error
0
0
648
n, tracks = list(map(int, input().split())) loads = [] for _ in range(n): loads.append(int(input())) # print(loads) slices = [] min_load = [99999999999999] def slicing(rest, s): if not rest: # slices.append(s+[(len(s) and s[-1][1], len(loads))]) s += [(len(s) and s[-1][1], len(loads))] ...
s493648324
p02270
u394181453
1551254999
Python
Python3
py
Runtime Error
0
0
736
n, tracks = list(map(int, inpput().split())) loads = [] for _ in range(n): loads.append(int(input())) # print(loads) slices = [] min_load = [99999999999999] @lru_cache() def slicing(rest, s=0): if not rest: # slices.append(s+[(len(s) and s[-1][1], len(loads))]) return sum(loads[s:]) resul...
s137332753
p02270
u394181453
1551255018
Python
Python3
py
Runtime Error
0
0
735
n, tracks = list(map(int, input().split())) loads = [] for _ in range(n): loads.append(int(input())) # print(loads) slices = [] min_load = [99999999999999] @lru_cache() def slicing(rest, s=0): if not rest: # slices.append(s+[(len(s) and s[-1][1], len(loads))]) return sum(loads[s:]) result...
s244174500
p02270
u604774382
1433848205
Python
Python3
py
Runtime Error
0
0
594
n, k = [ int( val ) for val in raw_input( ).split( " " ) ] w = [ int( raw_input( ) ) for val in range( n ) ] sumW = sum( w ) maxW = max( w ) minP = 0 if 1 == k: minP = sumW elif n == k: minP = maxW else: left = maxW right = 100000*10000 while left <= right: middle = ( left+right )//2 truckCnt = i = loadings =...
s121237379
p02270
u253463900
1452598972
Python
Python3
py
Runtime Error
0
0
487
def check(T, p, n, k): i = 0 for j in range(k): s = 0 while(s+T[i] <= p): s += T[i] i += 1 if i == n: return n return i n, k = [int(x) for x in input().split()] T = [] for i in range(n): T.append(int(input())) left, r...
s699372486
p02270
u253463900
1452599086
Python
Python3
py
Runtime Error
0
0
496
def check(T, p, n, k): i = 0 for j in range(k): s = 0 while(s+T[i] <= p): s += T[i] i += 1 if i == n: return n return i n, k = [int(x) for x in input().split()] T = [] for i in range(n): T.append(int(input())) left, r...
s195358258
p02270
u619765879
1452609638
Python
Python
py
Runtime Error
0
0
335
n, k = map(int, raw_input().split()) for i in range(n): T.append(input()) left = 0 right = 100000*10000 while left<right: mid = (right + left)/2 j = 0 s = 0 while s + T[j] <= mid: s += T[j] j++ if j == n: break if v>=n: right = mid else: left = m...
s271227307
p02270
u619765879
1452609660
Python
Python
py
Runtime Error
0
0
345
n, k = map(int, raw_input().split()) T = set() for i in range(n): T.append(input()) left = 0 right = 100000*10000 while left<right: mid = (right + left)/2 j = 0 s = 0 while s + T[j] <= mid: s += T[j] j++ if j == n: break if v>=n: right = mid else: ...
s600044879
p02270
u619765879
1452609679
Python
Python
py
Runtime Error
0
0
342
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while left<right: mid = (right + left)/2 j = 0 s = 0 while s + T[j] <= mid: s += T[j] j++ if j == n: break if v>=n: right = mid else: l...
s522424045
p02270
u619765879
1452609710
Python
Python
py
Runtime Error
0
0
344
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 s = 0 while s + T[j] <= mid: s += T[j] j++ if j == n: break if v>=n: right = mid else: ...
s543783322
p02270
u619765879
1452609785
Python
Python
py
Runtime Error
0
0
344
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 s = 0 while s + T[j] <= mid: s += T[j] j++ if j == n: break if j>=n: right = mid else: ...
s051256483
p02270
u619765879
1452609843
Python
Python
py
Runtime Error
0
0
347
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid else: ...
s018512567
p02270
u619765879
1452610352
Python
Python
py
Runtime Error
0
0
349
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for k in range(k) s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid else...
s657231208
p02270
u619765879
1452610362
Python
Python
py
Runtime Error
0
0
350
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for k in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid els...
s803161444
p02270
u619765879
1452610405
Python
Python
py
Runtime Error
0
0
350
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid els...
s414095405
p02270
u619765879
1452610483
Python
Python
py
Runtime Error
0
0
350
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid els...
s413620228
p02270
u619765879
1452610608
Python
Python
py
Runtime Error
0
0
392
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: x = -1 break if x = -1: ...
s966701022
p02270
u619765879
1452610628
Python
Python
py
Runtime Error
0
0
392
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: d = -1 break if d = -1: ...
s923901974
p02270
u619765879
1452610706
Python
Python
py
Runtime Error
0
0
350
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid els...
s162252051
p02270
u619765879
1452610716
Python
Python
py
Runtime Error
0
0
320
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j>=n: right = mid else: left = mid print right
s137939219
p02270
u619765879
1452610776
Python
Python
py
Runtime Error
0
0
350
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid els...
s651230861
p02270
u619765879
1452610849
Python
Python
py
Runtime Error
0
0
356
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s + T[j] <= mid: s = s + T[j] j = j + 1 if j == n: break if j>=n: right = mid...
s834111060
p02270
u619765879
1452610927
Python
Python
py
Runtime Error
0
0
348
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid else:...
s153631180
p02270
u619765879
1452611187
Python
Python
py
Runtime Error
0
0
348
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid: s += T[j] j += 1 if j == n: break if j>=n: right = mid else:...
s181976905
p02270
u619765879
1452611242
Python
Python
py
Runtime Error
0
0
346
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j == n: s += T[j] j += 1 # if j == n: if j>=n: right = mid else: ...
s551107574
p02270
u619765879
1452611404
Python
Python
py
Runtime Error
0
0
327
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j == n: s += T[j] j += 1 if j>=n: right = mid else: left = mid prin...
s848046002
p02270
u619765879
1452611467
Python
Python
py
Runtime Error
0
0
329
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j == n-1: s += T[j] j += 1 if j>=n: right = mid else: left = mid pr...
s146660079
p02270
u619765879
1452611494
Python
Python
py
Runtime Error
0
0
329
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j != n-1: s += T[j] j += 1 if j>=n: right = mid else: left = mid pr...
s106559786
p02270
u619765879
1452611591
Python
Python
py
Runtime Error
0
0
330
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j not n-1: s += T[j] j += 1 if j>=n: right = mid else: left = mid p...
s988939582
p02270
u619765879
1452611606
Python
Python
py
Runtime Error
0
0
332
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j not n-1: # s += T[j] # j += 1 if j>=n: right = mid else: left = mid ...
s695020109
p02270
u619765879
1452611759
Python
Python
py
Runtime Error
0
0
331
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j := n-1: # s += T[j] # j += 1 if j>=n: right = mid else: left = mid ...
s391270376
p02270
u619765879
1452611766
Python
Python
py
Runtime Error
0
0
332
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j ::= n-1: # s += T[j] # j += 1 if j>=n: right = mid else: left = mid ...
s117630866
p02270
u619765879
1452612004
Python
Python
py
Runtime Error
0
0
335
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j is not n-1: # s += T[j] # j += 1 if j>=n: right = mid else: left = m...
s105217259
p02270
u619765879
1452612565
Python
Python
py
Runtime Error
0
0
333
n, k = map(int, raw_input().split()) T = [] for i in range(n): T.append(input()) left = 0 right = 100000*10000 while right-left>1: mid = (right + left)/2 j = 0 for x in range(k): s = 0 while s+T[j] <= mid or j is not n-1: s += T[j] j += 1 if j>=n: right = mid else: left = mid...