摘要: 线段树优化建图 用途:处理区间连边 做法:建两颗线段树,一颗处理区间的入边,另一颗处理出边(如果用一颗线段树的话,边权就都为0了) 例题: Legacy 板子题,直接看代码 点此查看代码 #include<bits/stdc++.h> #include<bits/extc++.h> // using 阅读全文
posted @ 2024-07-19 19:57 CuFeO4 阅读(6) 评论(0) 推荐(1) 编辑
摘要: 赛时rank 14 T1 0,T2 0,T3 100,T4 0 T1大模拟出题人_______ T1 Start 大模拟,注意细节。 点此查看代码 #include<bits/stdc++.h> using namespace std; #ifdef LOCAL FILE *InFile = fre 阅读全文
posted @ 2024-07-19 07:46 CuFeO4 阅读(9) 评论(0) 推荐(2) 编辑