結果

問題 No.296 n度寝
コンテスト
ユーザー Ixtkc
提出日時 2019-11-09 18:58:02
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 449 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 361 ms
コンパイル使用メモリ 20,572 KB
実行使用メモリ 15,232 KB
最終ジャッジ日時 2026-04-04 17:19:48
合計ジャッジ時間 2,500 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

passing = (N-1) * T

late_hour = (passing + M) // 60
print(late_hour)
print(late_hour % 24)
pre_ac_time_h = H + (late_hour % 24)
if pre_ac_time_h >= 24:
    ac_time_h = pre_ac_time_h - 24
else:
    ac_time_h = pre_ac_time_h

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