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
s238688628
p03599
u998679483
1590345239
Python
Python (3.4.3)
py
Runtime Error
93
3064
938
def main(): a, b, c, d, e, f = map(int, input().split()) maxConcentration = 0 for i in range(31): for j in range(i + 1, (29 * a // b) + 1): water = (i * a + j * b) * 100 possibleSugar = int(min(f - water, water * e / 100)) for k in range((possibleSugar // c) + 1...
s322973787
p03599
u998679483
1590343485
Python
Python (3.4.3)
py
Runtime Error
281
3192
924
def main(): a, b, c, d, e, f = map(int, input().split()) maxConcentration = 0 for i in range(31): for j in range(31 - i * a): water = (i * a + j * b) * 100 possibleSugar = int(min(f - water, water * e / 100)) for k in range((possibleSugar // c) + 1): ...
s830739895
p03599
u338824669
1589896577
Python
Python (3.4.3)
py
Runtime Error
18
3064
524
A,B,C,D,E,F=map(int,input().split()) n=F//(100+E) max_water=100*n ans=[0,0] concentration=0.0 for i in range(max_water//(100*B)+1): tmp_water=100*B*i tmp_water+=100*A*((max_water-tmp_water)//(100*A)) max_suger=(tmp_water//100)*E for j in range(max_suger//D+1): tmp_suger=D*j tmp_suger+=C...
s431602981
p03599
u945839160
1589683698
Python
PyPy3 (2.4.0)
py
Runtime Error
177
38640
936
def resolve(): # 整数 1 つ # n = int(input()) # 整数複数個 a, b, c, d, e, f = map(int, input().split()) # 整数 N 個 (改行区切り) # N = [int(input()) for i in range(N)] # 整数 N 個 (スペース区切り) # N = list(map(int, input().split())) # 整数 (縦 H 横 W の行列) # A = [list(map(int, input().split())) for i in rang...
s862298549
p03599
u703950586
1589643657
Python
PyPy3 (2.4.0)
py
Runtime Error
188
39788
824
import sys,queue,math,copy,itertools,bisect,collections,heapq def main(): LI = lambda : [int(x) for x in sys.stdin.readline().split()] A,B,C,D,E,F = LI() w = set() for i in range(int(F/A/100)+1): for j in range(int(F/B/100)+1): #if 0 < A*i+B*j <= int(F/100): w.add(...
s286830380
p03599
u790012205
1589585489
Python
Python (3.4.3)
py
Runtime Error
29
3064
725
A, B, C, D, E, F = map(int, input().split()) d = 0 for i in range(31): if i * 100 * A > F: break for j in range(31): if i * 100 * A + j * 100 * B > F: break if i == 0 and j == 0: break for k in range(0, 1501, C): if k > i * A * E + j * B * E: ...
s403965454
p03599
u014268998
1589503130
Python
Python (3.4.3)
py
Runtime Error
52
5324
916
a,b,x,y,s,m = map(int,input().split()) #a,b,x,y,s,m = (1,2,1,2,100,1000) a *= 100 b *= 100 #入れられる水の候補 waterlist=[] amax = int(m/a) for i in range(amax+1): bmax = int((m-a*i)/b) for j in range(bmax+1): waterlist.append(a*i + b*j) waterlist = set(waterlist) #砂糖の組み合わせから最大を def makesatolist(maxsato,x,y): satol...
s915402204
p03599
u014268998
1589502670
Python
Python (3.4.3)
py
Runtime Error
53
5324
917
a,b,x,y,s,m = map(int,input().split()) #a,b,x,y,s,m = (1,2,1,2,100,1000) a *= 100 b *= 100 #入れられる水の候補 waterlist=[] amax = int(m/a) for i in range(amax+1): bmax = int((m-a*i)/b) for j in range(bmax+1): waterlist.append(a*i + b*j) waterlist = set(waterlist) #砂糖の組み合わせから最大を def makesatolist(maxsato,x,y): satol...
s437922652
p03599
u127499732
1589405814
Python
Python (3.4.3)
py
Runtime Error
18
2940
730
def main(): from itertools import product a, b, c, d, e, f = map(int, input().split()) a, b = max(a, b), min(17 19 22 26 55 2802a, b) c, d = max(c, d), min(c, d) aa, bb, cc, dd = f // (100 * a), f // (100 * b), f // c, f // d aaa, bbb, ccc, ddd = range(aa + 1), range(bb + 1), range(cc, -1, -1), ...
s595839321
p03599
u509739538
1589272477
Python
Python (3.4.3)
py
Runtime Error
30
4080
2699
import math import queue from collections import defaultdict def readInt(): return int(input()) def readInts(): return list(map(int, input().split())) def readChar(): return input() def readChars(): return input().split() def factorization(n): res = [] if n%2==0: res.append(2) for i in range(3,math.floor(n//...
s067548376
p03599
u509739538
1589272154
Python
Python (3.4.3)
py
Runtime Error
29
3952
2635
import math import queue from collections import defaultdict def readInt(): return int(input()) def readInts(): return list(map(int, input().split())) def readChar(): return input() def readChars(): return input().split() def factorization(n): res = [] if n%2==0: res.append(2) for i in range(3,math.floor(n//...
s853843162
p03599
u814781830
1589149706
Python
PyPy3 (2.4.0)
py
Runtime Error
249
42604
642
import math A, B, C, D, E, F = map(int, input().split()) def calc(a, b): if a == 0 or b == 0: return 0 return 100 * b / (a + b) ans = 0 tmp = 0 for i in range(F//100+1): for j in range(F//100+1): water = i * 100 + j * 100 if 1 > water or water > F: break for k in range(F//C+1): ...
s395331180
p03599
u397384480
1589147709
Python
PyPy3 (2.4.0)
py
Runtime Error
283
50396
628
a,b,c,d,e,f = map(int,(input().split())) possible_water = [] for i in range(31): for j in range(31): water = 100*a*i + 100*b*j if 0 < water <= f: possible_water.append(water) pw = list(set(possible_water)) possible_sugar = [] for i in range(3001): for j in range(3001): suga...
s988365040
p03599
u397384480
1589135514
Python
PyPy3 (2.4.0)
py
Runtime Error
282
42492
632
a,b,c,d,e,f = map(int,(input().split())) possible_water = [] for i in range(31): for j in range(31): water = 100*a*i + 100*b*j if 0 < water <= f: possible_water.append(water) pw = list(set(possible_water)) possible_sugar = [] for i in range(3001): for j in range(3001): suga...
s154921109
p03599
u329565519
1588960738
Python
Python (3.4.3)
py
Runtime Error
18
3064
432
A, B, C, D, E, F = map(int, input().split()) mx = -s ans = 0, 0 for a in range(0, F+1, A*100): for b in range(0, F-a+1, B*100): if a + b == 0: continue for c in range(0, F-a-b+1, C): for d in range(0, F-a-b-c+1, D): x = 100 * (c + d) / (a + b) ...
s259166135
p03599
u329565519
1588956428
Python
Python (3.4.3)
py
Runtime Error
58
3188
472
A, B, C, D, E, F = map(int, input().split()) ws = set() ss = set() for a in range(0, F+1, A*100): for b in range(0, F-a+1, B*100): ws.add(a + b) for c in range(0, F+1, C): for d in range(0, F-c+1, D): ss.add(c + d) mx = 0 ans = None for w in ws: if w == 0: continue for s in s...
s998988953
p03599
u329565519
1588956317
Python
Python (3.4.3)
py
Runtime Error
58
3188
465
A, B, C, D, E, F = map(int, input().split()) ws = set() ss = set() for a in range(0, F+1, A*100): for b in range(0, F-a+1, B*100): if a + b == 0: continue ws.add(a + b) for c in range(0, F+1, C): for d in range(0, F-c+1, D): ss.add(c + d) mx = 0 ans = None for w in ws: ...
s135721125
p03599
u329565519
1588954796
Python
Python (3.4.3)
py
Runtime Error
643
3064
494
A, B, C, D, E, F = map(int, input().split()) mx = 0 ans = None for a in range(0, F+1, A*100): for b in range(0, F-a+1, B*100): if a + b == 0: continue for c in range(0, F-a-b+1, C): for d in range(0, F-a-b-c+1, D): if c + d == 0: continue...
s549589436
p03599
u934868410
1588788727
Python
Python (3.4.3)
py
Runtime Error
17
2940
425
a,b,c,d,e,f = map(int,input().split()) ans_per, ans_w, ans_s = 0,0,0 for i in range(f//(100*a) + 1): for j in range(, (f-100*i)//(100*b) + 1): w = i*a*100 + j*b*100 r = min(f-w, w//100 * e) for x in range(r//c + 1): for y in range((r-x*c)//d + 1): s = x*c + y*d if s / w > ans_per: ...
s877765837
p03599
u969850098
1588629988
Python
Python (3.4.3)
py
Runtime Error
162
3188
813
import sys readline = sys.stdin.readline def main(): A, B, C, D, E, F = map(int, readline().rstrip().split()) X = set() for a in range(F//(100*A)+1): for b in range(F//(100*B)+1): if 100 * a * A + 100 * b * B <= F: X.add(100 * a * A + 100 * b * B) X.remove(0) Y ...
s253994916
p03599
u549161102
1588542839
Python
Python (3.4.3)
py
Runtime Error
559
3188
447
A,B,C,D,E,F = map(int, input().split()) sugar = 0 judge = 0 for i in range(31): for j in range(32): for k in range(31): for l in range(32): if i+j != 0: x = 100*A*i + 100*B*j y = C*k + D*l if x+y <= F: per = 100*y/x if per <= E: ...
s586901867
p03599
u641722141
1588450437
Python
Python (3.4.3)
py
Runtime Error
124
3188
553
a, b, c, d, e, f = map(int, input().split()) s = set() t = set() for i in range(f//100 + 1): for j in range(f//100 + 1): if 0 < 100 * (a * i + b * j) <= f : s.add(100 *(a * i + b * j)) for k in range(0, f + 1, c): for l in range(0, f + 1, d): if f >= (k + l): t.add(k + ...
s526343328
p03599
u641722141
1588443612
Python
Python (3.4.3)
py
Runtime Error
3156
3188
525
a, b, c, d, e, f = map(int, input().split()) s = set() t = set() for i in range(f): for j in range(f): if f >= 100 * (a * i + b * j): s.add(100 * (a * i + b * j)) if f >= (c * i + d * j): t.add(c * i + d * j) m = 0 ans = [0, 0] for k in s: for l in t: ...
s320150141
p03599
u151785909
1588313038
Python
Python (3.4.3)
py
Runtime Error
407
5060
576
a,b,c,d,e,f = map(int, input().split()) s_max = f*e//(e+100) w_max = f//(e+100) s=[] w=[] max = 0 for i in range(s_max//c+1): for j in range(s_max//d+1): if c*i + d*j <= s_max: s.append(c*i + d*j) for i in range(w_max//a+1): for j in range(w_max//b+1): if 0<a*i + b*j <= w_max: ...
s140368707
p03599
u151785909
1588312698
Python
Python (3.4.3)
py
Runtime Error
486
5124
584
a,b,c,d,e,f = map(int, input().split()) s_max = f*e//(e+100) w_max = f//(e+100) s=[] w=[] max = 0 ans = [] for i in range(s_max//c+1): for j in range(s_max//d+1): if c*i + d*j <= s_max: s.append(c*i + d*j) for i in range(w_max//a+1): for j in range(w_max//b+1): if 0<a*i + b*j <= w...
s898901910
p03599
u855378574
1588307846
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38512
651
A, B, C, D, E, F = map(int,input().split()) answer_number = [0,0,0,0] answer_max = 0 for i in range((F/(100*A))+1): for j in range(((F-100*A*i)/(100*B))+1): if i==0 and j ==0: continue for k in range(((F-100*A*i-100*B*j)/C)+1): for l in range(((F-100*A*i-100*B*j-C*k)/D)+1): if (C*k+D*l)/(A*i+B*j...
s312244343
p03599
u741472097
1588130981
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38256
841
import math a, b, c, d, e, f = map(int, input().split()) highest = 0 sugarwater = 0 maxsugar = 0 for aa in range(math.ceil(f / (100 * a))): for cc in range(math.ceil(f / c)): for bb in range(math.ceil(f / (100 * b))): for dd in range(math.ceil(f / d)): sugar = cc * c + dd * d ...
s355366860
p03599
u741472097
1588130845
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38384
841
import math a, b, c, d, e, f = map(int, input().split()) highest = 0 sugarwater = 0 maxsugar = 0 for aa in range(math.ceil(f / (100 * a))): for cc in range(math.ceil(f / c)): for bb in range(math.ceil(f / (100 * b))): for dd in range(math.ceil(f / d)): sugar = cc * c + dd * d ...
s867668173
p03599
u576432509
1587868493
Python
Python (3.4.3)
py
Runtime Error
1163
3064
608
a,b,c,d,e,f=map(int,input().split()) rmax=0 for a100 in range(0,f+1,100*a): for b100 in range(0,f-a100+1,100*b): # for b100 in range(0,f+1,100*b): if a100+b100>0: fcd=f-a100-b100 for ci in range(0,fcd+1,c): for di in range(0,fcd+1,d): if a100+b10...
s048175973
p03599
u576432509
1587868176
Python
Python (3.4.3)
py
Runtime Error
974
3064
626
a,b,c,d,e,f=map(int,input().split()) rmax=0 for a100 in range(0,f+1,100*a): # for b100 in range(0,f-a100+1,100): for b100 in range(0,f+1,100*b): if a100+b100>0: fcd=f-a100-b100 for ci in range(0,fcd+1,c): for di in range(0,fcd+1,d): if a100+b10...
s465538879
p03599
u219417113
1587610221
Python
Python (3.4.3)
py
Runtime Error
58
3188
1219
def main(): import sys input = sys.stdin.readline A, B, C, D, E, F = map(int, input().split()) waters = set() for i in range(0, F, A): for j in range(0, F, B): ij = i * 100 + j * 100 if ij > F: break waters.add(ij) sugers = set() fo...
s416548963
p03599
u219417113
1587610025
Python
Python (3.4.3)
py
Runtime Error
18
3064
1193
def main(): import sys input = sys.stdin.readline A, B, C, D, E, F = map(int, input().split()) waters = set() for i in range(0, F, A): for j in range(0, F, B): ij = i * 100 + j * 100 if ij > F: break waters.add(ij) sugers = set() fo...
s758314956
p03599
u818349438
1587607607
Python
PyPy3 (2.4.0)
py
Runtime Error
285
66064
588
a,b,c,d,e,f = map(int,input().split()) X = [] Y = [] res = 0 for i in range(f+1): for j in range(f+1): x = 100*a*i+100*b*j y = c*i+d*j if x > f and y > f:break X.append(x) Y.append(y) def ok(x,y): return (x//100)*e >= y and x+y <=f cnt = 0 X.sort() Y.sort() for x in X: ...
s448475881
p03599
u773865844
1587339559
Python
Python (3.4.3)
py
Runtime Error
889
3064
944
import sys lines = sys.stdin.readlines() X = lines[0].split(' ') A = int(X[0]) B = int(X[1]) C = int(X[2]) D = int(X[3]) E = int(X[4]) F = int(X[5]) Water = 0 Sugar = 0 x = int(F/(100*A)) H = 0 for i in range(x+1): y = int((F-i * 100 * A)/100 * B) for j in range(y+1): Water = i * 100*A + j * 100 *...
s248792724
p03599
u773865844
1587338296
Python
Python (3.4.3)
py
Runtime Error
999
3064
971
import sys lines = sys.stdin.readlines() X = lines[0].split(' ') A = int(X[0]) B = int(X[1]) C = int(X[2]) D = int(X[3]) E = int(X[4]) F = int(X[5]) Water = 0 Sugar = 0 Satconc = 100 * E/(100+E) x = int(F/(100*A)) H = 0 for i in range(x+1): y = int((F-i * 100 * A)/100 * B) for j in range(y+1): Wat...
s906680269
p03599
u773865844
1587337924
Python
Python (3.4.3)
py
Runtime Error
858
3064
1046
import sys lines = sys.stdin.readlines() X = lines[0].split(' ') A = int(X[0]) B = int(X[1]) C = int(X[2]) D = int(X[3]) E = int(X[4]) F = int(X[5]) Water = 0 Sugar = 0 if Water + Sugar == 0: Conc = 0 else: Conc = 100 * Sugar/(Water + Sugar) Satconc = 100 * E/(100+E) x = int(F/(100*A)) H = 0 for i in range(x+1...
s390915998
p03599
u787449825
1587277643
Python
Python (3.4.3)
py
Runtime Error
17
3064
782
a, b, c, d, e, f = map(int, input().split()) sug, dif2 = 0, 100 s = {} wat1, wat2 = 100*a, 100*b cap1, cap2 = a*e, b*e for i in range(1,f//wat1+1): for j in range(f//wat2+1): if (wat1+cap1)*i+(wat2+cap2)*j<=f: s[cap1*i+cap2*j] = wat1*i+wat2*j if s == {}: dif1 = f - wat1 for i in range(10...
s678415832
p03599
u787449825
1587274727
Python
Python (3.4.3)
py
Runtime Error
78
3192
495
a, b, c, d, e, f = map(int, input().split()) sug, dif = 0, 100 s = {} wat1, wat2 = 100*a, 100*b cap1, cap2 = a*e, b*e for i in range(1,f//wat1+1): for j in range(f//wat2+1): if (wat1+cap1)*i+(wat2+cap2)*j<=f: s[cap1*i+cap2*j] = wat1*i+wat2*j for i in s.keys(): for j in range(i//c+1): ...
s641493671
p03599
u787449825
1587269749
Python
Python (3.4.3)
py
Runtime Error
20
3060
225
a, b, c, d, e, f = map(int, input().split()) sug = 0 wat = 100*a cap = a*e for i in range(100): for j in range(100): if (c*i+d*j<=cap) and (wat+c*i+d*j)<=f: sug = max(c*i+j*d, sug) print(wat1+sug, sug)
s134596688
p03599
u496821919
1587195657
Python
Python (3.4.3)
py
Runtime Error
18
3064
780
A,B,C,D,E,F = map(int,input().split()) water = set() sugar = set() s = 0 a = 0 b = 0 for i in range(30): for j in range(30-i): if 100*A*i+100*B*j <= F: water.add(100*A*i+100*B*j) water.remove(0) for i in range(3000): for j in range(3000-i): if C*i+D*j <= F: sugar.add...
s419384980
p03599
u496821919
1587195154
Python
Python (3.4.3)
py
Runtime Error
1055
3188
719
A,B,C,D,E,F = map(int,input().split()) water = set() sugar = set() s = 0 for i in range(30): for j in range(30-i): if 100*A*i+100*B*j <= F: water.add(100*A*i+100*B*j) water.remove(0) for i in range(3000): for j in range(3000-i): if C*i+D*j <= F: sugar.add(C*i+D*j) s...
s254337969
p03599
u054556734
1587104505
Python
PyPy3 (2.4.0)
py
Runtime Error
266
45788
517
a,b,c,d,e,f = map(int,input().split()) # 作れるか判定 def check(goal,ac,bd): flag = 0 for x in range(int(goal//ac)+1): if (goal-ac*x)%bd == 0 : flag = 1 ; break return flag # 水W、砂糖Sをまわす anss = [] for w in range(100,f+1,100): for s in range(1,f-w+1): if check(w,100*a,100*b) and check(s,c,...
s829005326
p03599
u812576525
1586640591
Python
Python (3.4.3)
py
Runtime Error
18
2940
737
from operator import itemgetter A, B, C, D, E, F = list(map(int,input().split())) X = [] for a in range(31): for b in range(31): for c in range(71) #範囲の指定がよくわからない for d in range(71): #範囲の指定がよくわからない w = 100*A*a+100*B*b #水の質量 s = C*c+D*d #砂糖の質量 ...
s607858269
p03599
u812576525
1586639456
Python
Python (3.4.3)
py
Runtime Error
580
44236
631
from operator import itemgetter A, B, C, D, E, F = list(map(int,input().split())) X = [] for a in range(31): for b in range(31): for c in range(101): for d in range(101): w = 100*A*a+100*B*b #砂糖水の質量 s = C*c+D*d #砂糖の質量 if w == 0 or s == 0 o...
s973483254
p03599
u812576525
1586639148
Python
Python (3.4.3)
py
Runtime Error
85
7920
639
from operator import itemgetter A, B, C, D, E, F = list(map(int,input().split())) X = [] ans = 1000 for a in range(31): for b in range(31): for c in range(31): for d in range(31): w = 100*A*a+100*B*b #砂糖水の質量 s = C*c+D*d #砂糖の質量 if w == 0 or ...
s434260339
p03599
u812576525
1586638578
Python
Python (3.4.3)
py
Runtime Error
90
7920
700
from operator import itemgetter A, B, C, D, E, F = list(map(int,input().split())) X = [] ans = 1000 for a in range(31): for b in range(31): for c in range(31): for d in range(31): w = 100*A*a+100*B*b #砂糖水の質量 s = C*c+D*d #砂糖の質量 if w == 0: ...
s541306711
p03599
u994521204
1586636260
Python
Python (3.4.3)
py
Runtime Error
1171
134984
702
a, b, c, d, e, f = map(int, input().split()) kouho = [] for i in range(f // a + 1): for j in range(f // b + 1): water = 100 * (a * i + b + j) if water > f: break if water == 0: break sugar_max = (a * i + b + j) * e for k in range(sugar_max // c + 1): ...
s206975582
p03599
u994521204
1586636036
Python
Python (3.4.3)
py
Runtime Error
1326
135000
729
a, b, c, d, e, f = map(int, input().split()) kouho = [] for i in range(f // a + 1): for j in range(f // b + 1): water = 100 * (a * i + b + j) if water > f: break sugar_max = (a * i + b + j) * e for k in range(sugar_max // c + 1): for l in range(sugar_max // d ...
s501238668
p03599
u797550216
1586578676
Python
PyPy3 (2.4.0)
py
Runtime Error
347
52316
883
a,b,c,d,e,f = map(int,input().split()) ab = [] for i in range(f): for j in range(f): x = a*100*i+b*100*j if x > f: continue else: ab.append(x) cd = [] for i in range(f): for j in range(f): x = c*i+d*j if x > f: ...
s336131408
p03599
u896741788
1586554117
Python
Python (3.4.3)
py
Runtime Error
35
5076
554
from decimal import Decimal as D mi1,mi2,sa1,sa2,houwa,lim=map(int,input().split()) slim=houwa*lim/(100+houwa) ws=set(mi1*i+mi2*j for i in range(lim//(100*mi1)+1) for j in range(lim//(100*mi2)+2) if 100*(mi1*i+mi2*j)<=lim) ss=set(sa1*i+sa2*j for i in range(slim//sa1+1) for j in range(slim//sa2+2) if (sa1*i+sa2*j)<=slim...
s543937498
p03599
u896741788
1586552668
Python
Python (3.4.3)
py
Runtime Error
18
3064
551
from decilmal import Decimal as D mi1,mi2,sa1,sa2,houwa,lim=map(int,input().split()) slim=lim*houwa//100 ws=set(mi1*i+mi2*j for i in range(lim//(100*mi1)+2) for j in range(lim//(100*mi2)+2) if 100*(mi1*i+mi2*j)<=lim) ss=set(sa1*i+sa2*j for i in range(slim//sa1+2) for j in range(slim//sa2+2) if (sa1*i+sa2*j)<=slim) ans=...
s214975382
p03599
u375695365
1586300355
Python
Python (3.4.3)
py
Runtime Error
3156
8684
782
a,b,c,d,e,f=map(int,input().split()) water=set()#入れる可能性のある水の量O(A*B) sugar=set()#入れる可能性のある佐藤の量O(C*D) for i in range(31): for j in range(31): water.add(100*i*a+100*j*b) for i in range(1501): for j in range(1501): sugar.add(c*i+d*j) water=sorted(list(water)) #print(water) sugar=sorted(list(sugar...
s491466092
p03599
u471539833
1586245329
Python
Python (3.4.3)
py
Runtime Error
17
3064
495
A,B,C,D,E,F=map(int,input().split()) n=F//(100*A) m=int((F/(100+E))*E/C) #print(n,m) a=0 b=0 c=0 for i in range(n+1): for j in range(F//(100*B)+1): for k in range(m+1): for l in range(int((F/(100+E))*E/D)+1): if((n+1-i>0 or j>0) and (i*A+j*B)*E>=k*C+l*D and 100*(A*i+B*j)+k*C+l*D<=F): if((k...
s081000504
p03599
u788068140
1586099502
Python
Python (3.4.3)
py
Runtime Error
18
3064
1186
S = input().split(" ") A = int(S[0]) B = int(S[1]) C = int(S[2]) D = int(S[3]) E = int(S[4]) F = int(S[5]) def calculate(a, b, c, d, e, f): result = [] for x in range(math.ceil(f / (a * 100))): for y in range(math.ceil(f / (b * 100))): result.append([x, y]) maxNondu = 0 finalResul...
s192207026
p03599
u788068140
1586098961
Python
Python (3.4.3)
py
Runtime Error
847
3064
1119
import math S = input().split(" ") A = int(S[0]) B = int(S[1]) C = int(S[2]) D = int(S[3]) E = int(S[4]) F = int(S[5]) def calculate(a, b, c, d, e, f): result = [] for x in range(math.ceil(f / (a * 100))): for y in range(math.ceil(f / (b * 100))): result.append([x, y]) maxNondu = 0 ...
s598732420
p03599
u576432509
1586028405
Python
Python (3.4.3)
py
Runtime Error
17
3064
1061
a,b,c,d,e,f=map(int, input().split()) indxmax=0.0 wmax=0 emax=0 elmt=100*e/(100+e) a31=int(f/100/a)+1 b31=int(f/100/b)+1 c31=int(f/c)+1 for ai in range(a31): for bi in range(b31): w=100*a*ai+100*b*bi # print("a,b:",ai,bi,w) if w<=f and w>0: # c31=int(w/100*e/c)+1 # c31=...
s648051554
p03599
u349476738
1585973109
Python
Python (3.4.3)
py
Runtime Error
358
3064
1144
# coding: utf-8 import math A, B, C, D, E, F = (int(x) for x in input().strip().split()) max_A = F // (A * 100) #操作1を実行できる回数 max_B = F // (B * 100) #操作2を実行できる回数 ans_a, ans_b, ans_c, ans_d, ans_per = 0, 0, 0, 0, 0 for i in range(max_A + 1): for j in range(max_B + 1): if i == 0 and j == 0: j +=...
s991735074
p03599
u349476738
1585972970
Python
Python (3.4.3)
py
Runtime Error
377
3064
1144
# coding: utf-8 import math A, B, C, D, E, F = (int(x) for x in input().strip().split()) max_A = F // (A * 100) #操作1を実行できる回数 max_B = F // (B * 100) #操作2を実行できる回数 ans_a, ans_b, ans_c, ans_d, ans_per = 0, 0, 0, 0, 0 for i in range(max_A + 1): for j in range(max_B + 1): if i == 0 and j == 0: j +=...
s293644899
p03599
u135847648
1585934592
Python
PyPy3 (2.4.0)
py
Runtime Error
200
51416
613
A,B,C,D,E,F = map(int,input().split()) W = [] S = [] # 100A,100B の水 for a in range(1 + F // 100): for b in range(1 + F // 100): water = 100 * (a * A + b * B) if 0 < water <= F: W.append(water) # c,d の砂糖 for c in range(1 + F // C): for d in range(1 + F // D): sugar = c * C +...
s861624663
p03599
u135847648
1585934573
Python
PyPy3 (2.4.0)
py
Runtime Error
192
51416
614
A,B,C,D,E,F = map(int,input().split()) W = [] S = [] # 100A,100B の水 for a in range(1 + F // 100): for b in range(1 + F // 100): water = 100 * (a * A + b * B) if 0 < water <= F: W.append(water) # c,d の砂糖 for c in range(1 + F // C): for d in range(1 + F // D): sugar = c * C +...
s540237458
p03599
u135847648
1585931920
Python
PyPy3 (2.4.0)
py
Runtime Error
198
51416
612
A,B,C,D,E,F = map(int,input().split()) W = [] S = [] # 100A,100B の水 for a in range(1 + F // 100): for b in range(1 + F // 100): water = 100 * (a * A + b * B) if 0 < water <= F: W.append(water) # c,d の砂糖 for c in range(1 + F // C): for d in range(1 + F // D): sugar = c * C +...
s238023655
p03599
u135847648
1585931613
Python
PyPy3 (2.4.0)
py
Runtime Error
193
51416
639
A,B,C,D,E,F = map(int,input().split()) M = [] S = [] # 100A,100B の水 for a in range(1 + F // 100): for b in range(1 + F // 100): water = 100 * (a * A + b * B) if 0 < water <= F: M.append(water) # c,d の砂糖 for c in range(1 + F // C): for d in range(1 + F // D): sugar = c * C +...
s333452454
p03599
u135847648
1585906884
Python
PyPy3 (2.4.0)
py
Runtime Error
204
51660
595
A,B,C,D,E,F = map(int,input().split()) M = [] S = [] # 100A,100B の水 for a in range(1 + F // 100): for b in range(1 + F // 100): if 100 * (a * A + b * B) <= F: M.append(100 * (a * A + b * B)) # c,d の砂糖 for c in range(1 + F // C): for d in range(1 + F // D): if c * C + d * D <= F: ...
s090493037
p03599
u135847648
1585906846
Python
PyPy3 (2.4.0)
py
Runtime Error
192
51412
606
A,B,C,D,E,F = map(int,input().split()) M = [] S = [] # 100A,100B の水 for a in range(1 + F // 100): for b in range(1 + F // 100): if 100 * (a * A + b * B) <= F: M.append(100 * (a * A + b * B)) # c,d の砂糖 for c in range(1 + F // C): for d in range(1 + F // D): if c * C + d * D <= F: ...
s112524459
p03599
u135847648
1585905764
Python
PyPy3 (2.4.0)
py
Runtime Error
193
51412
523
A,B,C,D,E,F = map(int,input().split()) M = [] S = [] for a in range(1+F//100): for b in range(1+F//100): if 100*(a*A+b*B)<=F: M.append(100*(a*A+b*B)) for c in range(1+F//C): for d in range(1+F//D): if c*C+d*D<=F: S.append(c*C+d*D) M=list(set(M)) S=list(set(S)) M.sort(...
s824576169
p03599
u626467464
1585774233
Python
Python (3.4.3)
py
Runtime Error
17
3064
657
import math a,b,c,d,e,f = map(int,input().split()) max_sugar = f*e*100/(100+e) box = {} for i in range(31): for j in range(31): water = 100*a*i + 100*b*j if water > f: break sugar_range = int(math.ceil(max_sugar/c)) for k in range(sugar_range): for l in range(sugar_range): sugar = ...
s641478147
p03599
u781262926
1585440870
Python
Python (3.4.3)
py
Runtime Error
25
3828
805
a, b, c, d, e, f = map(int, input().split()) a, b = 100*a, 100*b dp = [[0, 0] for _ in range(f+1)] memo = {} dp[a][0] = a if b <= f: dp[b][0] = b for i in range(1, f): if dp[i][0]: if i+a <= f: dp[i+a][0] = dp[i][0] + a dp[i+a][1] = dp[i][1] if i+b <= f: dp[...
s067639152
p03599
u781262926
1585440722
Python
Python (3.4.3)
py
Runtime Error
25
3828
790
a, b, c, d, e, f = map(int, input().split()) a, b = 100*a, 100*b dp = [[0, 0] for _ in range(f+1)] memo = {} dp[a][0] = a dp[b][0] = b for i in range(1, f): if dp[i][0]: if i+a <= f: dp[i+a][0] = dp[i][0] + a dp[i+a][1] = dp[i][1] if i+b <= f: dp[i+b][0] = dp[i]...
s872500031
p03599
u829094246
1585358633
Python
Python (3.4.3)
py
Runtime Error
745
3064
599
A,B,C,D,E,F=map(int,input().split()) conc=0 for a in range(0, F+1, A*100): for b in range(0, F-A+1, B*100): water=a+b if water == 0 or water > F: continue for c in range(0, F-water+1, C): for d in range(0, F-water-c+1, D): sugar=c+d if ...
s510869062
p03599
u829094246
1585358408
Python
Python (3.4.3)
py
Runtime Error
691
3064
541
A,B,C,D,E,F=map(int,input().split()) conc=0 for a in range(0, F+1, A*100): for b in range(0, F-A+1, B*100): water=a+b if water == 0 or water > F: continue for c in range(0, F-water+1, C): for d in range(0, F-water-c+1, D): sugar=c+d tot...
s014114750
p03599
u829094246
1585356687
Python
Python (3.4.3)
py
Runtime Error
612
91952
786
A,B,C,D,E,F=map(int,input().split()) def cal_cons(): disc=False for a in range(31): for b in range(31): water=a*A*100+b*B*100 if water > F or water==0: break for c in range(3001): for d in range(3001): suger=c*C+d*D ...
s306070647
p03599
u829094246
1585350946
Python
Python (3.4.3)
py
Runtime Error
160
20808
546
A,B,C,D,E,F=map(int,input().split()) def cal_cons(): for a in range(0,31,A): for b in range(0,31,B): for c in range(0,101,C): for d in range(0,101,D): w=a*100+b*100 s=c+d if w==0 or s==0: break ...
s025858871
p03599
u829094246
1585350475
Python
Python (3.4.3)
py
Runtime Error
37
4844
548
A,B,C,D,E,F=map(int,input().split()) def cal_cons(): for a in range(0,3100,A*100): for b in range(0,3100,B*100): for c in range(0,31,C): for d in range(0,31,D): w=a+b s=c+d if w==0 or s==0: break...
s319241799
p03599
u637451088
1585339099
Python
Python (3.4.3)
py
Runtime Error
17
3064
1330
import sys a, b, c, d, e, f = map(int, input().split()) water_pattern = [] for i in range(f+1): for j in range(f+1): x = a*i*100 + b*j*100 if x <= f and not x in water_pattern: water_pattern.append(x) sugar_pattern = [] for i in range(f+1): for j in range(f+1): y = c*i + d...
s307726274
p03599
u260036763
1585012094
Python
Python (3.4.3)
py
Runtime Error
635
3064
531
A, B, C, D, E, F = map(int, input().split()) density = 0 for i in range(F//(100*A) +1): for j in range((F-100*A*i)//(100*B)+1): water = 100*A*i + 100*B*j if water == 0: continue for k in range((F-water)//C+1): for l in range((F-water-C*k)//D+1): sugar ...
s392849687
p03599
u260036763
1585012034
Python
Python (3.4.3)
py
Runtime Error
643
3064
539
A, B, C, D, E, F = map(int, input().split()) density = 0 for i in range((F//(100*A)) +1): for j in range(((F-100*A*i)//(100*B))+1): water = 100*A*i + 100*B*j if water == 0: continue for k in range(((F-water)//C)+1): for l in range(((F-water-C*k)//D)+1): ...
s795860715
p03599
u260036763
1585011710
Python
Python (3.4.3)
py
Runtime Error
644
3064
531
A, B, C, D, E, F = map(int, input().split()) density = 0 for i in range(F//(100*A) +1): for j in range((F-100*A*i)//(100*B)+1): water = 100*A*i + 100*B*j if water == 0: continue for k in range((F-water)//C+1): for l in range((F-water-C*k)//D+1): sugar ...
s178183819
p03599
u260036763
1585011673
Python
Python (3.4.3)
py
Runtime Error
644
3064
520
A, B, C, D, E, F = map(int, input().split()) density = 0 for i in range(F//(100*A) +1): for j in range((F-100*A*i)//(100*B)+1): water = 100*A*i + 100*B*j if water == 0: continue for k in range((F-water)//C+1): for l in range((F-water-C*k)//D+1): sugar ...
s418313693
p03599
u038815010
1584394369
Python
Python (3.4.3)
py
Runtime Error
62
3188
404
a,b,c,d,e,f=map(int,input().split()) q=set() ans=0 p=set() for i in range(0,f+1,100*a): for j in range(0,f+1-i,100*b): q.add(i+j) for i in range(0,f+1,c): for j in range(0,f+1-i,d): p.add(i+j) for pp in p: for qq in q: if 0<pp+qq and qq<=pp*e/100: if ans<qq/(pp+qq): ...
s676505735
p03599
u796708718
1584232985
Python
Python (3.4.3)
py
Runtime Error
21
3316
338
A,B,C,D,E,F = [int(x) for x in input().split()] max = 0 sw = 0 s = 0 for b in range(0,31): for a in range(0,b): for c in range(0,a+b): for d in range(0,a+b-d): if 100*(c+d)/(100*(a+b)+c+d) > max: max = 100*(c+d)/(100*(a+b)+c+d) sw = 100*(a+b)+c+d s = c+d pri...
s770450808
p03599
u863442865
1584112181
Python
Python (3.4.3)
py
Runtime Error
27
3316
1169
#pypyは内包表記使わない def main(): import sys #input = sys.stdin.readline sys.setrecursionlimit(10000000) from collections import Counter, deque #from collections import defaultdict from itertools import combinations, permutations #from itertools import accumulate, product from bisect import bis...
s314916195
p03599
u863442865
1584111792
Python
Python (3.4.3)
py
Runtime Error
27
3316
1220
#pypyは内包表記使わない def main(): import sys #input = sys.stdin.readline sys.setrecursionlimit(10000000) from collections import Counter, deque #from collections import defaultdict from itertools import combinations, permutations #from itertools import accumulate, product from bisect import bis...
s810323442
p03599
u863442865
1584111677
Python
Python (3.4.3)
py
Runtime Error
26
3316
1162
#pypyは内包表記使わない def main(): import sys #input = sys.stdin.readline sys.setrecursionlimit(10000000) from collections import Counter, deque #from collections import defaultdict from itertools import combinations, permutations #from itertools import accumulate, product from bisect import bis...
s346875655
p03599
u021548497
1583706715
Python
Python (3.4.3)
py
Runtime Error
105
3316
1269
import sys a, b, c, d, e, f = map(int, input().split()) water = set() for i in range(f//(a*100)+1): for j in range(f//(b*100)+1): k = 100*(i*a+j*b) if k == 0: continue if k <= f: water.add(k) continue break water = list(water) water.sort() if no...
s324888225
p03599
u021548497
1583706512
Python
Python (3.4.3)
py
Runtime Error
95
3316
1210
a, b, c, d, e, f = map(int, input().split()) water = set() for i in range(f//(a*100)+1): for j in range(f//(b*100)+1): k = 100*(i*a+j*b) if k == 0: continue if k <= f: water.add(k) else: break water = list(water) water.sort() suger = set() for i...
s484812753
p03599
u021548497
1583706172
Python
Python (3.4.3)
py
Runtime Error
105
3444
1195
import sys a, b, c, d, e, f = map(int, input().split()) water = set() for i in range(f//(a*100)+1): for j in range(f//(b*100)+1): k = 100*(i*a+j*b) if k == 0: continue if k <= f: water.add(k) else: break water = list(water) water.sort() suger =...
s854827593
p03599
u004423772
1583614254
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38460
671
suger_water = A suger = C over = False for a in range(0, 31): for b in range(0, 31): water = 100*A*a + 100*B*b c_ceil = int(water * conc_filter) for c in range(0, c_ceil): for d in range(0, c_ceil): suger = C*c + D*d suger_water = water + suger ...
s280432449
p03599
u744034042
1583547484
Python
Python (3.4.3)
py
Runtime Error
477
3828
687
a,b,c,d,e,f = map(int, input().split()) n1, n2 = f//(100*a), f//(100*b) m1, m2 = e*f//((100+e)*c), e*f//((100+e)*d) lis1, lis2 = [], [] for i in range(n1+1): for j in range(n2+1): x = 100*a*i + 100*b*j if x != 0 and x <= f and lis1.count(x) == 0: lis1.append(x) lis1.sort() for i in range...
s286167396
p03599
u744034042
1583547088
Python
Python (3.4.3)
py
Runtime Error
481
3956
687
a,b,c,d,e,f = map(int, input().split()) n1, n2 = f//(100*a), f//(100*b) m1, m2 = e*f//((100+e)*c), e*f//((100+e)*d) lis1, lis2 = [], [] for i in range(n1+1): for j in range(n2+1): x = 100*a*i + 100*b*j if x != 0 and x <= f and lis1.count(x) == 0: lis1.append(x) lis1.sort() for i in range...
s015057113
p03599
u744034042
1583539052
Python
Python (3.4.3)
py
Runtime Error
481
3828
716
a,b,c,d,e,f = map(int, input().split()) n1, n2 = f//(100*a), f//(100*b) m1, m2 = e*f//((100+e)*c), e*f//((100+e)*d) lis1, lis2 = [], [] for i in range(n1+1): for j in range(n2+1): x = 100*a*i + 100*b*j if x == 0: continue if x <= f and lis1.count(x) == 0: lis1.append(...
s853834784
p03599
u829796346
1583538943
Python
Python (3.4.3)
py
Runtime Error
17
3064
547
m_t = 0 m_s = 0 for a in range(F//100*A+1): for b in range((F-100*A*a)//(B)+1): for c in range((F-A*a*100-B*b*100)//C+1): d = 0 while (100*A*a+100*B*b) > 0 and 100*A*a+100*B*b+C*c+D*d < F and (C*c+D*d)/(100*A*a+100*B*b) <= E/100: dens = (C*c+D*d)/(100*A*a+100*B*b) if (C*c+D*d)/(100*A*a...
s626236309
p03599
u144913062
1583195219
Python
PyPy3 (2.4.0)
py
Runtime Error
227
43244
801
# 100(aA + bB) + cC + dD <= F # cC + dD <= (aA + bB)E # maximize 100(cD + dD) / (100(aA + bB) + cC + dD) A, B, C, D, E, F = map(int, input().split()) concentration = 0 ans = None for a in range(31): for b in range(31): water = 100*(a*A + b*B) if water > F: break for c in range(3...
s206392009
p03599
u375681664
1582930684
Python
Python (3.4.3)
py
Runtime Error
619
3064
575
A,B,C,D,E,F=map(int,input().split()) maxx=0 for i in range(F//(100*B)+1): for j in range((F-i*100*B)//(100*A)+1): for k in range(((i*B+j*A)*E)//D+1): for l in range (((i*B+j*A)*E-k*D)//C+1): if i==0 and j==0 and k==0 and l==0: continue if (100*...
s418430252
p03599
u375681664
1582930032
Python
Python (3.4.3)
py
Runtime Error
635
3064
576
A,B,C,D,E,F=map(int,input().split()) maxx=0 for i in range(F//(100*B)+1): for j in range((F-i*100*B)//(100*A)+1): for k in range(((i*B+j*A)*E)//D+1): for l in range (((i*B+j*A)*E-k*D)//C+1): if i==0 and j==0 and k==0 and l==0: continue if (100*...
s385913610
p03599
u375681664
1582929946
Python
Python (3.4.3)
py
Runtime Error
610
3064
576
A,B,C,D,E,F=map(int,input().split()) maxx=0 for i in range(F//(100*B)+1): for j in range((F-i*100*B)//(100*A)+1): for k in range(((i*B+j*A)*E)//D+1): for l in range (((i*B+j*A)*E-k*D)//C+1): if i==0 and j==0 and k==0 and l==0: continue if (100*...
s460320922
p03599
u375681664
1582929868
Python
Python (3.4.3)
py
Runtime Error
17
3064
510
A,B,C,D,E,F=map(int,input().split()) for i in range(F//(100*B)+1): for j in range((F-i*100*B)//(100*A)+1): for k in range(((i*B+j*A)*E)//D+1): for l in range (((i*B+j*A)*E-k*D)//C+1): if i==0 and j==0 and k==0 and l==0: continue if (100*(i*B+j*...
s567542719
p03599
u375681664
1582929827
Python
Python (3.4.3)
py
Runtime Error
950
3064
578
A,B,C,D,E,F=map(int,input().split()) maxx=0 print(A,B,C,D,E,F) print(F//(100*B)) print((F%100*B)//100*A) for i in range(F//(100*B)+1): for j in range((F-i*100*B)//(100*A)+1): for k in range(((i*B+j*A)*E)//D+1): for l in range (((i*B+j*A)*E-k*D)//C+1): if i==0 and j==0 and k==0 an...
s517868215
p03599
u499381410
1582592145
Python
PyPy3 (2.4.0)
py
Runtime Error
195
40048
1524
from collections import defaultdict, deque, Counter from heapq import heappush, heappop, heapify import math import bisect import random from itertools import permutations, accumulate, combinations, product import sys import string from bisect import bisect_left, bisect_right from math import factorial, ceil, floor fro...
s132330108
p03599
u814986259
1582388877
Python
Python (3.4.3)
py
Runtime Error
24
3064
624
A, B, C, D, E, F = map(int, input().split()) A *= 100 B *= 100 dp = [-1]*(F+1) dp[A] = 0 dp[B] = 0 for i in range(A, F + 1): if A <= i: dp[i] = max(dp[i - A], dp[i]) if B <= i: dp[i] = max(dp[i - B], dp[i]) if C <= i and dp[i-C] >= 0: if dp[i-C] + C <= (i-C - dp[i-C]) * (E / 100): ...
s425902712
p03599
u609061751
1582320714
Python
PyPy3 (2.4.0)
py
Runtime Error
181
38256
553
import sys input = sys.stdin.readline A, B, C, D, E, F = [int(x) for x in input().split()] ans = [0, 0, -1] for x in range((30 // A) + 1): for y in range((30 // B) + 1): if 100 * (A * x + B * y) > F: continue a = 100 * (A * x + B * y) for z in range(1 + ((a // 100) * E) // C):...