結果

問題 No.525 二度寝の季節
ユーザー toshiro_yanagi
提出日時 2018-06-05 09:03:37
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 222 bytes
コンパイル時間 3,303 ms
コンパイル使用メモリ 65,280 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-30 09:52:57
合計ジャッジ時間 4,435 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils
proc tt(t: int): string =
  ["", "0"][int(t < 10)] & $t

let T = readLine(stdin).split(':').map parseInt
var t = T[0] * 60 + T[1]
t = (t + 5) mod (24 * 60)

echo (t div 60).tt, ':', (t mod 60).tt
0