摘要: ###A.Portal ###B.Graph 思路:观察分析得,所求值为异或最小生成树的边权和,利用字典树,把每个数按其bit插入深度为30的字典树中,O(nlogn) const int N=2e5+10; const int inf=0x3f3f3f3f; int n; vector<pair< 阅读全文
posted @ 2020-07-25 18:20 Rynar 阅读(496) 评论(0) 推荐(0)