2 163 277 43571861840213822045440 0样例输出431234import 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)); } } }
新闻热点
疑难解答