結果

問題 No.188 HAPPY DAY
ユーザー cm-araicm-arai
提出日時 2021-01-01 22:23:41
言語 Go
(1.22.1)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 288 bytes
コンパイル時間 11,803 ms
コンパイル使用メモリ 222,812 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-04-19 20:04:03
合計ジャッジ時間 12,252 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
	"time"
)

func main() {
	t := time.Date(2015, 1, 1, 0, 0, 0, 0, time.UTC)
	count := 0
	for t.Year() < 2016 {
		m := int(t.Month())
		d := t.Day()
		d1 := d / 10
		d2 := d % 10
		if m == d1+d2 {
			count++
		}
		t = t.AddDate(0, 0, 1)
	}
	fmt.Print(count)
}
0