Distance between two points

Using the definition

class Point:
    """attributes: x, y"""

write a function

dist(p, q)

that returns the Euclidean distance between two points pp and qq. For example, the distance between the point (0,0)(0, 0) and the point (30,40)(30, 40) is 50.

Input

The input consists of several pairs of points (two non-negative integer numbers each).

Output

For each two points, print their Euclidean distance.

Problem information

Author: Gabriel Valiente

Generation: 2026-01-25T14:29:23.935Z

© Jutge.org, 2006–2026.
https://jutge.org