UVA12107 数字谜 Digit Puzzle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3259 [PDF](https://uva.onlinejudge.org/external/121/p12107.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12107/739e13cfb4c5c59bb6cad144cda9bc8a30833238.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12107/951f2b23667682f65c5b9b458e3202e6b9b36c81.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12107/00903a7167dd41cc46f6ddf45d2246c3da12d495.png)