Problem Solving Solutions

NO CODENO CODE
1 min read

I don't have much knowledge about C++ programming right now, but I'm starting my competitive programming (CP) journey with it. Since I have some experience with C, I believe I can handle the transition. Day by day, I’ll keep improving for sure! 🚀

  1. A. Watermelon

     #include <iostream>
     using namespace std;
     int main()
     {
         int x;
         cin >> x;
         if (x % 2 == 0 && x > 2)
             cout << "YES" << endl;
         else
             cout << "NO" << endl;
     }
    
0
Subscribe to my newsletter

Read articles from NO CODE directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

NO CODE
NO CODE