#include<iostream>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
if(n%4 == 0&&n%100 != 0||n%400 == 0)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
return 0;
}是否是闰年
最新推荐文章于 2024-10-05 17:50:03 发布
#include<iostream>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
if(n%4 == 0&&n%100 != 0||n%400 == 0)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;
}
return 0;
}
被折叠的 条评论
为什么被折叠?