mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 15:56:26 +00:00
parent
c00899f864
commit
c1db271f6b
21
AtCoder/ABC246/B/B.cpp
Normal file
21
AtCoder/ABC246/B/B.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
#include <cmath>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user