Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <cstring>#include <vector>#include <algorithm>using namespace std;typedef long long ll;ll min(ll i1, ll i2){return i1 < i2 ? i1 : i2;}ll labs(ll l){return l < 0 ? -l : l;}struct Node{ll y1;ll y2;ll x1;Node(ll yy1, ll yy2, ll xx1):y1(yy1), y2(yy2), x1(xx1){}bool operator < (const Node & n1) const{if(n1.y1 == y1){if(n1.y2 == y2){return x1 < n1.x1;}else{return y2 < n1.y2;