結果

問題 No.296 n度寝
ユーザー mahiromahiro
提出日時 2020-01-11 18:47:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 221 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 71,896 KB
最終ジャッジ日時 2023-08-16 17:39:25
合計ジャッジ時間 2,716 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,496 KB
testcase_01 AC 75 ms
71,624 KB
testcase_02 AC 76 ms
71,660 KB
testcase_03 AC 74 ms
71,816 KB
testcase_04 AC 77 ms
71,492 KB
testcase_05 AC 75 ms
71,600 KB
testcase_06 AC 75 ms
71,556 KB
testcase_07 AC 78 ms
71,596 KB
testcase_08 AC 78 ms
71,324 KB
testcase_09 AC 77 ms
71,564 KB
testcase_10 AC 78 ms
71,484 KB
testcase_11 AC 80 ms
71,816 KB
testcase_12 AC 78 ms
71,744 KB
testcase_13 AC 83 ms
71,816 KB
testcase_14 AC 83 ms
71,668 KB
testcase_15 AC 84 ms
71,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import datetime

N, H, M, T = [int(i) for i in input().split()]
first_alarm = datetime.datetime(1970, 1, 1, H, M)
wake_up = first_alarm + datetime.timedelta(minutes=T*(N-1))

print(wake_up.hour, wake_up.minute, sep="\n")
0