結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2017-12-15 00:23:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 1,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-14 13:47:13 |
合計ジャッジ時間 | 1,271 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
n, h, m, t = map(int, input().split()) if n == 1: print(h) print(m) else: h = h * 60 total = (h + m + (n-1) * t) if total >= 1440: h = total % (24 * 60) // 60 m = total % (24 * 60) % 60 print(h) print(m) else: h = total // 60 m = total % 60 print(h) print(m)