結果

問題 No.296 n度寝
ユーザー pajannatpajannat
提出日時 2021-04-05 22:55:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 328 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 71,336 KB
最終ジャッジ日時 2023-08-30 10:18:48
合計ジャッジ時間 2,593 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,048 KB
testcase_01 AC 72 ms
70,892 KB
testcase_02 AC 72 ms
71,132 KB
testcase_03 AC 74 ms
71,336 KB
testcase_04 AC 74 ms
71,044 KB
testcase_05 AC 73 ms
71,020 KB
testcase_06 AC 72 ms
71,268 KB
testcase_07 AC 73 ms
71,152 KB
testcase_08 AC 74 ms
71,140 KB
testcase_09 AC 71 ms
71,156 KB
testcase_10 AC 71 ms
71,328 KB
testcase_11 AC 73 ms
70,912 KB
testcase_12 AC 73 ms
71,136 KB
testcase_13 AC 71 ms
71,072 KB
testcase_14 AC 70 ms
71,132 KB
testcase_15 AC 73 ms
71,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

# 起床時の分の値の合計値(時への繰り上げ前)
M_sum = M + T*(N-1)

# 起床時の時の値の合計値
H_wake = H + M_sum // 60
H_wake = H_wake % 24

# 起床時の分の値の合計値(時への繰り上げ後)
M_wake = M_sum % 60

print(H_wake)
print(M_wake)
0