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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s038149091 | p03599 | u763968347 | 1549924162 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 657 | A,B,C,D,E,F = map(int,input().split())
ans_con = 0
max_con = E/(100+E)*100
a = 0
while F > 100*A*a:
b = 0
while F-100*A*a > 100*B*b:
c = 0
while F-100*(A*a+B*b) > C*c and c:
water = 100*(A*a+B*b)
sugar = C*c+D*min((F-100*(A*a+B*b)-C*c)//D, (water/100*E-C*c)//D)
... |
s733246906 | p03599 | u175034939 | 1549005034 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 3064 | 864 | a,b,c,d,e,f = list(map(int,input().split()))
water = []
for i in range(31):
for j in range(31):
if i >= 1 or j >= 1:
if ((100*a*i + 100*b*j) + (100*a*i + 100*b*j)//100*e) <= f:
water.append(100*a*i + 100*b*j)
water = list(set(water))
water.sort()
WS = []
for k ... |
s148491772 | p03599 | u175034939 | 1549004617 | Python | Python (3.4.3) | py | Runtime Error | 3155 | 3064 | 897 | a,b,c,d,e,f = list(map(int,input().split()))
if min(a,b) >= f//100:
print(min(a,b)*100,0)
exit()
water = []
for i in range(31):
for j in range(31):
if i >= 1 or j >= 1:
if ((100*a*i + 100*b*j) + (100*a*i + 100*b*j)//100*e) <= f:
water.append(100*a*i + 100*b*j)
... |
s006137794 | p03599 | u175034939 | 1549004260 | Python | Python (3.4.3) | py | Runtime Error | 3155 | 3064 | 799 | a,b,c,d,e,f = list(map(int,input().split()))
water = []
for i in range(31):
for j in range(31):
if i >= 1 or j >= 1:
if ((100*a*i + 100*b*j) + (100*a*i + 100*b*j)//100*e) <= f:
water.append(100*a*i + 100*b*j)
water = list(set(water))
water.sort()
WS = []
for k in range(len(wat... |
s191201453 | p03599 | u175034939 | 1548979569 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 3188 | 703 | a,b,c,d,e,f = list(map(int,input().split()))
water = []
for i in range(31):
for j in range(31):
if i >= 1 or j >= 1:
if ((100*a*i + 100*b*j) + (100*a*i + 100*b*j)//100*e) <= f:
water.append(100*a*i + 100*b*j)
water = list(set(water))
water.sort()
smax = []
for i in... |
s138871888 | p03599 | u513081876 | 1546396103 | Python | Python (3.4.3) | py | Runtime Error | 2329 | 49536 | 568 | A, B, C, D, E, F = map(int, input().split())
water = []
for a in range(31):
for b in range(31):
if a * A + b * B <= F:
water.append(a * A + b * B)
water = list(set(water))
water.remove(0)
sugar = []
for c in range(3001):
for d in range(3001):
if c * C + d * D <= F:
sug... |
s377060940 | p03599 | u550943777 | 1546126769 | Python | Python (3.4.3) | py | Runtime Error | 3155 | 3188 | 559 | a,b,c,d,e,f = map(int,input().split())
water = []
suger = []
for i in range(f//(100*a)+1):
for j in range(f//(100*b)+1):
if 100*a*i + 100*b*j <= f and 100*a*i + 100*b*j not in water:
water.append(100*a*i+100*b*j)
for i in range(f//c+1):
for j in range(f//d+1):
if c*i+d*j not in sug... |
s816198901 | p03599 | u620945921 | 1545796972 | Python | Python (3.4.3) | py | Runtime Error | 183 | 12476 | 735 | a, b, c, d, e, f= (int(i) for i in input().split())
waterlist=[]
for i in range(0,f+100*a,100*a):
for j in range(0,f+100*b,100*b):
if i+j <=f:
waterlist+=[i+j]
waterlist=list(set(waterlist))
#print(x)
sugarlist=[]
for i in range(int(f/c)+1):
for j in range(int(f/d)+1):
if c*i+d*j <=f:
sugarli... |
s248234090 | p03599 | u620945921 | 1545796479 | Python | Python (3.4.3) | py | Runtime Error | 205 | 12476 | 756 | a, b, c, d, e, f= (int(i) for i in input().split())
waterlist=[]
for i in range(int(f/100/a)+1):
for j in range(int(f/100/b)+1):
if 100*a*i+100*b*j <=f:
waterlist+=[100*a*i+100*b*j]
waterlist=list(set(waterlist))
#print(x)
sugarlist=[]
for i in range(int(f/c)+1):
for j in range(int(f/d)+1):
if c*i+... |
s339237357 | p03599 | u620945921 | 1545796116 | Python | Python (3.4.3) | py | Runtime Error | 202 | 12456 | 742 | a, b, c, d, e, f= (int(i) for i in input().split())
waterlist=[]
for i in range(int(f/100/a)+1):
for j in range(int(f/100/b)+1):
if 100*a*i+100*b*j <=f:
waterlist+=[100*a*i+100*b*j]
waterlist=list(set(waterlist))
#print(x)
sugarlist=[]
for i in range(int(f/c)+1):
for j in range(int(f/d)+1):
if c*i+... |
s848561677 | p03599 | u620945921 | 1545792941 | Python | Python (3.4.3) | py | Runtime Error | 544 | 3188 | 550 | a, b, c, d, e, f= (int(i) for i in input().split())
den=0
ans2=0
for i in range(int(f/a)+1):
for j in range(int(f/b)+1):
water = 100*a*i+100*b*j
maxsugar=int(water/100)*e
if water + maxsugar <= f:
for k in range(0,int(maxsugar/c)+1):
for l in range(0,int(maxsugar/d)+1):
sugar=c*k... |
s245213753 | p03599 | u620945921 | 1545792720 | Python | Python (3.4.3) | py | Runtime Error | 1971 | 3064 | 524 | a, b, c, d, e, f= (int(i) for i in input().split())
den=0
ans2=0
for i in range(30+1):
for j in range(15+1):
water = 100*a*i+100*b*j
maxsugar=int(water/100)*e
if water + maxsugar <= f:
for k in range(0,maxsugar+1):
for l in range(0,maxsugar+1):
sugar=c*k+d*l
if 0 < wate... |
s934346238 | p03599 | u620945921 | 1545792530 | Python | Python (3.4.3) | py | Runtime Error | 1983 | 3064 | 518 | a, b, c, d, e, f= (int(i) for i in input().split())
den=0
for i in range(30+1):
for j in range(15+1):
water = 100*a*i+100*b*j
maxsugar=int(water/100)*e
if water + maxsugar <= f:
for k in range(0,maxsugar+1):
for l in range(0,maxsugar+1):
sugar=c*k+d*l
if 0 < water+suga... |
s321392099 | p03599 | u620945921 | 1545792406 | Python | Python (3.4.3) | py | Runtime Error | 299 | 3064 | 532 | a, b, c, d, e, f= (int(i) for i in input().split())
den=0
for i in range(30+1):
for j in range(15+1):
water = 100*a*i+100*b*j
maxsugar=int(water/100)*e
if water + maxsugar <= f:
for k in range(0,int(maxsugar/c)+1):
for l in range(0,int(maxsugar/d)+1):
sugar=c*k+d*l
if ... |
s998052956 | p03599 | u620945921 | 1545792350 | Python | Python (3.4.3) | py | Runtime Error | 299 | 3064 | 590 | a, b, c, d, e, f= (int(i) for i in input().split())
den=0
for i in range(30+1):
for j in range(15+1):
water = 100*a*i+100*b*j
maxsugar=int(water/100)*e
if water + maxsugar <= f:
# print(water,maxsugar)
for k in range(0,int(maxsugar/c)+1):
for l in range(0,int(maxsugar/d)+1):
... |
s379709372 | p03599 | u620945921 | 1545709106 | Python | Python (3.4.3) | py | Runtime Error | 1091 | 3064 | 445 | a,b,c,d,e,f = [int(i) for i in input().split()]
#print(a,b,c,d,e,f)
nod=0
for i in range(30+1):
for j in range(30-i+1):
for k in range(100+1):
for l in range(100-k+1):
if 0 < 100*(a*i+b*j)+c*k+d*l <= f and c*k+d*l <= e*(i+j):
tmp=(c*k+d*l)/(100*(a*i+b*j)+c*k+d*l)
if nod < tmp:
... |
s375824658 | p03599 | u620945921 | 1545708867 | Python | Python (3.4.3) | py | Runtime Error | 1043 | 3064 | 443 | a,b,c,d,e,f = [int(i) for i in input().split()]
print(a,b,c,d,e,f)
nod=0
for i in range(30+1):
for j in range(30-i+1):
for k in range(100+1):
for l in range(100-k+1):
if 0 < 100*(a*i+b*j)+c*k+d*l <= f and c*k+d*l <= e*(i+j):
tmp=(c*k+d*l)/(100*(a*i+b*j)+c*k+d*l)
if nod < tmp:
... |
s099979268 | p03599 | u059210959 | 1545532509 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 222 | #encoding:utf-8
import math
import sympy
N,P = map(int,input().split())
facters = sympy.factorint(P)
ans = 1
for key in facters.keys():
if facters[key]/N >= 1:
ans *= key**(facters[key]//N)
print(int(ans))
|
s001994712 | p03599 | u138486156 | 1544315446 | Python | Python (3.4.3) | py | Runtime Error | 152 | 3064 | 699 | a, b, c, d, e, f = map(int, input().split())
n = f//(100*a)
m = f//(100*b)
p = f//c
q = f//d
mx = 0
for k in range(p+1):
for l in range(q+1):
for i in range(n+1):
for j in range(m+1):
if i == 0 and j == 0:
continue
s = 100*a*i+100*b*j
... |
s890872141 | p03599 | u726615467 | 1542598756 | Python | Python (3.4.3) | py | Runtime Error | 32 | 3064 | 1241 | # encoding: utf-8
A, B, C, D, E, F = map(int, input().split())
max_rate = -1
ans = None
for i in range(30 // A + 1):
for j in range(30 // B + 1):
water = A * i + B * j
# escape
if water == 0: continue
elif 100 * water > F: break
elif (F - 100 * water) / water < max_rate: con... |
s197650694 | p03599 | u726615467 | 1542598135 | Python | Python (3.4.3) | py | Runtime Error | 24 | 3064 | 1332 | # encoding: utf-8
A, B, C, D, E, F = map(int, input().split())
max_rate = -1
ans = None
for i in range(30 // A + 1):
for j in range(30 // B + 1):
water = A * i + B * j
# escape
if water == 0: continue
elif 100 * water > F: break
elif (F - 100 * water) / water < max_rate: con... |
s359043709 | p03599 | u513081876 | 1542589493 | Python | Python (3.4.3) | py | Runtime Error | 37 | 4336 | 709 | A, B, C, D, E, F = map(int, input().split())
ans = []
water = []
for i in range(31):
for j in range(31):
tmp = 100*i*A + 100*j*B
if tmp <= F:
water.append(tmp)
water = list(set(water))
water.remove(0)
sugar = []
for i in range(101):
for j in range(101):
tmp = i*C + j*D
... |
s204104547 | p03599 | u513081876 | 1542589404 | Python | Python (3.4.3) | py | Runtime Error | 35 | 4208 | 706 | A, B, C, D, E, F = map(int, input().split())
ans = []
water = []
for i in range(31):
for j in range(31):
tmp = 100*i*A + 100*j*B
if tmp <= F:
water.append(tmp)
water = list(set(water))
water.remove(0)
sugar = []
for i in range(101):
for j in range(101):
tmp = i*C + j*D
... |
s656223319 | p03599 | u513081876 | 1542589242 | Python | Python (3.4.3) | py | Runtime Error | 30 | 3572 | 706 | A, B, C, D, E, F = map(int, input().split())
ans = []
water = []
for i in range(31):
for j in range(31):
tmp = 100*i*A + 100*j*B
if tmp <= F:
water.append(tmp)
water = list(set(water))
water.remove(0)
sugar = []
for i in range(101):
for j in range(101):
tmp = i*C + j*D
... |
s630079009 | p03599 | u123756661 | 1541828126 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 370 | a*=100
b*=100
res=chk=0
ans=[]
for i in range(31):
for j in range(31):
for k in range(31):
for l in range(31):
w=i*a+j*b
s=k*c+l*d
if w+s==0: pass
elif w+s<f and (100*s)//(w+s)<=e*(w//100):
res=max(res,(100*s)//(... |
s884828221 | p03599 | u123756661 | 1541827653 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 311 | a,b,c,d,e,f=map(int,input().split())
a*=100
b*=100
ans=chk=0
for i in range(31)
for j in range(31):
for k in range(31):
for l in range(31):
w=i*a+j*b
s=k*c+l*d
if w+s<f and (100*s)//(w+s)<=e*(w//100): ans=max(ans,(100*s)//(w+s)
print(ans)
|
s490900707 | p03599 | u365364616 | 1541813729 | Python | Python (3.4.3) | py | Runtime Error | 2046 | 3188 | 793 | a, b, c, d, e, f = map(int, input().split())
x = []
y = []
t = 100 * e / (100 + e)
for i in range(f // (100 * a) + 1):
bb = f - 100 * a * i
for j in range(bb // (100 * b) + 1):
if 100 * (a * i + b * j) in x:
continue
else:
x.append(100 * (a * i + b * j))
for i in range(f ... |
s374279599 | p03599 | u404676457 | 1541299688 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3316 | 1027 | (a, b, c, d, e, f) = list(map(int, input().split()))
a *= 100
b *= 100
n = [[0, 0] for _ in range(f + 1)]
n[a][0] = a
for i in range(f + 1 - a):
if n[i][0] != 0:
n[i + a][0] = n[i][0] + a
n[b][0] = b
for i in range(f + 1 - b):
if n[i][0] != 0:
n[i + b][0] = n[i][0] + b
for i in range(f + 1 - c)... |
s708846327 | p03599 | u404676457 | 1541299460 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3316 | 952 | (a, b, c, d, e, f) = list(map(int, input().split()))
a *= 100
b *= 100
n = [[0, 0] for _ in range(f + 1)]
n[a][0] = a
for i in range(f + 1 - a):
if n[i][0] != 0:
n[i + a][0] = n[i][0] + a
n[b][0] = b
for i in range(f + 1 - b):
if n[i][0] != 0:
n[i + b][0] = n[i][0] + b
for i in range(f + 1 - c)... |
s355115287 | p03599 | u883048396 | 1541194237 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 948 | def 解():
iA,iB,iC,iD,iE,iF = [int(_) for _ in input().split()]
#とりあえず全検索
d = {}
iMaxA = iF // 100*iA
for i in range(iMaxA+1):
iMaxB = (iF - 100*iA*i) // iB
for j in range(iMaxB + 1):
if i==0 and j==0:
continue
iAB = 100*iA*i + 100*iB*j
... |
s799392370 | p03599 | u293579463 | 1541172168 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 3064 | 670 | A, B, C, D, E, F = map(int, input().split())
tmp_c = 0
for a in range(0, F+1, A*100):
for b in range(0, F+1, B*100):
for c in range(0, int(F/100 * E) + 1, C):
for d in range(0, int(F/100 * E) + 1, D):
w = a + b
s = c + d
if s == 0:
... |
s542538985 | p03599 | u199295501 | 1540522433 | Python | Python (3.4.3) | py | Runtime Error | 24 | 3672 | 1081 | # -*- coding: utf-8 -*-
import itertools
l = ['a', 'b', 'c', 'd']
l2 = ['a', 'b', 'c', 'd']
c = itertools.combinations(l, 2)
p = itertools.product(l, l2)
p = itertools.permutations(l, 2)
ope = ['+','-']
ope_list = itertools.product(ope, repeat=3)
A,B,C,D,E,F = map(int, input().split())
water_max = F // (E+100) * 100
... |
s724020396 | p03599 | u942697937 | 1539142486 | Python | Python (3.4.3) | py | Runtime Error | 62 | 3188 | 450 | A, B, C, D, E, F = map(int, input().split())
W = set()
for a in range(0, F+1, 100 * A):
for b in range(0, F - a+1, 100 * B):
W.add(a + b)
S = set()
for c in range(0, F+1, C):
for d in range(0, F - c+1, D):
S.add(c + d)
ans = None
mx = 0
for w in W:
for s in S:
if 0 < w + s <= F an... |
s562827907 | p03599 | u270681687 | 1538658796 | Python | Python (3.4.3) | py | Runtime Error | 1462 | 3312 | 841 | A, B, C, D, E, F = map(int, input().split())
water_set = set()
sugar_set = set()
for ai in range(3000 // (100 * A) + 1):
for bi in range(3000 // (100 * B) + 1):
if ai * 100 * A + bi * 100 * B <= 3000:
water_set.add(ai * 100 * A + bi * 100 * B)
for ci in range(3000 // C + 1):
for di in ran... |
s380862524 | p03599 | u214617707 | 1538566449 | Python | Python (3.4.3) | py | Runtime Error | 217 | 3064 | 758 | A, B, C, D, E, F = map(int, input().split())
num = None
rec = 0
for a in range(101):
for b in range(101):
if a * A * 100 + b * B * 100 > F:
break
for c in range(100):
if a * A * 100 + b * B * 100 + c * C > F:
break
for d in range(100):
... |
s725196541 | p03599 | u466478199 | 1538365222 | Python | Python (3.4.3) | py | Runtime Error | 73 | 3188 | 490 | a,b,c,d,e,f=map(int,input().split())
x=set()
y=set()
m=f//(100*a)
for i in range(m+1):
for j in range((m-i*a)//(100*b)+1):
x1=i*100*a+j*100*b
if x1<=f:
x.add(x1)
m=int(f*(e/100))
for i in range(0,m+1,c):
for j in range(0,m-i+1,d):
y.add(i+j)
x.remove(0)
z=[-1]
ans=[]
for i in x:
for j in y:
... |
s325971750 | p03599 | u466478199 | 1538365196 | Python | Python (3.4.3) | py | Runtime Error | 75 | 3188 | 499 | a,b,c,d,e,f=map(int,input().split())
x=set()
y=set()
m=f//(100*a)
for i in range(m+1):
for j in range((m-i*a)//(100*b)+1):
x1=i*100*a+j*100*b
if x1<=f:
x.add(x1)
m=int(f*(e/100))
for i in range(0,m+1,c):
for j in range(0,m-i+1,d):
y.add(i+j)
x.remove(0)
z=[-1]
ans=[]
for i in x:
for j in y:
... |
s848691047 | p03599 | u466478199 | 1538364342 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 3064 | 655 | a,b,c,d,e,f=map(int,input().split())
l=[-1]
ans=[]
v=f//(100*a)
m=int(f*e/100)
for i in range(int(v+1)):
w=(f-100*i)//(100*b)+1
for j in range(w):
for k in range(m//c):
flag=0
for n in range((m-k*c)//d,0,-1):
X=100*a*i+100*b*j
Y=k*c+n*d
if flag==1:
break
eli... |
s168698577 | p03599 | u466478199 | 1538363406 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 619 | a,b,c,d,e,f=map(int,input().split())
l=[0]
ans=[[0,0]]
v=f//(100*a)
m=int(f*e/100)
for i in range(int(v+1)):
w=(f-100*i)//(100*b)+1
for j in range(w+1):
for k in range(0,m//c+1,c):
for n in range(0,(m-k*c)//d+1,d):
X=100*a*i+100*b*j
Y=k*c+n*d
elif X+Y==0 or X+Y>f:
continu... |
s407200626 | p03599 | u466478199 | 1538346429 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 3064 | 660 | a,b,c,d,e,f=map(int,input().split())
l=[0]
ans=[]
v=f//(100*a)
m=int(f*e/100)
for i in range(int(v+1)):
w=(f-100*i)//(100*b)+1
for j in range(w+1):
for k in range(m//c+1):
flag=0
for n in range((m-k*c)//d+1,0,-1):
X=100*a*i+100*b*j
Y=k*c+n*d
if flag==1:
break
... |
s962759636 | p03599 | u466478199 | 1538346314 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 3064 | 654 | a,b,c,d,e,f=map(int,input().split())
l=[0]
ans=[]
v=f//(100*a)
m=int(f*e/100)
for i in range(int(v+1)):
w=(f-100*i)//(100*b)+1
for j in range(w):
for k in range(m//c):
flag=0
for n in range((m-k*c)//d,0,-1):
X=100*a*i+100*b*j
Y=k*c+n*d
if flag==1:
break
elif... |
s110806169 | p03599 | u323680411 | 1535936076 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 597 | import strutils
proc input: string =
while true:
let tmp = readChar stdin
if not isSpace tmp:
safeAdd result, tmp
elif tmp != '\r': break
let
A, B, C, D, E, F = parseInt input()
var
best = -1.0
ws, sg = 0
for a in countup(0, F, 100 * A):
for b in countup(0, F - a, 100 * B):
let
... |
s807199496 | p03599 | u474270503 | 1535764331 | Python | Python (3.4.3) | py | Runtime Error | 1483 | 62968 | 481 | A, B, C, D, E, F=map(int, input().split())
a=[[0,0]]
for i in range(101):
for j in range(101):
for k in range(101):
for l in range(101):
x=100*A*i+100*B*j
y=C*k+D*l
if x+y>F or x==0 or y==0:
break
if 100*y/(x+y)<... |
s839533084 | p03599 | u474270503 | 1535764253 | Python | Python (3.4.3) | py | Runtime Error | 1319 | 62916 | 476 | A, B, C, D, E, F=map(int, input().split())
a=[]
for i in range(101):
for j in range(101):
for k in range(101):
for l in range(101):
x=100*A*i+100*B*j
y=C*k+D*l
if x+y>F or x==0 or y==0:
break
if 100*y/(x+y)<=(E*1... |
s565623507 | p03599 | u474270503 | 1535764012 | Python | Python (3.4.3) | py | Runtime Error | 1419 | 62824 | 477 | A, B, C, D, E, F=map(int, input().split())
a=[]
for i in range(101):
for j in range(101):
for k in range(101):
for l in range(101):
x=100*A*i+100*B*j
y=C*k+D*l
if x+y>F or x==0 or y==0:
break
if 100*y//(x+y)<=(E*... |
s896995902 | p03599 | u115682115 | 1535580480 | Python | Python (3.4.3) | py | Runtime Error | 2439 | 77612 | 604 | A,B,C,D,E,F = map(int,input().split())
smax =int(F*E/(100+E))
wmax =F-smax
temp = []
for a in range(wmax//(A*100)+1):
for b in range(wmax // (B*100)+1):
for c in range(smax // (C)+1):
for d in range(smax // (D)+1):
if a == 0 and b== 0:
pass
eli... |
s059987648 | p03599 | u115682115 | 1535578838 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 13436 | 602 | A,B,C,D,E,F = map(int,input().split())
smax =int(F*E/(100+E))
wmax =F-smax
temp = []
for a in range(wmax//min(A*100,B*100)+1):
for b in range(wmax // min(A*100, B*100)+1):
for c in range(smax // min(C, D)+1):
for d in range(smax // min(C, D)+1):
if a == 0 and b== 0:
... |
s394080732 | p03599 | u663101675 | 1535086284 | Python | Python (3.4.3) | py | Runtime Error | 251 | 3316 | 783 | A, B, C, D, E, F = list(map(int, input().split()))
num_A = int(F / A / 100) + 1
num_B = int(F / B / 100) + 1
def opt_s(x, y, S):
num_x = int(S / x) + 1
num_y = int(S / y) + 1
count = 0
for p in range(num_x):
for q in range(num_y):
if x * p + y * q > S:
break
... |
s449752300 | p03599 | u631277801 | 1534171187 | Python | Python (3.4.3) | py | Runtime Error | 55 | 3188 | 710 | a,b,c,d,e,f = map(int, input().split())
ab_list = set()
for i in range(0,f//100+1,a):
for j in range(0, f//100-i+1, b):
ab_list.add(100*(i+j))
ab_max = max(ab_list)
sug_max = int(ab_max*(e/100))
cd_list = set()
for i in range(0,sug_max+1, c):
for j in range(0, sug_max-i+1, d):
cd_list.add(... |
s666752631 | p03599 | u102902647 | 1533893668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 937 | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 10 05:19:32 2018
@author: Yuki
"""
A, B, C, D, E, F = map(int, input().split())
# 全組み合わせを試して、
# 条件の篩にかける
res = 0
for water_i in range(1, 4):
for sugar_i in range(1, 4):
water_bin = bin(water_i)[2:].zfill(2)
sugar_bin = bin(sugar_i)[2:].zfill(2)
... |
s501464147 | p03599 | u419686324 | 1532667258 | Python | Python (3.4.3) | py | Runtime Error | 185 | 7916 | 594 | A,B,C,D,E,F = map(int, input().split())
import functools
@functools.lru_cache(maxsize=None)
def calc_strength(sugar, water):
if water == 0: return -1
return sugar * 100 / (sugar + water)
@functools.lru_cache(maxsize=None)
def f(strength, sugar, water):
cand = []
for x in ((C, 0), (D, 0), (0, 100*A), ... |
s972256109 | p03599 | u439396449 | 1532276692 | Python | Python (3.4.3) | py | Runtime Error | 123 | 12452 | 554 | A, B, C, D, E, F = map(int, input().split())
def f(x, y):
max_i = F // x
max_j = F // y
arr = []
for i in range(max_i + 1):
for j in range(max_j + 1):
a = x * i + y * j
if 0 < a < F:
arr.append(a)
return sorted(list(set(arr)))
water = f(100 * A, 10... |
s065283013 | p03599 | u224983328 | 1531854685 | Python | Python (3.4.3) | py | Runtime Error | 46 | 3188 | 796 | A,B,C,D,E,F = map(int, input().split())
AonlyC = (A*E) // C
AonlyD = (A*E) // D
BonlyC = (B*E) // C
BonlyD = (B*E) // D
ACandD = []
BCandD = []
for CA in range(AonlyC+1):
for DA in range(AonlyD+1):
if CA*C + DA*D <= A*E:
if 100*A + CA*C + DA*D <= F:
ACandD.append((CA * C) + (DA * D))
for CB in ran... |
s105390625 | p03599 | u653642801 | 1531192942 | Python | Python (3.4.3) | py | Runtime Error | 130 | 24364 | 1052 |
def main():
a,b,c,d,e,f= map(int,input().split())
# 100gあたりE [g]溶ける
# ビーカーにF [g]いれられる
# 濃度は100*砂糖 / (水+砂糖)
mizu=[]
sato=[]
x = int(f/100/a) +1
y = int(f/100/b) +1
for i in range(x):
for j in range(y):
mizu.append(i*100*a + j*100*b)
mizu = [i for i in m... |
s147138048 | p03599 | u653642801 | 1531192651 | Python | Python (3.4.3) | py | Runtime Error | 131 | 24340 | 1036 |
def main():
a,b,c,d,e,f= map(int,input().split())
# 100gあたりE [g]溶ける
# ビーカーにF [g]いれられる
# 濃度は100*砂糖 / (水+砂糖)
mizu=[]
sato=[]
x = int(f/100/a) +1
y = int(f/100/b) +1
for i in range(x):
for j in range(y):
mizu.append(i*100*a + j*100*b)
mizu = [i for i in m... |
s674918452 | p03599 | u653642801 | 1531192374 | Python | Python (3.4.3) | py | Runtime Error | 130 | 24340 | 901 | def main():
a,b,c,d,e,f= map(int,input().split())
mizu=[]
sato=[]
x = int(f/100//a) +1
y = int(f/100//b) +1
for i in range(x):
for j in range(y):
mizu.append(i*100*a+j*100*b)
mizu = [i for i in mizu if i <= f]
mizu = list(set(mizu))
mizu.sort()
tokeru = i... |
s879783013 | p03599 | u653642801 | 1531192090 | Python | Python (3.4.3) | py | Runtime Error | 130 | 24364 | 1037 |
def main():
a,b,c,d,e,f= map(int,input().split())
# 100gあたりE [g]溶ける
# ビーカーにF [g]いれられる
# 濃度は100*砂糖 / (水+砂糖)
mizu=[]
sato=[]
noudo=[]
x = int(f/100//a) +1
y = int(f/100//b) +1
for i in range(x):
for j in range(y):
mizu.append(i*100*a+j*100*b)
mizu = ... |
s301349048 | p03599 | u653642801 | 1531191564 | Python | Python (3.4.3) | py | Runtime Error | 130 | 24364 | 967 |
def main():
a,b,c,d,e,f= map(int,input().split())
# 100gあたりE [g]溶ける
# ビーカーにF [g]いれられる
# 濃度は100*砂糖 / (水+砂糖)
mizu=[]
sato=[]
noudo=[]
x = int(f/100//a) +1
y = int(f/100//b) +1
for i in range(x):
for j in range(y):
mizu.append(i*100*a+j*100*b)
mizu = ... |
s987415532 | p03599 | u653642801 | 1531191515 | Python | Python (3.4.3) | py | Runtime Error | 134 | 24364 | 1012 |
def main():
a,b,c,d,e,f= map(int,input().split())
# 100gあたりE [g]溶ける
# ビーカーにF [g]いれられる
# 濃度は100*砂糖 / (水+砂糖)
mizu=[]
sato=[]
noudo=[]
x = int(f/100//a) +1
y = int(f/100//b) +1
for i in range(x):
for j in range(y):
mizu.append(i*100*a+j*100*b)
mizu = ... |
s792698284 | p03599 | u278864208 | 1530918465 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 665 | A,B,C,D,E,F= map(int, input().split())
res_dict = {}
x_list = []
for i in range(F//A + 1):
for j in range((F-100*A*i)//B + 1):
x = 100 * (i*A + j*B)
if x <=F:
x_list.append(x)
x_uniq = list(set(x_list))
for x in x_uniq:
for i in range((F-x)//C + 1):
for j in range((F-x-C*j)//... |
s156895838 | p03599 | u278864208 | 1530918247 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 648 | A,B,C,D,E,F= map(int, input().split())
res_dict = {}
x_list = []
for i in range(F//A + 1):
for j in range((F-100*A*i)//B + 1):
x = 100 * (i*A + j*B)
if x <=F:
x_list.append(x)
x_uniq = list(set(x_list))
for x in x_uniq:
for i in range((F-x)//C + 1):
for j in range((F-x-C*j)//... |
s221847461 | p03599 | u004025573 | 1530457837 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 632 | import math
A,B,C,D,E,F=map(int,input().split())
max_b = math.floor(F/(100*B))
W=[]
for i in range(max_b):
water=i*100*B
while water<=F:
if water!=0:
W.append(water)
water+=A*100
W=list(set(W))
W.sort()
ans=[0,0,0]
for i in W:
max_s=(i*E)//100
if max_s+i>F:
max... |
s098710702 | p03599 | u761320129 | 1530270249 | Python | Python (3.4.3) | py | Runtime Error | 81 | 3188 | 688 | A,B,C,D,E,F = map(int,input().split())
waters = set()
for w1 in range(0,F+1,B):
if w1*100 > F: break
for w2 in range(0,F+1,A):
w = (w1+w2)*100
if w > F: break
if w==0: continue
waters.add(w)
sugars = set()
for s1 in range(0,F+1,D):
if s1 > F: break
for s2 in range(0,F+1... |
s353475535 | p03599 | u761320129 | 1530270000 | Python | Python (3.4.3) | py | Runtime Error | 89 | 3188 | 688 | A,B,C,D,E,F = map(int,input().split())
waters = set()
for w1 in range(0,F+1,B):
if w1*100 > F: break
for w2 in range(0,F+1,A):
w = (w1+w2)*100
if w > F: break
waters.add(w)
sugars = set()
for s1 in range(0,F+1,D):
if s1 > F: break
for s2 in range(0,F+1,C):
s = s1+s2
... |
s832829410 | p03599 | u390694622 | 1530153574 | Python | Python (3.4.3) | py | Runtime Error | 1682 | 12456 | 704 | A,B,C,D,E,F=map(int,input().split())
#100*A*i + 200*B*j == x
#C*i + D*j == y
xs = []
ys = []
def dens(x,y):
if x+y==0:
return(-1)
else:
return(y/(x+y))
for i in range(31):
for j in range(16):
if 100*A*i + 200*B*j <= F:
xs.append(100*A*i + 200*B*j)
for i in range(3001):
... |
s500206102 | p03599 | u143492911 | 1526616225 | Python | Python (3.4.3) | py | Runtime Error | 2039 | 12440 | 577 | a,b,c,d,e,f=map(int,input().split())
water=[]
suguar=[]
for i in range((f+1)//100):
for j in range((f+1)//100):
x=100*i*a+100*j*b
if 1<=x<=f:
water.append(x)
for i in range(f+1):
for j in range(f+1):
y=c*i+d*j
if y<=f:
suguar.append(y)
ans=0
for i in water... |
s685969109 | p03599 | u221345507 | 1525759432 | Python | Python (3.4.3) | py | Runtime Error | 186 | 22572 | 833 | A,B,C,D,E,F=map(int,input().split())
threshold=E/(100+E)
water=[]
for i in range (int(F/(A*100)+1)):
for j in range (int(F/(B*100)+1)):
water.append(A*100*i+B*100*j)
sugar=[]
for k in range (int(F/(C)+1)):
for l in range (int(F/(D)+1)):
sugar.append(C*k+D*l)
water=list(set(water))
sugar=list(set... |
s977149069 | p03599 | u221345507 | 1525759359 | Python | Python (3.4.3) | py | Runtime Error | 267 | 22572 | 809 | A,B,C,D,E,F=map(int,input().split())
threshold=E/(100+E)
water=[]
for i in range (int(F/(A*100)+1)):
for j in range (int(F/(B*100)+1)):
water.append(A*100*i+B*100*j)
sugar=[]
for k in range (int(F/(C)+1)):
for l in range (int(F/(D)+1)):
sugar.append(C*k+D*l)
sugar=list(set(sugar))
output=0
for i... |
s327424331 | p03599 | u143492911 | 1525363819 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 608 | a,b,c,d,e,f=map(int,input().split())
water=[]
sugar=[]
ans,ans_2,con=0,0,0
for i in range(f//100+1):#f//100+1によりTLEを解消
for j in range(f//100+1):
x=100*a*i+100*j*b
if x<=f:
water.append(x)
for i in range(f):
for j in range(f):
y=c*i+d*j
if y<=f:
sugar.appen... |
s308903218 | p03599 | u621935300 | 1525152506 | Python | Python (2.7.6) | py | Runtime Error | 24 | 2696 | 487 | A,B,C,D,E,F=map(int, raw_input().split())
noudo=int(float(E)/(100+E)*100)
a=[]
for i in range(noudo):
for j in range(noudo):
#print i,j
if i*C+D*j<=noudo:
a.append(i*C+D*j)
b=[]
cnt=F/100
for i in range(cnt):
for j in range(cnt):
if i*100+j*100<=F and i*100+j*100!=0:
b.append(i*100+j*100)
noudo=float(... |
s308758240 | p03599 | u621935300 | 1525152394 | Python | Python (2.7.6) | py | Runtime Error | 24 | 2820 | 480 | A,B,C,D,E,F=map(int, raw_input().split())
noudo=int(float(E)/(100+E)*100)
a=[]
for i in range(noudo):
for j in range(noudo):
#print i,j
if i*C+D*j<=noudo:
a.append(i*C+D*j)
b=[]
cnt=F/100
for i in range(cnt):
for j in range(cnt):
if i*100+j*100<=F and i*100+j*100!=0:
b.append(i*100+j*100)
noudo=float(... |
s953611367 | p03599 | u657541767 | 1523562526 | Python | Python (3.4.3) | py | Runtime Error | 234 | 3064 | 606 | a, b, c, d, e, f = map(int, input().split())
max_concentration = 0
for i in range(0, f + 1, 100 * a):
for j in range(0, f - i + 1, 100 * b):
if i == 0 and j == 0:
continue
y = min((i + j) * e // 100, f - i - j)
for k in range(0, y + 1, c):
for l in range(0, y - k + 1,... |
s585448704 | p03599 | u657541767 | 1523561942 | Python | Python (3.4.3) | py | Runtime Error | 257 | 3064 | 607 | a, b, c, d, e, f = map(int, input().split())
max_concentration = 0
for i in range(0, f + 1, 100 * a):
for j in range(0, f - i + 1, 100 * b):
if i == 0 and j == 0:
continue
y = min((i + j) * e // 100, f - i - j)
for k in range(0, y + 1, c):
for l in range(0, y - k + 1,... |
s948629307 | p03599 | u050428930 | 1522946027 | Python | Python (3.4.3) | py | Runtime Error | 3156 | 3064 | 651 | a,b,c,d,e,f=map(int,input().split())
ans=100
for i in range(f//(100*a)+1):
for j in range(f//(100*b)+1):
s=100*a*i+100*b*j
if s==0:
break
for ii in range((f-100*a)//c+1):
for jj in range((f-100*a)//d+1):
t=c*ii+d*jj
if t==0:
... |
s489182289 | p03599 | u050708958 | 1521486144 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 645 | A,B,C,D,E,F = map(int, input().split())
mw,ms = 0,0
i_times = int(F/(100*A)) + 1
j_times = int(F/(100*B)) + 1
k_times = int(F/(C)) + 1
l_times = int(F/(D)) + 1
ideal = E/(100+E)
bf = 0
for i in range(0,i_times):
for j in range(0,j_times):
for k in range(0,k_times):
for l in range(0,l_times):
... |
s017175459 | p03599 | u439176910 | 1520981643 | Python | Python (3.4.3) | py | Runtime Error | 108 | 3064 | 935 | A, B, C, D, E, F = [int(item) for item in input().rstrip().split(" ")]
mizu_arr = []
for i in range(F // (A*100) + 1):
for j in range((F - i * A * 100) // (B*100) + 1):
mizu = i * A * 100 + j * B * 100
if mizu > 0:
mizu_arr.append(mizu)
mizu_arr = sorted(mizu_arr)
def func(sato):
... |
s092486328 | p03599 | u030726788 | 1519867289 | Python | Python (3.4.3) | py | Runtime Error | 1064 | 3064 | 768 | a,b,c,d,e,f = map(int,input().split())
maxden = 0
amax = f //(a*100)
for i in range(amax+1):
waterA = i*100*a
res = f-waterA
bmax = res // (b*100)
for j in range(bmax+1):
waterB = j*100*b
waterS =waterA+waterB
res = f-waterS
cmax = res // c
for k in range(cmax+1):
sugarC = k*c
re... |
s111307670 | p03599 | u390958150 | 1518869356 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 708 | A,B,C,D,E,F = map(int,input().split())
c_max = 0
sw_max = 0
s_max = 0
for a in range(F//100*A+1):
for b in range((F-a*A*100)//100*B+1):
water = 100*(a*A+b*B)
limit = F-water
for c in range(limit//C+1):
for d in range((limit-c*C)//D+1):
sugar = c*C + d*D
... |
s251954664 | p03599 | u092650292 | 1512602201 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 638 |
a, b, c, d, e, f = map(int, input().split())
w = 0
s = 0
ratio = 0
for i in range(31):
for j in range(31):
water = a*i + b*j
for k in range(1501):
l = 0
hoge = 1024
while hoge:
nl = l+hoge
sugar = k*c+nl*d
if 0 < ... |
s329664001 | p03599 | u092650292 | 1512602175 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 636 | , b, c, d, e, f = map(int, input().split())
w = 0
s = 0
ratio = 0
for i in range(31):
for j in range(31):
water = a*i + b*j
for k in range(1501):
l = 0
hoge = 1024
while hoge:
nl = l+hoge
sugar = k*c+nl*d
if 0 < wa... |
s062614322 | p03599 | u456806668 | 1511637877 | Python | Python (3.4.3) | py | Runtime Error | 70 | 3188 | 1415 | x = [int(i) for i in input().split()]
A = x[0]
B = x[1]
C = x[2]
D = x[3]
E = x[4]
F = x[5]
# とりうる水の量
WATER_MAX = int(F/100)
water = [False for i in range(WATER_MAX+1)]
tmp = 0
water_smaller = min(A,B)
water_bigger = max(A,B)
water[water_bigger] = True
while(1):
tmp+=water_smaller
if(tmp>WATER_MAX):
br... |
s359981597 | p03599 | u417658545 | 1508196416 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3188 | 1043 | #import numpy as np
def FindMaxCon(res, water, C, D, E):
c = 0
d = 0
tmpCon = 0
dp = list([False] * 3001)
dp[0] = True
for i in range(3001):
if(i - C >= 0 and i - D >= 0):
dp[i] = dp[i - C] or dp[i - D]
elif(i - C >= 0):
dp[i] = dp[i - C]
elif(i - D >= 0):
dp[i] = dp[i - D]
... |
s622679636 | p03599 | u417658545 | 1508196371 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 1070 | #import numpy as np
def FindMaxCon(res, water, C, D, E):
c = 0
d = 0
tmpCon = 0
dp = list([False] * 3001)
dp[0] = True
for i in range(3001):
if(i - C >= 0 and i - D >= 0):
dp[i] = dp[i - C] or dp[i - D]
elif(i - C >= 0):
dp[i] = dp[i - C]
elif(i - D >= 0):
dp[i] = dp[i - D]
... |
s999930153 | p03599 | u266272131 | 1506812334 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 866 |
A,B,C,D,E,F = list(map(int, input().split()))
#x is a list which represents for the volumn of water
x = set()
#y is a list which represents for the volumn of sugar
y = set()
for i in range(F//C+1):
for j in range((F-C*i)//D+1):
#if i + j == 0:
continue
y.add( i * C + j * D)
for i in... |
s226965909 | p03599 | u266272131 | 1506810834 | Python | Python (3.4.3) | py | Runtime Error | 635 | 12440 | 968 | import sys
A,B,C,D,E,F = list(map(int, input().split()))
#x is a list which represents for the volumn of water
x = list()
#y is a list which represents for the volumn of sugar
y = list()
for i in range(F//C+1):
for j in range(F-C*i//D+1):
if i == j == 0:
continue
tmp_y = i * C + j * D... |
s913167268 | p03599 | u425351967 | 1506178964 | Python | Python (3.4.3) | py | Runtime Error | 1980 | 3064 | 690 | A, B, C, D, E, F = [int(n) for n in input().split()]
max_ratio = 0
for cnt_A in [n for n in range(30) if 100*A*n <= F]:
for cnt_B in [n for n in range(30) if 100*A*cnt_A * 100*B*n <= F]:
for cnt_C in [n for n in range(1500) if n*C <= E*(A*cnt_A+B*cnt_B) and 100*A*cnt_A + 100*B*cnt_B + n*C <= F]:
for cnt_D ... |
s797506678 | p03599 | u058240079 | 1505918038 | Python | Python (2.7.6) | py | Runtime Error | 24 | 2696 | 739 | a,b,c,d,e,f = map(int,raw_input().split())
lim = f
f /= 100
wl = [False for _ in range(f+1)]
sl = [False for _ in range(f*e+1)]
wl[a] = True
wl[b] = True
sl[c] = True
sl[d] = True
for i in range(f):
if wl[i] and i+a <= f:
wl[i+a] = True
if wl[i] and i+b <= f:
wl[i+b] = True
for i in range(f*e)... |
s624970988 | p03599 | u909643606 | 1505852912 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 510 | a,b,c,d,e,f= map(int, input().split())
2.youeki=0
3.yousitu=0
4.noudo=0
5.n_a=int(f/(100*a))
6.
7.
8.for i in range(1+n_a):
9. for j in range(1+int((f-100*i*a)/(100*b))):
10. for k in range(1+int((f-100*i*a-100*j*b)/c)):
11. for l in range(1+int((f-100*i*a-100*j*b-k*c)/d)):
12. S=100.0*a*i+100.0*b*j+c*k+d*l
13.... |
s791982675 | p03599 | u665415433 | 1505680069 | Python | Python (3.4.3) | py | Runtime Error | 27 | 3064 | 782 | def per(a, b):
if a == 0 or b == 0:
return 0
return 100 * b / (a + b)
a, b, c, d, e, f = [int(i) for i in input().split()]
max_sugar = e * f / 100
max_water = f - max_sugar
s = 0
water = set()
check = 0
n = 0
while check <= f:
while check <= f:
water.add(check)
check += b * 100
... |
s245208923 | p03599 | u665415433 | 1505678922 | Python | Python (3.4.3) | py | Runtime Error | 27 | 3064 | 888 | def per(a, b):
if a == 0 or b == 0:
return 0
return 100 * b / (a + b)
a, b, c, d, e, f = [int(i) for i in input().split()]
max_sugar = e * f / 100
max_water = f - max_sugar
s = 0
water = set()
numa = f // a
numb = f // b
for i in range(numa):
check = 100 * a * i
if f < check:
break
... |
s789428370 | p03599 | u965230804 | 1505678840 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3188 | 1257 | x = list(map(int, input().split()))
max_per = 100*(x[4]) / 100
now_max_per = 0
ansSugarWater = 0
ansSugar = 0
for B in range(min(int(x[5]/(100*x[1]))), 31):
for A in range(min(int((x[5]-100*B*x[1])/(100*x[0]))+ 1), 31):
now_sugar = 0
can_sugar = max_per * (x[0]*A + x[1]*B)
if can_sugar + 10... |
s218534097 | p03599 | u075012704 | 1505659159 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 776 | A, B, C, D, E, F = map(int, input().split())
# A:水を100Ag B:水を100Bg C:砂糖をCg D:砂糖をDg E:100gあたりの溶ける最大量 F:入れられる物質の質量の限界
ans_mizu = 100
ans_sato = 0
mizu = set()
for i in range(int(F/(100*max(A,B)))+1):
for j in range(int(F/(100*min(A,B)))+1):
if 100*A*i + 100*B*j <= F:
mizu.add(100*A*i+100*B*j)
... |
s854573677 | p03599 | u010110540 | 1505617945 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 525 | def solve():
A, B, C, D, E, F = map(int, input().split())
memo = []
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+s > F:
break
... |
s821774039 | p03599 | u010110540 | 1505617795 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 757 | def solve():
A, B, C, D, E, F = map(int, input().split())
memo = {}
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+s > F:
... |
s526669804 | p03599 | u619631862 | 1505617145 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38384 | 911 | def i1():
return int(input())
def i2():
return [int(i) for i in input().split()]
[a,b,c,d,e,f]=i2()
g=[]
for i in range(31):
for j in range(31):
ttt=(a*i+b*j)*100
tk=min(ttt*e/100,f-ttt)
tt=(tk//d)*d+(tk%d//(d-c))*(d-c)
... |
s494787922 | p03599 | u667084803 | 1505616642 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 661 | A,B,C,D,E,F=map(int,input().split())
best_water=0
best_salt=0
best_rate=0
for i in range(30//A+1):#Aの投入数
for j in range(30//B+1):#Bの投入数
water=(i*A+j*B)*100
if water<=F and water:
max_salt=(i*A+j*B)*E
for k in range(max_salt//C+1):#Cを何個使うか
l=(max_... |
s792453849 | p03599 | u667084803 | 1505616504 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 530 | A,B,C,D,E,F=map(int,input().split())
x=[]
y=[]
for i in range(30//A+1):#Aの投入数
for j in range(30//B+1):#Bの投入数
water=A*i+B*j
if water<=F: x+=[water]
for i in range(31):#Aの投入数
for j in range(31):#Bの投入数
salt=C*i+D*j
y+=[salt]
best_water=0
best_salt=0
best_rate=0
for water in x:
for salt in y:
rate... |
s440495754 | p03599 | u067983636 | 1505616064 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 690 | A, B, C, D, E, F = list(map(int, input().split()))
def G(a, b):
while b > 0:
a, b = b, a%b
return a
def L(a, b):
return a * b // G(a, b)
caps = {(N * 100 * A + M * 100 * B) for N in range(1 + F // (100 * A)) for M in range(1 + (F - N * 100 * A) // (100 * B))}
res = [0,0,0]
for water in caps:
if water =... |
s772828231 | p03599 | u067983636 | 1505616030 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 745 | A, B, C, D, E, F = list(map(int, input().split()))
cap = 0
sug = 0
def G(a, b):
while b > 0:
a, b = b, a%b
return a
def L(a, b):
return a * b // G(a, b)
caps = {(N * 100 * A + M * 100 * B) for N in range(1 + F // (100 * A)) for M in range(1 + (F - N * 100 * A) // (100 * B))}
print(caps)
res = [0,0,0]
for... |
s837728160 | p03599 | u667084803 | 1505615560 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 571 | A,B,C,D,E,F=map(int,input().split())
best_water=0
best_salt=0
best_rate=0
for i in range(30//A+1):#Aの投入数
for j in range(30//B+1):#Bの投入数
water=(i*A+j*B)*100
if water<=F and water:
max_salt=(i*A+j*B)*E
for k in range(max_salt//C+1):#Cを何個使うか
l=(max_salt-C*k)//D#Dは何個つかえるか
salt=k*C+l*D
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.