結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-19 16:53:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 5,000 ms |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-05 20:46:46 |
| 合計ジャッジ時間 | 1,458 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
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)