摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=101050#problem/B#include#define REP(i,a,b) for(int i=a;i>T; while(T--){ scanf("%d",&n)... 阅读全文
posted @ 2015-11-30 23:53 __560 阅读(176) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/602/problem/B这道题的两种做法,滑窗+线段树查询区间最值:#include#define REP(i,a,b) for(int i=a;i>1; build(a,l,m,rt>1; int res=-... 阅读全文
posted @ 2015-11-30 23:36 __560 阅读(241) 评论(0) 推荐(0) 编辑
摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=100977#problem/D#include#define REP(i,a,b) for(int i=a;i>n,n){ REP(i,1,n) rec[i].read(i);... 阅读全文
posted @ 2015-11-30 17:30 __560 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 宿舍写代码,电脑没电了。。。fuck。。。为何白天也会断电。。。。 阅读全文
posted @ 2015-11-30 12:23 __560 阅读(193) 评论(0) 推荐(0) 编辑
摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=100977#problem/B#include#define REP(i,a,b) for(int i=a;i>n){ if(casen>1) puts(""); ... 阅读全文
posted @ 2015-11-30 12:18 __560 阅读(165) 评论(0) 推荐(0) 编辑
摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=100977#problem/A#include#define REP(i,a,b) for(int i=a;ia[x]) x=i; if(x!=m){ if(x!=1) ... 阅读全文
posted @ 2015-11-30 12:17 __560 阅读(165) 评论(0) 推荐(0) 编辑
摘要: http://acm.hust.edu.cn/vjudge/contest/view.action?cid=100977#problem/C#include#define REP(i,a,b) for(int i=a;iusing namespace std;typedef long long ll... 阅读全文
posted @ 2015-11-30 07:14 __560 阅读(204) 评论(0) 推荐(0) 编辑