PI取3.14159 WA 取3.1415926 AC。。
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <string>
#include <vector>
#include <set>
#include <cctype>
#include <algorithm>
#include <cmath>
#include <deque>
#include <map>
#include <iomanip>
using namespace std;
///
#define INF 0xffffff7
#define maxn 2000
///
double a, b, s, m, n;
double v, alpha;
int main()
{
///
int i, j;
while (1)
{
cin >> a >> b >> s >> m >> n;
if (a + b + s + m + n == 0)
break;
v = sqrt(n * n * b * b + m * m * a * a )/ s;
alpha = atan(n * b / a / m) * 180 / 3.1415926;
cout.setf(ios::fixed);
cout << setprecision(2) << alpha << " " << v << endl;
}
///
return 0;
}