UVA12477 Good Measures of Dispersion

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3921 [PDF](https://uva.onlinejudge.org/external/124/p12477.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12477/05e0040d47b11c278727a3d1e1b3d84c3ee4ee98.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12477/8693b4c898ded4051b4557b0a41a12133cdc95b9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12477/34dac5b86fbd923b48ee30bafe4d2b6e40e09b3f.png)