Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- struct Point {
- double x, y;
- };
- double dist(const Point& a, const Point& b) {
- return sqrt(pow(a.x-b.x,2)+pow(a.y-b.y,2));
- }
- // (c) Carlos Sansón (Best pro1 delegate ever for sure) @csansoon
Advertisement
Add Comment
Please, Sign In to add comment