QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#204147 | #5279. New Time | OverLoad | Compile Error | / | / | C++14 | 445b | 2023-10-07 04:09:39 | 2023-10-07 04:09:39 |
Judging History
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': | ^~