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.
9 lines
233 B
9 lines
233 B
from math import sqrt
|
|
def point(x, y):
|
|
distance = 300
|
|
if x<500 and sqrt((x-300)**2+y**2)> distance:
|
|
return 2
|
|
elif x > 500 and sqrt((x - 300)**2+(y + 1000)**2)> distance:
|
|
return 2
|
|
else:
|
|
return 3
|