結果
問題 | No.70 睡眠の重要性! |
ユーザー |
![]() |
提出日時 | 2023-03-23 07:50:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 5,000 ms |
コード長 | 241 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 51,840 KB |
最終ジャッジ日時 | 2024-09-18 15:17:04 |
合計ジャッジ時間 | 893 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
n = int(input()) ans = 0 for i in range(n): x,y = input().split() a,b = x.split(":") c,d = y.split(":") a = 60*int(a) c = 60*int(c) a += int(b) c += int(d) if a > c: c += 1440 ans += c-a print(ans)