摘要: 貌似人家都是用链表过的,我太弱了,只会用线段树,排最后了,还好1A了。。。。 1 #include 2 #include 3 #include 4 using namespace std; 5 int t,n; 6 int dp[100010]; 7 struct tree{ 8 int l,r; 9 int ans,lans,rans; 10 }a[400010];11 struct point{12 int v,x;13 }p[100010];14 int ans[100010];15 void build(int l,int r,int k){1... 阅读全文
posted @ 2013-11-11 18:21 wonderzy 阅读(198) 评论(0) 推荐(0) 编辑