結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-08 07:23:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 5,000 ms |
| コード長 | 324 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 82,508 KB |
| 実行使用メモリ | 52,688 KB |
| 最終ジャッジ日時 | 2024-07-05 03:04:26 |
| 合計ジャッジ時間 | 1,034 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
n=int(input())
ans=0
for i in range(n):
x=input().split()
x[0]=x[0].split(':')
x[1]=x[1].split(':')
for j in range(2):
for k in range(2):
x[j][k]=int(x[j][k])
if x[0][1]>x[1][1]:
x[1][1]+=60
x[1][0]-=1
if x[0][0]>x[1][0]:
x[1][0]+=24
ans+=(x[1][0]-x[0][0])*60+(x[1][1]-x[0][1])
print(ans)
あかりき