結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
ixmel
|
| 提出日時 | 2017-03-30 16:43:05 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 5,000 ms |
| コード長 | 335 bytes |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-07 03:01:18 |
| 合計ジャッジ時間 | 950 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
import sys
import math as mas
n=int(input())
sum=0
for i in range(n):
s=input()
a,b=map(str,s.split())
c=list(map(int,a.split(':')))
fro=c[0]*60+c[1]
c=list(map(int,b.split(':')))
to=c[0]*60+c[1]
if fro<to:sum+=to-fro
else:sum+=24*60-fro+to
print(sum)
#for i in sys.stdin:
# a,b=map(int,i.split())
# print(gcd(a,b),lcm(a,b))
ixmel