2019-11-15: init

This commit is contained in:
2019-11-15 03:29:24 +09:00
commit 9780f1b736
32 changed files with 633 additions and 0 deletions

36
zeta_python/1074.py Normal file
View File

@@ -0,0 +1,36 @@
Size, r, c = map(int, input().split())
count = -1
def Z(X: int, Y: int, size: int):
global count, r, c
if size == 0:
count += 1
if X == c and Y == r:
print(count)
exit()
else:
p = 2**(size-1)
Z(X, Y, size-1)
Z(X+p, Y, size-1)
Z(X, Y+p, size-1)
Z(X+p, Y+p, size-1)
Z(0,0,Size)
'''
Z(0,0,2)
Z(0,0,1)
Z(0,0,0) each count() if size = 0
Z(1,0,0)
Z(0,1,0)
Z(1,1,0)
Z(2,0,1)
Z(2,0,0)
Z(3,0,0)
Z(2,1,0)
Z(3,1,0)
Z(0,2,1)
Z(2,2,1)
Z(1*2^2,0,2)
Z(1*2^2, 0, 1)
Z(2^2 + 1*2^0)
'''