摘要: P2146 [NOI2015] 软件包管理器 思路分析 树链剖分板子,每次安装时,将 \(1\) 到 \(x\) 的链变为 \(1\),卸载时,将 \(x\) 的子树变为 \(0\)。 代码 #include<iostream> using namespace std; inline int rea 阅读全文
posted @ 2024-02-17 14:09 bryce_yyds 阅读(16) 评论(0) 推荐(0)