結果
問題 |
No.525 二度寝の季節
|
ユーザー |
![]() |
提出日時 | 2018-07-09 08:31:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 1,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 118 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-08 00:46:42 |
合計ジャッジ時間 | 1,789 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
T = input() hh = int(T[0]+T[1]) mm = int(T[3]+T[4]) if mm < 55 and mm >= 5: M = mm + 5 elif mm >= 0 and mm < 5 : M = str(0)+str(mm+5) else : M = str(0)+str(mm + 5 - 60) hh += 1 if hh == 24 : H = str(0)+str(0) elif hh >= 10 : H = hh else : H = str(0)+str(hh) print("{}:{}".format(H,M))