UVA10190 Divide, But Not Quite Conquer!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1131 [PDF](https://uva.onlinejudge.org/external/101/p10190.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10190/4a4d39e838811a9d7b42433676917a10cdd82da0.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10190/206209e5eeac2ea9c3df4309b711043b74ccee27.png)