QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#204153 | #5279. New Time | OverLoad | RE | 0ms | 0kb | Python3 | 404b | 2023-10-07 04:20:00 | 2023-10-07 04:20:00 |
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
Dangerous Syscalls
input:
11:57 12:00