4A Watermelon solution

  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int w;
  6. cin>>w;
  7. if(w!=2 && w%2==0)
  8. cout<<"YES"<<endl;
  9. else cout<<"NO"<<endl;
  10. return 0;
  11. }

Comments

Popular posts from this blog

Codeforce Problem 1703A. YES or YES?

Aptitude test assistant programmer 2018

1041A. Heist solution