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

公式水过啊 几何推导 注意sin里面是PI/m 例如sin(π/3)的感觉

Posted by zhao20111438 at 2013-04-09 12:43:58 on Problem 1799

#include<iostream>//我自己推出来的哦
#include<stdio.h>
#include<cmath>
using namespace std;
#define PI 3.1415926535
int main()
{
	int n,m,count=0;
	double r1,r2;
	cin>>n;
	while(n--)
	{
		count++;
		cin>>r1>>m;	
		r2=r1*sin(PI/m)/(1.0+sin(PI/m));
		printf("Scenario #%d:\n%.3f\n\n",count,r2);
		
	}
	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