UVA10722 Super Lucky Numbers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=19&page=show_problem&problem=1663 [PDF](https://uva.onlinejudge.org/external/107/p10722.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10722/e7c9d4716d62adf2ecca67ccd89abe1e2d2824a8.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10722/4251cc18fbc99bc539b46cda40ee76e5a7ffefd6.png)