113 - Power of Cryptography
純粹數學運算
import java.math.*;
import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner scn=new Scanner(System.in);
while(scn.hasNext()){
Double x=scn.nextDouble(),y=scn.nextDouble();
System.out.printf("%.0f\n",Math.pow(y, 1/x));
}
}
}
/*
題目:Power of Cryptography
作者:1010
時間:西元 2016 年 5 月 */
沒有留言:
張貼留言