Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
LinconRozendo authored Sep 7, 2020
1 parent faa1c78 commit e31e2be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
12 changes: 3 additions & 9 deletions 1014.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#include<stdio.h>
import math

x = input().split()
y = input().split()

x1, y1 = float(x[0]), float(x[1])
x2, y2 = float(y[0]), float(y[1])

print('%.4f' %(math.sqrt(((x2 - x1) ** 2) + ((y2 - y1) ** 2))))

x = int(input())
y = float(input())

print('%.3f km/l' %(x / y))
12 changes: 12 additions & 0 deletions 1015.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include<stdio.h>
import math

x = input().split()
y = input().split()

x1, y1 = float(x[0]), float(x[1])
x2, y2 = float(y[0]), float(y[1])

print('%.4f' %(math.sqrt(((x2 - x1) ** 2) + ((y2 - y1) ** 2))))


0 comments on commit e31e2be

Please sign in to comment.