第30653题 单选题
对无向树中u到v路径上所有点权加1时,下列树上点差分操作正确的是?

设diff为树上点差分数组,lca(u,v)表示节点u和v的最近公共祖先,fa[x]表示节点x的父节点,根节点的父节点对应diff值默认贡献为0。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析