Lang:G++
Edit12345678910111213141516171819202122232425262728293031//// main.cpp// p3//// Created by 默默 on 15-4-2.// Copyright (c) 2015年 默默. All rights reserved.//#include <iostream>#include <algorithm>#include <map>#include <cstdio>#include <cstring>#include <string>#include <set>#include <queue>using namespace std;#define MA 100005#define ll long longstruct Node{int id;ll start;ll value;}node[MA], tn[MA];int cmp(Node a, Node b){return a.start < b.start;}vector<int> edg[MA];int n,ss;