mirror of
https://github.com/iritmaximus/tira.git
synced 2026-10-12 19:13:47 +03:00
7 lines
121 B
Python
7 lines
121 B
Python
def count(n, k):
|
|
pn = 0
|
|
while 2**pn <= n // 2:
|
|
pn -= 1
|
|
pn -= 1
|
|
bottom_leaves = n + 1 - 2 * 2**pn
|