UVA11030 Predator II

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1971 [PDF](https://uva.onlinejudge.org/external/110/p11030.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11030/5e32211ddbf08c396abc24ae44b8e819bbbf7796.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11030/1da43981b4c6d6088a8c28bd79bebe0e69446ff1.png)

Output Format

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