답안 #235028

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
235028 2020-05-26T18:40:33 Z Andrei_Cotor 철인 이종 경기 (APIO18_duathlon) C++11
100 / 100
154 ms 31864 KB
//gasesc pe pc si o alta tentativa (la care nu i-am dat submit)
//biconexe...
#include<iostream>
#include<vector>
#include<algorithm>
#include<deque>

using namespace std;

vector<int> A[100005];
vector<int> CB[100005],B[100005];
int Lev[100005],Low[100005],Sz[100005];
deque<int> S;
int nrb;

void dfs(int nod, int p)
{
    S.push_back(nod);
    Lev[nod]=1+Lev[p];
    Low[nod]=Lev[nod];
    for(auto other:A[nod])
    {
        if(other==p)
            continue;

        if(!Lev[other])
        {
            dfs(other,nod);
            Low[nod]=min(Low[nod],Low[other]);

            if(Low[other]>=Lev[nod])
            {
                nrb++;
                while(1)
                {
                    int x=S.back();
                    S.pop_back();

                    B[nrb].push_back(x);
                    CB[x].push_back(nrb);

                    if(x==other)
                        break;
                }

                B[nrb].push_back(nod);
                CB[nod].push_back(nrb);
            }
        }
        else
        {
            Low[nod]=min(Low[nod],Lev[other]);
        }
    }
}

bool Viz[100005];
void getSz(int cb, int pnod)
{
    Viz[cb]=1;
    Sz[cb]=B[cb].size();

    for(auto nod:B[cb])
    {
        if(nod==pnod)
            continue;

        for(auto other:CB[nod])
        {
            if(other==cb)
                continue;

            getSz(other,nod);
            Sz[cb]+=(Sz[other]-1);
        }
    }
}

long long rez;
void solve(int cb, int root, int p, int pnod)
{
    Viz[cb]=1;
    long long sum=0;
    for(auto nod:B[cb])
    {
        //in cate moduri pot sa aleg s si f ai daca iau centrul din biconexa va trece drumul de 2 ori prin nod
        if(nod==pnod)
        {
            sum=sum+1LL*(Sz[root]-Sz[cb]+1)*(Sz[root]-Sz[cb]);
            continue;
        }

        int sz=1;
        for(auto other:CB[nod])
        {
            if(other==cb)
                continue;

            solve(other,root,cb,nod);
            sz+=(Sz[other]-1);
        }

        sum=sum+1LL*sz*(sz-1);
    }

    for(auto nod:B[cb]) //aleg punctul c in nod
    {
        if(nod==pnod)
        {
            rez-=(sum-1LL*(Sz[root]-Sz[cb]+1)*(Sz[root]-Sz[cb]));
            continue;
        }
        

        int sz=1;
        for(auto other:CB[nod])
        {
            if(other==cb)
                continue;

            sz+=(Sz[other]-1);
        }

        rez-=(sum-1LL*sz*(sz-1));
    }
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int n,m;
    cin>>n>>m;
    for(int i=1; i<=m; i++)
    {
        int x,y;
        cin>>x>>y;

        A[x].push_back(y);
        A[y].push_back(x);
    }

    for(int i=1; i<=n; i++)
    {
        if(!Lev[i])
            dfs(i,0);
    }

    for(int i=1; i<=nrb; i++)
    {
        if(!Viz[i])
        {
            getSz(i,0);
            rez=rez+1LL*Sz[i]*(Sz[i]-1)*(Sz[i]-2);
        }
    }

    for(int i=1; i<=nrb; i++)
        Viz[i]=0;

    for(int i=1; i<=nrb; i++)
    {
        if(!Viz[i])
            solve(i,i,0,0);
    }

    cout<<rez<<"\n";
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7424 KB Output is correct
2 Correct 8 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 8 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 8 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 8 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 8 ms 7424 KB Output is correct
35 Correct 8 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7424 KB Output is correct
2 Correct 8 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 8 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 8 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 8 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 8 ms 7424 KB Output is correct
35 Correct 8 ms 7424 KB Output is correct
36 Correct 8 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 8 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 8 ms 7424 KB Output is correct
45 Correct 9 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 12 ms 7424 KB Output is correct
48 Correct 8 ms 7424 KB Output is correct
49 Correct 9 ms 7424 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 8 ms 7424 KB Output is correct
54 Correct 8 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 8 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 8 ms 7552 KB Output is correct
60 Correct 8 ms 7424 KB Output is correct
61 Correct 9 ms 7424 KB Output is correct
62 Correct 8 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 8 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 94 ms 23920 KB Output is correct
2 Correct 81 ms 23924 KB Output is correct
3 Correct 101 ms 23924 KB Output is correct
4 Correct 94 ms 22768 KB Output is correct
5 Correct 93 ms 21364 KB Output is correct
6 Correct 111 ms 24824 KB Output is correct
7 Correct 112 ms 20524 KB Output is correct
8 Correct 108 ms 22536 KB Output is correct
9 Correct 117 ms 19320 KB Output is correct
10 Correct 100 ms 19908 KB Output is correct
11 Correct 100 ms 17400 KB Output is correct
12 Correct 85 ms 17144 KB Output is correct
13 Correct 83 ms 17016 KB Output is correct
14 Correct 79 ms 16736 KB Output is correct
15 Correct 59 ms 15736 KB Output is correct
16 Correct 59 ms 15480 KB Output is correct
17 Correct 10 ms 8576 KB Output is correct
18 Correct 10 ms 8576 KB Output is correct
19 Correct 11 ms 8576 KB Output is correct
20 Correct 10 ms 8704 KB Output is correct
21 Correct 10 ms 8576 KB Output is correct
22 Correct 10 ms 8576 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7552 KB Output is correct
2 Correct 9 ms 7552 KB Output is correct
3 Correct 9 ms 7552 KB Output is correct
4 Correct 9 ms 7680 KB Output is correct
5 Correct 9 ms 7552 KB Output is correct
6 Correct 9 ms 7552 KB Output is correct
7 Correct 9 ms 7680 KB Output is correct
8 Correct 10 ms 7680 KB Output is correct
9 Correct 9 ms 7552 KB Output is correct
10 Correct 9 ms 7552 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 9 ms 7496 KB Output is correct
13 Correct 9 ms 7552 KB Output is correct
14 Correct 9 ms 7552 KB Output is correct
15 Correct 9 ms 7552 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 9 ms 7552 KB Output is correct
19 Correct 9 ms 7552 KB Output is correct
20 Correct 9 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 120 ms 19448 KB Output is correct
2 Correct 115 ms 19576 KB Output is correct
3 Correct 113 ms 19576 KB Output is correct
4 Correct 121 ms 19516 KB Output is correct
5 Correct 120 ms 19632 KB Output is correct
6 Correct 121 ms 31864 KB Output is correct
7 Correct 124 ms 23800 KB Output is correct
8 Correct 129 ms 22768 KB Output is correct
9 Correct 120 ms 21624 KB Output is correct
10 Correct 110 ms 19448 KB Output is correct
11 Correct 106 ms 19448 KB Output is correct
12 Correct 115 ms 19576 KB Output is correct
13 Correct 111 ms 19448 KB Output is correct
14 Correct 103 ms 18936 KB Output is correct
15 Correct 114 ms 18168 KB Output is correct
16 Correct 63 ms 15480 KB Output is correct
17 Correct 80 ms 20092 KB Output is correct
18 Correct 91 ms 20080 KB Output is correct
19 Correct 77 ms 20204 KB Output is correct
20 Correct 81 ms 20088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7552 KB Output is correct
2 Correct 9 ms 7552 KB Output is correct
3 Correct 9 ms 7552 KB Output is correct
4 Correct 9 ms 7552 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 9 ms 7552 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 9 ms 7552 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 9 ms 7552 KB Output is correct
13 Correct 9 ms 7552 KB Output is correct
14 Correct 9 ms 7552 KB Output is correct
15 Correct 9 ms 7552 KB Output is correct
16 Correct 9 ms 7552 KB Output is correct
17 Correct 9 ms 7552 KB Output is correct
18 Correct 9 ms 7552 KB Output is correct
19 Correct 9 ms 7552 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 9 ms 7552 KB Output is correct
22 Correct 9 ms 7552 KB Output is correct
23 Correct 9 ms 7552 KB Output is correct
24 Correct 9 ms 7552 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 119 ms 19576 KB Output is correct
2 Correct 125 ms 19448 KB Output is correct
3 Correct 116 ms 19064 KB Output is correct
4 Correct 122 ms 18296 KB Output is correct
5 Correct 103 ms 17400 KB Output is correct
6 Correct 110 ms 17100 KB Output is correct
7 Correct 95 ms 16888 KB Output is correct
8 Correct 90 ms 16632 KB Output is correct
9 Correct 91 ms 16632 KB Output is correct
10 Correct 86 ms 16504 KB Output is correct
11 Correct 93 ms 16540 KB Output is correct
12 Correct 81 ms 16504 KB Output is correct
13 Correct 81 ms 16504 KB Output is correct
14 Correct 82 ms 18296 KB Output is correct
15 Correct 122 ms 23716 KB Output is correct
16 Correct 134 ms 22136 KB Output is correct
17 Correct 127 ms 22524 KB Output is correct
18 Correct 130 ms 21112 KB Output is correct
19 Correct 111 ms 18296 KB Output is correct
20 Correct 121 ms 18392 KB Output is correct
21 Correct 113 ms 18276 KB Output is correct
22 Correct 95 ms 17784 KB Output is correct
23 Correct 89 ms 17144 KB Output is correct
24 Correct 104 ms 19320 KB Output is correct
25 Correct 115 ms 19448 KB Output is correct
26 Correct 106 ms 18804 KB Output is correct
27 Correct 111 ms 18776 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7424 KB Output is correct
2 Correct 8 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 8 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 8 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 8 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 8 ms 7424 KB Output is correct
35 Correct 8 ms 7424 KB Output is correct
36 Correct 8 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 8 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 8 ms 7424 KB Output is correct
45 Correct 9 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 12 ms 7424 KB Output is correct
48 Correct 8 ms 7424 KB Output is correct
49 Correct 9 ms 7424 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 8 ms 7424 KB Output is correct
54 Correct 8 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 8 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 8 ms 7552 KB Output is correct
60 Correct 8 ms 7424 KB Output is correct
61 Correct 9 ms 7424 KB Output is correct
62 Correct 8 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 8 ms 7424 KB Output is correct
66 Correct 8 ms 7424 KB Output is correct
67 Correct 9 ms 7552 KB Output is correct
68 Correct 9 ms 7552 KB Output is correct
69 Correct 9 ms 7552 KB Output is correct
70 Correct 9 ms 7552 KB Output is correct
71 Correct 9 ms 7424 KB Output is correct
72 Correct 9 ms 7552 KB Output is correct
73 Correct 9 ms 7424 KB Output is correct
74 Correct 10 ms 7424 KB Output is correct
75 Correct 9 ms 7424 KB Output is correct
76 Correct 9 ms 7424 KB Output is correct
77 Correct 9 ms 7552 KB Output is correct
78 Correct 10 ms 7552 KB Output is correct
79 Correct 9 ms 7424 KB Output is correct
80 Correct 10 ms 7680 KB Output is correct
81 Correct 9 ms 7424 KB Output is correct
82 Correct 9 ms 7552 KB Output is correct
83 Correct 9 ms 7552 KB Output is correct
84 Correct 9 ms 7552 KB Output is correct
85 Correct 9 ms 7552 KB Output is correct
86 Correct 9 ms 7424 KB Output is correct
87 Correct 9 ms 7456 KB Output is correct
88 Correct 9 ms 7424 KB Output is correct
89 Correct 9 ms 7552 KB Output is correct
90 Correct 9 ms 7424 KB Output is correct
91 Correct 9 ms 7552 KB Output is correct
92 Correct 9 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7424 KB Output is correct
2 Correct 8 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 8 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 8 ms 7424 KB Output is correct
13 Correct 8 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 8 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 8 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 8 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 8 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 8 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 8 ms 7424 KB Output is correct
35 Correct 8 ms 7424 KB Output is correct
36 Correct 8 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 8 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 8 ms 7424 KB Output is correct
45 Correct 9 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 12 ms 7424 KB Output is correct
48 Correct 8 ms 7424 KB Output is correct
49 Correct 9 ms 7424 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 8 ms 7424 KB Output is correct
54 Correct 8 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 8 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 8 ms 7552 KB Output is correct
60 Correct 8 ms 7424 KB Output is correct
61 Correct 9 ms 7424 KB Output is correct
62 Correct 8 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 8 ms 7424 KB Output is correct
66 Correct 94 ms 23920 KB Output is correct
67 Correct 81 ms 23924 KB Output is correct
68 Correct 101 ms 23924 KB Output is correct
69 Correct 94 ms 22768 KB Output is correct
70 Correct 93 ms 21364 KB Output is correct
71 Correct 111 ms 24824 KB Output is correct
72 Correct 112 ms 20524 KB Output is correct
73 Correct 108 ms 22536 KB Output is correct
74 Correct 117 ms 19320 KB Output is correct
75 Correct 100 ms 19908 KB Output is correct
76 Correct 100 ms 17400 KB Output is correct
77 Correct 85 ms 17144 KB Output is correct
78 Correct 83 ms 17016 KB Output is correct
79 Correct 79 ms 16736 KB Output is correct
80 Correct 59 ms 15736 KB Output is correct
81 Correct 59 ms 15480 KB Output is correct
82 Correct 10 ms 8576 KB Output is correct
83 Correct 10 ms 8576 KB Output is correct
84 Correct 11 ms 8576 KB Output is correct
85 Correct 10 ms 8704 KB Output is correct
86 Correct 10 ms 8576 KB Output is correct
87 Correct 10 ms 8576 KB Output is correct
88 Correct 9 ms 7552 KB Output is correct
89 Correct 9 ms 7552 KB Output is correct
90 Correct 9 ms 7552 KB Output is correct
91 Correct 9 ms 7680 KB Output is correct
92 Correct 9 ms 7552 KB Output is correct
93 Correct 9 ms 7552 KB Output is correct
94 Correct 9 ms 7680 KB Output is correct
95 Correct 10 ms 7680 KB Output is correct
96 Correct 9 ms 7552 KB Output is correct
97 Correct 9 ms 7552 KB Output is correct
98 Correct 9 ms 7552 KB Output is correct
99 Correct 9 ms 7496 KB Output is correct
100 Correct 9 ms 7552 KB Output is correct
101 Correct 9 ms 7552 KB Output is correct
102 Correct 9 ms 7552 KB Output is correct
103 Correct 9 ms 7424 KB Output is correct
104 Correct 10 ms 7552 KB Output is correct
105 Correct 9 ms 7552 KB Output is correct
106 Correct 9 ms 7552 KB Output is correct
107 Correct 9 ms 7552 KB Output is correct
108 Correct 120 ms 19448 KB Output is correct
109 Correct 115 ms 19576 KB Output is correct
110 Correct 113 ms 19576 KB Output is correct
111 Correct 121 ms 19516 KB Output is correct
112 Correct 120 ms 19632 KB Output is correct
113 Correct 121 ms 31864 KB Output is correct
114 Correct 124 ms 23800 KB Output is correct
115 Correct 129 ms 22768 KB Output is correct
116 Correct 120 ms 21624 KB Output is correct
117 Correct 110 ms 19448 KB Output is correct
118 Correct 106 ms 19448 KB Output is correct
119 Correct 115 ms 19576 KB Output is correct
120 Correct 111 ms 19448 KB Output is correct
121 Correct 103 ms 18936 KB Output is correct
122 Correct 114 ms 18168 KB Output is correct
123 Correct 63 ms 15480 KB Output is correct
124 Correct 80 ms 20092 KB Output is correct
125 Correct 91 ms 20080 KB Output is correct
126 Correct 77 ms 20204 KB Output is correct
127 Correct 81 ms 20088 KB Output is correct
128 Correct 9 ms 7552 KB Output is correct
129 Correct 9 ms 7552 KB Output is correct
130 Correct 9 ms 7552 KB Output is correct
131 Correct 9 ms 7552 KB Output is correct
132 Correct 9 ms 7424 KB Output is correct
133 Correct 9 ms 7552 KB Output is correct
134 Correct 9 ms 7424 KB Output is correct
135 Correct 9 ms 7552 KB Output is correct
136 Correct 9 ms 7424 KB Output is correct
137 Correct 9 ms 7424 KB Output is correct
138 Correct 9 ms 7552 KB Output is correct
139 Correct 9 ms 7552 KB Output is correct
140 Correct 9 ms 7552 KB Output is correct
141 Correct 9 ms 7552 KB Output is correct
142 Correct 9 ms 7552 KB Output is correct
143 Correct 9 ms 7552 KB Output is correct
144 Correct 9 ms 7552 KB Output is correct
145 Correct 9 ms 7552 KB Output is correct
146 Correct 9 ms 7552 KB Output is correct
147 Correct 9 ms 7424 KB Output is correct
148 Correct 9 ms 7552 KB Output is correct
149 Correct 9 ms 7552 KB Output is correct
150 Correct 9 ms 7552 KB Output is correct
151 Correct 9 ms 7552 KB Output is correct
152 Correct 8 ms 7424 KB Output is correct
153 Correct 8 ms 7424 KB Output is correct
154 Correct 9 ms 7424 KB Output is correct
155 Correct 119 ms 19576 KB Output is correct
156 Correct 125 ms 19448 KB Output is correct
157 Correct 116 ms 19064 KB Output is correct
158 Correct 122 ms 18296 KB Output is correct
159 Correct 103 ms 17400 KB Output is correct
160 Correct 110 ms 17100 KB Output is correct
161 Correct 95 ms 16888 KB Output is correct
162 Correct 90 ms 16632 KB Output is correct
163 Correct 91 ms 16632 KB Output is correct
164 Correct 86 ms 16504 KB Output is correct
165 Correct 93 ms 16540 KB Output is correct
166 Correct 81 ms 16504 KB Output is correct
167 Correct 81 ms 16504 KB Output is correct
168 Correct 82 ms 18296 KB Output is correct
169 Correct 122 ms 23716 KB Output is correct
170 Correct 134 ms 22136 KB Output is correct
171 Correct 127 ms 22524 KB Output is correct
172 Correct 130 ms 21112 KB Output is correct
173 Correct 111 ms 18296 KB Output is correct
174 Correct 121 ms 18392 KB Output is correct
175 Correct 113 ms 18276 KB Output is correct
176 Correct 95 ms 17784 KB Output is correct
177 Correct 89 ms 17144 KB Output is correct
178 Correct 104 ms 19320 KB Output is correct
179 Correct 115 ms 19448 KB Output is correct
180 Correct 106 ms 18804 KB Output is correct
181 Correct 111 ms 18776 KB Output is correct
182 Correct 8 ms 7424 KB Output is correct
183 Correct 9 ms 7552 KB Output is correct
184 Correct 9 ms 7552 KB Output is correct
185 Correct 9 ms 7552 KB Output is correct
186 Correct 9 ms 7552 KB Output is correct
187 Correct 9 ms 7424 KB Output is correct
188 Correct 9 ms 7552 KB Output is correct
189 Correct 9 ms 7424 KB Output is correct
190 Correct 10 ms 7424 KB Output is correct
191 Correct 9 ms 7424 KB Output is correct
192 Correct 9 ms 7424 KB Output is correct
193 Correct 9 ms 7552 KB Output is correct
194 Correct 10 ms 7552 KB Output is correct
195 Correct 9 ms 7424 KB Output is correct
196 Correct 10 ms 7680 KB Output is correct
197 Correct 9 ms 7424 KB Output is correct
198 Correct 9 ms 7552 KB Output is correct
199 Correct 9 ms 7552 KB Output is correct
200 Correct 9 ms 7552 KB Output is correct
201 Correct 9 ms 7552 KB Output is correct
202 Correct 9 ms 7424 KB Output is correct
203 Correct 9 ms 7456 KB Output is correct
204 Correct 9 ms 7424 KB Output is correct
205 Correct 9 ms 7552 KB Output is correct
206 Correct 9 ms 7424 KB Output is correct
207 Correct 9 ms 7552 KB Output is correct
208 Correct 9 ms 7552 KB Output is correct
209 Correct 10 ms 8576 KB Output is correct
210 Correct 59 ms 14840 KB Output is correct
211 Correct 92 ms 18548 KB Output is correct
212 Correct 107 ms 20976 KB Output is correct
213 Correct 154 ms 22896 KB Output is correct
214 Correct 67 ms 17272 KB Output is correct
215 Correct 67 ms 17144 KB Output is correct
216 Correct 117 ms 18936 KB Output is correct
217 Correct 132 ms 18168 KB Output is correct
218 Correct 94 ms 16760 KB Output is correct
219 Correct 94 ms 16504 KB Output is correct
220 Correct 89 ms 16504 KB Output is correct
221 Correct 85 ms 16376 KB Output is correct
222 Correct 85 ms 17400 KB Output is correct
223 Correct 131 ms 19960 KB Output is correct
224 Correct 115 ms 19192 KB Output is correct
225 Correct 113 ms 17656 KB Output is correct
226 Correct 119 ms 17652 KB Output is correct
227 Correct 123 ms 17784 KB Output is correct
228 Correct 97 ms 17272 KB Output is correct
229 Correct 86 ms 16888 KB Output is correct
230 Correct 107 ms 18040 KB Output is correct
231 Correct 112 ms 18168 KB Output is correct