1440: 归一化

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:18 Solved:9

Description

你得到了一组数据,但是数据不能够很好的进行比对,所以你想到了使用归一化的方法。

假设有一组数据$[a_1,a_2,a_3,...,a_n]$,令$max = max(a_1,a_2,a_3,...,a_n),min = min(a_1,a_2,a_3,...,a_n)$

归一化的规则为:$a_i=\frac{a_i-min}{max-min}*100$,请你求出这一组数据归一化之后的结果,并对每一位数保留两位小数,用空格隔开

保证每一位数均不相等

```c++
cout<<fixed<<setprecision(2)<<x<<" ";//输出x保留两位小数的结果
```
$2\leq n \leq 10^4,1\leq a_i\leq 10^5$

Input

第一行一个正整数n

第二行n个正整数$a_i$

Output

一行,n个实数,每个数保留两位小数,空格隔开

Sample Input Copy

5
1 2 3 4 5

Sample Output Copy

0.00 25.00 50.00 75.00 100.00 

Source/Category