結果

問題 No.296 n度寝
ユーザー pea vava
提出日時 2020-09-06 10:58:42
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 318 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-29 06:53:20
合計ジャッジ時間 1,472 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

N, H, M, T = map(int, input().split())

sum_T = (N - 1) * T #起きるまでのp時間

mtoh = M + sum_T

if mtoh >= 60:
    hour = mtoh // 60
    H = H + hour
    minute = mtoh % 60
    M =0
    M = minute
    print(H)
    print(M)
elif mtoh < 60:
    minute = M + mtoh
    print(H)
    print(mtoh)
0