{"raw_statement":[{"iden":"statement","content":"Find the distance between two 2D points. Remember that the distance formula is \n\n$d = sqrt((x_2 -x_1)^2 + (y_2 -y_1)^2)$\n\n_math.sqrt_ will calculate the square root of a number. Also, you also have to add the line _import math_ at the top of the program.\n\nThe first two lines contain the X and Y coordinates of the first point respectively. The second two lines contain the X and Y coordinates of the second point respectively. Each coordinate will have an integer value between -1000 and 1000, inclusive.\n\nA double N representing the distance between the two points\n\n"},{"iden":"input","content":"The first two lines contain the X and Y coordinates of the first point respectively. The second two lines contain the X and Y coordinates of the second point respectively. Each coordinate will have an integer value between -1000 and 1000, inclusive."},{"iden":"output","content":"A double N representing the distance between the two points"},{"iden":"examples","content":"Input1\n1\n2\n2\nOutput1.4142135623730951\nInput1\n1\n1\n1\nOutput0.0\n"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ P_1 = (x_1, y_1) $ and $ P_2 = (x_2, y_2) $ be two points in $ \\mathbb{R}^2 $.\n\n**Constraints**  \n1. $ x_1, y_1, x_2, y_2 \\in \\mathbb{Z} $  \n2. $ -1000 \\le x_1, y_1, x_2, y_2 \\le 1000 $\n\n**Objective**  \nCompute the Euclidean distance:  \n$$\nd = \\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\n$$","simple_statement":"Calculate the distance between two 2D points using the formula: sqrt((x2-x1)² + (y2-y1)²). Read four integers: x1, y1, x2, y2. Print the distance as a decimal.","has_page_source":false}