6638专题

Snowy Smile HDU - 6638(扫描线,线段树区间合并)

There are n pirate chests buried in Byteland, labeled by 1,2,…,n. The i-th chest’s location is (xi,yi), and its value is wi, wi can be negative since the pirate can add some poisonous gases into the c