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 |
为何呀RE???#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator