UVA12666 疯狂的谜题 Killer Puzzle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4404 [PDF](https://uva.onlinejudge.org/external/126/p12666.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12666/43c3b0eecda2787e3b8a280b51d918e905532ecd.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12666/7593920fdf6480dae66d00a0f60f849223710e0d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12666/603ed4fce7f65806026b29207aacea263e0ffee0.png)