10 条题解
-
6
12317姚玉杨 (12317姚玉杨) LV 7 @ 2021-12-29 19:11:02
#include<iostream> #include<cmath> using namespace std; int main() { int year; cin>>year; if(year%4==0&&year%100!=0||year%400==0) { cout<<"YES"; } else cout<<"NO"; return 0; } -
2@ 2025-06-04 20:59:51
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
if(n%4==0&&n%100!=0||n%400==0)
cout<<"YES";
else
cout<<"NO";
return 0;
} -
2@ 2024-07-16 20:31:40
#include<iostream>
using namespace std;
int main()
{
int x;
cin>>x;
if (x%4==0 && x%100!=0 || x%400==0)
cout<<"YES";
else
cout<<"NO";
return 0;
} -
2@ 2023-05-11 23:48:33
#include<bits/stdc++.h>
using namespace std;
int main()
{
int y;
cin>>y;
if(y%4==0&&y%100!=0||y%400==0)
cout<<"YES";
else
cout<<"NO";
return 0;
} -
1@ 2025-06-15 19:55:27
#include<bits/stdc++.h>
using namespace std;
int main() {
int x;
cin>>x;
if ((x%400==0) || (x%100!=0 && x%4==0))
{
cout<<"YES"<<endl;
}
else
{
cout<<"NO"<<endl;
}
return 0;
} -
1@ 2021-11-04 11:36:15
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int y;
cin>>y;
if(y%400==0||y%4==0&&y%100!=0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
} -
1@ 2021-10-18 09:56:32
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int y;
cin>>y;
if(y%4==0&&y%100!=0||y%400==0)
cout<<"YES"<<endl;
else
cout<<"NO";
return 0;
}
@水宇辰 别抄 -
0@ 2021-12-22 10:40:14
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int x;
cin>>x;
if(x%4==0)
if(x%100==0)
if(x%400==0)
cout<<"YES";
else
cout<<"NO";
else
cout<<"YES";
else
cout<<"NO";return 0;
} -
-1@ 2021-11-16 10:35:57
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int y;
cin>>y;
if(y%4==0&&y%100!=0||y%400==0)
cout<<"YES"<<endl;
else
cout<<"NO";
return 0;
} -
-5@ 2024-07-14 11:48:37
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int year;
cin>>year;
if(year%4==0&&year%100!=0||year%400==0)
{
cout<<"YES";
}
else cout<<"NO";
return 0;
}
- 1
信息
- ID
- 1001
- 难度
- 7
- 分类
- (无)
- 标签
- 递交数
- 1748
- 已通过
- 364
- 通过率
- 21%
- 被复制
- 14
- 上传者