package main import . "fmt" import "time" func main() { t,_:=time.Parse("2006-01-02","2015-01-01") h:=0 for i:=0;i<365;i++ { m:=t.Month() d:=t.Day() d=d/10+d%10 if int(m)==d { h++ } t=t.AddDate(0,0,1) } Println(h) }