#C4085. Remaining Raw Material
Remaining Raw Material
Remaining Raw Material
You are given an integer T representing the number of test cases. For each test case, you are provided with three integers: N (the initial amount of raw material), U (the raw material consumption per production cycle), and C (the number of production cycles).
The task is to compute the remaining raw material after all production cycles. The remaining raw material is computed as follows:
$$\text{remaining} = \max(N - U \times C,\; 0)$$
For each test case, output the remaining raw material on a new line.
inputFormat
The first line of input contains an integer T, the number of test cases. Each of the next T lines contains three space-separated integers: N, U, and C.
outputFormat
For each test case, output a single integer representing the remaining raw material after performing the given production cycles. Each answer should be printed on a new line.
## sample3
100 10 5
50 20 3
200 50 5
50
0
0
</p>