結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-05-15 10:56:29 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 169 bytes | 
| コンパイル時間 | 402 ms | 
| コンパイル使用メモリ | 12,032 KB | 
| 実行使用メモリ | 26,184 KB | 
| 最終ジャッジ日時 | 2025-05-15 10:56:35 | 
| 合計ジャッジ時間 | 5,132 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 15 | 
ソースコード
n, h, m, t = map(int, input().split())
m += t*(n-1)
while True:
    if m < 60:
        h %= 24
        break
    
    m -= 60
    h += 1
print('{}\n{}\n'.format(h,m))
            
            
            
        