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

c++ ac g++ wa 终于遇上了,附有代码

Posted by 407811696 at 2011-01-09 00:52:10 on Problem 1799
#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:
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