結果

問題 No.188 HAPPY DAY
ユーザー luvsicluvsic
提出日時 2018-05-12 20:29:39
言語 Go
(1.22.1)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 294 bytes
コンパイル時間 14,586 ms
コンパイル使用メモリ 202,812 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-10 18:31:27
合計ジャッジ時間 13,934 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package main

import (
	"fmt"
	"time"
)

func main() {
	t := time.Date(2015, 1, 1, 0, 0, 0, 0, time.UTC)
	cnt := 0
	for {
		x := t.Month()
		d := t.Day()
		y := d/10 + d%10
		if int(x) == y {
			cnt++
		}
		t = t.Add(time.Hour * 24)

		if t.Year() != 2015 {
			break
		}
	}
	fmt.Println(cnt)
}
0