上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 权值线段树。。。。各种脑残错误 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define l(a) ((a)>1); 45 } 46 void build(int a,... 阅读全文
posted @ 2015-07-22 18:58 ChenThree 阅读(165) 评论(0) 推荐(0) 编辑
摘要: n=10。。。暴力 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define clr(a,x) memset(a,x,sizeof(a)) 9 #define rep(i,l,r) f... 阅读全文
posted @ 2015-07-22 12:29 ChenThree 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 数学题 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define clr(a,x) memset(a,x,sizeof(a)) 9 #define rep(i,l,r) for(int... 阅读全文
posted @ 2015-07-22 12:18 ChenThree 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 忘记优先队列初始是大根堆了。。。。调了半天。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #define clr(a,... 阅读全文
posted @ 2015-07-21 13:11 ChenThree 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 接下来几天都不在家然而电脑是会带走的。。。所以敲代码应该不会受太大影响。。。然而我的作业。。。呵呵。。。 阅读全文
posted @ 2015-07-21 11:30 ChenThree 阅读(110) 评论(1) 推荐(0) 编辑
摘要: 玩了一天游戏。。。 阅读全文
posted @ 2015-07-21 11:29 ChenThree 阅读(80) 评论(2) 推荐(0) 编辑
摘要: 线段树区间开方。。。直接暴力改到叶子。。一开始数组开小RE。。。#include#include#include#include#include#include#include#define l(a) (((a)>1; build(l(a),l,mid); build(r(a),mid+... 阅读全文
posted @ 2015-07-21 11:28 ChenThree 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 斜率优化。。。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define clr(a,x) memset(a,x,sizeof(a)) 9 #define rep(i,l,r) for... 阅读全文
posted @ 2015-07-19 22:51 ChenThree 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 最近抓紧orzlsj写写dp写了之前一直没写的斜率优化。。然而还不是很懂orzlsjPS:最近老是看错题 阅读全文
posted @ 2015-07-19 22:49 ChenThree 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 这几天心烦意燥。。。。看来要好好调整一下状态 阅读全文
posted @ 2015-07-18 23:15 ChenThree 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 又一道状压dp查了半天错 又被位运算的优先级坑了 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define b(a) (1>1;37 }38 return 1;39 }... 阅读全文
posted @ 2015-07-17 16:28 ChenThree 阅读(106) 评论(0) 推荐(0) 编辑
摘要: t1并查集离散化乱搞(代码丑就不放了)t2树链剖分(不会)t3数论(不会)orzlsj230@HLFTFSFP试题:http://pan.baidu.com/s/1c04j3Qo 阅读全文
posted @ 2015-07-17 14:45 ChenThree 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 第一次写期望dp 略坑 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #define clr(a,x) memset(a,x,sizeof(a)) 9 #define rep(i,l,r)... 阅读全文
posted @ 2015-07-17 12:10 ChenThree 阅读(172) 评论(1) 推荐(0) 编辑
摘要: 这几天连续有事。。。 阅读全文
posted @ 2015-07-15 13:58 ChenThree 阅读(122) 评论(1) 推荐(0) 编辑
摘要: 不难的dp 然而我就是想不出 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define rep(i,l,r) for(int i=l;i<r;i++) 8 #define clr(a,x) memset(a... 阅读全文
posted @ 2015-07-13 14:22 ChenThree 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页