fork download
  1. import math
  2.  
  3. x1 = float(input())
  4. y1 = float(input())
  5. x2 = float(input())
  6. y2 = float(input())
  7.  
  8. d = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
  9. print(d)
  10.  
Success #stdin #stdout 0.02s 7376KB
stdin
2
1
10
7
stdout
10.0