結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-09-08 14:42:18 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 27 ms / 1,000 ms | 
| コード長 | 259 bytes | 
| コンパイル時間 | 115 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-11-29 16:41:45 | 
| 合計ジャッジ時間 | 1,281 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
n,h,m,t=list(map(int,input().split())) #n度寝
#アラームの設定時刻h時m分
#t分間隔でアラームが鳴る
time=h*60+m #time分
time=time+n*t-t
x=time//60
y=time-60*x
while x>23:
    x=x-(x//24)*24
print(x)
print(y)  #x時y分に完全起床
            
            
            
        