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.

14 lines
506 B

def points (x, y):
with open("stats.txt","r") as stats :
for ligne in stats: #pour le 1er demi-cercle de centre(0;300)
if x**2+y**2<=(x-0)**2+(y-300)**2:
print(2)
else:
print(3)
for ligne in stats: #pour le 2ème demi-cercle de centre(1000;300)
if x**2+y**2<=(x-1000)**2+(y-300)**2:
print(2)
else:
print(3)