if(year>1969&&year<1e4&&month>0&&month<13&&day>0&&day<=days_month[month-1]+isLeapYear(year))printf("有効な日付です");