結果

問題 No.296 n度寝
ユーザー ykobanykoban
提出日時 2019-10-29 22:09:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 1,000 ms
コード長 192 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 8,860 KB
最終ジャッジ日時 2023-10-12 23:32:09
合計ジャッジ時間 1,472 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,616 KB
testcase_01 AC 20 ms
8,744 KB
testcase_02 AC 18 ms
8,808 KB
testcase_03 AC 18 ms
8,852 KB
testcase_04 AC 18 ms
8,860 KB
testcase_05 AC 18 ms
8,612 KB
testcase_06 AC 19 ms
8,732 KB
testcase_07 AC 18 ms
8,812 KB
testcase_08 AC 18 ms
8,692 KB
testcase_09 AC 18 ms
8,736 KB
testcase_10 AC 18 ms
8,592 KB
testcase_11 AC 18 ms
8,688 KB
testcase_12 AC 18 ms
8,860 KB
testcase_13 AC 18 ms
8,816 KB
testcase_14 AC 18 ms
8,680 KB
testcase_15 AC 18 ms
8,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import datetime

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

dt = datetime.datetime(2019, 1, 1, H, M)
dl = datetime.timedelta(minutes=T)

t = (dt + dl * (N - 1))

print(t.hour)
print(t.minute)
0