304 North Cardinal St.
Dorchester Center, MA 02124

# Chef and Brain Speed CodeChef Solution

## Problem – Chef and Brain Speed CodeChef Solution

In ChefLand, human brain speed is measured in bits per second (bps). Chef has a threshold limit of X bits per second above which his calculations are prone to errors. If Chef is currently working at Y 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 X and Y — the threshold limit and the rate at which Chef is currently working at.

#### Output Format

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 yesYesyEs, and YES will all be treated as identical).

#### Constraints

• 1 \leq X, Y \leq 1001≤X,Y≤100

#### Sample 1:

Input: 7 9
Output: YES

#### Explanation:

Chef’s current brain speed of 9 bps is greater than the threshold of 7 bps, hence Chef is prone to errors.

#### Sample 2:

Input: 6 6
Output: NO

#### Explanation:

Chef’s current brain speed of 6 bps is not greater than the threshold of 6 bps, hence Chef is not prone to errors.

#### Sample 3:

Input: 31 53
Output: NO

#### Explanation:

Chef’s current brain speed of 53 bps is greater than the threshold of 31 bps, hence Chef is prone to errors.

#### Sample 4:

Input: 53 8
Output: NO

#### Explanation:

Chef’s current brain speed of 8 bps is not greater than the threshold of 53 bps, hence Chef is not prone to errors.

### Chef and Brain Speed CodeChef Solution in C++17

#include <iostream>
using namespace std;

int main() {
int X,Y;
cin>>X>>Y;
if(Y>X){
cout<<"YES";
}
else{
cout<<"NO";
}
}


### Chef and Brain Speed CodeChef Solution in Python3

x,y=map(int,input().split())
if x>=y:
print("no")
else :
print("yes")

### Chef and Brain Speed CodeChef Solution in Java


import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{

Scanner sc = new Scanner(System.in);
int x= sc.nextInt();
int y=sc.nextInt();

if (y>x){
System.out.println("yes");
}else{
System.out.println("no");
}

}
}


##### Chef and Brain Speed CodeChef Solution Review:

In our experience, we suggest you solve this Chef and Brain Speed CodeChef Solution and gain some new skills from Professionals completely free and we assure you will be worth it.

If you are stuck anywhere between any coding problem, just visit Queslers to get the Chef and Brain Speed CodeChef Solution

Find on CodeChef

##### Conclusion:

I hope this Chef and Brain Speed CodeChef Solution would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

More Coding Solutions >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions