uvaoj 113

 1 #include<stdio.h>
 2 #include<math.h>
 3 
 4 int main()
 5 {
 6     double n,p ;
 7     while(scanf("%lf%lf",&n,&p ) == 2)
 8         printf("%d\n",(int)(pow(p,1/n)+0.5));
 9     return 0 ;
10 }

 

posted @ 2013-11-12 20:48  shaughn  阅读(114)  评论(0编辑  收藏  举报