Problem D
Perfect Pth Powers
We say that
Input
Each test case is given by a line of input containing
Output
For each test case, output a line giving the largest integer
Sample Input 1 | Sample Output 1 |
---|---|
17 1073741824 25 0 |
1 30 2 |