File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public class Code04_Bridge1 {
3636 public static int [] nid = new int [MAXQ ];
3737 public static int [] car = new int [MAXQ ];
3838
39- // edge里是所有边的序号
39+ // edge里是所有边的编号
4040 // change表示边的分类
4141 // curw表示边最新的权值
4242 public static int [] edge = new int [MAXM ];
@@ -139,8 +139,8 @@ public static void merge() {
139139 }
140140 }
141141
142- // 当前操作序号 [l..r],之前的所有修改操作都已生效
143- // 所有边的序号edge [1..m],按照边权从大到小排序
142+ // 当前操作编号 [l..r],之前的所有修改操作都已生效
143+ // 所有边的编号edge [1..m],按照边权从大到小排序
144144 // 处理当前操作块的所有操作
145145 public static void compute (int l , int r ) {
146146 build (); // 重建并查集,目前没有任何联通性
@@ -154,7 +154,7 @@ public static void compute(int l, int r) {
154154 query [++cntq ] = operate [i ];
155155 }
156156 }
157- // 查询操作的所有序号 ,根据车重从大到小排序
157+ // 查询操作的所有编号 ,根据车重从大到小排序
158158 // 然后依次处理所有查询
159159 sort (query , car , 1 , cntq );
160160 for (int i = 1 , j = 1 ; i <= cntq ; i ++) {
You can’t perform that action at this time.
0 commit comments