摘要: A - Sort Left and Right 答案为 0 即已经排序。 考虑答案为 1 的情况:一定是存在一个 \(p\),使得 \(\min_{i=1}^{p}a_i=p\) 且 \(a_p=p\),这时只要选择 \(p\) 即可。 考虑答案为 2 的情况:如果 \(a_1\neq n\oper 阅读全文
posted @ 2024-08-04 23:52 adam01 阅读(144) 评论(0) 推荐(0)