Codechef Problems: AI is Coming (AICOM)

 Problem Statement: 


Solution: 

Given, X : difficulty of the assignment ( 1 <= x <= 100)

to find, whether the AI is capable of solving the assignment. note: AI can solve assignment only if difficulty X <= 60

condition 1 : X <= 60
output : YES

condition 2: otherwise 
output : NO 

Code Solution: 

#include <bits/stdc++.h>

using namespace std;

int main() {
    int x;
    cin >> x;

    if (x <= 60) {
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }

    return 0;
}

Comments