結果
問題 |
No.721 Die tertia (ディエ・テルツィア)
|
ユーザー |
|
提出日時 | 2024-04-30 01:11:08 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 14,987 ms |
コンパイル使用メモリ | 242,556 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-19 11:40:44 |
合計ジャッジ時間 | 15,413 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
// No.721 Die tertia (ディエ・テルツィア) package main import ( "fmt" "strconv" "strings" "time" ) func main() { var s string fmt.Scan(&s) ss := strings.Split(s, "/") y, _ := strconv.Atoi(ss[0]) m, _ := strconv.Atoi(ss[1]) d, _ := strconv.Atoi(ss[2]) t := time.Date(y, time.Month(m), d, 0, 0, 0, 0, time.Local) fmt.Println(t.AddDate(0, 0, 2).Format("2006/01/02")) }