UVA12399 NumPuzz II

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=278&page=show_problem&problem=3830 [PDF](https://uva.onlinejudge.org/external/123/p12399.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12399/5686c1d011bb2763d9c9ac7adaf24acfcf33e45d.png)

Input Format

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

Output Format

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