結果

問題 No.70 睡眠の重要性!
ユーザー ytftytft
提出日時 2022-11-07 10:20:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 162 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 1,029 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 81,472 KB
最終ジャッジ日時 2023-09-28 00:22:01
合計ジャッジ時間 2,275 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 156 ms
81,248 KB
testcase_01 AC 157 ms
81,472 KB
testcase_02 AC 161 ms
81,264 KB
testcase_03 AC 158 ms
81,400 KB
testcase_04 AC 159 ms
81,404 KB
testcase_05 AC 162 ms
81,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from datetime import datetime
input=lambda:sys.stdin.readline().rstrip()
def trans(S):
	return datetime.strptime(S,"%H:%M")
N,ans=int(input()),0
for i in range(N):
	temp=input().split()
	ans+=(trans(temp[1])-trans(temp[0])).total_seconds()//60%(24*60)
print(int(ans))
0