0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 12:51:58 +00:00
OI-codes/Luogu/problem/P5671/P5671.cpp
2021-07-08 19:51:09 +08:00

26 lines
602 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
long double x, m, n;
set<long double> ans[2];
cin >> x >> m >> n;
ans[0].insert(x / 2);
ans[0].insert(x);
ans[0].insert(180 - x * 2);
ans[0].insert((180 - x) / 2);
for (auto i : ans[0]) {
if (i <= 0 || i > 180) continue;
cout << i << ' ';
}
cout << endl;
if (n != m) ans[1].insert(sqrt(pow(n, 2) - pow(m, 2)));
ans[1].insert(sqrt(pow(n, 2) + pow(m, 2)));
for (auto i : ans[1]) {
cout << fixed << setprecision(5) << i << ' ';
}
cout << endl;
return 0;
}