Editorial for Inaho IV
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
The solution requires the knowledge of basic geometry. The question is asking for the Euclidean distance between two points in
First of all, it should be known that the formula for calculating Euclidean distance in
For the first subtask, the
For the second and last subtasks, the
The proof is left as an exercise for the reader.
The second subtask was specifically dedicated to those who used 32-bit floating-point variables instead of 64-bit floating-point variables in their calculations.
Time Complexity:
Comments