Skip to content

Instantly share code, notes, and snippets.

@Svastikkka
Created August 20, 2020 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Svastikkka/e0c94ab44d51a094af4b0b96e360b9c4 to your computer and use it in GitHub Desktop.
Save Svastikkka/e0c94ab44d51a094af4b0b96e360b9c4 to your computer and use it in GitHub Desktop.
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))
@Svastikkka
Copy link
Author

  1. N-Dimensional Distance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment