You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
261 B
16 lines
261 B
from math import *
|
|
|
|
def points (x,y):
|
|
milieu_de_terrain = 300
|
|
cote_a = x
|
|
cote_b = milieu_de_terrain - y
|
|
|
|
r = (cote_a)**2 + (cote_b)**2
|
|
r = sqrt(r)
|
|
|
|
if r > 250:
|
|
return 3
|
|
else:
|
|
return 2
|
|
|
|
print(points (100,400))
|
|
|