結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  siganai | 
| 提出日時 | 2022-05-26 14:26:06 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 1,000 ms | 
| コード長 | 149 bytes | 
| コンパイル時間 | 148 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 52,352 KB | 
| 最終ジャッジ日時 | 2024-09-20 14:59:32 | 
| 合計ジャッジ時間 | 1,282 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
n,h,m,t=map(int,input().split())
time = t * (n - 1)
h += time // 60
time %= 60
m += time
if m >= 60:
    h += 1
    m -= 60
h %= 24
print(h)
print(m)
            
            
            
        