Skip to content

Commit 5fe8f9c

Browse files
committed
modify code
1 parent 5fa7c9a commit 5fe8f9c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/class174/Code04_Bridge1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/class174/Code04_Bridge2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
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
// }

0 commit comments

Comments
 (0)