#C10494. Total Number of Cars Through an Intersection
Total Number of Cars Through an Intersection
Total Number of Cars Through an Intersection
You are given several test cases. For each test case, you are provided with two integers C and M, where C represents the number of cars entering the intersection from one direction per minute, and M represents the number of minutes. Since an intersection has 4 directions, the total number of cars that pass through the intersection in M minutes is given by the formula:
\(Total\ Cars = 4 \times C \times M\)
Your task is to compute the total number of cars for each test case.
inputFormat
The input is read from stdin and is formatted as follows:
- The first line contains an integer T — the number of test cases.
- Each of the next T lines contains two integers C and M separated by a space.
outputFormat
For each test case, output a single integer on a new line representing the total number of cars that have passed through the intersection after M minutes.
The output is written to stdout.
## sample3
2 3
5 10
7 100
24
200
2800
</p>