UVA10314 Three Pigs

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1255 [PDF](https://uva.onlinejudge.org/external/103/p10314.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10314/e6b62fbafa723c1afa897cb7650a397322dcbedf.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10314/5b5804e5eb75de849170336df60abd5ae8d79ae3.png)

Output Format

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