QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#758115 | #9552. The Chariot | ucup-team059 | Compile Error | / | / | C++20 | 432b | 2024-11-17 15:55:26 | 2024-11-17 15:55:27 |
Judging History
answer
_=int(input())
for __ in range(_):
a,b,c,x,y,d=map(int,input().split())
mn=10**5000
t=a
if(d//x>=1):
t=d%x*b
mn=min(mn,d//x*a+min(t,a))
t=0
if(d%(x+y)<=x):
t=a
else:
t=a+b*(d%(x+y)-x)
tt=t
if(d//(x+y)>0):
tt=c*(d%(x+y))
mn=min(mn,d//(x+y)*(b*y+a)+min(t,tt))
if(d//(x+y)>0):
t=a+b*y+(d-x-y)*c
mn=min(mn,t)
print(mn)
Details
answer.code:1:1: error: ‘_’ does not name a type 1 | _=int(input()) | ^