#C1611. Days Until Supply Runs Out

    ID: 44836 Type: Default 1000ms 256MiB

Days Until Supply Runs Out

Days Until Supply Runs Out

You are given a set of test cases. For each test case you are provided with two integers \(Q\) and \(U\), where \(Q\) represents the available quantity of supplies and \(U\) represents the daily usage rate. The task is to determine the number of full days the supplies will last. In mathematical terms, if \(Q > 0\), the number of days is given by \(\left\lfloor \frac{Q}{U} \right\rfloor\), and if \(Q \leq 0\) then the output is 0.

Note that when \(Q < U\), the integer division yields 0, which is the correct answer. The problem requires processing multiple test cases from standard input and printing the result for each test case on a new line.

inputFormat

The first line of input contains a single integer (T) representing the number of test cases. Each of the following (T) lines contains two space-separated integers (Q) and (U) where (Q) is the quantity of supplies, and (U) is the usage rate per day.

outputFormat

For each test case, print a single integer on a new line representing the number of days until the supplies run out.## sample

4
15 3
20 4
10 10
5 7
5

5 1 0

</p>