結果
問題 |
No.525 二度寝の季節
|
ユーザー |
|
提出日時 | 2019-08-05 22:04:38 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 10,819 ms |
コンパイル使用メモリ | 219,676 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 13:44:39 |
合計ジャッジ時間 | 11,708 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
package main import ( "fmt" "strconv" "strings" ) func main() { var t string fmt.Scan(&t) ts := strings.Split(t, ":") h, _ := strconv.Atoi(ts[0]) m, _ := strconv.Atoi(ts[1]) m += 5 fmt.Printf("%02d:%02d\n", (h+m/60)%24, m%60) }