Approach:
We need to check whether IQ N is at least 10 times the difficulty B.
If N >= 10*B print YES otherwise print NO.
Code:
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,b;
cin >> n >> b;
if(n >= 10*b)
cout << "YES";
else
cout << "NO";
}
Time Complexity:
O(1)