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

Re:truncated是截尾取整?

Posted by team29 at 2006-04-28 22:51:10 on Problem 2819
In Reply To:truncated是截尾取整? Posted by:ahyangyi at 2006-04-28 18:18:24
#include<stdio.h>
#include<math.h>
double  k;
_int64 m;
int main()
{
	scanf("%ld",&m);
	while(m!=0)
		{
		printf("%.14lf\n",floor(pow((m-1)*1.0/m,(m-2)*1.0)*100000000000000)/100000000000000);
		scanf("%ld",&m);
	}
	return 1;
}
----------------------------------------
强烈不明白.为什么不可以?

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