結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-09-17 08:33:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 572 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-07 06:49:42 |
| 合計ジャッジ時間 | 753 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
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(':')]
converted_go_to_bed = hours_go_to_bed * 60 + minutes_go_to_bed
converted_get_up = hours_get_up * 60 + minutes_get_up
if converted_go_to_bed > converted_get_up:
converted_get_up += 24 * 60
minutes_total += converted_get_up - converted_go_to_bed
print(minutes_total)
fV9TwBhUoa9S3eV