1630 SCU's Bath House
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
Everyone in Sichuan University must done one thing, that is going to the famous bathhouse and bathing. If you have not done it before, you must be a superman. And Dahema will not play with you.
Everyone knows that if you bath no more than 10 minutes, it costs only 1 RMB. If you bath exceed 10 minutes, just 0.15 RMB per minutes for the excess minutes.
If you bath for N minutes, how much you must pay for it?
Input
The first line of input is the number of test case. For each test case: there is only one line contains only one integer N(1<=N<=60)
Output
For each test case output the answer on a single line. The result should be rounded to two decimal places.
Sample
Input
3
10
11
1
Output
1.00
1.15
1.00
Source: 2010亚洲预赛四川赛区热身题
Comments