bollet.c
2 years ago
1 changed files with 0 additions and 14 deletions
@ -1,14 +0,0 @@ |
|||
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) |
|||
|
|||
|
Loading…
Reference in new issue