4 条题解

  • 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,所所以必须特判。

    • 1
      @ 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;
      }
      • 0
        @ 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;
        }
        
        • 0
          @ 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; }

          • 1

          信息

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