#include <iostream>
#include <cmath>
using namespace std;
class Ponto {
public:
Ponto(int x1, int y1) : x(x1), y(y1) {}
double calcular_distancia(Ponto &outro) {
int a = x - outro.x;
int b = y - outro.y;
return sqrt(a * a + b * b);
}
int inline get_x() {
return x;
}
int inline get_y() {
return y;
}
private:
int x;
int y;
};
int main() {
Ponto p1(2, -3);
Ponto p2(4, 5);
double distancia = p1.calcular_distancia(p2);
cout << distancia;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpjbGFzcyBQb250byB7CnB1YmxpYzoKICAgIFBvbnRvKGludCB4MSwgaW50IHkxKSA6IHgoeDEpLCB5KHkxKSB7fQoKICAgIGRvdWJsZSBjYWxjdWxhcl9kaXN0YW5jaWEoUG9udG8gJm91dHJvKSB7CiAgICAgICAgaW50IGEgPSB4IC0gb3V0cm8ueDsKICAgICAgICBpbnQgYiA9IHkgLSBvdXRyby55OwogICAgICAgIHJldHVybiBzcXJ0KGEgKiBhICsgYiAqIGIpOwogICAgfQoKICAgIGludCBpbmxpbmUgZ2V0X3goKSB7CiAgICAgICAgcmV0dXJuIHg7CiAgICB9CgogICAgaW50IGlubGluZSBnZXRfeSgpIHsKICAgICAgICByZXR1cm4geTsKICAgIH0KcHJpdmF0ZToKICAgIGludCB4OwogICAgaW50IHk7Cn07CgppbnQgbWFpbigpIHsKICAgIFBvbnRvIHAxKDIsIC0zKTsKICAgIFBvbnRvIHAyKDQsIDUpOwogICAgZG91YmxlIGRpc3RhbmNpYSA9IHAxLmNhbGN1bGFyX2Rpc3RhbmNpYShwMik7CiAgICBjb3V0IDw8IGRpc3RhbmNpYTsKfQ==