会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
oyzx~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2016年10月1日
Codeforces Round #374 (Div. 2)
摘要: A题和B题是一如既往的签到题。 C题是一道拓扑序dp题,题意是给定一个DAG,问你从1号点走到n号点,在长度不超过T的情况下,要求经过的点数最多,换个思维,设dp[i][j]表示到i号点时经过j个点的最小距离,我们按拓扑序转移即可,最后找到一个最大的x,使得dp[n][x]<=T即可,由于还要输出路
阅读全文
posted @ 2016-10-01 20:02 oyzx~
阅读(219)
评论(0)
推荐(0)
2016年9月24日
Codeforces Round #373 (Div. 2)
摘要: A,B,C傻逼题,就不说了。 E题: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 c
阅读全文
posted @ 2016-09-24 17:47 oyzx~
阅读(180)
评论(0)
推荐(0)
2016年9月16日
bzoj3527: [Zjoi2014]力
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 const int maxn=40000
阅读全文
posted @ 2016-09-16 23:48 oyzx~
阅读(143)
评论(0)
推荐(0)
FFT小总结
摘要: FFT实质上做的是循环卷积,ck=sigam(ai*bj,(i+j)%n=k),其中n是倍长后的长度,所以我们有时候需要的只是普通的卷积,我们就需要把原数组倍长,再用FFT求卷积,由于高位都是0,所以做出来就等价于普通的卷积。
阅读全文
posted @ 2016-09-16 23:39 oyzx~
阅读(157)
评论(0)
推荐(0)
bzoj2194: 快速傅立叶之二
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 const int maxn=40000
阅读全文
posted @ 2016-09-16 23:36 oyzx~
阅读(154)
评论(0)
推荐(0)
bzoj2179: FFT快速傅立叶
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <cmath> 6 using namespace std; 7 const double PI=acos
阅读全文
posted @ 2016-09-16 23:32 oyzx~
阅读(132)
评论(0)
推荐(0)
2016年8月31日
2016.08.30~2017.07.20
摘要: 待更......
阅读全文
posted @ 2016-08-31 17:29 oyzx~
阅读(106)
评论(0)
推荐(0)
2016年8月24日
51nod平均数
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 typedef long long in
阅读全文
posted @ 2016-08-24 00:03 oyzx~
阅读(209)
评论(0)
推荐(0)
2016年8月23日
Educational Codeforces Round 16
摘要: http://blog.csdn.net/liangzhaoyang1/article/details/52289666
阅读全文
posted @ 2016-08-23 22:49 oyzx~
阅读(107)
评论(0)
推荐(0)
51nod比赛
摘要: http://www.cnblogs.com/wzj-is-a-juruo/p/5619901.html
阅读全文
posted @ 2016-08-23 18:20 oyzx~
阅读(108)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告