hiho week 25 register

Ended

Participants:726

Verdict:Accepted
Score:100 / 100
Submitted:2014-12-25 19:28:53

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 <cstring>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <cctype>
using namespace std;
typedef long long ll;
const int INF = 1e9 + 100;
const int M = 1e6 + 100;
bool vis[M];
int n,m,s,t,dist[M];
struct Edge
{
    int u,v,d;
    Edge(int u,int v,int d) : u(u),v(v),d(d){}
};
vector<Edge>edge;
vector<int>G[M];
void spfa()
{
    queue<int>mp;
    mp.push(s);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX