Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <vector>#include <map>#include <algorithm>using namespace std;int n,x, y, l;struct node{int x, y, l;int index;double time;node(int &a, int &b, int &c, int &idx) {x = a; y = b; l = c;index = idx;time = 0.;}bool operator< (const node &no) const{return x > no.x;}};vector<node> vec;map<int, double> mp;bool comp(const node &a, const node &b) {return a.index < b.index;}bool compy(const node &a, const node &b) {return a.y < b.y;}