結果

問題 No.651 E869120 and Driving
コンテスト
ユーザー あいすたべたい
提出日時 2026-04-13 16:25:59
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 94 ms / 1,000 ms
コード長 329 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 333 ms
コンパイル使用メモリ 20,696 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2026-04-13 16:26:02
合計ジャッジ時間 2,058 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

a=int(input())
hour=a//100
minute=(a-hour*100)*3//5
minute_new= f'{minute:02}'
if 0<hour<14:
    b=hour+10
    print(b,minute_new, sep=":")
elif 14<=hour:
    hour1=(hour-14)//24
    hour_new=hour-14-24*hour1
    hour_new_new= f'{hour_new:02}'
    print(hour_new_new,minute_new, sep=":")
else:
    print("10",minute_new, sep=":")
0