import java.math.BigInteger;
import java.util.Scanner;
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
//BigInteger p = new BigInteger("4357186184021382204544");
double x =sc.nextDouble();
//if (x==0.0) break;
double y = sc.nextDouble();
//System.out.println(Math.log10(y));
//System.out.println(x);
System.out.println(Math.round(Math.pow(10.0, (Math.log10(y)/x))));
}
}
}
import java.util.Scanner;
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
//BigInteger p = new BigInteger("4357186184021382204544");
double x =sc.nextDouble();
//if (x==0.0) break;
double y = sc.nextDouble();
//System.out.println(Math.log10(y));
//System.out.println(x);
System.out.println(Math.round(Math.pow(10.0, (Math.log10(y)/x))));
}
}
}
No comments :
Post a Comment