結果

問題 No.296 n度寝
ユーザー yumenomatayumeyumenomatayume
提出日時 2020-04-02 08:29:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 159 bytes
コンパイル時間 716 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 71,536 KB
最終ジャッジ日時 2023-09-10 10:58:31
合計ジャッジ時間 2,965 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,328 KB
testcase_01 AC 71 ms
71,364 KB
testcase_02 AC 70 ms
71,536 KB
testcase_03 AC 72 ms
71,260 KB
testcase_04 AC 72 ms
71,236 KB
testcase_05 AC 73 ms
71,388 KB
testcase_06 AC 72 ms
71,112 KB
testcase_07 AC 71 ms
71,412 KB
testcase_08 AC 72 ms
71,364 KB
testcase_09 AC 72 ms
71,364 KB
testcase_10 AC 71 ms
71,400 KB
testcase_11 AC 69 ms
71,400 KB
testcase_12 AC 71 ms
71,328 KB
testcase_13 AC 73 ms
71,304 KB
testcase_14 AC 72 ms
71,404 KB
testcase_15 AC 72 ms
71,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,h,m,t = map(int,input().split())

mod_h,mod_m = 24,60
add_h,add_m = divmod(t*(n-1),mod_m)

print((h + add_h + (m+add_m)//mod_m)%mod_h)
print((m+add_m)%mod_m)
0