hiho week 179 register

Ended

Participants:219

Verdict:Accepted
Score:100 / 100
Submitted:2017-12-03 22:34: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
#define VNAME(name) (#name)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 1e4 + 5, Q = 20;
struct job{
    int l, s, e, t, c;
    void read(){
        cin>>l>>s>>e>>t>>c;
    }
}q[Q];
vector<pair<int,int>> g[N];
using pii=pair<int,int>;
priority_queue<pii,vector<pii>,greater<pii>> que;
int dis[Q+1][N];
vector<int> unique_l;
int pos[Q+1];
int dijkstra(int l){
    for(size_t j = 0; j < unique_l.size(); j++)
        if(l==unique_l[j]) return j;
    int i = unique_l.size();
    unique_l.push_back(l);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX