摘要: CodeForces - 779F 用到启发式合并,有个很好的知乎的答案,https://www.zhihu.com/question/29663921,dfs子树可以考虑启发式 strlen() 时间很快然而不是o(1),不要偷懒! 树状数组要判0 n=100000 质数个数9592 u[i]!= 阅读全文
posted @ 2017-03-06 22:00 Macaulish 阅读(200) 评论(1) 推荐(0) 编辑