Advertisement
Guest User

101149-K.cpp

a guest
Oct 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4. typedef long double Real;
  5. int main() {
  6.     int x1, y1, x2, y2;
  7.     std::cin >> x1 >> y1 >> x2 >> y2;
  8.     Real answ = 0.916297857297023L * Real((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
  9.     std::cout << std::fixed << std::setprecision(6) << answ << std::endl;;
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement