結果
問題 |
No.525 二度寝の季節
|
ユーザー |
|
提出日時 | 2024-02-29 20:15:34 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 13,772 ms |
コンパイル使用メモリ | 219,212 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-29 12:56:58 |
合計ジャッジ時間 | 14,142 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
package main import ( "fmt" "os" "strconv" "strings" "time" ) func main() { var s string fmt.Scan(&s) h, _ := strconv.Atoi(strings.Split(s, ":")[0]) m, _ := strconv.Atoi(strings.Split(s, ":")[1]) t := time.Date(1, 1, 1, h, m, 0, 0, time.Local) fmt.Println(t.Add(5 * time.Minute).Format("15:04")) os.Exit(0) }