- 判断闰年
11
- 2023-8-14 11:30:39 @
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a;
if(a%4==0)
{
if(a%100==0)
{
if(a%400==0)
{
cout<<"yes";
return 0;
}
}
else
{
cout<<"yes";
return 0;
}
}
cout<<"no";
return 0;
}
0 comments
No comments so far...
Information
- ID
- 268
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 6
- Tags
- # Submissions
- 164
- Accepted
- 46
- Uploaded By