結果
問題 | No.70 睡眠の重要性! |
ユーザー | rpy3cpp |
提出日時 | 2015-07-21 22:54:33 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 10,476 KB |
実行使用メモリ | 7,880 KB |
最終ジャッジ日時 | 2023-09-22 21:02:37 |
合計ジャッジ時間 | 760 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,852 KB |
testcase_01 | AC | 17 ms
7,712 KB |
testcase_02 | AC | 16 ms
7,772 KB |
testcase_03 | AC | 16 ms
7,728 KB |
testcase_04 | AC | 17 ms
7,880 KB |
testcase_05 | AC | 17 ms
7,808 KB |
ソースコード
def sleep(H, M, h, m): if H > h or (H == h and M > m): h += 24 return h * 60 + m - H * 60 - M N = int(input()) total = 0 for n in range(N): HM, hm = input().split() H, M = map(int, HM.split(':')) h, m = map(int, hm.split(':')) total += sleep(H, M, h, m) print(total)