結果
問題 |
No.70 睡眠の重要性!
|
ユーザー |
|
提出日時 | 2018-01-22 17:51:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-26 00:52:39 |
合計ジャッジ時間 | 1,038 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
def main(): N = int(input()) total = 0 for x in range(N): S1, S2 = input().split() H, M = map(int, S1.split(':')) h, m = map(int, S2.split(':')) if H > h or (H == h and M > m): h += 24 total += h*60 + m - (H*60 + M) print(total) if __name__ == '__main__': main()