按照 CF5E 的做法 g 了一大半 不是很理解为什么多数了

P1823 [COI2007] Patrik 音乐会的等待

@[Patricky](/user/411103) !!top 是什么...
by JackMerryYoung @ 2022-08-19 08:05:50


@[JackMerryYoung](/user/224558) 是否为 0,等价于 bool(top)
by Patricky @ 2022-08-19 08:37:11


@[Patricky](/user/411103) 改成 !top
by JackMerryYoung @ 2022-08-19 08:41:46


@[JackMerryYoung](/user/224558) 那样的话... 样例都过不了啊 qwq 这句话是想着如果没有成为什么「最近更大的数(NGE)」的话(栈空)也一定有相邻元素满足条件... ![](https://啧.tk/kel)
by Patricky @ 2022-08-19 08:46:00


@[Patricky](/user/411103) !!top = top...
by JackMerryYoung @ 2022-08-19 08:46:41


@[JackMerryYoung](/user/224558) qwq 可能我没有说明白吗.. 就其实和 ```cpp if ( top != 0 ) { ans += 1; } ``` 一样的。 wtcl ![](https://啧.tk/kk)
by Patricky @ 2022-08-19 08:52:40


@[JackMerryYoung](/user/224558) 谢谢你的回答了 qwq 待会我再拍一拍
by Patricky @ 2022-08-19 08:53:53


|