結果
問題 | No.70 睡眠の重要性! |
ユーザー | notsix4 |
提出日時 | 2021-11-24 21:00:37 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 16 ms / 5,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 10,756 KB |
実行使用メモリ | 7,816 KB |
最終ジャッジ日時 | 2023-09-09 13:54:44 |
合計ジャッジ時間 | 729 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,816 KB |
testcase_01 | AC | 15 ms
7,744 KB |
testcase_02 | AC | 14 ms
7,748 KB |
testcase_03 | AC | 16 ms
7,744 KB |
testcase_04 | AC | 15 ms
7,808 KB |
testcase_05 | AC | 16 ms
7,792 KB |
ソースコード
n=int(input()) a=0 for i in range(n): s=input().split() w=s[0].split(":") g=s[1].split(":") wh=int(w[0]) wm=int(w[1]) gh=int(g[0]) gm=int(g[1]) if wh>gh: gh=gh+24 elif wh==gh and gm<wm: gh=gh+24 a+=gh*60+gm-wh*60-wm print(a)