会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ChenThree
首页
新随笔
联系
管理
上一页
1
···
5
6
7
8
9
10
11
下一页
2015年7月12日
day2
摘要: 依旧废明天开始写题接下来主攻方向还是数据结构(orz神犇lsj)splay、树链剖分、lct、树套树、分块……还有各种usaco。。。感觉暑假会很忙。。
阅读全文
posted @ 2015-07-12 20:11 ChenThree
阅读(112)
评论(1)
推荐(0)
2015年7月11日
暑假day1
摘要: 废了一天。。。
阅读全文
posted @ 2015-07-11 22:08 ChenThree
阅读(121)
评论(1)
推荐(0)
2015年7月10日
bzoj1012线段树
摘要: 线段树维护序列。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define mid(l,r) ((l+r)>>1) 9 #define l(a) (a>1);54 }55 void ...
阅读全文
posted @ 2015-07-10 13:06 ChenThree
阅读(157)
评论(0)
推荐(0)
bzoj1196 mst
摘要: mst跑两次先加k条一级 再跑一次普通mst 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define rep(i,l,r) for(int i=l;i<r;i++) 9 #defin...
阅读全文
posted @ 2015-07-10 10:51 ChenThree
阅读(123)
评论(0)
推荐(0)
bzoj1085骑士精神 A*
摘要: A*搜索 实际上只有空格再走 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define rep(i,l,r) for(int i=l;ians) return 0;34 ret...
阅读全文
posted @ 2015-07-10 09:45 ChenThree
阅读(205)
评论(0)
推荐(0)
2015年7月9日
bzoj4063 水题
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 int main()10 {11 int t;12 cin>>t;13 while(t...
阅读全文
posted @ 2015-07-09 22:17 ChenThree
阅读(293)
评论(0)
推荐(0)
bzoj4057 状压dp不解释
摘要: 数组不能开太大啊啊啊啊啊啊啊啊啊啊啊啊啊啊! 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define rep(i,l,r) for(int i=l;il;i--) 9 #define clr(a,x) m...
阅读全文
posted @ 2015-07-09 21:34 ChenThree
阅读(192)
评论(0)
推荐(0)
bzoj1552&3506 robotic sort
摘要: 这道题提醒了我:1、交之前要删文件2、v不要打成mn3、maintain的位置4、pushdown pushdown pushdown 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define...
阅读全文
posted @ 2015-07-09 17:08 ChenThree
阅读(164)
评论(0)
推荐(0)
2015年7月7日
bzoj1251 序列终结者 splay
摘要: 又写了一次splay 感觉更有体会 速度居然又卡进了首页。。这题要注意初始值应为-inf(mx和v)#include#include#include#include#include#define rep(i,l,r) for(int i=l;is; if(k==1) return -1...
阅读全文
posted @ 2015-07-07 13:32 ChenThree
阅读(152)
评论(0)
推荐(0)
2015年7月6日
bzoj2662 冻结
摘要: 和上一题差不多 不过需要考虑用越多次不一定越好 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define rep(i,l,r) for(int i=l;iq.d;29 }30 ...
阅读全文
posted @ 2015-07-06 19:42 ChenThree
阅读(135)
评论(0)
推荐(0)
2015年7月5日
bzoj2763 最短路
摘要: 速度卡进第一页。。在我看来相当于拆点 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define rep(i,l,r) for(int i=l;iq.d;30 }31 };32 ...
阅读全文
posted @ 2015-07-05 22:05 ChenThree
阅读(136)
评论(0)
推荐(0)
2015年7月3日
bzoj3223 splay
摘要: 区间反转 先发代码 待会再谈感悟 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define rep(i,l,r) for(int i=l;is; 21 if(k==1) return -1; 22 ...
阅读全文
posted @ 2015-07-03 13:48 ChenThree
阅读(109)
评论(0)
推荐(0)
bzoj1008 数学题+快速幂
摘要: 1 #include 2 #include 3 #include 4 #include 5 #define rep(i,l,r) for(int i=l;i>m>>n;14 ll sum=m,ans=m,f=m,k=m-1;15 --n;16 while(n)17 ...
阅读全文
posted @ 2015-07-03 10:45 ChenThree
阅读(111)
评论(0)
推荐(0)
2015年7月2日
bzoj1050 并查集乱搞
摘要: impossible打错。。 1 #include 2 #include 3 #include 4 #include 5 #define rep(i,l,r) for(int i=l;i>n>>m;31 rep(i,0,m) e[i].read();32 int s,t,ansmax...
阅读全文
posted @ 2015-07-02 21:17 ChenThree
阅读(254)
评论(0)
推荐(0)
bzoj1208 宠物收养所treap/splay/set
摘要: 偷懒用set 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define rep(i,l,r) for(int i=l;is;11 const int inf=0x7fffffff;12 ll ans;13 int n,pre,o...
阅读全文
posted @ 2015-07-02 19:33 ChenThree
阅读(190)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
下一页
公告