1610 绩点计算


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

又到了一年算绩点的时候,xenocide 看着一大串分数,正苦恼应该怎么办。那么,你能编程帮他计算吗?

计算公式是: if(n<60)ans=0; else ans=(n-50)/10;

其中 n为成绩,ans为绩点。

Input

一个数 T (T <= 100) 表示有 T 组数据。 每组数据一个浮点数 n (1 <= n <= 100) 。 (注意,因为平时可能出现99.5这种情况,所以所有n不是整数就是一个整数加0.5)

Output

对于每个数,求出对应绩点,结果四舍五入到小数点后1位。

Sample

Input

4
100
50
60
80

Output

5.0
0.0
1.0
3.0

Source: xenocide


Comments

There are no comments at the moment.