#K73232. Complete Chapters

    ID: 33930 Type: Default 1000ms 256MiB

Complete Chapters

Complete Chapters

Rina loves to read, but she only has a limited amount of time. Given the number of chapters she can attempt to read and the details about her reading pace, your task is to compute the number of complete chapters she can finish for each test case.

For each test case, you are given three integers:

  • R: the factor representing her reading session multiplier.
  • C: the number of pages that make up a chapter.
  • P: the number of pages Rina can read per unit session.

The total number of pages Rina can read in a session is given by R \times P. The number of complete chapters she can finish is the integer division of this product by C, which in mathematical notation is:

R×PC\left\lfloor \frac{R \times P}{C} \right\rfloor

Compute and output this value for each test case.

inputFormat

The first line contains an integer T indicating the number of test cases. Each test case is described in a single line containing three space-separated integers R, C, and P.

outputFormat

For each test case, output on a new line a single integer representing the number of complete chapters Rina can read, calculated as:

$$\left\lfloor \frac{R \times P}{C} \right\rfloor $$## sample
2
5 20 120
4 15 60
30
16
$$