結果

問題 No.70 睡眠の重要性!
ユーザー sasakitikitisasakitikiti
提出日時 2016-08-03 10:13:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-24 15:11:49
合計ジャッジ時間 704 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

h=int()
m=int()

for i in range(int(input())):
    n,l=input().split()
    h1,m1=(int(i) for i in n.split(":"))
    h2,m2=(int(i) for i in l.split(":"))
   
    if int(h2)<int(h1):
        h=int(h)+int(h2)+int(24)-int(h1)
    else:
        h=int(h)+int(h2)-int(h1)
    if m2<m1:
        m=int(m)+int(m2)+int(60)-int(m1)
        h=h-1
    else:
        m=int(m)+int(m2)-int(m1)
    i=i+1

if h==-1:
    h=23
print(h,m)    
print(h*60+m)    
0