結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2017-12-15 00:21:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-14 13:46:56 |
合計ジャッジ時間 | 1,353 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
ソースコード
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 = h % (24 * 60) m = total - h print(h) print(m) else: h = total // 60 m = total % 60 print(h) print(m)