結果

問題 No.525 二度寝の季節
ユーザー Kotaron(虎)Kotaron(虎)
提出日時 2023-10-03 14:13:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 323 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 9,868 KB
最終ジャッジ日時 2023-10-03 14:13:42
合計ジャッジ時間 3,269 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
9,660 KB
testcase_01 AC 32 ms
9,660 KB
testcase_02 AC 31 ms
9,716 KB
testcase_03 AC 32 ms
9,656 KB
testcase_04 AC 32 ms
9,796 KB
testcase_05 AC 36 ms
9,656 KB
testcase_06 AC 33 ms
9,816 KB
testcase_07 AC 32 ms
9,852 KB
testcase_08 AC 32 ms
9,824 KB
testcase_09 AC 33 ms
9,668 KB
testcase_10 AC 33 ms
9,824 KB
testcase_11 AC 32 ms
9,640 KB
testcase_12 AC 32 ms
9,708 KB
testcase_13 AC 32 ms
9,860 KB
testcase_14 AC 32 ms
9,708 KB
testcase_15 AC 32 ms
9,720 KB
testcase_16 AC 31 ms
9,656 KB
testcase_17 AC 32 ms
9,800 KB
testcase_18 AC 32 ms
9,620 KB
testcase_19 AC 33 ms
9,660 KB
testcase_20 AC 33 ms
9,656 KB
testcase_21 AC 33 ms
9,656 KB
testcase_22 AC 33 ms
9,656 KB
testcase_23 AC 33 ms
9,652 KB
testcase_24 AC 32 ms
9,664 KB
testcase_25 AC 33 ms
9,648 KB
testcase_26 AC 35 ms
9,800 KB
testcase_27 AC 32 ms
9,808 KB
testcase_28 AC 32 ms
9,652 KB
testcase_29 AC 32 ms
9,656 KB
testcase_30 AC 33 ms
9,716 KB
testcase_31 AC 32 ms
9,664 KB
testcase_32 AC 32 ms
9,792 KB
testcase_33 AC 32 ms
9,704 KB
testcase_34 AC 32 ms
9,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import datetime
N = input()
time_format = "%H:%M"
try:
    input_time = datetime.datetime.strptime(N, time_format)
except ValueError:
    print("無効な時刻形式です。")
else:
    time_difference = datetime.timedelta(minutes=5)
    new_time = input_time + time_difference
    print( new_time.strftime(time_format))
0