#include <stdio.h>
#include <string>
#include <cstring>
#include <queue>
#include <algorithm>
#include <functional>
#include <vector>
#include <sstream>
#include <iomanip>
#include <math.h>
#include <iostream>
#include <sstream>
#include <time.h>
#include <stack>
#include <set>
#include <map>
#include <time.h>
#include <bitset>
using namespace std;
int main()
{
int cases=0;
double a,b;
char ch[10];
cout<<fixed<<setprecision(10);
while (cin>>a>>ch>>b)
{
cases++;
double temp=sqrt(a*a+b*b);
double temp2=asin(b/temp)+a/temp;
double x=200.0/temp/temp2;
cout<<a*x<<' '<<b*x<<endl;
}
return 0;
}
UVA 11646
最新推荐文章于 2018-08-29 19:46:40 发布