| ||||||||||
| 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 <iostream.h>
#include<math.h>
#include<stdio.h>
double pi=3.141592;
void main()
{
int t;cin>>t;
double R;int n;
for (int i=1;i<=t;i++){
cin>>R>>n;
cout<<"Scenario #"<<i<<":"<<endl;
printf("%.3f\n\n",( R * sin ( pi / n ) ) / ( 1 + sin ( pi / n ) ) );
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator