結果
問題 | No.188 HAPPY DAY |
ユーザー |
![]() |
提出日時 | 2017-06-29 17:18:43 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 10,346 ms |
コンパイル使用メモリ | 241,884 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 01:49:07 |
合計ジャッジ時間 | 10,753 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
package mainimport "fmt"import "time"func main() {loc, _ := time.LoadLocation("Asia/Tokyo")start := time.Date(2015, 1, 1, 0, 0, 0, 0, loc)end := time.Date(2015, 12, 31, 0, 0, 0, 0, loc)count := 0for d := start; d.Before(end); d = d.AddDate(0, 0, 1) {if int(d.Month()) == d.Day()/10+d.Day()%10 {count = count + 1}}fmt.Println(count)}