摘要:
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)... 阅读全文
摘要:
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=-... 阅读全文
摘要:
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);... 阅读全文
摘要:
宿舍写代码,电脑没电了。。。fuck。。。为何白天也会断电。。。。 阅读全文
摘要:
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(""); ... 阅读全文
摘要:
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) ... 阅读全文
摘要:
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... 阅读全文