Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
高手帮忙指点下 怎么不对啊 非常感谢~~~~~#include<stdio.h> #include<math.h> int main() { int a,n; long b; double a1,b1,n1; while(scanf("%ld%d",&b,&n)!=-1) { if(n==0&&b==0) break; else { n1=1.0/n; b1=b; a1=pow(b1,n1); a=(int)(a1-0.6); printf("%d\n",a+1); } } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator