摘要: 莫队模板题。转移时O(1)维护一下总方案数与相同颜色方案数就可以了。 代码: 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 #include<cmath> 6 using nam 阅读全文
posted @ 2017-02-27 12:55 gjghfd 阅读(158) 评论(0) 推荐(1) 编辑