UVA10527 Persistent Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1468 [PDF](https://uva.onlinejudge.org/external/105/p10527.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10527/3bd810ef993cd208c7af197e4ce4fdb9673153d9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10527/0c8b7bbadcee318731e4454d0d1ead79c3b91418.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10527/7b32b86dda6d19713ea90ee82921ccbbf7a73415.png)