結果
| 問題 | No.70 睡眠の重要性! | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-01-25 18:56:47 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 36 ms / 5,000 ms | 
| コード長 | 340 bytes | 
| コンパイル時間 | 294 ms | 
| コンパイル使用メモリ | 82,076 KB | 
| 実行使用メモリ | 53,544 KB | 
| 最終ジャッジ日時 | 2024-12-17 13:15:09 | 
| 合計ジャッジ時間 | 841 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
ソースコード
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()
            
            
            
        