UVA10448 Unique World

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1389 [PDF](https://uva.onlinejudge.org/external/104/p10448.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10448/a2f7b4d63d0b9e1b15ffccfa8aac338b9b172408.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10448/79768908132b8a841259d956e92c1fd29831c364.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10448/1154e34a3578198847c515c766356225c7e511fc.png)