摘要: E - Count Descendants E - Count Descendants 第一种做法: 对于每个节点来说,子节点一定在dfs序进出之间,先处理出深度,然后根据dfs序在深度中二分查找 // #pragma GCC optimize("Ofast","unroll-loops","omit-frame-pointer","inli 阅读全文
posted @ 2021-05-29 11:09 spnooyseed 阅读(111) 评论(0) 推荐(0) 编辑