結果

問題 No.296 n度寝
ユーザー IxtkcIxtkc
提出日時 2019-11-09 18:48:24
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 511 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-10-13 07:28:54
合計ジャッジ時間 1,333 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 15 ms
7,812 KB
testcase_04 AC 15 ms
7,856 KB
testcase_05 AC 15 ms
7,764 KB
testcase_06 AC 16 ms
7,768 KB
testcase_07 AC 15 ms
7,868 KB
testcase_08 AC 15 ms
7,744 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,740 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 15 ms
7,880 KB
testcase_14 AC 15 ms
7,856 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

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