augot.t
2 years ago
1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||
|
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