UVA11308 Bankrupt Baker

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2283 [PDF](https://uva.onlinejudge.org/external/113/p11308.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11308/0b649e83ebbf166dfcfeaf5af47b96e3cbfa4dac.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11308/34d8e6313c82a6c881b190850433ed05f0860e57.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11308/6b1aa2df9d417616781fc228314a5d81ac0caa21.png)