6 solutions
- 1
Information
- ID
- 536
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 2
- Tags
- # Submissions
- 64
- Accepted
- 38
- Uploaded By
//easy problem
#include<iostream>
using namespace std;
int a;
int main(){
cin>>a;
if(a==1||a==3||a==5) cout<<"NO"<<endl;
else cout<<"YES"<<endl;
return 0;
}
练习c++两年半,志在让老师白吃干饭。 题库里题解不断,看名就知道是我在干。
#include<iostream>
using namespace std;
long long zongtishu=1;
int main(){
int a;
cin>>a;
if(a==1||a==3||a==5) cout<<"NO";
else cout<<"YES";
return 0;
}
用一个巧妙的方法:
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n;
cin>>n;
if(n%2==0)cout<<"YES";
else cout<<"NO";
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int a;
cin>>a;
if(a==1){
cout<<"NO";
return 0;
}
if(a==3){
cout<<"NO";
return 0;
}
if(a==5){
cout<<"NO";
return 0;
}
else{
cout<<"YES";
return 0;
}
}
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.