QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#758115#9552. The Chariotucup-team059Compile Error//C++20432b2024-11-17 15:55:262024-11-17 15:55:27

Judging History

你现在查看的是最新测评结果

  • [2024-11-17 15:55:27]
  • 评测
  • [2024-11-17 15:55:26]
  • 提交

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())
      | ^