結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2021-01-01 22:23:41 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 11,503 ms |
コンパイル使用メモリ | 235,868 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 12:15:44 |
合計ジャッジ時間 | 11,927 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
package mainimport ("fmt""time")func main() {t := time.Date(2015, 1, 1, 0, 0, 0, 0, time.UTC)count := 0for t.Year() < 2016 {m := int(t.Month())d := t.Day()d1 := d / 10d2 := d % 10if m == d1+d2 {count++}t = t.AddDate(0, 0, 1)}fmt.Print(count)}