結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-09-17 08:27:14 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 472 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-07 06:49:36 |
| 合計ジャッジ時間 | 610 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 1 |
ソースコード
N = int(input())
minutes_total = 0
for i in range(N):
time_get_up, time_go_to_bed = [s for s in input().split()]
hours_go_to_bed, minutes_go_to_bed = [int(i) for i in time_get_up.split(':')]
hours_get_up, minutes_get_up = [int(i) for i in time_go_to_bed.split(':')]
if hours_go_to_bed > hours_get_up:
hours_get_up += 24
minutes_total += (hours_get_up * 60 + minutes_get_up) - (hours_go_to_bed * 60 + minutes_go_to_bed)
print(minutes_total)
fV9TwBhUoa9S3eV