这是魔法??

P1117 [NOI2016] 优秀的拆分

我真的想不明白这句话有啥用。。。 ```cpp for(int i = 1;i <= n;i++) rnk[i]; ```
by 81179332_ @ 2020-02-21 14:46:06


qaq
by qyzyqljzzzy @ 2020-02-21 14:47:51


那必是你 UB 了
by 小粉兔 @ 2020-02-21 14:47:53


神佬嘲讽黑题
by Push_Y @ 2020-02-21 14:48:08


去 CF 检测一下 UB 吧
by 小粉兔 @ 2020-02-21 14:48:08


@[小粉兔](/user/10703) @[我谔谔](/user/127284) 好的我检查一下。。
by 81179332_ @ 2020-02-21 14:55:56


@[81179332_](/user/53994) 关于 $\operatorname{UB}$ ,您应该了解……[这个](https://studyingfather.blog.luogu.org/undefined-behavior)
by Aw顿顿 @ 2020-02-21 14:56:14


@[81179332_](/user/53994) `get_st` 里面没加括号: ` st[i][j] = min(st[i][j - 1],st[i + (1 << j - 1)][j - 1]);` 改为: ` st[i][j] = min(st[i][j - 1],st[i + ((1 << j) - 1)][j - 1]);`
by ieeqwq @ 2020-02-21 14:57:16


@[我谔谔](/user/127284) 嗯?不是`st[i][j] = min(st[i][j - 1],st[i + (1 << (j - 1))][j - 1]);`
by 81179332_ @ 2020-02-21 15:28:23


膜兔兔
by chenpengda @ 2020-02-21 15:34:22


| 下一页