UVA10622 完全P次方数 Perfect P-th Powers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1563 [PDF](https://uva.onlinejudge.org/external/106/p10622.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10622/00fb4206d47c2131472ce9b0b6c43986e659ebf5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10622/5098ffd9d3140b53e9708c23895d20db00d156f9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10622/9d834c5af0c5e6e503ee2dda7dd75f73dabdc80d.png)