摘要: 经典结论:树的sg值等于子树sg值+1的异或和 \(sg_{fa} \oplus= sg_{son}(son\in fa)\) #include<cstdio> #include<vector> using namespace std; vector<int>e[100005]; int n; in 阅读全文
posted @ 2020-10-09 15:10 INFP 阅读(128) 评论(0) 推荐(0) 编辑