Friday, March 14, 2014

Codeforces Beta Round #4 (Div. 2 Only), problem: (A) Watermelon solution

Codeforces Beta Round #4 (Div. 2 Only), problem: (A) Watermelon: http://codeforces.com/problemset/problem/4/A

Codeforces Beta Round #4 (Div. 2 Only), problem: (A) Watermelon solution: http://ideone.com/AYirVp

#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    int w;
    scanf("%d", &w);
    if(w%2==0 && w>3) printf("YES\n");
    else printf("NO\n");
    return 0;
}

No comments:

Post a Comment