版本比较
Kethle_Vin
个人介绍
增加 6 行删除 2 行
1234567813 行未改动222324252425262728293031323334mxoj:mxs0128:GMQ0128
https://gpt.lovetoome.com/
https://www.luogu.com.cn/discuss/1379038
1116
13 行未改动https://www.luogu.com.cn/discuss/1420473
https://www.luogu.com.cn/discuss/1422588
本题双倍经验为黑题,两题区别仅在于此题把 $O(N^2)$ 的放过去了,但明显难度在于思考和观察性质,$O(N^2)$ 和$O(N \log N)$ 的区别也仅仅只是实现的精细程度,换句话说,这一题 $O(N^2)$ 的做法在不改变思路和做法的情况下精细实现,只枚举有用状态就能写成 $O(N \log N)$,故两题无太大的本质区别,建议升黑。
https://www.luogu.com.cn/discuss/1433657
https://www.luogu.com.cn/discuss/1425474
https://www.weibo.com/5514620865/Ly2EcvsXv
https://www.luogu.com.cn/discuss/1435751
https://www.luogu.com.cn/problem/P2839