Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

高手帮忙指点下 怎么不对啊 非常感谢~~~~~

Posted by zp6119126 at 2009-05-20 09:30:54 on Problem 3100
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator