数据from http://www.accoders.com/problem.php?cid=2338&pid=9
in:
25
15
59 84 39 73 15 84 7 11 63 17 18 49 65 55 19 88 89 68 75 56 69 25 58 89 77
18 32 15 66 2 25 5 5 39 4 7 32 7 8 11 15 0 42 41 31 29 14 32 20 24
1 1 2 2 2 1 1 2 1 2 1 2 1 2 2 1 2 1 1 1 1 1 2 2
true out:
13884
原理未知,我被这玩意卡了。
https://www.luogu.com.cn/blog/user24518/solution-p1717 第二种方法 13854
https://gotta.blog.luogu.org/solution-p1717 RE
https://moonpie.blog.luogu.org/solution-p1717 15931
https://lgcesare.blog.luogu.org/solution-p1717 无提交记录
https://www.luogu.com.cn/blog/user10490/solution-p1717 没AC过,唯一一份代码输出 206
另外感觉这提数据特别水,再卡卡可能再下去几篇。