結果
問題 |
No.70 睡眠の重要性!
|
ユーザー |
![]() |
提出日時 | 2020-03-30 17:31:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-22 04:11:48 |
合計ジャッジ時間 | 742 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 1 |
ソースコード
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)