Codeforces 4A - Watermelon





Problem Link


Solution in c


#include<stdio.h>

int main()
{
    int w;
    scanf("%d", &w);

    if(w <= 2 || w%2 != 0)
    {
        printf("NO\n");
    }
    else
    {
        printf("YES\n");
    }

    return 0;

}







No comments

Theme images by Jason Morrow. Powered by Blogger.