摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4325题意: 有n种花每种开放的时间从a到b(a到b的闭区间),问t时刻有多少种花开着(n<=10^6,a<=b<10^9) 1 #include <cstdio> 2 #include <algorithm> 3 #include <iostream> 4 using namespace std; 5 const int Ni = 1000010; 6 struct node { 7 int l,r,sum; 8 }tree[Ni*3]; 9 struc 阅读全文
posted @ 2012-08-01 09:57 qijinbiao1 阅读(192) 评论(0) 推荐(0) 编辑