Chef and Brain Speed solution codechef
In ChefLand, human brain speed is measured in bits per second (bps). Chef has a threshold limit of XX bits per second above which his calculations are prone to errors. If Chef is currently working at YY bits per second, is he prone to errors?
If Chef is prone to errors print YES
, otherwise print NO
.
Input Format
The only line of input contains two space separated integers XX and YY — the threshold limit and the rate at which Chef is currently working at.
Output Format
Chef and Brain Speed solution codechef
If Chef is prone to errors print YES
, otherwise print NO
.
You may print each character of the string in uppercase or lowercase (for example, the strings yes
, Yes
, yEs
, and YES
will all be treated as identical).
Constraints
Chef and Brain Speed solution codechef
- 1≤X,Y≤1001≤X,Y≤100
Sample Input 1
7 9
Sample Output 1
YES
Explanation
Chef’s current brain speed of 99 bps is greater than the threshold of 77 bps, hence Chef is prone to errors.
Sample Input 2
6 6
Sample Output 2
Chef and Brain Speed solution codechef
NO
Explanation
Chef’s current brain speed of 66 bps is not greater than the threshold of 66 bps, hence Chef is not prone to errors.
SOLUTION
“Click Here“

I am the Founder and the creator of the blog neoideasblog.com where we share latest trivia questions and answers on a daily basis.