code forces Watermelon

/*

 * Watermelon.cpp

 *

 *  Created on: 2013-10-8

 *      Author: wangzhu

 */



/**

 * 若n是偶数,且大于2,则输出YES,

 * 否则输出NO

 */

#include<cstdio>

#include<iostream>

using namespace std;

int main() {

    int n;

    while (~scanf("%d", &n)) {

        if (n > 2 && (n & 1) == 0) {

            printf("YES\n");

        } else {

            printf("NO\n");

        }

    }

    return 0;

}

 

你可能感兴趣的:(water)