上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 再练下RMQ。。。多了个二分。。话说为什么我的代码那么慢?(╯‵□′)╯︵┻━┻ 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define inc(i,l,r) for(i=l;i=r;i--) 9 #de... 阅读全文
posted @ 2015-09-25 18:22 onlyRP 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 最近OI颓废了。。。文化课也貌似要颓废了QAQ两者有点难调节啊。。。先刷个水题。。。初看就想用线段树或BIT,其实可以用RMQ那。。。于是代码短了点 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define... 阅读全文
posted @ 2015-09-22 20:31 onlyRP 阅读(155) 评论(0) 推荐(0) 编辑
摘要: OI生涯中最想过的一题=v=splay加上各种各样的操作,样例又不敢拿来调了。。。感觉指针写splay好难调,所以以后写splay都用数组吧(其实是因为黄大神也用数组orz)好像是2小时敲完。。debug了2天TAT一开始把操作6和某提混了。。。然后搞来搞去才发现读入有个毛病0A0再然后又发现一直以... 阅读全文
posted @ 2015-08-27 16:37 onlyRP 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 这题是DP?这DP挺怪。。。反正我想不出。。。 1 #include 2 #define inc(i,l,r) for(i=l;i=r;i--) 4 #define mem(a) memset(a,0,sizeof(a)) 5 #define ll long long 6 #define inf 1... 阅读全文
posted @ 2015-08-22 00:00 onlyRP 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 不看题解绝对想不出二分答案。。。。 1 #include 2 #define inc(i,l,r) for(i=l;i=r;i--) 4 #define inf 1e9 5 #define mem(a) memset(a,0,sizeof(a)) 6 #define ll long long 7 #... 阅读全文
posted @ 2015-08-21 15:53 onlyRP 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 线段树区间开方。。重写一遍就AC了,神马情况。。。。 1 #include 2 #define inc(i,l,r) for(i=l;i=r;i--) 4 #define inf 1e9 5 #define ll long long 6 #define NM 100000+5 7 #define ... 阅读全文
posted @ 2015-08-21 01:06 onlyRP 阅读(162) 评论(0) 推荐(0) 编辑
摘要: codevs月赛#2 T3。。当时的线段树调太久没来得及交QAQ这都能过了我的花神为毛就过不了捏。。。下次去试下区间平方?今天好像过去了耶。。。。作为单身狗只能默默地敲代码泄愤(*  ̄︿ ̄) 阅读全文
posted @ 2015-08-21 00:29 onlyRP 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 一般碰到插入删除就要用平衡树了,今天终于碰到个反例啦 1 #include 2 #define inc(i,l,r) for(i=l;i=r;i--) 4 #define inf 1e9 5 #define mem(a) memset(a,0,sizeof(a)) 6 #define ll long... 阅读全文
posted @ 2015-08-20 23:06 onlyRP 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 貌似和2763没鸟区别? 1 #include 2 #define inc(i,l,r) for(i=l;i=r;i--) 4 #define inf 1e9 5 #define mem(a) memset(a,0,sizeof(a)) 6 #define ll long long 7 #defin... 阅读全文
posted @ 2015-08-20 21:00 onlyRP 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 水DP。。。说好的n 2 #define inc(i,l,r) for(i=l;i=r;i--) 4 #define inf 1e9 5 #define ll long long 6 #define mem(a) memset(a,0,sizeof(a)) 7 #define NM 15000+5 ... 阅读全文
posted @ 2015-08-20 19:32 onlyRP 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 下一页