上一页 1 2 3 4 5 6 ··· 23 下一页
摘要: 算算劳资已经多久没学新算法了,又要重新开始学辣。直接扔板子,跑。。。话说FFT算法导论里讲的真不错,去看下就懂了。 阅读全文
posted @ 2016-07-25 10:04 92度的苍蓝 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 大概介绍两种写矩阵的方法,各有优缺点。 一种是用结构体实现,也许运行起来会比较快? 另外一种是利用vector<>,用vector<vector<> >来定义矩阵的类型,写起来很快? 可以把这个看一下 https://github.com/halfapri/half/tree/master/carb 阅读全文
posted @ 2016-07-20 17:21 92度的苍蓝 阅读(461) 评论(0) 推荐(0) 编辑
摘要: 大冥神的代码,以后能贴的机会估计就更少了。。。。所以本着有就贴的好习惯,= =。。。。直接贴 阅读全文
posted @ 2016-07-17 16:40 92度的苍蓝 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 。。。。。= =。。。。 进入mysql: mysql -uroot ; 创建一个数据库: create database [数据库名字]; (注意最后的分号不能漏) 删除一个数据库:drop database [数据库名字]; 查看已有的数据库:show databases; (查看已存在的表类似 阅读全文
posted @ 2016-06-02 16:07 92度的苍蓝 阅读(582) 评论(1) 推荐(0) 编辑
摘要: 这个成段的编写复杂度很低,不需要加大空间复杂度,便于处理成段加,询问每个位置的值的操作: 阅读全文
posted @ 2016-04-27 14:27 92度的苍蓝 阅读(338) 评论(0) 推荐(0) 编辑
摘要: #include struct Tree { Tree *lc,*rc; int l,r; int v,lazy; Tree(int l=0,int r=0) :l(l),r(r),v(0),lazy(0) {} void build() { if (l == r) return ; int ... 阅读全文
posted @ 2016-01-20 14:14 92度的苍蓝 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #include typedef long long LL;const int MOD = (int)1e9 + 7;LL L,R,G,T;int dp[62 + 1][2][2][2][2];bool vis[62 + 1][2][2][2][2];inline void add(int &a,i... 阅读全文
posted @ 2016-01-18 15:53 92度的苍蓝 阅读(342) 评论(2) 推荐(0) 编辑
摘要: #includeusing namespace std;const int M = 1e5+10 ;const double pi = acos(-1.0) ;int n ;double sx , sy ;//源点double X[M] , Y[M] ;double minn = 1e18 , ma... 阅读全文
posted @ 2016-01-15 21:17 92度的苍蓝 阅读(818) 评论(0) 推荐(1) 编辑
摘要: http://codeforces.com/contest/126/problem/B#includeusing namespace std;const int M = 1e6 + 10 ;char s[M] ;int lens ;bool vis[M] ;int NEXT[M] ;void get... 阅读全文
posted @ 2015-11-22 18:39 92度的苍蓝 阅读(244) 评论(0) 推荐(0) 编辑
摘要: hdu 1465 http://acm.hdu.edu.cn/showproblem.php?pid=1465 UVALive 7040 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page 阅读全文
posted @ 2015-10-04 22:24 92度的苍蓝 阅读(1594) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 23 下一页
http://images.cnblogs.com/cnblogs_com/Running-Time/724426/o_b74124f376fc157f352acc88.jpg