UVA504 Random number

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=445 [PDF](https://uva.onlinejudge.org/external/5/p504.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA504/895fdf5a1ccf7a39045e4ed7bf4c26ec77084e8b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA504/5ab435f228d91f038ea7f73b16f1db749a263df1.png)

Output Format

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