7 条题解

  • 1
    @ 2025-10-18 17:54:36

    #include<bits/stdc++.h> #define int long long using namespace std; int n; main(){ cin>>n; if(n%2==0&&n!=2)cout<<"YES"; else cout<<"NO"; return 0;

      • }
    • 1
      @ 2025-7-1 15:13:32
      #include<bits/stdc++.h>
      using namespace std;
      int n;
      int main(){
      	cin>>n;
      	if(n%2==0&&n!=2)cout<<"YES";
      	else cout<<"NO"; 
      	return 0;
      }
      
      • 1
        @ 2022-10-25 18:28:25
        
        #include<bits/stdc++.h>
        using namespace std;
        int n;
        int main()
        {
            cin>>n;
            if(n%2==0&&n>3)
            {
                cout<<"YES"<<endl;
            }
            else
            {
                cout<<"NO"<<endl;
            }
            return 0;
        }
        

        极度简单,同学们仔细算一算,只要是偶数分两部分就是偶数,但2分出0和2,题目中说不能为0,所所以必须特判。

        • 0
          @ 2025-8-3 21:52:03
          #include<bits/stdc++.h>
          using namespace std;
          int x;
          int main(){
          	cin>>x;
          	if(x%2==0&&x!=2) cout<<"YES";
          	else cout<<"NO";
          	return 0;
          }
          
          • 0
            @ 2022-7-29 20:04:27
            #include<bits/stdc++.h>
            using namespace std;
            long n;
            int main()
            {
            	cin>>n;
            	if(n%2||n<5)cout<<"NO";
            	else cout<<"YES";
            	return 0;
            }
            • -2
              @ 2022-6-11 15:47:01

              #include<bits/stdc++.h> using namespace std; long long n; int main() { cin>>n; if(n2)cout<<"NO"; else if(n%20)cout<<"YES"; else cout<<"NO"; return 0; }

              • -3
                @ 2025-7-11 10:44:06
                #include<bits/stdc++.h>
                using namespace std;
                long long n;
                int main(){
                cin>>n;
                if(n%2==0&&n>4) cout<<"YES";
                else cout<<"NO";
                return 0;
                }
                
                • 1

                信息

                ID
                29
                时间
                1000ms
                内存
                256MiB
                难度
                2
                标签
                (无)
                递交数
                83
                已通过
                52
                上传者