File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 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
1815import java .io .IOException ;
1916import java .io .InputStream ;
2320public 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 ];
Original file line number Diff line number Diff line change 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];
You can’t perform that action at this time.
0 commit comments