hiho week 81 register

Ended

Participants:133

Verdict:Accepted
Score:100 / 100
Submitted:2016-01-16 22:03:35

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 <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
using namespace std;
const int N = 100000;
const int MOD = 142857;
vector <int> node[N + 1];
queue <int> be;
int in[N + 1];
int countIn[N + 1];
vector <int> num[N + 1];
int ans[N + 1];
int main(){
    //freopen("input.txt", "r", stdin);
    int T;
    scanf("%d", &T);
    while (T--)
    {
        memset(in, 0, sizeof in);
        memset(ans, 0, sizeof ans);
        memset(countIn, 0, sizeof countIn);
        for (int i = 0; i < N + 1; ++i)
        {
            node[i].clear();
            num[i].clear();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX