0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 10:51:59 +00:00
OI-codes/AtCoder/ABC246/B/B.cpp

22 lines
410 B
C++
Raw Normal View History

2022-06-01 01:45:41 +00:00
#include <iostream>
#include <cmath>
#include <iomanip>
using std::cin;
using std::cout;
const char endl = '\n';
int a, b;
double c;
int main() {
std::ios::sync_with_stdio(false);
cin >> a >> b;
c = std::sqrt(std::pow(a, 2) + std::pow(b, 2));
cout << std::fixed << std::setprecision(12) << 1.0 * a / c << ' ' << std::fixed << std::setprecision(12) << 1.0 * b / c << endl;
return 0;
}