結果
問題 | No.70 睡眠の重要性! |
ユーザー |
|
提出日時 | 2016-08-21 17:24:32 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 457 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-07 22:27:29 |
合計ジャッジ時間 | 736 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
n=int(input())x=0y=0for i in range(0,n):a=input()b=a.split()c,d=map(int,b[0].split(':'))e,f=map(int,b[1].split(':'))if c<=e:g=e-cx+=gelif c>e:g=e-0g+=(24-c)x+=gif d<=f:h=f-dy+=helif d>f:h=f-0h+=(60-d)if x>0:x-=1elif x==0:x+=23y+=hif x>0:z=x*60+yelif x==0:z=yprint(z)