Jenga Night Codechef Python Problem
Python Problem
Chef hosts a party for his birthday. There are N people at the party. All these N people decide to play Jenga.
There are X Jenga tiles available. In one round, all the players pick 1 tile each and place it in the tower.
The game is valid if:
- All the players have a tile in each round;
- All the tiles are used at the end.
Input Formate
- First line will contain T, the number of test cases. Then the test cases follow
- Each test case contains a single line of input, containing two space-separated integers N and X representing the number of people at the party and the number of available tiles respectively.
Output Formate
For each test case, output in a single line YES if the game is valid, else output 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).
0 Comments