Gahee and the Electricity Bill 1
Time limit1sMemory limit512 MB
Given a power draw of a W and a usage time of m minutes per query, compute the bill at 105.6 won per kWh, truncated to an integer.
- Level
Easy2 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
(watt) is the rate at which power is produced or consumed per second. (watt-hour) is the amount of power produced or consumed over one hour. is 1000 times . Working at a rate of for one hour does of work, and working at for one hour does of work. The electricity bill is calculated as follows.
- The rate is 105.6 won per .
- Drop the decimal part of the charge for the power used.
The bill is calculated only from the power used, and other factors are ignored. There are queries. Print the answer to each query.
Input
The first line contains the number of queries .
Each of the next lines contains and , separated by a space. Each line means the following.
Gahee uses a computer that consumes of power for a total of minutes this month. What is the electricity charge for the power the computer used?
Output
Print lines, one answer for each query.
Constraints
- The computer Gahee used consumes the same amount of power every time it runs.