思路与参考代码

austin2010 2023-01-13 19:35:34 16 返回题目

众所周知

符合这个条件的数

就是大于2的偶数[doge]

#include <bits/stdc++.h>

using namespace std;

int main() {

int n;

cin >> n;

if (n == 2 || n % 2 == 1) {

    cout << "NO, you can't divide the watermelon into two even parts.";

} else {

    cout << "YES, you can divide the watermelon into two even parts.";

}

return 0;

}

{{ vote && vote.total.up }}