[Solution] Passes for Fair CodeChef Solution
There is a fair going on in Chefland. Chef wants to visit the fair along with his friends. Chef manages to collect passes for the fair. Will Chef be able to enter the fair with all his friends?
A person can enter the fair using one pass, and each pass can be used by only one person.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of a single line containing two space-separated integers .
Output Format
For each test case, print on a new line YES
if Chef will be able to enter the fair with all his friends
Passes for Fair CodeChef Solution
Fill Candies CodeChef Solution
Make Palindrome 2 CodeChef Solution
Fill The Grid CodeChef Solution
Positive array CodeChef Solution
Strict Permutation CodeChef Solution
and NO
otherwise.
You may print each character of the string in either uppercase or lowercase (for example, the strings yEs
, yes
, Yes
, and YES
will all be treated as identical).
No comments:
Post a Comment