6 solutions

  • 1
    @ 2024-1-27 11:40:37
    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
     int n;
     cin>>n;
     if(n%2==0)cout<<"YES";
     else cout<<"NO";
     return 0;
    }
    
    • 0
      @ 2024-1-27 11:40:14

      #include #include using namespace std; int main() { int n; cin>>n; if(n%2==0)cout<<"YES"; else cout<<"NO"; return 0; }

      • -1
        @ 2023-9-17 10:43:44
        //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;
        }
        
        • -1
          @ 2023-7-15 17:48:06

          练习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;
          }
          
          • -3
            @ 2023-10-29 14:42:57

            用一个巧妙的方法:

            #include<iostream>
            #include<cmath>
            using namespace std;
            int main()
            {
             int n;
             cin>>n;
             if(n%2==0)cout<<"YES";
             else cout<<"NO";
             return 0;
            }
            
            • -3
              @ 2023-9-18 23:48:00
              #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;
              	}
              }
              
              • 1

              Information

              ID
              536
              Time
              1000ms
              Memory
              256MiB
              Difficulty
              2
              Tags
              # Submissions
              64
              Accepted
              38
              Uploaded By