hiho week 185 register

Ended

Participants:167

Verdict:Accepted
Score:100 / 100
Submitted:2018-01-18 10:01: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
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
// #include "stdafx.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <utility>
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <math.h>
#include <string.h>
using namespace std;
const double PI = std::atan(1.0) * 4;
const int MX = 550; 
int shortestLength[MX][MX]; 
int b[MX];
int a[MX]; 
int n, m;
queue<pair<int, int>> q;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX