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:想知道这题这么做的~~~ 麻烦ac了的人说说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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator