@anonymous/

CalmElatedHorsemouse

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
f=lambda x,y,a=[2,1,-1,-2,-2,-1,1,2]:list((9>x+a[i]>0)&(9>y+a[5-i]>0)for i in range(8)).count(1)

print(f(4,5))
print(f(5,7))
print(f(8,8))
print(f(2,1))