MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | RE
Submitted:2015-05-09 16:13:17

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<map>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<string>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
typedef unsigned long long LL;
const LL mod=1e9+7;
const double eps=1e-10;
#define N 100005
int T,kase=1,n,s,p[505],a[505],num[505];
struct P
{
    int a,id;
}q[505];
bool cmp(P x,P y)
{
    return x.a<y.a;
}
void dfs(int t,int stp,vector<vector<int> > v)
{
    a[t]=stp;
    int len=v[t].size();
    for(int i=0;i<len;i++)
    {
        if(p[v[t][i]]==-1)
        {//printf("fsd %d %d\n",t,v[t][i]);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX