QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#204154 | #5279. New Time | OverLoad | 0 | 0ms | 0kb | Python2 | 404b | 2023-10-07 04:20:38 | 2023-10-07 04:20:38 |
answer
if __name__ == '__main__':
a=input()
minute = int(a[0]) * 10 + int(a[1]) * 60 + int(a[3]) * 10 + int(a[4])
a=input()
real_minute=int((a[0])*10+int(a[1]))*60+int(a[3])*10+int(a[4])
a=0
a=real_minute-minute
if(a>0):
count=int(a/60)+int(a%60)
elif(a<0):
count=int((1440+a)/60)+int((1440+a)%60)
print(a)
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Judgement Failed
input:
11:57 12:00