結果

問題 No.296 n度寝
ユーザー Ixtkc
提出日時 2019-11-09 18:48:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-15 04:45:52
合計ジャッジ時間 1,284 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

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

passing = (N-1) * T

late_hour = passing // 60
ac_time_h = H + (late_hour % 24)

late_min = passing % 60
pre_ac_time_m = M + late_min

if pre_ac_time_m >= 60:
    ac_time_m = pre_ac_time_m - 60
else:
    ac_time_m = pre_ac_time_m

print(ac_time_h)
print(ac_time_m)
0