- 博客(2)
- 收藏
- 关注
原创 完全二叉树的权值
import osimport sysimport math# 请在此输入您的代码n = int(input())l = input().split(' ')tree = []c = int(math.log((n + 1), 2))for i in range(c): tree.append([]) for j in range(2**i): tree[i].append(l[0]) l.pop(0)if len(l) != 0: tree..
2022-01-24 14:24:45
251
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人