結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2015-12-19 16:53:58 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 464 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-11 12:10:54 |
| 合計ジャッジ時間 | 1,101 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 2 |
ソースコード
N = int(input())
res = 0
for i in range(N):
first, second = input().split(" ")
fh, fm = map(int, first.split(":"))
sh, sm = map(int, second.split(":"))
if fh > sh or (fh == sh and fm < sm):
sh += 24
if fm > sm:
sh -= 1
sm += 60
res += (sh - fh) * 60 + (sm - fm)
print(res)