結果
問題 | No.525 二度寝の季節 |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:02:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 35 ms / 1,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 53,856 KB |
最終ジャッジ日時 | 2025-03-20 21:02:55 |
合計ジャッジ時間 | 2,432 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
# Read the input timet = input().strip()# Split into hours and minutesh_str, m_str = t.split(':')h = int(h_str)m = int(m_str)# Calculate total minutes after adding 5 minutestotal_minutes = h * 60 + m + 5# Compute new hours and minutesnew_h = (total_minutes // 60) % 24new_m = total_minutes % 60# Format the result with leading zerosprint("{:02d}:{:02d}".format(new_h, new_m))