4 条题解

  • 1
    @ 2026-5-31 10:25:33

    #include <bits/stdc++.h>

    using namespace std;

    int main() {

    int n;
    cin >> n;
    if (n % 2 == 0) {
    	int m = n / 2;
    	if (m % 2 == 0) {
    		cout << "YES";
    		return 0;
    	} else {
    		cout << "NO";
    		return 0;
    	}
    } else {
    	cout << "NO";
    	return 0;
    }
    

    }

    • 0
      @ 2026-5-31 10:12:33

      #include

      using namespace std;

      int main() { int n; cin >> n;

      // 判断条件:糖果数量必须大于1且为偶数
      if (n > 1 && n % 2 == 0) {
          cout << "YES" << endl;
      } else {
          cout << "NO" << endl;
      }
      
      return 0;
      

      }

    • -1
      @ 2026-6-3 20:36:26

      #include <bits/stdc++.h>

      using namespace std;

      int main() {

      int n;
      cin >> n;
      if (n % 2 == 0) {
      	int m = n / 2;
      	if (m % 2 == 0) {
      		cout << "YES";
      		return 0;
      	} else {
      		cout << "NO";
      		return 0;
      	}
      } else {
      	cout << "NO";
      	return 0;
      }
      

      }

    • -1
      @ 2026-5-27 21:06:47

      我怎么做都是90分,你们能做100吗?

      • @ 2026-5-28 22:44:56

        #include using namespace std;

        int main() { int n; cin >> n; if (n >= 4 && n % 2 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }

      • @ 2026-5-30 21:22:51

        我也是

      • @ 2026-8-20 17:06:31

        不是怎么我的所有评论都都有2个差评啊!

      • @ 2026-9-2 20:55:39

        @ 😘

    • 1

    信息

    ID
    30937
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    (无)
    递交数
    151
    已通过
    40
    上传者