Created
August 20, 2020 08:08
-
-
Save Svastikkka/e0c94ab44d51a094af4b0b96e360b9c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
t=int(input()) | |
res=0 | |
for i in range(t): | |
p=int(input()) | |
q=int(input()) | |
res=res+abs((p-q)**2) | |
print(math.sqrt(res)) |
Author
Svastikkka
commented
Aug 20, 2020
- N-Dimensional Distance
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment