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???

Posted by xiaolijian at 2010-07-28 20:25:40 on Problem 1799
#include <stdio.h>
#include <math.h>
#define Pi 3.14159265358979323846

int main()
{
	int i=0,j=0,n,m;
	double R,r[1000];
	scanf("%d",&m);
	for(i=0;i<m;i++)
	{
		scanf("%lf %d",&R,&n);
		r[i]=R*sin(Pi/(1.0*n))/(1.0+sin(Pi/(1.0*n)));
	}
	for(i=0;i<m;i++)
	{
		printf("Scenario #%d\n%.3lf\n\n",i+1,r[i]);
	}
 	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