結果
問題 | No.70 睡眠の重要性! |
ユーザー | takakin |
提出日時 | 2020-03-30 17:31:09 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 10,780 KB |
実行使用メモリ | 8,008 KB |
最終ジャッジ日時 | 2023-09-04 04:41:28 |
合計ジャッジ時間 | 945 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,832 KB |
testcase_01 | AC | 16 ms
7,836 KB |
testcase_02 | AC | 16 ms
7,868 KB |
testcase_03 | AC | 16 ms
7,792 KB |
testcase_04 | AC | 16 ms
7,888 KB |
testcase_05 | WA | - |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) ans=0 for _ in range(n): s,g=map(str,input().split()) sh,sm=s.split(":") gh,gm=g.split(":") sh=int(sh) sm=int(sm) gh=int(gh) gm=int(gm) ans+=60*(gh-sh)+(gm-sm) if sh>gh: ans+=60*24 print(ans)