Submission #1059617

# Submission time Handle Problem Language Result Execution time Memory
1059617 2024-08-15T06:16:10 Z vjudge1 Duathlon (APIO18_duathlon) C++17
100 / 100
147 ms 78476 KB
#include<bits/stdc++.h>
using namespace std;
struct DDS{
    int par[1<<19];
    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<<19],adj2[1<<19];
set<pair<int,int>>st[1<<19];
long long par[1<<19],dep[1<<19],cycpar[1<<19],CC,N,N2,sz[1<<19];
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=(N-sz[n])*(N-sz[n]);
    for(auto i:adj2[n])dfsA(i),
        sz[n]+=sz[i],k-=sz[i]*sz[i];
    k-=(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 22 ms 49564 KB Output is correct
2 Correct 21 ms 49652 KB Output is correct
3 Correct 20 ms 49716 KB Output is correct
4 Correct 21 ms 49592 KB Output is correct
5 Correct 22 ms 49748 KB Output is correct
6 Correct 21 ms 49496 KB Output is correct
7 Correct 20 ms 49500 KB Output is correct
8 Correct 22 ms 49756 KB Output is correct
9 Correct 24 ms 49724 KB Output is correct
10 Correct 23 ms 49748 KB Output is correct
11 Correct 25 ms 49500 KB Output is correct
12 Correct 22 ms 49724 KB Output is correct
13 Correct 26 ms 49556 KB Output is correct
14 Correct 21 ms 49500 KB Output is correct
15 Correct 20 ms 49500 KB Output is correct
16 Correct 27 ms 49656 KB Output is correct
17 Correct 20 ms 49756 KB Output is correct
18 Correct 21 ms 49500 KB Output is correct
19 Correct 20 ms 49500 KB Output is correct
20 Correct 20 ms 49608 KB Output is correct
21 Correct 19 ms 49500 KB Output is correct
22 Correct 19 ms 49500 KB Output is correct
23 Correct 19 ms 49512 KB Output is correct
24 Correct 19 ms 49604 KB Output is correct
25 Correct 19 ms 49500 KB Output is correct
26 Correct 19 ms 49572 KB Output is correct
27 Correct 27 ms 49560 KB Output is correct
28 Correct 20 ms 49496 KB Output is correct
29 Correct 28 ms 49504 KB Output is correct
30 Correct 23 ms 49700 KB Output is correct
31 Correct 21 ms 49500 KB Output is correct
32 Correct 21 ms 49592 KB Output is correct
33 Correct 26 ms 49500 KB Output is correct
34 Correct 21 ms 49496 KB Output is correct
35 Correct 21 ms 49500 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 22 ms 49564 KB Output is correct
2 Correct 21 ms 49652 KB Output is correct
3 Correct 20 ms 49716 KB Output is correct
4 Correct 21 ms 49592 KB Output is correct
5 Correct 22 ms 49748 KB Output is correct
6 Correct 21 ms 49496 KB Output is correct
7 Correct 20 ms 49500 KB Output is correct
8 Correct 22 ms 49756 KB Output is correct
9 Correct 24 ms 49724 KB Output is correct
10 Correct 23 ms 49748 KB Output is correct
11 Correct 25 ms 49500 KB Output is correct
12 Correct 22 ms 49724 KB Output is correct
13 Correct 26 ms 49556 KB Output is correct
14 Correct 21 ms 49500 KB Output is correct
15 Correct 20 ms 49500 KB Output is correct
16 Correct 27 ms 49656 KB Output is correct
17 Correct 20 ms 49756 KB Output is correct
18 Correct 21 ms 49500 KB Output is correct
19 Correct 20 ms 49500 KB Output is correct
20 Correct 20 ms 49608 KB Output is correct
21 Correct 19 ms 49500 KB Output is correct
22 Correct 19 ms 49500 KB Output is correct
23 Correct 19 ms 49512 KB Output is correct
24 Correct 19 ms 49604 KB Output is correct
25 Correct 19 ms 49500 KB Output is correct
26 Correct 19 ms 49572 KB Output is correct
27 Correct 27 ms 49560 KB Output is correct
28 Correct 20 ms 49496 KB Output is correct
29 Correct 28 ms 49504 KB Output is correct
30 Correct 23 ms 49700 KB Output is correct
31 Correct 21 ms 49500 KB Output is correct
32 Correct 21 ms 49592 KB Output is correct
33 Correct 26 ms 49500 KB Output is correct
34 Correct 21 ms 49496 KB Output is correct
35 Correct 21 ms 49500 KB Output is correct
36 Correct 28 ms 49500 KB Output is correct
37 Correct 20 ms 49500 KB Output is correct
38 Correct 24 ms 49756 KB Output is correct
39 Correct 21 ms 49500 KB Output is correct
40 Correct 23 ms 49600 KB Output is correct
41 Correct 23 ms 49540 KB Output is correct
42 Correct 20 ms 49496 KB Output is correct
43 Correct 20 ms 49500 KB Output is correct
44 Correct 20 ms 49500 KB Output is correct
45 Correct 21 ms 49536 KB Output is correct
46 Correct 21 ms 49500 KB Output is correct
47 Correct 20 ms 49500 KB Output is correct
48 Correct 21 ms 49732 KB Output is correct
49 Correct 22 ms 49500 KB Output is correct
50 Correct 24 ms 49476 KB Output is correct
51 Correct 20 ms 49500 KB Output is correct
52 Correct 21 ms 49500 KB Output is correct
53 Correct 21 ms 49500 KB Output is correct
54 Correct 20 ms 49500 KB Output is correct
55 Correct 20 ms 49496 KB Output is correct
56 Correct 20 ms 49500 KB Output is correct
57 Correct 27 ms 49500 KB Output is correct
58 Correct 20 ms 49500 KB Output is correct
59 Correct 20 ms 49500 KB Output is correct
60 Correct 25 ms 49500 KB Output is correct
61 Correct 21 ms 49624 KB Output is correct
62 Correct 28 ms 49676 KB Output is correct
63 Correct 28 ms 49488 KB Output is correct
64 Correct 21 ms 49496 KB Output is correct
65 Correct 25 ms 49756 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 91 ms 78032 KB Output is correct
2 Correct 91 ms 78032 KB Output is correct
3 Correct 90 ms 69064 KB Output is correct
4 Correct 91 ms 73848 KB Output is correct
5 Correct 91 ms 66872 KB Output is correct
6 Correct 105 ms 66428 KB Output is correct
7 Correct 106 ms 64192 KB Output is correct
8 Correct 102 ms 65612 KB Output is correct
9 Correct 106 ms 62564 KB Output is correct
10 Correct 106 ms 64316 KB Output is correct
11 Correct 87 ms 60532 KB Output is correct
12 Correct 85 ms 60240 KB Output is correct
13 Correct 63 ms 59984 KB Output is correct
14 Correct 60 ms 59876 KB Output is correct
15 Correct 56 ms 58364 KB Output is correct
16 Correct 52 ms 58316 KB Output is correct
17 Correct 23 ms 52572 KB Output is correct
18 Correct 29 ms 52476 KB Output is correct
19 Correct 24 ms 52452 KB Output is correct
20 Correct 24 ms 52452 KB Output is correct
21 Correct 23 ms 52412 KB Output is correct
22 Correct 27 ms 52408 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 20 ms 49756 KB Output is correct
2 Correct 20 ms 49756 KB Output is correct
3 Correct 27 ms 49824 KB Output is correct
4 Correct 20 ms 49756 KB Output is correct
5 Correct 20 ms 49728 KB Output is correct
6 Correct 28 ms 49756 KB Output is correct
7 Correct 20 ms 49920 KB Output is correct
8 Correct 27 ms 49756 KB Output is correct
9 Correct 21 ms 49632 KB Output is correct
10 Correct 22 ms 49824 KB Output is correct
11 Correct 23 ms 49752 KB Output is correct
12 Correct 24 ms 49608 KB Output is correct
13 Correct 22 ms 49772 KB Output is correct
14 Correct 22 ms 49756 KB Output is correct
15 Correct 24 ms 49756 KB Output is correct
16 Correct 22 ms 49672 KB Output is correct
17 Correct 20 ms 49756 KB Output is correct
18 Correct 19 ms 49756 KB Output is correct
19 Correct 19 ms 49828 KB Output is correct
20 Correct 25 ms 49840 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 58096 KB Output is correct
2 Correct 64 ms 58192 KB Output is correct
3 Correct 105 ms 57936 KB Output is correct
4 Correct 74 ms 58192 KB Output is correct
5 Correct 89 ms 58152 KB Output is correct
6 Correct 99 ms 68104 KB Output is correct
7 Correct 93 ms 64476 KB Output is correct
8 Correct 97 ms 62784 KB Output is correct
9 Correct 78 ms 61268 KB Output is correct
10 Correct 77 ms 58332 KB Output is correct
11 Correct 95 ms 57952 KB Output is correct
12 Correct 77 ms 58168 KB Output is correct
13 Correct 84 ms 58164 KB Output is correct
14 Correct 67 ms 58008 KB Output is correct
15 Correct 61 ms 57680 KB Output is correct
16 Correct 67 ms 56472 KB Output is correct
17 Correct 51 ms 57380 KB Output is correct
18 Correct 69 ms 57160 KB Output is correct
19 Correct 53 ms 57540 KB Output is correct
20 Correct 59 ms 57436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 29 ms 49744 KB Output is correct
2 Correct 20 ms 49716 KB Output is correct
3 Correct 25 ms 49836 KB Output is correct
4 Correct 23 ms 49884 KB Output is correct
5 Correct 19 ms 49668 KB Output is correct
6 Correct 19 ms 49688 KB Output is correct
7 Correct 23 ms 49752 KB Output is correct
8 Correct 19 ms 49756 KB Output is correct
9 Correct 20 ms 49820 KB Output is correct
10 Correct 20 ms 49752 KB Output is correct
11 Correct 21 ms 49756 KB Output is correct
12 Correct 29 ms 49728 KB Output is correct
13 Correct 26 ms 49756 KB Output is correct
14 Correct 19 ms 49752 KB Output is correct
15 Correct 19 ms 49672 KB Output is correct
16 Correct 30 ms 49752 KB Output is correct
17 Correct 22 ms 49752 KB Output is correct
18 Correct 19 ms 49724 KB Output is correct
19 Correct 21 ms 49756 KB Output is correct
20 Correct 21 ms 49756 KB Output is correct
21 Correct 25 ms 49756 KB Output is correct
22 Correct 21 ms 49800 KB Output is correct
23 Correct 28 ms 49668 KB Output is correct
24 Correct 24 ms 49752 KB Output is correct
25 Correct 20 ms 49756 KB Output is correct
26 Correct 26 ms 49736 KB Output is correct
27 Correct 26 ms 49756 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 77 ms 58160 KB Output is correct
2 Correct 79 ms 58464 KB Output is correct
3 Correct 90 ms 61264 KB Output is correct
4 Correct 93 ms 62352 KB Output is correct
5 Correct 88 ms 62804 KB Output is correct
6 Correct 100 ms 62800 KB Output is correct
7 Correct 97 ms 62696 KB Output is correct
8 Correct 96 ms 62736 KB Output is correct
9 Correct 90 ms 62548 KB Output is correct
10 Correct 80 ms 62544 KB Output is correct
11 Correct 78 ms 62636 KB Output is correct
12 Correct 110 ms 62800 KB Output is correct
13 Correct 83 ms 63028 KB Output is correct
14 Correct 109 ms 66644 KB Output is correct
15 Correct 121 ms 68176 KB Output is correct
16 Correct 90 ms 65808 KB Output is correct
17 Correct 101 ms 68436 KB Output is correct
18 Correct 105 ms 66128 KB Output is correct
19 Correct 88 ms 62292 KB Output is correct
20 Correct 95 ms 62292 KB Output is correct
21 Correct 96 ms 62292 KB Output is correct
22 Correct 102 ms 62288 KB Output is correct
23 Correct 68 ms 61988 KB Output is correct
24 Correct 67 ms 61008 KB Output is correct
25 Correct 72 ms 61100 KB Output is correct
26 Correct 81 ms 61648 KB Output is correct
27 Correct 92 ms 61776 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 22 ms 49564 KB Output is correct
2 Correct 21 ms 49652 KB Output is correct
3 Correct 20 ms 49716 KB Output is correct
4 Correct 21 ms 49592 KB Output is correct
5 Correct 22 ms 49748 KB Output is correct
6 Correct 21 ms 49496 KB Output is correct
7 Correct 20 ms 49500 KB Output is correct
8 Correct 22 ms 49756 KB Output is correct
9 Correct 24 ms 49724 KB Output is correct
10 Correct 23 ms 49748 KB Output is correct
11 Correct 25 ms 49500 KB Output is correct
12 Correct 22 ms 49724 KB Output is correct
13 Correct 26 ms 49556 KB Output is correct
14 Correct 21 ms 49500 KB Output is correct
15 Correct 20 ms 49500 KB Output is correct
16 Correct 27 ms 49656 KB Output is correct
17 Correct 20 ms 49756 KB Output is correct
18 Correct 21 ms 49500 KB Output is correct
19 Correct 20 ms 49500 KB Output is correct
20 Correct 20 ms 49608 KB Output is correct
21 Correct 19 ms 49500 KB Output is correct
22 Correct 19 ms 49500 KB Output is correct
23 Correct 19 ms 49512 KB Output is correct
24 Correct 19 ms 49604 KB Output is correct
25 Correct 19 ms 49500 KB Output is correct
26 Correct 19 ms 49572 KB Output is correct
27 Correct 27 ms 49560 KB Output is correct
28 Correct 20 ms 49496 KB Output is correct
29 Correct 28 ms 49504 KB Output is correct
30 Correct 23 ms 49700 KB Output is correct
31 Correct 21 ms 49500 KB Output is correct
32 Correct 21 ms 49592 KB Output is correct
33 Correct 26 ms 49500 KB Output is correct
34 Correct 21 ms 49496 KB Output is correct
35 Correct 21 ms 49500 KB Output is correct
36 Correct 28 ms 49500 KB Output is correct
37 Correct 20 ms 49500 KB Output is correct
38 Correct 24 ms 49756 KB Output is correct
39 Correct 21 ms 49500 KB Output is correct
40 Correct 23 ms 49600 KB Output is correct
41 Correct 23 ms 49540 KB Output is correct
42 Correct 20 ms 49496 KB Output is correct
43 Correct 20 ms 49500 KB Output is correct
44 Correct 20 ms 49500 KB Output is correct
45 Correct 21 ms 49536 KB Output is correct
46 Correct 21 ms 49500 KB Output is correct
47 Correct 20 ms 49500 KB Output is correct
48 Correct 21 ms 49732 KB Output is correct
49 Correct 22 ms 49500 KB Output is correct
50 Correct 24 ms 49476 KB Output is correct
51 Correct 20 ms 49500 KB Output is correct
52 Correct 21 ms 49500 KB Output is correct
53 Correct 21 ms 49500 KB Output is correct
54 Correct 20 ms 49500 KB Output is correct
55 Correct 20 ms 49496 KB Output is correct
56 Correct 20 ms 49500 KB Output is correct
57 Correct 27 ms 49500 KB Output is correct
58 Correct 20 ms 49500 KB Output is correct
59 Correct 20 ms 49500 KB Output is correct
60 Correct 25 ms 49500 KB Output is correct
61 Correct 21 ms 49624 KB Output is correct
62 Correct 28 ms 49676 KB Output is correct
63 Correct 28 ms 49488 KB Output is correct
64 Correct 21 ms 49496 KB Output is correct
65 Correct 25 ms 49756 KB Output is correct
66 Correct 20 ms 49756 KB Output is correct
67 Correct 21 ms 49756 KB Output is correct
68 Correct 20 ms 49756 KB Output is correct
69 Correct 20 ms 49752 KB Output is correct
70 Correct 23 ms 49976 KB Output is correct
71 Correct 19 ms 49756 KB Output is correct
72 Correct 19 ms 49756 KB Output is correct
73 Correct 20 ms 49756 KB Output is correct
74 Correct 20 ms 49756 KB Output is correct
75 Correct 23 ms 49844 KB Output is correct
76 Correct 24 ms 49756 KB Output is correct
77 Correct 20 ms 49756 KB Output is correct
78 Correct 21 ms 49832 KB Output is correct
79 Correct 22 ms 49756 KB Output is correct
80 Correct 20 ms 49756 KB Output is correct
81 Correct 20 ms 49756 KB Output is correct
82 Correct 20 ms 49756 KB Output is correct
83 Correct 20 ms 49756 KB Output is correct
84 Correct 20 ms 49912 KB Output is correct
85 Correct 20 ms 49756 KB Output is correct
86 Correct 21 ms 49820 KB Output is correct
87 Correct 21 ms 49780 KB Output is correct
88 Correct 21 ms 49696 KB Output is correct
89 Correct 23 ms 49836 KB Output is correct
90 Correct 20 ms 49756 KB Output is correct
91 Correct 19 ms 49756 KB Output is correct
92 Correct 19 ms 49756 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 22 ms 49564 KB Output is correct
2 Correct 21 ms 49652 KB Output is correct
3 Correct 20 ms 49716 KB Output is correct
4 Correct 21 ms 49592 KB Output is correct
5 Correct 22 ms 49748 KB Output is correct
6 Correct 21 ms 49496 KB Output is correct
7 Correct 20 ms 49500 KB Output is correct
8 Correct 22 ms 49756 KB Output is correct
9 Correct 24 ms 49724 KB Output is correct
10 Correct 23 ms 49748 KB Output is correct
11 Correct 25 ms 49500 KB Output is correct
12 Correct 22 ms 49724 KB Output is correct
13 Correct 26 ms 49556 KB Output is correct
14 Correct 21 ms 49500 KB Output is correct
15 Correct 20 ms 49500 KB Output is correct
16 Correct 27 ms 49656 KB Output is correct
17 Correct 20 ms 49756 KB Output is correct
18 Correct 21 ms 49500 KB Output is correct
19 Correct 20 ms 49500 KB Output is correct
20 Correct 20 ms 49608 KB Output is correct
21 Correct 19 ms 49500 KB Output is correct
22 Correct 19 ms 49500 KB Output is correct
23 Correct 19 ms 49512 KB Output is correct
24 Correct 19 ms 49604 KB Output is correct
25 Correct 19 ms 49500 KB Output is correct
26 Correct 19 ms 49572 KB Output is correct
27 Correct 27 ms 49560 KB Output is correct
28 Correct 20 ms 49496 KB Output is correct
29 Correct 28 ms 49504 KB Output is correct
30 Correct 23 ms 49700 KB Output is correct
31 Correct 21 ms 49500 KB Output is correct
32 Correct 21 ms 49592 KB Output is correct
33 Correct 26 ms 49500 KB Output is correct
34 Correct 21 ms 49496 KB Output is correct
35 Correct 21 ms 49500 KB Output is correct
36 Correct 28 ms 49500 KB Output is correct
37 Correct 20 ms 49500 KB Output is correct
38 Correct 24 ms 49756 KB Output is correct
39 Correct 21 ms 49500 KB Output is correct
40 Correct 23 ms 49600 KB Output is correct
41 Correct 23 ms 49540 KB Output is correct
42 Correct 20 ms 49496 KB Output is correct
43 Correct 20 ms 49500 KB Output is correct
44 Correct 20 ms 49500 KB Output is correct
45 Correct 21 ms 49536 KB Output is correct
46 Correct 21 ms 49500 KB Output is correct
47 Correct 20 ms 49500 KB Output is correct
48 Correct 21 ms 49732 KB Output is correct
49 Correct 22 ms 49500 KB Output is correct
50 Correct 24 ms 49476 KB Output is correct
51 Correct 20 ms 49500 KB Output is correct
52 Correct 21 ms 49500 KB Output is correct
53 Correct 21 ms 49500 KB Output is correct
54 Correct 20 ms 49500 KB Output is correct
55 Correct 20 ms 49496 KB Output is correct
56 Correct 20 ms 49500 KB Output is correct
57 Correct 27 ms 49500 KB Output is correct
58 Correct 20 ms 49500 KB Output is correct
59 Correct 20 ms 49500 KB Output is correct
60 Correct 25 ms 49500 KB Output is correct
61 Correct 21 ms 49624 KB Output is correct
62 Correct 28 ms 49676 KB Output is correct
63 Correct 28 ms 49488 KB Output is correct
64 Correct 21 ms 49496 KB Output is correct
65 Correct 25 ms 49756 KB Output is correct
66 Correct 91 ms 78032 KB Output is correct
67 Correct 91 ms 78032 KB Output is correct
68 Correct 90 ms 69064 KB Output is correct
69 Correct 91 ms 73848 KB Output is correct
70 Correct 91 ms 66872 KB Output is correct
71 Correct 105 ms 66428 KB Output is correct
72 Correct 106 ms 64192 KB Output is correct
73 Correct 102 ms 65612 KB Output is correct
74 Correct 106 ms 62564 KB Output is correct
75 Correct 106 ms 64316 KB Output is correct
76 Correct 87 ms 60532 KB Output is correct
77 Correct 85 ms 60240 KB Output is correct
78 Correct 63 ms 59984 KB Output is correct
79 Correct 60 ms 59876 KB Output is correct
80 Correct 56 ms 58364 KB Output is correct
81 Correct 52 ms 58316 KB Output is correct
82 Correct 23 ms 52572 KB Output is correct
83 Correct 29 ms 52476 KB Output is correct
84 Correct 24 ms 52452 KB Output is correct
85 Correct 24 ms 52452 KB Output is correct
86 Correct 23 ms 52412 KB Output is correct
87 Correct 27 ms 52408 KB Output is correct
88 Correct 20 ms 49756 KB Output is correct
89 Correct 20 ms 49756 KB Output is correct
90 Correct 27 ms 49824 KB Output is correct
91 Correct 20 ms 49756 KB Output is correct
92 Correct 20 ms 49728 KB Output is correct
93 Correct 28 ms 49756 KB Output is correct
94 Correct 20 ms 49920 KB Output is correct
95 Correct 27 ms 49756 KB Output is correct
96 Correct 21 ms 49632 KB Output is correct
97 Correct 22 ms 49824 KB Output is correct
98 Correct 23 ms 49752 KB Output is correct
99 Correct 24 ms 49608 KB Output is correct
100 Correct 22 ms 49772 KB Output is correct
101 Correct 22 ms 49756 KB Output is correct
102 Correct 24 ms 49756 KB Output is correct
103 Correct 22 ms 49672 KB Output is correct
104 Correct 20 ms 49756 KB Output is correct
105 Correct 19 ms 49756 KB Output is correct
106 Correct 19 ms 49828 KB Output is correct
107 Correct 25 ms 49840 KB Output is correct
108 Correct 74 ms 58096 KB Output is correct
109 Correct 64 ms 58192 KB Output is correct
110 Correct 105 ms 57936 KB Output is correct
111 Correct 74 ms 58192 KB Output is correct
112 Correct 89 ms 58152 KB Output is correct
113 Correct 99 ms 68104 KB Output is correct
114 Correct 93 ms 64476 KB Output is correct
115 Correct 97 ms 62784 KB Output is correct
116 Correct 78 ms 61268 KB Output is correct
117 Correct 77 ms 58332 KB Output is correct
118 Correct 95 ms 57952 KB Output is correct
119 Correct 77 ms 58168 KB Output is correct
120 Correct 84 ms 58164 KB Output is correct
121 Correct 67 ms 58008 KB Output is correct
122 Correct 61 ms 57680 KB Output is correct
123 Correct 67 ms 56472 KB Output is correct
124 Correct 51 ms 57380 KB Output is correct
125 Correct 69 ms 57160 KB Output is correct
126 Correct 53 ms 57540 KB Output is correct
127 Correct 59 ms 57436 KB Output is correct
128 Correct 29 ms 49744 KB Output is correct
129 Correct 20 ms 49716 KB Output is correct
130 Correct 25 ms 49836 KB Output is correct
131 Correct 23 ms 49884 KB Output is correct
132 Correct 19 ms 49668 KB Output is correct
133 Correct 19 ms 49688 KB Output is correct
134 Correct 23 ms 49752 KB Output is correct
135 Correct 19 ms 49756 KB Output is correct
136 Correct 20 ms 49820 KB Output is correct
137 Correct 20 ms 49752 KB Output is correct
138 Correct 21 ms 49756 KB Output is correct
139 Correct 29 ms 49728 KB Output is correct
140 Correct 26 ms 49756 KB Output is correct
141 Correct 19 ms 49752 KB Output is correct
142 Correct 19 ms 49672 KB Output is correct
143 Correct 30 ms 49752 KB Output is correct
144 Correct 22 ms 49752 KB Output is correct
145 Correct 19 ms 49724 KB Output is correct
146 Correct 21 ms 49756 KB Output is correct
147 Correct 21 ms 49756 KB Output is correct
148 Correct 25 ms 49756 KB Output is correct
149 Correct 21 ms 49800 KB Output is correct
150 Correct 28 ms 49668 KB Output is correct
151 Correct 24 ms 49752 KB Output is correct
152 Correct 20 ms 49756 KB Output is correct
153 Correct 26 ms 49736 KB Output is correct
154 Correct 26 ms 49756 KB Output is correct
155 Correct 77 ms 58160 KB Output is correct
156 Correct 79 ms 58464 KB Output is correct
157 Correct 90 ms 61264 KB Output is correct
158 Correct 93 ms 62352 KB Output is correct
159 Correct 88 ms 62804 KB Output is correct
160 Correct 100 ms 62800 KB Output is correct
161 Correct 97 ms 62696 KB Output is correct
162 Correct 96 ms 62736 KB Output is correct
163 Correct 90 ms 62548 KB Output is correct
164 Correct 80 ms 62544 KB Output is correct
165 Correct 78 ms 62636 KB Output is correct
166 Correct 110 ms 62800 KB Output is correct
167 Correct 83 ms 63028 KB Output is correct
168 Correct 109 ms 66644 KB Output is correct
169 Correct 121 ms 68176 KB Output is correct
170 Correct 90 ms 65808 KB Output is correct
171 Correct 101 ms 68436 KB Output is correct
172 Correct 105 ms 66128 KB Output is correct
173 Correct 88 ms 62292 KB Output is correct
174 Correct 95 ms 62292 KB Output is correct
175 Correct 96 ms 62292 KB Output is correct
176 Correct 102 ms 62288 KB Output is correct
177 Correct 68 ms 61988 KB Output is correct
178 Correct 67 ms 61008 KB Output is correct
179 Correct 72 ms 61100 KB Output is correct
180 Correct 81 ms 61648 KB Output is correct
181 Correct 92 ms 61776 KB Output is correct
182 Correct 20 ms 49756 KB Output is correct
183 Correct 21 ms 49756 KB Output is correct
184 Correct 20 ms 49756 KB Output is correct
185 Correct 20 ms 49752 KB Output is correct
186 Correct 23 ms 49976 KB Output is correct
187 Correct 19 ms 49756 KB Output is correct
188 Correct 19 ms 49756 KB Output is correct
189 Correct 20 ms 49756 KB Output is correct
190 Correct 20 ms 49756 KB Output is correct
191 Correct 23 ms 49844 KB Output is correct
192 Correct 24 ms 49756 KB Output is correct
193 Correct 20 ms 49756 KB Output is correct
194 Correct 21 ms 49832 KB Output is correct
195 Correct 22 ms 49756 KB Output is correct
196 Correct 20 ms 49756 KB Output is correct
197 Correct 20 ms 49756 KB Output is correct
198 Correct 20 ms 49756 KB Output is correct
199 Correct 20 ms 49756 KB Output is correct
200 Correct 20 ms 49912 KB Output is correct
201 Correct 20 ms 49756 KB Output is correct
202 Correct 21 ms 49820 KB Output is correct
203 Correct 21 ms 49780 KB Output is correct
204 Correct 21 ms 49696 KB Output is correct
205 Correct 23 ms 49836 KB Output is correct
206 Correct 20 ms 49756 KB Output is correct
207 Correct 19 ms 49756 KB Output is correct
208 Correct 19 ms 49756 KB Output is correct
209 Correct 31 ms 52432 KB Output is correct
210 Correct 47 ms 56144 KB Output is correct
211 Correct 87 ms 65236 KB Output is correct
212 Correct 109 ms 72648 KB Output is correct
213 Correct 147 ms 78476 KB Output is correct
214 Correct 51 ms 63056 KB Output is correct
215 Correct 56 ms 64080 KB Output is correct
216 Correct 111 ms 63312 KB Output is correct
217 Correct 120 ms 63712 KB Output is correct
218 Correct 83 ms 63060 KB Output is correct
219 Correct 86 ms 62800 KB Output is correct
220 Correct 80 ms 62804 KB Output is correct
221 Correct 82 ms 62800 KB Output is correct
222 Correct 89 ms 64848 KB Output is correct
223 Correct 108 ms 69268 KB Output is correct
224 Correct 102 ms 67632 KB Output is correct
225 Correct 96 ms 64316 KB Output is correct
226 Correct 112 ms 64332 KB Output is correct
227 Correct 107 ms 64324 KB Output is correct
228 Correct 81 ms 63660 KB Output is correct
229 Correct 72 ms 62864 KB Output is correct
230 Correct 91 ms 64408 KB Output is correct
231 Correct 85 ms 64340 KB Output is correct