結果

問題 No.525 二度寝の季節
ユーザー momotaros300
提出日時 2019-08-24 18:20:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 280 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-10-14 13:09:31
合計ジャッジ時間 2,627 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

T=input()
# T='23:59'
hour=int(T[:2])
minute=int(T[3:])
if minute+5>=60:
	sabun=minute+5-60
	minute=sabun
	if hour==23:
		hour=0
	else:
		hour+=1
else:
	minute+=5
out=str(hour) if hour>=10 else '0'+str(hour)
out+=':'
out+=str(minute) if minute>=10 else '0'+str(minute)
print(out)
0