View Code #include<cstdio>#include<cstring>#include<algorithm>using namespace std;#define lson l,m,rt<<1#define rson m+1,r,rt<<1|1const int maxn = 1000;double sum[maxn<<2];int cover[maxn<<2];double x[maxn];struct seg{ double l,r,h; int flag; seg(){} seg(doub Read More