結果

問題 No.70 睡眠の重要性!
ユーザー 👑 colognecologne
提出日時 2022-01-25 18:56:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 340 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 71,508 KB
最終ジャッジ日時 2023-08-22 14:08:17
合計ジャッジ時間 1,220 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,508 KB
testcase_01 AC 69 ms
71,464 KB
testcase_02 AC 70 ms
71,404 KB
testcase_03 AC 70 ms
71,460 KB
testcase_04 AC 71 ms
71,244 KB
testcase_05 AC 70 ms
71,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    N = int(input())

    def cvt(x):
        a, b = x.split(':')
        return int(a)*60+int(b)

    ans = 0
    for i in range(N):
        HM, hm = input().split()
        ans += (cvt(hm)-cvt(HM)) % 1440

    print(ans)


if __name__ == '__main__':
    main()
0