in
8 1 2 2 2 4 1 3 3 1
out
4
解释:
https://guodonglovesoi.blog.luogu.org/post-2948-ti-xie 5
https://www.luogu.com.cn/blog/zkdxlpro/solution-p2948 5
https://www.luogu.com.cn/blog/CreeperLKF/solution-p2948 2
上个帖子算错了,丢人。