結果
問題 | No.70 睡眠の重要性! |
ユーザー | szkake |
提出日時 | 2015-09-08 12:15:20 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 10,560 KB |
実行使用メモリ | 7,856 KB |
最終ジャッジ日時 | 2023-09-26 10:07:16 |
合計ジャッジ時間 | 969 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,700 KB |
testcase_01 | AC | 16 ms
7,712 KB |
testcase_02 | AC | 16 ms
7,704 KB |
testcase_03 | AC | 17 ms
7,856 KB |
testcase_04 | AC | 16 ms
7,680 KB |
testcase_05 | AC | 16 ms
7,780 KB |
ソースコード
# -*- coding:utf-8 -*- def hm_to_m(hm): return hm[0] * 60 + hm[1] if __name__ == '__main__': n = int(input()) cnt = 0 for i in range(n): hm1, hm2 = (tuple(map(int, hm.split(":"))) for hm in input().split()) cnt += (hm_to_m(hm2) - hm_to_m(hm1)) % (60 * 24) print(cnt)