結果
問題 |
No.70 睡眠の重要性!
|
ユーザー |
|
提出日時 | 2017-10-08 11:10:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 479 bytes |
コンパイル時間 | 359 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 12,672 KB |
最終ジャッジ日時 | 2024-11-17 05:28:02 |
合計ジャッジ時間 | 1,016 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 4 RE * 1 |
ソースコード
import time from datetime import datetime, timedelta def main(): N = int(input()) T = tuple(tuple(input().split()) for _ in [0] * N) for t1, t2 in T: bed = datetime.strptime(t1, '%H:%M') rising = datetime.strptime(t2, '%H:%M') x = rising - bed if 'sleep' in locals(): sleep = sleep + x else: sleep = x x = str(sleep).split()[2] h, m, s = map(int, x.split(':')) print(h * 60 + m) main()