GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Wednesday 11 May 2022

[ Solution ] Chef gives Party CodeChef Solution | CodeChef Problem Solution 2022

Chef wants to give a burger party to all his N friends i.e. he wants to buy one burger for each of his friends.

The cost of each burger is X rupees while Chef has a total of K rupees.

Solution Click Below:-  CLICK HERE

Determine whether he has enough money to buy a burger for each of his friends or not.

Input Format

  • The first line contains a single integer T - the number of test cases. Then the test cases follow.
  • The first and only line of each test case contains the three integers NX, and K - the number of Chef's friends, the cost of each burger, and the total money Chef has, respectively.

Output Format

For each test case, output YES if the Chef can give a party to all his N friends. Otherwise, output NO.

You may print each character of YES and NO in uppercase or lowercase (for example, yesyEsYes will be considered identical).

Constraints

  • 1T1000
  • 1N,X100

Join Now for Solution:- 

No comments:

Post a Comment