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

Re:想知道这题这么做的~~~ 麻烦ac了的人说说

Posted by TSERROF at 2012-11-27 20:06:22 on Problem 2641
In Reply To:Re:想知道这题这么做的~~~ 麻烦ac了的人说说 Posted by:980616701 at 2009-04-09 20:28:08
#include<iostream>
#include <cmath>
using namespace std;
int main()
{
	double a,b,s,m,n;
	cout.setf(ios::fixed);
	cout.precision(2);
	while(cin>>a>>b>>s>>m>>n && (a || b || s ||m || n))	cout<<atan(b*n/(a*m))*360/(2*3.141592657)<<" "<<sqrt(a*a*m*m/(s*s)+b*b*n*n/(s*s))<<endl;
	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