QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#204147#5279. New TimeOverLoadCompile Error//C++14445b2023-10-07 04:09:392023-10-07 04:09:39

Judging History

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

  • [2023-10-07 04:09:39]
  • 评测
  • [2023-10-07 04:09:39]
  • 提交

answer

if name == 'main':
    a=input()
    h=int(a[0])10+int(a[1])
    m=int(a[3])10+int(a[4])
    a=input()
    real_h=int(a[0])10+int(a[1])
    real_m=int(a[3])10+int(a[4])
    real_minute=real_h60+real_m
    minute=h60+m
    count=0
    t_minute=real_minute-minute
    if(t_minute>0):
        count=int(t_minute/60)+int(t_minute%60)
    elif(t_minute<0):
        count=int((1440+t_minute)/60)+int((1440+t_minute)%60)
    print(count)

Details

answer.code:1:12: warning: multi-character character constant [-Wmultichar]
    1 | if name == 'main':
      |            ^~~~~~
answer.code:1:1: error: expected unqualified-id before ‘if’
    1 | if name == 'main':
      | ^~