Submission #1059613

# Submission time Handle Problem Language Result Execution time Memory
1059613 2024-08-15T06:12:49 Z vjudge1 Duathlon (APIO18_duathlon) C++17
90 / 100
576 ms 1048576 KB
#include<bits/stdc++.h>
using namespace std;
struct DDS{
    int par[1<<18];
    int abp(int n){
        return par[n]?par[n]=abp(par[n]):n;
    }
    void merge(int a,int b){
        a=abp(a),b=abp(b);
        if(a-b)par[a]=b;
    }
} dsu;
vector<int>adj[1<<17],adj2[1<<18];
set<pair<int,int>>st[1<<17];
int par[1<<17],dep[1<<17],cycpar[1<<17],CC,N,N2;
long long sz[1<<17];
void dfsC(int n,int p){
    N++;
    dep[n]=dep[p]+1;
    par[n]=p;
    for(auto i:adj[n]){
        if(i==p)continue;
        if(!dep[i])
            dfsC(i,n);
        else if(dep[i]<dep[n])
            st[n].insert({dep[i],++CC});
    }
}
void dfsM(int n,int p){
    for(auto i:adj[n]) {
        if(par[i]-n)continue;
        dfsM(i,n);
        if(st[i].empty())continue;
        if(st[i].begin()->first<dep[n]) {
            if(st[n].size())
                dsu.merge(st[i].begin()->second,st[n].begin()->second);
            st[n].insert(*st[i].begin());
        } else adj2[n].push_back(dsu.abp(st[i].begin()->second));
    }
    if(st[n].size())
        cycpar[n]=st[n].begin()->second;
    else adj2[p].push_back(n);
}
void dfsP(int n,int p){
    for(auto i:adj[n])
        if(par[i]==n)
            dfsP(i,n);
    if(cycpar[n])
        adj2[dsu.abp(cycpar[n])].push_back(n);
}
long long TOT;
void dfsA(int n){
    sz[n]=n<=N2;
    long long k=(1ll*N-sz[n])*(N-sz[n]);
    for(auto i:adj2[n])dfsA(i),
        sz[n]+=sz[i],k-=sz[i]*1ll*sz[i];
    k-=(1ll*N-sz[n])*(N-sz[n]);
    if(n>N2)k*=adj2[n].size()-1;
    TOT+=k;
}
int main(){
    cin.tie(0)->sync_with_stdio(0);
    int n,m;
    cin>>n>>m;
    for(int i=0;i<m;i++){
        int a,b;cin>>a>>b;
        adj[a].push_back(b);
        adj[b].push_back(a);
    }
    CC=N2=n;
    for(int K=1;K<=n;K++) {
        if(dep[K])continue;
        N=0;
        dfsC(K,0);
        dfsM(K,0);
        dfsP(K,0);
        dfsA(K);
    }
    cout<<TOT<<'\n';
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 15708 KB Output is correct
2 Correct 6 ms 15708 KB Output is correct
3 Correct 6 ms 15788 KB Output is correct
4 Correct 6 ms 15708 KB Output is correct
5 Correct 6 ms 15688 KB Output is correct
6 Correct 6 ms 15708 KB Output is correct
7 Correct 6 ms 15676 KB Output is correct
8 Correct 6 ms 15820 KB Output is correct
9 Correct 6 ms 15708 KB Output is correct
10 Correct 6 ms 15708 KB Output is correct
11 Correct 6 ms 15704 KB Output is correct
12 Correct 7 ms 15708 KB Output is correct
13 Correct 7 ms 15868 KB Output is correct
14 Correct 9 ms 16216 KB Output is correct
15 Correct 7 ms 15708 KB Output is correct
16 Correct 9 ms 15812 KB Output is correct
17 Correct 8 ms 15704 KB Output is correct
18 Correct 6 ms 15660 KB Output is correct
19 Correct 8 ms 15708 KB Output is correct
20 Correct 8 ms 15704 KB Output is correct
21 Correct 6 ms 15708 KB Output is correct
22 Correct 6 ms 15844 KB Output is correct
23 Correct 6 ms 15708 KB Output is correct
24 Correct 6 ms 15720 KB Output is correct
25 Correct 6 ms 15704 KB Output is correct
26 Correct 7 ms 15708 KB Output is correct
27 Correct 7 ms 15708 KB Output is correct
28 Correct 6 ms 15708 KB Output is correct
29 Correct 9 ms 15964 KB Output is correct
30 Correct 6 ms 15708 KB Output is correct
31 Correct 8 ms 15708 KB Output is correct
32 Correct 6 ms 15860 KB Output is correct
33 Correct 6 ms 15708 KB Output is correct
34 Correct 7 ms 15708 KB Output is correct
35 Correct 8 ms 15708 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 15708 KB Output is correct
2 Correct 6 ms 15708 KB Output is correct
3 Correct 6 ms 15788 KB Output is correct
4 Correct 6 ms 15708 KB Output is correct
5 Correct 6 ms 15688 KB Output is correct
6 Correct 6 ms 15708 KB Output is correct
7 Correct 6 ms 15676 KB Output is correct
8 Correct 6 ms 15820 KB Output is correct
9 Correct 6 ms 15708 KB Output is correct
10 Correct 6 ms 15708 KB Output is correct
11 Correct 6 ms 15704 KB Output is correct
12 Correct 7 ms 15708 KB Output is correct
13 Correct 7 ms 15868 KB Output is correct
14 Correct 9 ms 16216 KB Output is correct
15 Correct 7 ms 15708 KB Output is correct
16 Correct 9 ms 15812 KB Output is correct
17 Correct 8 ms 15704 KB Output is correct
18 Correct 6 ms 15660 KB Output is correct
19 Correct 8 ms 15708 KB Output is correct
20 Correct 8 ms 15704 KB Output is correct
21 Correct 6 ms 15708 KB Output is correct
22 Correct 6 ms 15844 KB Output is correct
23 Correct 6 ms 15708 KB Output is correct
24 Correct 6 ms 15720 KB Output is correct
25 Correct 6 ms 15704 KB Output is correct
26 Correct 7 ms 15708 KB Output is correct
27 Correct 7 ms 15708 KB Output is correct
28 Correct 6 ms 15708 KB Output is correct
29 Correct 9 ms 15964 KB Output is correct
30 Correct 6 ms 15708 KB Output is correct
31 Correct 8 ms 15708 KB Output is correct
32 Correct 6 ms 15860 KB Output is correct
33 Correct 6 ms 15708 KB Output is correct
34 Correct 7 ms 15708 KB Output is correct
35 Correct 8 ms 15708 KB Output is correct
36 Correct 7 ms 15704 KB Output is correct
37 Correct 6 ms 15708 KB Output is correct
38 Correct 6 ms 15708 KB Output is correct
39 Correct 6 ms 15708 KB Output is correct
40 Correct 6 ms 15700 KB Output is correct
41 Correct 6 ms 15704 KB Output is correct
42 Correct 6 ms 15708 KB Output is correct
43 Correct 6 ms 15708 KB Output is correct
44 Correct 6 ms 15708 KB Output is correct
45 Correct 7 ms 15704 KB Output is correct
46 Correct 6 ms 15708 KB Output is correct
47 Correct 6 ms 15668 KB Output is correct
48 Correct 7 ms 15704 KB Output is correct
49 Correct 6 ms 15704 KB Output is correct
50 Correct 7 ms 15708 KB Output is correct
51 Correct 6 ms 15708 KB Output is correct
52 Correct 6 ms 15700 KB Output is correct
53 Correct 6 ms 15708 KB Output is correct
54 Correct 6 ms 15708 KB Output is correct
55 Correct 6 ms 15708 KB Output is correct
56 Correct 6 ms 15708 KB Output is correct
57 Correct 6 ms 15664 KB Output is correct
58 Correct 7 ms 15708 KB Output is correct
59 Correct 6 ms 15708 KB Output is correct
60 Correct 6 ms 15704 KB Output is correct
61 Correct 6 ms 15708 KB Output is correct
62 Correct 6 ms 15860 KB Output is correct
63 Correct 6 ms 15708 KB Output is correct
64 Correct 6 ms 15708 KB Output is correct
65 Correct 6 ms 15708 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 75 ms 42960 KB Output is correct
2 Correct 79 ms 42964 KB Output is correct
3 Correct 81 ms 34000 KB Output is correct
4 Correct 72 ms 38860 KB Output is correct
5 Correct 69 ms 31824 KB Output is correct
6 Correct 64 ms 31436 KB Output is correct
7 Correct 63 ms 29248 KB Output is correct
8 Correct 65 ms 30512 KB Output is correct
9 Correct 60 ms 27680 KB Output is correct
10 Correct 61 ms 29264 KB Output is correct
11 Correct 53 ms 25424 KB Output is correct
12 Correct 46 ms 25172 KB Output is correct
13 Correct 39 ms 24916 KB Output is correct
14 Correct 39 ms 24916 KB Output is correct
15 Correct 32 ms 23244 KB Output is correct
16 Correct 39 ms 23244 KB Output is correct
17 Correct 9 ms 17892 KB Output is correct
18 Correct 10 ms 17892 KB Output is correct
19 Correct 9 ms 17876 KB Output is correct
20 Correct 10 ms 17892 KB Output is correct
21 Correct 9 ms 17884 KB Output is correct
22 Correct 12 ms 17936 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 15708 KB Output is correct
2 Correct 6 ms 15860 KB Output is correct
3 Correct 7 ms 15704 KB Output is correct
4 Correct 6 ms 15900 KB Output is correct
5 Correct 6 ms 15884 KB Output is correct
6 Correct 9 ms 15960 KB Output is correct
7 Correct 7 ms 15964 KB Output is correct
8 Correct 7 ms 15960 KB Output is correct
9 Correct 6 ms 15964 KB Output is correct
10 Correct 6 ms 15900 KB Output is correct
11 Correct 7 ms 15708 KB Output is correct
12 Correct 6 ms 15708 KB Output is correct
13 Correct 7 ms 15708 KB Output is correct
14 Correct 7 ms 15880 KB Output is correct
15 Correct 6 ms 15708 KB Output is correct
16 Correct 6 ms 15708 KB Output is correct
17 Correct 6 ms 15708 KB Output is correct
18 Correct 6 ms 15748 KB Output is correct
19 Correct 7 ms 15708 KB Output is correct
20 Correct 6 ms 15708 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 52 ms 23364 KB Output is correct
2 Correct 55 ms 23324 KB Output is correct
3 Correct 58 ms 23496 KB Output is correct
4 Correct 45 ms 23376 KB Output is correct
5 Correct 48 ms 23528 KB Output is correct
6 Correct 67 ms 33332 KB Output is correct
7 Correct 60 ms 29780 KB Output is correct
8 Correct 58 ms 28244 KB Output is correct
9 Correct 57 ms 26704 KB Output is correct
10 Correct 47 ms 23384 KB Output is correct
11 Correct 47 ms 23376 KB Output is correct
12 Correct 49 ms 23376 KB Output is correct
13 Correct 46 ms 23388 KB Output is correct
14 Correct 41 ms 23388 KB Output is correct
15 Correct 40 ms 23064 KB Output is correct
16 Correct 30 ms 21712 KB Output is correct
17 Correct 30 ms 22612 KB Output is correct
18 Correct 30 ms 22612 KB Output is correct
19 Correct 31 ms 22724 KB Output is correct
20 Correct 38 ms 22756 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 15708 KB Output is correct
2 Correct 7 ms 15704 KB Output is correct
3 Correct 8 ms 15964 KB Output is correct
4 Correct 7 ms 15912 KB Output is correct
5 Correct 8 ms 15964 KB Output is correct
6 Correct 7 ms 15996 KB Output is correct
7 Correct 7 ms 15964 KB Output is correct
8 Correct 6 ms 15964 KB Output is correct
9 Correct 9 ms 16000 KB Output is correct
10 Correct 7 ms 15960 KB Output is correct
11 Correct 7 ms 15836 KB Output is correct
12 Correct 7 ms 15964 KB Output is correct
13 Correct 7 ms 15984 KB Output is correct
14 Correct 7 ms 15880 KB Output is correct
15 Correct 6 ms 15964 KB Output is correct
16 Correct 6 ms 15964 KB Output is correct
17 Correct 9 ms 15760 KB Output is correct
18 Correct 7 ms 15964 KB Output is correct
19 Correct 6 ms 15964 KB Output is correct
20 Correct 7 ms 15964 KB Output is correct
21 Correct 7 ms 15964 KB Output is correct
22 Correct 6 ms 15760 KB Output is correct
23 Correct 7 ms 15964 KB Output is correct
24 Correct 7 ms 15964 KB Output is correct
25 Correct 6 ms 15924 KB Output is correct
26 Correct 8 ms 15804 KB Output is correct
27 Correct 6 ms 15708 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 51 ms 23380 KB Output is correct
2 Correct 52 ms 23636 KB Output is correct
3 Correct 66 ms 26232 KB Output is correct
4 Correct 86 ms 27472 KB Output is correct
5 Correct 66 ms 27728 KB Output is correct
6 Correct 64 ms 27704 KB Output is correct
7 Correct 63 ms 27732 KB Output is correct
8 Correct 65 ms 27468 KB Output is correct
9 Correct 62 ms 27476 KB Output is correct
10 Correct 64 ms 27476 KB Output is correct
11 Correct 60 ms 27476 KB Output is correct
12 Correct 59 ms 27732 KB Output is correct
13 Correct 75 ms 27984 KB Output is correct
14 Correct 70 ms 31460 KB Output is correct
15 Correct 70 ms 32928 KB Output is correct
16 Correct 73 ms 30800 KB Output is correct
17 Correct 83 ms 33332 KB Output is correct
18 Correct 76 ms 31060 KB Output is correct
19 Correct 68 ms 27216 KB Output is correct
20 Correct 65 ms 27220 KB Output is correct
21 Correct 67 ms 27472 KB Output is correct
22 Correct 62 ms 27128 KB Output is correct
23 Correct 56 ms 26868 KB Output is correct
24 Correct 52 ms 25940 KB Output is correct
25 Correct 54 ms 25928 KB Output is correct
26 Correct 56 ms 26704 KB Output is correct
27 Correct 57 ms 26704 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 15708 KB Output is correct
2 Correct 6 ms 15708 KB Output is correct
3 Correct 6 ms 15788 KB Output is correct
4 Correct 6 ms 15708 KB Output is correct
5 Correct 6 ms 15688 KB Output is correct
6 Correct 6 ms 15708 KB Output is correct
7 Correct 6 ms 15676 KB Output is correct
8 Correct 6 ms 15820 KB Output is correct
9 Correct 6 ms 15708 KB Output is correct
10 Correct 6 ms 15708 KB Output is correct
11 Correct 6 ms 15704 KB Output is correct
12 Correct 7 ms 15708 KB Output is correct
13 Correct 7 ms 15868 KB Output is correct
14 Correct 9 ms 16216 KB Output is correct
15 Correct 7 ms 15708 KB Output is correct
16 Correct 9 ms 15812 KB Output is correct
17 Correct 8 ms 15704 KB Output is correct
18 Correct 6 ms 15660 KB Output is correct
19 Correct 8 ms 15708 KB Output is correct
20 Correct 8 ms 15704 KB Output is correct
21 Correct 6 ms 15708 KB Output is correct
22 Correct 6 ms 15844 KB Output is correct
23 Correct 6 ms 15708 KB Output is correct
24 Correct 6 ms 15720 KB Output is correct
25 Correct 6 ms 15704 KB Output is correct
26 Correct 7 ms 15708 KB Output is correct
27 Correct 7 ms 15708 KB Output is correct
28 Correct 6 ms 15708 KB Output is correct
29 Correct 9 ms 15964 KB Output is correct
30 Correct 6 ms 15708 KB Output is correct
31 Correct 8 ms 15708 KB Output is correct
32 Correct 6 ms 15860 KB Output is correct
33 Correct 6 ms 15708 KB Output is correct
34 Correct 7 ms 15708 KB Output is correct
35 Correct 8 ms 15708 KB Output is correct
36 Correct 7 ms 15704 KB Output is correct
37 Correct 6 ms 15708 KB Output is correct
38 Correct 6 ms 15708 KB Output is correct
39 Correct 6 ms 15708 KB Output is correct
40 Correct 6 ms 15700 KB Output is correct
41 Correct 6 ms 15704 KB Output is correct
42 Correct 6 ms 15708 KB Output is correct
43 Correct 6 ms 15708 KB Output is correct
44 Correct 6 ms 15708 KB Output is correct
45 Correct 7 ms 15704 KB Output is correct
46 Correct 6 ms 15708 KB Output is correct
47 Correct 6 ms 15668 KB Output is correct
48 Correct 7 ms 15704 KB Output is correct
49 Correct 6 ms 15704 KB Output is correct
50 Correct 7 ms 15708 KB Output is correct
51 Correct 6 ms 15708 KB Output is correct
52 Correct 6 ms 15700 KB Output is correct
53 Correct 6 ms 15708 KB Output is correct
54 Correct 6 ms 15708 KB Output is correct
55 Correct 6 ms 15708 KB Output is correct
56 Correct 6 ms 15708 KB Output is correct
57 Correct 6 ms 15664 KB Output is correct
58 Correct 7 ms 15708 KB Output is correct
59 Correct 6 ms 15708 KB Output is correct
60 Correct 6 ms 15704 KB Output is correct
61 Correct 6 ms 15708 KB Output is correct
62 Correct 6 ms 15860 KB Output is correct
63 Correct 6 ms 15708 KB Output is correct
64 Correct 6 ms 15708 KB Output is correct
65 Correct 6 ms 15708 KB Output is correct
66 Correct 7 ms 15704 KB Output is correct
67 Correct 6 ms 15708 KB Output is correct
68 Correct 6 ms 15964 KB Output is correct
69 Correct 7 ms 15876 KB Output is correct
70 Correct 7 ms 15964 KB Output is correct
71 Correct 7 ms 15724 KB Output is correct
72 Correct 7 ms 15964 KB Output is correct
73 Correct 7 ms 15964 KB Output is correct
74 Correct 6 ms 15876 KB Output is correct
75 Correct 6 ms 16004 KB Output is correct
76 Correct 6 ms 15708 KB Output is correct
77 Correct 8 ms 15896 KB Output is correct
78 Correct 7 ms 15964 KB Output is correct
79 Correct 9 ms 15964 KB Output is correct
80 Correct 7 ms 15964 KB Output is correct
81 Correct 7 ms 15972 KB Output is correct
82 Correct 7 ms 15964 KB Output is correct
83 Correct 6 ms 15964 KB Output is correct
84 Correct 7 ms 15964 KB Output is correct
85 Correct 7 ms 15872 KB Output is correct
86 Correct 6 ms 16004 KB Output is correct
87 Correct 9 ms 15960 KB Output is correct
88 Correct 8 ms 15964 KB Output is correct
89 Correct 6 ms 15964 KB Output is correct
90 Correct 8 ms 15964 KB Output is correct
91 Correct 6 ms 15964 KB Output is correct
92 Correct 7 ms 15944 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 15708 KB Output is correct
2 Correct 6 ms 15708 KB Output is correct
3 Correct 6 ms 15788 KB Output is correct
4 Correct 6 ms 15708 KB Output is correct
5 Correct 6 ms 15688 KB Output is correct
6 Correct 6 ms 15708 KB Output is correct
7 Correct 6 ms 15676 KB Output is correct
8 Correct 6 ms 15820 KB Output is correct
9 Correct 6 ms 15708 KB Output is correct
10 Correct 6 ms 15708 KB Output is correct
11 Correct 6 ms 15704 KB Output is correct
12 Correct 7 ms 15708 KB Output is correct
13 Correct 7 ms 15868 KB Output is correct
14 Correct 9 ms 16216 KB Output is correct
15 Correct 7 ms 15708 KB Output is correct
16 Correct 9 ms 15812 KB Output is correct
17 Correct 8 ms 15704 KB Output is correct
18 Correct 6 ms 15660 KB Output is correct
19 Correct 8 ms 15708 KB Output is correct
20 Correct 8 ms 15704 KB Output is correct
21 Correct 6 ms 15708 KB Output is correct
22 Correct 6 ms 15844 KB Output is correct
23 Correct 6 ms 15708 KB Output is correct
24 Correct 6 ms 15720 KB Output is correct
25 Correct 6 ms 15704 KB Output is correct
26 Correct 7 ms 15708 KB Output is correct
27 Correct 7 ms 15708 KB Output is correct
28 Correct 6 ms 15708 KB Output is correct
29 Correct 9 ms 15964 KB Output is correct
30 Correct 6 ms 15708 KB Output is correct
31 Correct 8 ms 15708 KB Output is correct
32 Correct 6 ms 15860 KB Output is correct
33 Correct 6 ms 15708 KB Output is correct
34 Correct 7 ms 15708 KB Output is correct
35 Correct 8 ms 15708 KB Output is correct
36 Correct 7 ms 15704 KB Output is correct
37 Correct 6 ms 15708 KB Output is correct
38 Correct 6 ms 15708 KB Output is correct
39 Correct 6 ms 15708 KB Output is correct
40 Correct 6 ms 15700 KB Output is correct
41 Correct 6 ms 15704 KB Output is correct
42 Correct 6 ms 15708 KB Output is correct
43 Correct 6 ms 15708 KB Output is correct
44 Correct 6 ms 15708 KB Output is correct
45 Correct 7 ms 15704 KB Output is correct
46 Correct 6 ms 15708 KB Output is correct
47 Correct 6 ms 15668 KB Output is correct
48 Correct 7 ms 15704 KB Output is correct
49 Correct 6 ms 15704 KB Output is correct
50 Correct 7 ms 15708 KB Output is correct
51 Correct 6 ms 15708 KB Output is correct
52 Correct 6 ms 15700 KB Output is correct
53 Correct 6 ms 15708 KB Output is correct
54 Correct 6 ms 15708 KB Output is correct
55 Correct 6 ms 15708 KB Output is correct
56 Correct 6 ms 15708 KB Output is correct
57 Correct 6 ms 15664 KB Output is correct
58 Correct 7 ms 15708 KB Output is correct
59 Correct 6 ms 15708 KB Output is correct
60 Correct 6 ms 15704 KB Output is correct
61 Correct 6 ms 15708 KB Output is correct
62 Correct 6 ms 15860 KB Output is correct
63 Correct 6 ms 15708 KB Output is correct
64 Correct 6 ms 15708 KB Output is correct
65 Correct 6 ms 15708 KB Output is correct
66 Correct 75 ms 42960 KB Output is correct
67 Correct 79 ms 42964 KB Output is correct
68 Correct 81 ms 34000 KB Output is correct
69 Correct 72 ms 38860 KB Output is correct
70 Correct 69 ms 31824 KB Output is correct
71 Correct 64 ms 31436 KB Output is correct
72 Correct 63 ms 29248 KB Output is correct
73 Correct 65 ms 30512 KB Output is correct
74 Correct 60 ms 27680 KB Output is correct
75 Correct 61 ms 29264 KB Output is correct
76 Correct 53 ms 25424 KB Output is correct
77 Correct 46 ms 25172 KB Output is correct
78 Correct 39 ms 24916 KB Output is correct
79 Correct 39 ms 24916 KB Output is correct
80 Correct 32 ms 23244 KB Output is correct
81 Correct 39 ms 23244 KB Output is correct
82 Correct 9 ms 17892 KB Output is correct
83 Correct 10 ms 17892 KB Output is correct
84 Correct 9 ms 17876 KB Output is correct
85 Correct 10 ms 17892 KB Output is correct
86 Correct 9 ms 17884 KB Output is correct
87 Correct 12 ms 17936 KB Output is correct
88 Correct 7 ms 15708 KB Output is correct
89 Correct 6 ms 15860 KB Output is correct
90 Correct 7 ms 15704 KB Output is correct
91 Correct 6 ms 15900 KB Output is correct
92 Correct 6 ms 15884 KB Output is correct
93 Correct 9 ms 15960 KB Output is correct
94 Correct 7 ms 15964 KB Output is correct
95 Correct 7 ms 15960 KB Output is correct
96 Correct 6 ms 15964 KB Output is correct
97 Correct 6 ms 15900 KB Output is correct
98 Correct 7 ms 15708 KB Output is correct
99 Correct 6 ms 15708 KB Output is correct
100 Correct 7 ms 15708 KB Output is correct
101 Correct 7 ms 15880 KB Output is correct
102 Correct 6 ms 15708 KB Output is correct
103 Correct 6 ms 15708 KB Output is correct
104 Correct 6 ms 15708 KB Output is correct
105 Correct 6 ms 15748 KB Output is correct
106 Correct 7 ms 15708 KB Output is correct
107 Correct 6 ms 15708 KB Output is correct
108 Correct 52 ms 23364 KB Output is correct
109 Correct 55 ms 23324 KB Output is correct
110 Correct 58 ms 23496 KB Output is correct
111 Correct 45 ms 23376 KB Output is correct
112 Correct 48 ms 23528 KB Output is correct
113 Correct 67 ms 33332 KB Output is correct
114 Correct 60 ms 29780 KB Output is correct
115 Correct 58 ms 28244 KB Output is correct
116 Correct 57 ms 26704 KB Output is correct
117 Correct 47 ms 23384 KB Output is correct
118 Correct 47 ms 23376 KB Output is correct
119 Correct 49 ms 23376 KB Output is correct
120 Correct 46 ms 23388 KB Output is correct
121 Correct 41 ms 23388 KB Output is correct
122 Correct 40 ms 23064 KB Output is correct
123 Correct 30 ms 21712 KB Output is correct
124 Correct 30 ms 22612 KB Output is correct
125 Correct 30 ms 22612 KB Output is correct
126 Correct 31 ms 22724 KB Output is correct
127 Correct 38 ms 22756 KB Output is correct
128 Correct 7 ms 15708 KB Output is correct
129 Correct 7 ms 15704 KB Output is correct
130 Correct 8 ms 15964 KB Output is correct
131 Correct 7 ms 15912 KB Output is correct
132 Correct 8 ms 15964 KB Output is correct
133 Correct 7 ms 15996 KB Output is correct
134 Correct 7 ms 15964 KB Output is correct
135 Correct 6 ms 15964 KB Output is correct
136 Correct 9 ms 16000 KB Output is correct
137 Correct 7 ms 15960 KB Output is correct
138 Correct 7 ms 15836 KB Output is correct
139 Correct 7 ms 15964 KB Output is correct
140 Correct 7 ms 15984 KB Output is correct
141 Correct 7 ms 15880 KB Output is correct
142 Correct 6 ms 15964 KB Output is correct
143 Correct 6 ms 15964 KB Output is correct
144 Correct 9 ms 15760 KB Output is correct
145 Correct 7 ms 15964 KB Output is correct
146 Correct 6 ms 15964 KB Output is correct
147 Correct 7 ms 15964 KB Output is correct
148 Correct 7 ms 15964 KB Output is correct
149 Correct 6 ms 15760 KB Output is correct
150 Correct 7 ms 15964 KB Output is correct
151 Correct 7 ms 15964 KB Output is correct
152 Correct 6 ms 15924 KB Output is correct
153 Correct 8 ms 15804 KB Output is correct
154 Correct 6 ms 15708 KB Output is correct
155 Correct 51 ms 23380 KB Output is correct
156 Correct 52 ms 23636 KB Output is correct
157 Correct 66 ms 26232 KB Output is correct
158 Correct 86 ms 27472 KB Output is correct
159 Correct 66 ms 27728 KB Output is correct
160 Correct 64 ms 27704 KB Output is correct
161 Correct 63 ms 27732 KB Output is correct
162 Correct 65 ms 27468 KB Output is correct
163 Correct 62 ms 27476 KB Output is correct
164 Correct 64 ms 27476 KB Output is correct
165 Correct 60 ms 27476 KB Output is correct
166 Correct 59 ms 27732 KB Output is correct
167 Correct 75 ms 27984 KB Output is correct
168 Correct 70 ms 31460 KB Output is correct
169 Correct 70 ms 32928 KB Output is correct
170 Correct 73 ms 30800 KB Output is correct
171 Correct 83 ms 33332 KB Output is correct
172 Correct 76 ms 31060 KB Output is correct
173 Correct 68 ms 27216 KB Output is correct
174 Correct 65 ms 27220 KB Output is correct
175 Correct 67 ms 27472 KB Output is correct
176 Correct 62 ms 27128 KB Output is correct
177 Correct 56 ms 26868 KB Output is correct
178 Correct 52 ms 25940 KB Output is correct
179 Correct 54 ms 25928 KB Output is correct
180 Correct 56 ms 26704 KB Output is correct
181 Correct 57 ms 26704 KB Output is correct
182 Correct 7 ms 15704 KB Output is correct
183 Correct 6 ms 15708 KB Output is correct
184 Correct 6 ms 15964 KB Output is correct
185 Correct 7 ms 15876 KB Output is correct
186 Correct 7 ms 15964 KB Output is correct
187 Correct 7 ms 15724 KB Output is correct
188 Correct 7 ms 15964 KB Output is correct
189 Correct 7 ms 15964 KB Output is correct
190 Correct 6 ms 15876 KB Output is correct
191 Correct 6 ms 16004 KB Output is correct
192 Correct 6 ms 15708 KB Output is correct
193 Correct 8 ms 15896 KB Output is correct
194 Correct 7 ms 15964 KB Output is correct
195 Correct 9 ms 15964 KB Output is correct
196 Correct 7 ms 15964 KB Output is correct
197 Correct 7 ms 15972 KB Output is correct
198 Correct 7 ms 15964 KB Output is correct
199 Correct 6 ms 15964 KB Output is correct
200 Correct 7 ms 15964 KB Output is correct
201 Correct 7 ms 15872 KB Output is correct
202 Correct 6 ms 16004 KB Output is correct
203 Correct 9 ms 15960 KB Output is correct
204 Correct 8 ms 15964 KB Output is correct
205 Correct 6 ms 15964 KB Output is correct
206 Correct 8 ms 15964 KB Output is correct
207 Correct 6 ms 15964 KB Output is correct
208 Correct 7 ms 15944 KB Output is correct
209 Correct 10 ms 17884 KB Output is correct
210 Correct 35 ms 21468 KB Output is correct
211 Correct 63 ms 30068 KB Output is correct
212 Correct 95 ms 37580 KB Output is correct
213 Correct 147 ms 43464 KB Output is correct
214 Runtime error 576 ms 1048576 KB Execution killed with signal 9
215 Halted 0 ms 0 KB -