hiho week 25 register

Ended

Participants:726

Verdict:Accepted
Score:100 / 100
Submitted:2014-12-24 19:07:54

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 <cstdio>
#include <queue>
#include <vector>
using namespace std;
const int MAXN=100005;
const int INFINITY=1000000005;
struct Edge
{
    int to,length;
};
int n,m,s,t;
vector<Edge> edge[MAXN];
queue<int> q;
int inQueue[MAXN];
int dist[MAXN];
int main()
{
    scanf("%d%d%d%d",&n,&m,&s,&t);
    
    for (int i = 1; i <= n; i++)
    {
        edge[i].clear();
        inQueue[i]=0;
        dist[i]=INFINITY;
    }
    for (int i = 0; i < m; i++)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX