#K78417. Minimum Wall Painting Time
Minimum Wall Painting Time
Minimum Wall Painting Time
You are given a set of test cases, each containing the time T (in minutes) required for an individual to paint a wall alone. An assistant can help to reduce the time by 30% so that the combined time becomes 0.7T. Your task is to calculate the minimum time required to paint the wall for each test case.
The final answer for each test case is given by the formula:
\(M = \min\Bigl(T, 0.7 \times T\Bigr)\)
Note that in all practical cases, since \(0.7T 0\), the expected answer will be \(0.7T\). However, the problem statement is defined this way to allow flexibility in potential future modifications.
inputFormat
The input is read from standard input (stdin) and is formatted as follows:
- The first line contains an integer N representing the number of test cases.
- The next N lines each contain one integer T, which is the time taken to paint the wall individually.
outputFormat
For each test case, output the minimum time required to paint the wall on a new line. Each output should be printed to standard output (stdout).
## sample3
300
1500
45
210
1050
31.5
</p>