#C8349. Buying Tea Bags for All Colleagues
Buying Tea Bags for All Colleagues
Buying Tea Bags for All Colleagues
Alice wants to purchase tea bags for each of her colleagues. For each test case, you are given three integers: M (the number of colleagues), Y (the cost per tea bag), and B (the total budget). Your task is to determine whether Alice can buy one tea bag for every colleague.
This can be checked using the inequality: \(M \times Y \leq B\). If the inequality holds, print POSSIBLE
; otherwise, print IMPOSSIBLE
.
inputFormat
The input begins with an integer T denoting the number of test cases. Each of the next T lines contains three space-separated integers: M (number of colleagues), Y (cost per tea bag), and B (total budget).
outputFormat
For each test case, output a single line. If \(M \times Y \leq B\), output POSSIBLE
; otherwise, output IMPOSSIBLE
.
4
6 5 40
6 5 20
8 10 80
10 15 120
POSSIBLE
IMPOSSIBLE
POSSIBLE
IMPOSSIBLE
</p>