摘要: 从O(n3)的最普通的方法,用数学数列方法优化到O(n2),最后优化到O(n),终于AC了,最后的这个确实不好想。 O(n3): #include #include using namespace std;int a[102400];int main(){ ios::sync_with... 阅读全文
posted @ 2015-02-19 20:21 Popco 阅读(101) 评论(0) 推荐(0) 编辑