Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- typedef long double Real;
- int main() {
- int x1, y1, x2, y2;
- std::cin >> x1 >> y1 >> x2 >> y2;
- Real answ = 0.916297857297023L * Real((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
- std::cout << std::fixed << std::setprecision(6) << answ << std::endl;;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement