/*
* 解题思路:
* 题意很好理解,就是求开n次方的数,可以利用pow( )函数
*/
#include <math.h> #include <stdio.h> #include <stdlib.h> #define A 120 int main( ) { int n; char s[ A ]; double x , y; while( ~scanf("%d%s",&n,s ) ) { x = atof( s ); printf("%.0lf\n",pow( x , 1.0/n ) ); } return 0; }
原文:http://blog.csdn.net/u011886588/article/details/19029597