QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#204166 | #5279. New Time | OverLoad | WA | 15ms | 9168kb | Python3 | 357b | 2023-10-07 04:44:17 | 2023-10-07 04:44:18 |
Judging History
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])
print()
a=real_minute-minute
if(a>0):
print(int(a/60)+a%60)
elif(a<0):
print(int((1440+a)/60)+(1440+a)%60)
詳細信息
Test #1:
score: 100
Accepted
time: 14ms
memory: 9036kb
input:
11:57 12:00
output:
3
result:
ok 1 number(s): "3"
Test #2:
score: 0
Accepted
time: 15ms
memory: 9076kb
input:
09:09 21:21
output:
24
result:
ok 1 number(s): "24"
Test #3:
score: 0
Accepted
time: 13ms
memory: 9100kb
input:
19:44 08:50
output:
19
result:
ok 1 number(s): "19"
Test #4:
score: 0
Accepted
time: 6ms
memory: 9068kb
input:
13:45 17:58
output:
17
result:
ok 1 number(s): "17"
Test #5:
score: 0
Accepted
time: 12ms
memory: 9100kb
input:
02:57 21:05
output:
26
result:
ok 1 number(s): "26"
Test #6:
score: 0
Accepted
time: 13ms
memory: 9068kb
input:
18:15 22:59
output:
48
result:
ok 1 number(s): "48"
Test #7:
score: 0
Accepted
time: 9ms
memory: 9112kb
input:
18:12 09:42
output:
45
result:
ok 1 number(s): "45"
Test #8:
score: -100
Wrong Answer
time: 13ms
memory: 9168kb
input:
00:00 00:00
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements