Increase IQ Codechef Solution
A study has shown that playing a musical instrument helps in increasing one’s IQ by 77 points. Chef knows he can’t beat Einstein in physics, but he wants to try to beat him in an IQ competition.
You know that Einstein had an IQ of 170170, and Chef currently has an IQ of XX.
Determine if, after learning to play a musical instrument, Chef’s IQ will become strictly greater than Einstein’s.
Print “Yes” if it is possible for Chef to beat Einstein, else print “No” (without quotes).
You may print each character of the string in either uppercase or lowercase (for example, the strings
YES will all be treated as identical).
- The first and only line of input will contain a single integer XX, the current IQ of Chef.
- For each testcase, output in a single line “Yes” or “No”
- You may print each character of the string in either uppercase or lowercase (for example, the strings
YESwill all be treated as identical).
Subtask #1 (100 points): Original constraints
Sample Input 1
Sample Output 1
After learning a musical instrument, Chef’s final IQ will be 165+7=172165+7=172. Since 172>170172>170, Chef can beat Einstein.
Sample Input 2
Sample Output 2
After learning a musical instrument, Chef’s final IQ will be 120+7=127120+7=127. Since 127<170127<170, Chef cannot beat Einstein.
Read More Post Here