8WA2TLE求助

P1816 忠诚

@[Static_int](/user/731608) 没看懂,讲解一下 ```cpp void init() { for (int i = 1; i <= n; i++) { f[i][i - 1] = ~0u >> 1; for (int j = i; j <= n; j++) f[i][j] = min(f[i][j + ~0], a[j]); } } ```
by LJ07 @ 2022-06-24 20:43:33


@[LJ07](/user/312306) az这就是st表啊(((
by TeraniRetZiger @ 2022-06-24 20:44:21


@[Static_int](/user/731608) 你第二维只开 30 ,然而用到了 n 的规模这么大
by LJ07 @ 2022-06-24 20:45:13


好家伙竟然没看懂
by TeraniRetZiger @ 2022-06-24 20:45:38


~~好家伙不会故意装弱吧。。。。~~ f 第二维你不是只开了 30 这么大,你想想会不会越界呢,然而实际上可能访问 f[不知道什么东西][100000]
by LJ07 @ 2022-06-24 20:48:18


@[Static_int](/user/731608)
by LJ07 @ 2022-06-24 20:48:29


@[LJ07](/user/312306) ~~我还想打个暴力枚举区间最大值装st来着~~
by TeraniRetZiger @ 2022-06-24 20:50:23


@[Static_int](/user/731608) 艹,果然,来自巨佬的戏弄(似乎更想戏弄的是测评姬
by LJ07 @ 2022-06-24 20:51:30


~~待会打正经的~~
by TeraniRetZiger @ 2022-06-24 20:52:11


@[LJ07](/user/312306) [过了](https://www.luogu.com.cn/record/77842671),谢谢大佬qwq
by TeraniRetZiger @ 2022-06-24 21:00:56


|