結果
問題 |
No.70 睡眠の重要性!
|
ユーザー |
|
提出日時 | 2018-03-27 17:28:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 481 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-25 12:48:53 |
合計ジャッジ時間 | 808 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
import datetime second_sum = 0 n = int(input()) for _ in range(n): time_list = input().split(' ') time1 = time_list[0].split(':') time2 = time_list[1].split(':') d1 = datetime.datetime(1900, 1, 1, int(time1[0]), int(time1[1]), 0) d2 = datetime.datetime(1900, 1, 1, int(time2[0]), int(time2[1]), 0) if d1 > d2: d2 = datetime.datetime(1900, 1, 2, int(time2[0]), int(time2[1]), 0) td = d2 - d1 second_sum += td.seconds print(second_sum // 60)