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

请大牛帮我找找错!!我两次Wrong Answer了!!!谢谢!!!

Posted by 2006011320 at 2007-02-21 20:58:31 on Problem 1799
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
	double R[1000],r; int n[1000],i;
	const double pi=3.14159265358979323846264338327950288;
       int N;
	cin>>N;
	for(i=1;i<=N;i++)cin>>R[i]>>n[i];
	for(i=1;i<=N;i++)
	{
		r=(1-1/(1+sin(pi/n[i])))*R[i];
        cout<<"Scenario #"<<i<<":"<<endl;
		cout<<setiosflags(ios::fixed)<<setprecision(3);
		cout<<r<<endl;
		cout<<endl;
	}
	return 1;
}

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