結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-19 16:53:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-16 16:07:51 |
| 合計ジャッジ時間 | 870 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)