結果

問題 No.296 n度寝
ユーザー mahiromahiro
提出日時 2020-01-11 18:49:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 1,000 ms
コード長 151 bytes
コンパイル時間 678 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 71,316 KB
最終ジャッジ日時 2023-08-16 17:42:21
合計ジャッジ時間 2,871 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,108 KB
testcase_01 AC 62 ms
71,000 KB
testcase_02 AC 62 ms
71,292 KB
testcase_03 AC 63 ms
71,140 KB
testcase_04 AC 62 ms
71,120 KB
testcase_05 AC 62 ms
70,816 KB
testcase_06 AC 60 ms
71,088 KB
testcase_07 AC 62 ms
71,104 KB
testcase_08 AC 61 ms
71,316 KB
testcase_09 AC 61 ms
71,184 KB
testcase_10 AC 67 ms
71,200 KB
testcase_11 AC 65 ms
71,212 KB
testcase_12 AC 62 ms
71,164 KB
testcase_13 AC 62 ms
70,984 KB
testcase_14 AC 68 ms
71,228 KB
testcase_15 AC 69 ms
70,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, H, M, T = [int(i) for i in input().split()]

M += T * (N - 1)
q, r = divmod(M, 60)
M, H = r, H+q

q, r = divmod(H, 24)
H = r

print(H, M, sep="\n")
0