hiho week 219 register

Ended

Participants:164

Verdict:Accepted
Score:100 / 100
Submitted:2018-09-11 11:39:58

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX