UVA12527 Different Digits

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=3972 [PDF](https://uva.onlinejudge.org/external/125/p12527.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12527/c568e692ec50e4e2fc2b235a448f175dcea97b08.png)

Input Format

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

Output Format

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