UVA308 Tin Cutter

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=244 [PDF](https://uva.onlinejudge.org/external/3/p308.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA308/7f3cbe53b7a9dbf229f2dec0051b1594f47edde7.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA308/48c3afd6ac009363bef12a7cd0ab303acd7696a0.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA308/3728cfc19461dd0ea27b66b1b1adefb5825c5138.png)