結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-05-10 19:40:29 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 208 bytes | 
| コンパイル時間 | 144 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-12-20 04:10:16 | 
| 合計ジャッジ時間 | 1,304 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 8 | 
ソースコード
n, h, m, t = map(int, input().split())
alarm = h * 60 + m
alarm = alarm + (n - 1) * t
if alarm >= 1440:
    print(alarm // 60 // 24)
    print(alarm % 60)
else:
    print(alarm // 60)
    print(alarm % 60)
            
            
            
        