hiho week 50 register

Ended

Participants:436

Verdict:Accepted
Score:100 / 100
Submitted:2015-06-19 10:23:11

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<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cstring>
#include<queue>
using namespace std;
const int N =1001;
int M[N][N];
int PathSize = 0;
//
int *Path;
void DFS(int u)
{
    for(int i=1;i<=N;i++)
    {
        if(M[u][i] ) 
        {
            M[u][i]--;
            M[i][u]--;
            DFS(i);
        }
    }
        PathSize+= 1;
        Path[PathSize]=u;
}
int main()
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX