hiho week 133 register

Ended

Participants:119

Verdict:Accepted
Score:100 / 100
Submitted:2017-01-18 09:21:28

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<cstdio>
#include<iostream>
#include<cstdlib>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<map>
#include<stack>
#include<queue>
#include<set>
#include<vector>
using namespace std;
typedef long long ll;
typedef double db;
const int MAXN=220;
struct Edge
{
    int to,nxt;
}edge[2020];
int head[MAXN],tot;
void addedge(int u,int v)
{
    edge[tot].to=v;edge[tot].nxt=head[u];head[u]=tot++;
}
bool vis[MAXN],ok;
int mk;
void dfs(int x,int pre)
{
    vis[x]=true;
    if((x^mk)==1)
    {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX