4 条题解

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

    }

    • 2
      @ 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;
      

      }

    • 2
      @ 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

        我也是

    • 0
      @ 2026-5-27 21:05:11

      ???

      • 1

      信息

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