UVA11002 Towards Zero

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1943 [PDF](https://uva.onlinejudge.org/external/110/p11002.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11002/10d490da0c8b09cd0b3ff2860f6eabe45c86a0f3.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11002/4856a7e936de3d27fb32bf98ab5e627e26cc8dc7.png)

Output Format

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