#include<bits/stdc++.h>
using namespace std;
int main()
{
for(int year = 2000;year <= 2000;year++)
for(int month = 1;month<=12;month++)
for(int day = 1;day <= 31;day ++)
{
if(month == 1 ||month == 3||month == 5 ||month == 7 ||month == 8|| month == 10||month == 12)
else
{
if((year%4 == 0 && year % 100 != 0) || year % 400 == 0)
{
if(day>29)break;
}
else
{
if(day>28) break;
}
}
else
{
if(day > 30)break;
}
}
return 0;
}
日期问题万能模板
最新推荐文章于 2024-11-15 21:44:47 发布