| ||||||||||
| 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 | |||||||||
c++ ac g++ wa 终于遇上了,附有代码#include<cstdio>
#include<iostream>
#include<cmath>
#define M 3.1415926535897932384626
using namespace std;
int main()
{
// freopen("1.txt","r",stdin);
int cc,k,n;
double d;
scanf("%d",&cc);
for(k=1;k<=cc;k++)
{
scanf("%lf%d",&d,&n);
printf("Scenario #%d:\n%.3lf\n\n",k,d/(1.0+1.0/sin(M/n)));
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator