File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public class Code04_Bridge1 {
4343 public static boolean [] change = new boolean [MAXM ];
4444 public static int [] curw = new int [MAXM ];
4545
46- // edge是所有操作的编号
46+ // operate是所有操作的编号
4747 // query是当前操作块查询操作的编号
4848 // update是当前操作块修改操作的编号
4949 public static int [] operate = new int [MAXQ ];
@@ -236,7 +236,7 @@ public static void main(String[] args) throws IOException {
236236 compute (l , r );
237237 }
238238 for (int i = 1 ; i <= q ; i ++) {
239- if (ans [i ] > 0 ) {
239+ if (op [i ] == 2 ) {
240240 out .println (ans [i ]);
241241 }
242242 }
Original file line number Diff line number Diff line change 182182// compute(l, r);
183183// }
184184// for (int i = 1; i <= q; i++) {
185- // if (ans [i]) {
185+ // if (op [i] == 2 ) {
186186// cout << ans[i] << '\n';
187187// }
188188// }
You can’t perform that action at this time.
0 commit comments