随机数 Randomness

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2424 [PDF](https://uva.onlinejudge.org/external/114/p11429.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11429/9adddf18cfe556796647c3bab7cb9b5642a7750a.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11429/76da2d21aaed446088da98289a0d75f5863bad3f.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11429/7ae4393cc6d17dd9373cf8ad3baa7cc42c4718a4.png)

输入输出样例

输入样例 #1

100 3
1 3 1 3 1 3
2 4
1 4 1 4 1 4 1 4
0 0

输出样例 #1

1.010101
2.000000