Skip to content

Commit 2ba31fd

Browse files
committed
modify code
1 parent 1f31558 commit 2ba31fd

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/class182/Code04_SegmentTreeSplit1.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
// 操作 4 x y : x号集合中,查询第y小的数字,不存在打印-1
1111
// 1 <= 所有数据 <= 2 * 10^5
1212
// 测试链接 : https://www.luogu.com.cn/problem/P5494
13-
// 提交以下的code,提交时请把类名改成"Main"
14-
// java实现的逻辑一定是正确的,但是本题卡常,无法通过所有测试用例
15-
// 想通过用C++实现,本节课Code04_SegmentTreeSplit2文件就是C++的实现
16-
// 两个版本的逻辑完全一样,C++版本可以通过所有测试
13+
// 提交以下的code,提交时请把类名改成"Main",可以通过所有测试用例
1714

1815
import java.io.IOException;
1916
import java.io.InputStream;
@@ -23,7 +20,7 @@
2320
public class Code04_SegmentTreeSplit1 {
2421

2522
public static int MAXN = 200001;
26-
public static int MAXT = MAXN * 40;
23+
public static int MAXT = MAXN * 10;
2724
public static int n, m;
2825

2926
public static int[] root = new int[MAXN];

src/class182/Code04_SegmentTreeSplit2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//using namespace std;
1919
//
2020
//const int MAXN = 200001;
21-
//const int MAXT = MAXN * 40;
21+
//const int MAXT = MAXN * 10;
2222
//int n, m;
2323
//
2424
//int root[MAXN];

0 commit comments

Comments
 (0)