蒟蒻求助,全RE

P3246 [HNOI2016] 序列

二分出这一部分 RE: ```cpp for (int j = 1; j <= 20; j++) { for (int i = 1; i <= n; i++) { st[i][j] = ask(st[i][j - 1], st[i + (1 << (j - 1))][j - 1]); } } ```
by __LiChangChao__ @ 2023-10-04 22:13:55


找到死因: ```cpp i + (1 << (j - 1)) ``` $j=20,2^{j-1}>10^{5}$
by __LiChangChao__ @ 2023-10-04 22:22:14


@[fansj](/user/751264)
by __LiChangChao__ @ 2023-10-04 22:22:45


还有,没过样例
by __LiChangChao__ @ 2023-10-04 22:25:49


你什么时候学到NOI了
by _GJM_ @ 2023-10-04 23:04:28


~~进步神速~~
by _GJM_ @ 2023-10-04 23:05:18


@[changwenxuan](/user/794383) 蟹蟹
by fansj @ 2023-10-05 07:52:43


|