bool run(int year)
{
if(year%4==0 && year%100!=0 || year%400 == 0) return true;
else return false;
}
bool is_he(int date) //查询是否是合法日期
{
int year = date /10000, yue = date %10000 /100, ri = date %100;
if(run(year)) monday[2] = 29;
else monday[2] = 28;
if(yue<1 || yue >12) return false;
if(ri <1 || ri > monday[yue] ) return false;
return true;
}