#C9337. Invitation Affordability Check

    ID: 53419 Type: Default 1000ms 256MiB

Invitation Affordability Check

Invitation Affordability Check

Roshni is planning an event and wishes to send invitations to her friends. However, each invitation comes with a certain cost. Given the number of friends n, the cost per invitation c, and the total money available M, determine if Roshni can afford to send invitations to all her friends. The decision is based on the inequality ( n \times c \leq M ). If the condition is satisfied, output YES, otherwise output NO.

inputFormat

The first line contains an integer T denoting the number of test cases. Each of the following T lines contains three space-separated integers: n (the number of friends), c (the cost per invitation), and M (the total money available).

outputFormat

For each test case, print a single line containing YES if Roshni can afford the invitations, or NO otherwise.## sample

5
10 50 500
20 30 600
15 40 550
5 100 400
10 10 100
YES

YES NO NO YES

</p>