import java.util.Scanner;
public class Main{
public static void main(String[] args){
int n;
double p;
Scanner cin = new Scanner(System.in);
while(true){
n = cin.nextInt();
p = cin.nextDouble();
if(n == 0 && p == 0) break;
System.out.printf("%.0f\n", Math.pow(p, 1.0/n));
}
}
}
796947 | 长木 | 开方数 | ![]() | 111 | 495 | java | 04-04 21:59:16 |