UVA11513 9 Puzzle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2508 [PDF](https://uva.onlinejudge.org/external/115/p11513.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11513/4dc3602346808a4bd34b5c7385d2e46f944fb654.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11513/82ff6b6983cd2f79e2ba21deef78e4e43e1c716e.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11513/946e5311168fce1d655365a429410535f2981b14.png)