随笔分类 -  启发式合并

摘要:https://codeforces.com/contest/1899/problem/G 首先将将节点重新映射一下 然后就是个启发式合并板题 #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> #includ 阅读全文
posted @ 2023-11-18 23:42 gan_coder 阅读(44) 评论(0) 推荐(0)
摘要:cf1709E. XOR Tree 贪心是显然的,关键是如何合并两棵子树的信息,可以采用启发式合并。 #include<cstdio> #include<algorithm> #include<cstring> #include<cmath> #include<map> #include<vecto 阅读全文
posted @ 2023-11-05 21:00 gan_coder 阅读(39) 评论(0) 推荐(0)