hiho week 202 register

Ended

Participants:109

Verdict:Accepted
Score:100 / 100
Submitted:2018-05-12 22:43:09

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 <algorithm>
#include <utility>
#include <queue>
#include <vector>
#include <string.h>
using namespace std;
struct Student
{
    int id;
    int arrive_time;
    int office_num;
    int finish_time;
    vector<pair<int, int> > register_offices;
};
struct Event
{
    int student_idx;
    int office;
    int begin;
    int duration;
    Event(int s, int o, int b, int d): student_idx(s), office(o), begin(b), duration(d){}; 
};
Student students[10001];
struct Cmp
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX