UVA10953 Stochastic Digit Generator

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1894 [PDF](https://uva.onlinejudge.org/external/109/p10953.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10953/77b08daf50a9e5f33f94b06e95587f7a547ae256.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10953/db0838bda8d9fef15044f6b0584a8931df50c162.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10953/58091c0281f95e55c3ce174ee984cae2c9793910.png)