#K61747. Calculate Study Units
Calculate Study Units
Calculate Study Units
You are given T test cases. For each test case, the first number is an integer N, representing the number of students. This is followed by 2×N integers. For each student, the first integer denotes the study unit fee per hour and the second integer denotes the number of available hours.
Your task is to calculate the study units covered by each student using the formula \(units = rate \times hours\) and output the result for each test case on a separate line with the results separated by a single space.
inputFormat
The input begins with a single integer T representing the number of test cases. Each test case consists of a line starting with an integer N (the number of students), followed by 2×N integers. For each student the first of the pair indicates the study unit fee per hour and the second indicates the available hours.
outputFormat
For each test case, output a single line containing N space-separated integers. Each integer is the product of the study unit fee per hour and the number of available hours for the corresponding student.
## sample1
3 3 4 2 3 1 5
12 6 5
</p>