結果
問題 | No.70 睡眠の重要性! |
ユーザー |
![]() |
提出日時 | 2020-03-05 00:07:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 125 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-14 00:36:50 |
合計ジャッジ時間 | 900 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
def timetoint(s):h, s = [ int(v) for v in s.split(":") ]return 60*h+sn = int(input())total = 0for i in range(n):t1, t2 = [ timetoint(v) for v in input().split() ]if t1 > t2:t2 += 1440total += (t2-t1)print(total)