답안 #1111695

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1111695 2024-11-12T16:42:36 Z imarn 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
179 ms 115652 KB
#include<bits/stdc++.h>
#define ll long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define plx pair<ll,int>
#define f first
#define s second
#define pb push_back
#define all(x) x.begin(),x.end()
#define szz(r) (ll)r.size()
#define vi vector<int>
#define vvi vector<vi>
#define pp pair<ll,int>
#define ub(x,i) upper_bound(all(x),i)-x.begin()
using namespace std;
const int mxn=2e6+5;
vector<int>h,g[mxn],st;
vector<int>gg[mxn];
bool vis[mxn]{0};
int di[mxn]{0},lo[mxn]{0},cur=0;
ll cnt=0,n;
ll sz[mxn]{0};
void dfs(int u,int p){
    di[u]=lo[u]=++cur;
    st.pb(u);cnt++;
    for(auto v:g[u]){
        if(!di[v]){
            dfs(v,u);
            lo[u]=min(lo[u],lo[v]);
            if(lo[v]>=di[u]){
                while(st.back()!=v){
                    gg[v+n].pb(st.back());
                    gg[st.back()].pb(v+n);
                    st.pop_back();
                }gg[v+n].pb(v);
                gg[v].pb(v+n);
                st.pop_back();
                gg[u].pb(v+n);
            }
        }else if(v!=p){
            lo[u]=min(lo[u],di[v]);
        }
    }
}ll rs=0;
void solve(int u,int p){
    if(u<=n)sz[u]=1;
    for(auto v:gg[u]){
        if(v==p)continue;
        solve(v,u);sz[u]+=sz[v];
        if(u>n)rs-=szz(gg[u])*(sz[v]-1)*(sz[v]);
    }
    if(u>n)rs-=szz(gg[u])*(cnt-sz[u])*(cnt-sz[u]-1);
}
int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);
    int m;cin>>n>>m;
    for(int i=1;i<=m;i++){
        int a,b;cin>>a>>b;g[a].pb(b);g[b].pb(a);
    }
    for(int i=1;i<=n;i++){
        if(di[i])continue;
        cnt=0;
        dfs(i,i);st.clear();
        rs+=cnt*(cnt-1)*(cnt-2);
        solve(i,i);
    }cout<<rs;
}

# 결과 실행 시간 메모리 Grader output
1 Correct 57 ms 94280 KB Output is correct
2 Correct 57 ms 94292 KB Output is correct
3 Correct 58 ms 94292 KB Output is correct
4 Correct 62 ms 94176 KB Output is correct
5 Correct 58 ms 94228 KB Output is correct
6 Correct 66 ms 94280 KB Output is correct
7 Correct 58 ms 94320 KB Output is correct
8 Correct 58 ms 94280 KB Output is correct
9 Correct 61 ms 94288 KB Output is correct
10 Correct 59 ms 94280 KB Output is correct
11 Correct 73 ms 94172 KB Output is correct
12 Correct 64 ms 94536 KB Output is correct
13 Correct 74 ms 94300 KB Output is correct
14 Correct 69 ms 94280 KB Output is correct
15 Correct 67 ms 94160 KB Output is correct
16 Correct 67 ms 94368 KB Output is correct
17 Correct 68 ms 94284 KB Output is correct
18 Correct 74 ms 94492 KB Output is correct
19 Correct 67 ms 94360 KB Output is correct
20 Correct 66 ms 94280 KB Output is correct
21 Correct 66 ms 94344 KB Output is correct
22 Correct 68 ms 94368 KB Output is correct
23 Correct 67 ms 94280 KB Output is correct
24 Correct 65 ms 94280 KB Output is correct
25 Correct 71 ms 94280 KB Output is correct
26 Correct 67 ms 94160 KB Output is correct
27 Correct 69 ms 94208 KB Output is correct
28 Correct 66 ms 94188 KB Output is correct
29 Correct 67 ms 94188 KB Output is correct
30 Correct 63 ms 94324 KB Output is correct
31 Correct 72 ms 94332 KB Output is correct
32 Correct 63 ms 94364 KB Output is correct
33 Correct 61 ms 94284 KB Output is correct
34 Correct 67 ms 94388 KB Output is correct
35 Correct 68 ms 94236 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 57 ms 94280 KB Output is correct
2 Correct 57 ms 94292 KB Output is correct
3 Correct 58 ms 94292 KB Output is correct
4 Correct 62 ms 94176 KB Output is correct
5 Correct 58 ms 94228 KB Output is correct
6 Correct 66 ms 94280 KB Output is correct
7 Correct 58 ms 94320 KB Output is correct
8 Correct 58 ms 94280 KB Output is correct
9 Correct 61 ms 94288 KB Output is correct
10 Correct 59 ms 94280 KB Output is correct
11 Correct 73 ms 94172 KB Output is correct
12 Correct 64 ms 94536 KB Output is correct
13 Correct 74 ms 94300 KB Output is correct
14 Correct 69 ms 94280 KB Output is correct
15 Correct 67 ms 94160 KB Output is correct
16 Correct 67 ms 94368 KB Output is correct
17 Correct 68 ms 94284 KB Output is correct
18 Correct 74 ms 94492 KB Output is correct
19 Correct 67 ms 94360 KB Output is correct
20 Correct 66 ms 94280 KB Output is correct
21 Correct 66 ms 94344 KB Output is correct
22 Correct 68 ms 94368 KB Output is correct
23 Correct 67 ms 94280 KB Output is correct
24 Correct 65 ms 94280 KB Output is correct
25 Correct 71 ms 94280 KB Output is correct
26 Correct 67 ms 94160 KB Output is correct
27 Correct 69 ms 94208 KB Output is correct
28 Correct 66 ms 94188 KB Output is correct
29 Correct 67 ms 94188 KB Output is correct
30 Correct 63 ms 94324 KB Output is correct
31 Correct 72 ms 94332 KB Output is correct
32 Correct 63 ms 94364 KB Output is correct
33 Correct 61 ms 94284 KB Output is correct
34 Correct 67 ms 94388 KB Output is correct
35 Correct 68 ms 94236 KB Output is correct
36 Correct 67 ms 94240 KB Output is correct
37 Correct 80 ms 94536 KB Output is correct
38 Correct 64 ms 94280 KB Output is correct
39 Correct 65 ms 94280 KB Output is correct
40 Correct 67 ms 94260 KB Output is correct
41 Correct 67 ms 94408 KB Output is correct
42 Correct 70 ms 94280 KB Output is correct
43 Correct 67 ms 94188 KB Output is correct
44 Correct 67 ms 94340 KB Output is correct
45 Correct 67 ms 94284 KB Output is correct
46 Correct 64 ms 94280 KB Output is correct
47 Correct 64 ms 94288 KB Output is correct
48 Correct 68 ms 94280 KB Output is correct
49 Correct 63 ms 94280 KB Output is correct
50 Correct 71 ms 94280 KB Output is correct
51 Correct 66 ms 94280 KB Output is correct
52 Correct 67 ms 94308 KB Output is correct
53 Correct 65 ms 94280 KB Output is correct
54 Correct 59 ms 94280 KB Output is correct
55 Correct 82 ms 94252 KB Output is correct
56 Correct 62 ms 94280 KB Output is correct
57 Correct 68 ms 94340 KB Output is correct
58 Correct 58 ms 94280 KB Output is correct
59 Correct 58 ms 94280 KB Output is correct
60 Correct 59 ms 94280 KB Output is correct
61 Correct 73 ms 94280 KB Output is correct
62 Correct 57 ms 94396 KB Output is correct
63 Correct 58 ms 94292 KB Output is correct
64 Correct 58 ms 94288 KB Output is correct
65 Correct 58 ms 94236 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 104 ms 112320 KB Output is correct
2 Correct 104 ms 112320 KB Output is correct
3 Correct 120 ms 111300 KB Output is correct
4 Correct 117 ms 112576 KB Output is correct
5 Correct 128 ms 109816 KB Output is correct
6 Correct 136 ms 111300 KB Output is correct
7 Correct 151 ms 109384 KB Output is correct
8 Correct 139 ms 110152 KB Output is correct
9 Correct 137 ms 107852 KB Output is correct
10 Correct 129 ms 108168 KB Output is correct
11 Correct 114 ms 105544 KB Output is correct
12 Correct 118 ms 105288 KB Output is correct
13 Correct 123 ms 105032 KB Output is correct
14 Correct 119 ms 104788 KB Output is correct
15 Correct 115 ms 103752 KB Output is correct
16 Correct 101 ms 103496 KB Output is correct
17 Correct 69 ms 96328 KB Output is correct
18 Correct 75 ms 96328 KB Output is correct
19 Correct 72 ms 96140 KB Output is correct
20 Correct 71 ms 96320 KB Output is correct
21 Correct 94 ms 96072 KB Output is correct
22 Correct 90 ms 96084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 70 ms 94520 KB Output is correct
2 Correct 74 ms 94420 KB Output is correct
3 Correct 62 ms 94360 KB Output is correct
4 Correct 64 ms 94536 KB Output is correct
5 Correct 69 ms 94388 KB Output is correct
6 Correct 74 ms 94488 KB Output is correct
7 Correct 77 ms 94580 KB Output is correct
8 Correct 89 ms 94468 KB Output is correct
9 Correct 70 ms 94428 KB Output is correct
10 Correct 78 ms 94280 KB Output is correct
11 Correct 79 ms 94392 KB Output is correct
12 Correct 83 ms 94540 KB Output is correct
13 Correct 90 ms 94540 KB Output is correct
14 Correct 67 ms 94280 KB Output is correct
15 Correct 78 ms 94404 KB Output is correct
16 Correct 65 ms 94372 KB Output is correct
17 Correct 64 ms 94536 KB Output is correct
18 Correct 67 ms 94536 KB Output is correct
19 Correct 65 ms 94392 KB Output is correct
20 Correct 64 ms 94492 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 125 ms 106568 KB Output is correct
2 Correct 123 ms 107032 KB Output is correct
3 Correct 137 ms 107080 KB Output is correct
4 Correct 145 ms 106356 KB Output is correct
5 Correct 152 ms 106316 KB Output is correct
6 Correct 144 ms 115652 KB Output is correct
7 Correct 145 ms 112580 KB Output is correct
8 Correct 153 ms 110408 KB Output is correct
9 Correct 137 ms 109120 KB Output is correct
10 Correct 131 ms 107040 KB Output is correct
11 Correct 130 ms 107452 KB Output is correct
12 Correct 134 ms 107376 KB Output is correct
13 Correct 153 ms 107592 KB Output is correct
14 Correct 129 ms 106824 KB Output is correct
15 Correct 139 ms 106056 KB Output is correct
16 Correct 114 ms 103496 KB Output is correct
17 Correct 111 ms 108056 KB Output is correct
18 Correct 111 ms 108076 KB Output is correct
19 Correct 123 ms 108220 KB Output is correct
20 Correct 131 ms 108104 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 64 ms 94404 KB Output is correct
2 Correct 62 ms 94280 KB Output is correct
3 Correct 62 ms 94420 KB Output is correct
4 Correct 60 ms 94280 KB Output is correct
5 Correct 63 ms 94280 KB Output is correct
6 Correct 59 ms 94280 KB Output is correct
7 Correct 67 ms 94452 KB Output is correct
8 Correct 69 ms 94448 KB Output is correct
9 Correct 64 ms 94436 KB Output is correct
10 Correct 64 ms 94284 KB Output is correct
11 Correct 64 ms 94280 KB Output is correct
12 Correct 66 ms 94536 KB Output is correct
13 Correct 69 ms 94544 KB Output is correct
14 Correct 69 ms 94536 KB Output is correct
15 Correct 65 ms 94540 KB Output is correct
16 Correct 72 ms 94280 KB Output is correct
17 Correct 64 ms 94280 KB Output is correct
18 Correct 64 ms 94520 KB Output is correct
19 Correct 66 ms 94516 KB Output is correct
20 Correct 67 ms 94280 KB Output is correct
21 Correct 62 ms 94300 KB Output is correct
22 Correct 75 ms 94280 KB Output is correct
23 Correct 63 ms 94280 KB Output is correct
24 Correct 64 ms 94280 KB Output is correct
25 Correct 63 ms 94280 KB Output is correct
26 Correct 63 ms 94416 KB Output is correct
27 Correct 68 ms 94280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 153 ms 106316 KB Output is correct
2 Correct 134 ms 106108 KB Output is correct
3 Correct 157 ms 106568 KB Output is correct
4 Correct 139 ms 104888 KB Output is correct
5 Correct 136 ms 104264 KB Output is correct
6 Correct 179 ms 105032 KB Output is correct
7 Correct 128 ms 104876 KB Output is correct
8 Correct 120 ms 103752 KB Output is correct
9 Correct 133 ms 104864 KB Output is correct
10 Correct 142 ms 104776 KB Output is correct
11 Correct 115 ms 104440 KB Output is correct
12 Correct 127 ms 104520 KB Output is correct
13 Correct 105 ms 104520 KB Output is correct
14 Correct 112 ms 105412 KB Output is correct
15 Correct 141 ms 111632 KB Output is correct
16 Correct 148 ms 110604 KB Output is correct
17 Correct 156 ms 110276 KB Output is correct
18 Correct 162 ms 109640 KB Output is correct
19 Correct 150 ms 104780 KB Output is correct
20 Correct 154 ms 106312 KB Output is correct
21 Correct 133 ms 106212 KB Output is correct
22 Correct 123 ms 105800 KB Output is correct
23 Correct 138 ms 105296 KB Output is correct
24 Correct 125 ms 107336 KB Output is correct
25 Correct 134 ms 107336 KB Output is correct
26 Correct 125 ms 106948 KB Output is correct
27 Correct 147 ms 106824 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 57 ms 94280 KB Output is correct
2 Correct 57 ms 94292 KB Output is correct
3 Correct 58 ms 94292 KB Output is correct
4 Correct 62 ms 94176 KB Output is correct
5 Correct 58 ms 94228 KB Output is correct
6 Correct 66 ms 94280 KB Output is correct
7 Correct 58 ms 94320 KB Output is correct
8 Correct 58 ms 94280 KB Output is correct
9 Correct 61 ms 94288 KB Output is correct
10 Correct 59 ms 94280 KB Output is correct
11 Correct 73 ms 94172 KB Output is correct
12 Correct 64 ms 94536 KB Output is correct
13 Correct 74 ms 94300 KB Output is correct
14 Correct 69 ms 94280 KB Output is correct
15 Correct 67 ms 94160 KB Output is correct
16 Correct 67 ms 94368 KB Output is correct
17 Correct 68 ms 94284 KB Output is correct
18 Correct 74 ms 94492 KB Output is correct
19 Correct 67 ms 94360 KB Output is correct
20 Correct 66 ms 94280 KB Output is correct
21 Correct 66 ms 94344 KB Output is correct
22 Correct 68 ms 94368 KB Output is correct
23 Correct 67 ms 94280 KB Output is correct
24 Correct 65 ms 94280 KB Output is correct
25 Correct 71 ms 94280 KB Output is correct
26 Correct 67 ms 94160 KB Output is correct
27 Correct 69 ms 94208 KB Output is correct
28 Correct 66 ms 94188 KB Output is correct
29 Correct 67 ms 94188 KB Output is correct
30 Correct 63 ms 94324 KB Output is correct
31 Correct 72 ms 94332 KB Output is correct
32 Correct 63 ms 94364 KB Output is correct
33 Correct 61 ms 94284 KB Output is correct
34 Correct 67 ms 94388 KB Output is correct
35 Correct 68 ms 94236 KB Output is correct
36 Correct 67 ms 94240 KB Output is correct
37 Correct 80 ms 94536 KB Output is correct
38 Correct 64 ms 94280 KB Output is correct
39 Correct 65 ms 94280 KB Output is correct
40 Correct 67 ms 94260 KB Output is correct
41 Correct 67 ms 94408 KB Output is correct
42 Correct 70 ms 94280 KB Output is correct
43 Correct 67 ms 94188 KB Output is correct
44 Correct 67 ms 94340 KB Output is correct
45 Correct 67 ms 94284 KB Output is correct
46 Correct 64 ms 94280 KB Output is correct
47 Correct 64 ms 94288 KB Output is correct
48 Correct 68 ms 94280 KB Output is correct
49 Correct 63 ms 94280 KB Output is correct
50 Correct 71 ms 94280 KB Output is correct
51 Correct 66 ms 94280 KB Output is correct
52 Correct 67 ms 94308 KB Output is correct
53 Correct 65 ms 94280 KB Output is correct
54 Correct 59 ms 94280 KB Output is correct
55 Correct 82 ms 94252 KB Output is correct
56 Correct 62 ms 94280 KB Output is correct
57 Correct 68 ms 94340 KB Output is correct
58 Correct 58 ms 94280 KB Output is correct
59 Correct 58 ms 94280 KB Output is correct
60 Correct 59 ms 94280 KB Output is correct
61 Correct 73 ms 94280 KB Output is correct
62 Correct 57 ms 94396 KB Output is correct
63 Correct 58 ms 94292 KB Output is correct
64 Correct 58 ms 94288 KB Output is correct
65 Correct 58 ms 94236 KB Output is correct
66 Correct 61 ms 94280 KB Output is correct
67 Correct 65 ms 94280 KB Output is correct
68 Correct 64 ms 94544 KB Output is correct
69 Correct 64 ms 94540 KB Output is correct
70 Correct 63 ms 94536 KB Output is correct
71 Correct 65 ms 94284 KB Output is correct
72 Correct 69 ms 94280 KB Output is correct
73 Correct 65 ms 94280 KB Output is correct
74 Correct 65 ms 94404 KB Output is correct
75 Correct 65 ms 94296 KB Output is correct
76 Correct 64 ms 94320 KB Output is correct
77 Correct 63 ms 94544 KB Output is correct
78 Correct 78 ms 94384 KB Output is correct
79 Correct 69 ms 94288 KB Output is correct
80 Correct 63 ms 94280 KB Output is correct
81 Correct 68 ms 94280 KB Output is correct
82 Correct 65 ms 94580 KB Output is correct
83 Correct 62 ms 94512 KB Output is correct
84 Correct 66 ms 94536 KB Output is correct
85 Correct 65 ms 94536 KB Output is correct
86 Correct 67 ms 94512 KB Output is correct
87 Correct 66 ms 94472 KB Output is correct
88 Correct 64 ms 94280 KB Output is correct
89 Correct 69 ms 94280 KB Output is correct
90 Correct 68 ms 94288 KB Output is correct
91 Correct 66 ms 94280 KB Output is correct
92 Correct 67 ms 94516 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 57 ms 94280 KB Output is correct
2 Correct 57 ms 94292 KB Output is correct
3 Correct 58 ms 94292 KB Output is correct
4 Correct 62 ms 94176 KB Output is correct
5 Correct 58 ms 94228 KB Output is correct
6 Correct 66 ms 94280 KB Output is correct
7 Correct 58 ms 94320 KB Output is correct
8 Correct 58 ms 94280 KB Output is correct
9 Correct 61 ms 94288 KB Output is correct
10 Correct 59 ms 94280 KB Output is correct
11 Correct 73 ms 94172 KB Output is correct
12 Correct 64 ms 94536 KB Output is correct
13 Correct 74 ms 94300 KB Output is correct
14 Correct 69 ms 94280 KB Output is correct
15 Correct 67 ms 94160 KB Output is correct
16 Correct 67 ms 94368 KB Output is correct
17 Correct 68 ms 94284 KB Output is correct
18 Correct 74 ms 94492 KB Output is correct
19 Correct 67 ms 94360 KB Output is correct
20 Correct 66 ms 94280 KB Output is correct
21 Correct 66 ms 94344 KB Output is correct
22 Correct 68 ms 94368 KB Output is correct
23 Correct 67 ms 94280 KB Output is correct
24 Correct 65 ms 94280 KB Output is correct
25 Correct 71 ms 94280 KB Output is correct
26 Correct 67 ms 94160 KB Output is correct
27 Correct 69 ms 94208 KB Output is correct
28 Correct 66 ms 94188 KB Output is correct
29 Correct 67 ms 94188 KB Output is correct
30 Correct 63 ms 94324 KB Output is correct
31 Correct 72 ms 94332 KB Output is correct
32 Correct 63 ms 94364 KB Output is correct
33 Correct 61 ms 94284 KB Output is correct
34 Correct 67 ms 94388 KB Output is correct
35 Correct 68 ms 94236 KB Output is correct
36 Correct 67 ms 94240 KB Output is correct
37 Correct 80 ms 94536 KB Output is correct
38 Correct 64 ms 94280 KB Output is correct
39 Correct 65 ms 94280 KB Output is correct
40 Correct 67 ms 94260 KB Output is correct
41 Correct 67 ms 94408 KB Output is correct
42 Correct 70 ms 94280 KB Output is correct
43 Correct 67 ms 94188 KB Output is correct
44 Correct 67 ms 94340 KB Output is correct
45 Correct 67 ms 94284 KB Output is correct
46 Correct 64 ms 94280 KB Output is correct
47 Correct 64 ms 94288 KB Output is correct
48 Correct 68 ms 94280 KB Output is correct
49 Correct 63 ms 94280 KB Output is correct
50 Correct 71 ms 94280 KB Output is correct
51 Correct 66 ms 94280 KB Output is correct
52 Correct 67 ms 94308 KB Output is correct
53 Correct 65 ms 94280 KB Output is correct
54 Correct 59 ms 94280 KB Output is correct
55 Correct 82 ms 94252 KB Output is correct
56 Correct 62 ms 94280 KB Output is correct
57 Correct 68 ms 94340 KB Output is correct
58 Correct 58 ms 94280 KB Output is correct
59 Correct 58 ms 94280 KB Output is correct
60 Correct 59 ms 94280 KB Output is correct
61 Correct 73 ms 94280 KB Output is correct
62 Correct 57 ms 94396 KB Output is correct
63 Correct 58 ms 94292 KB Output is correct
64 Correct 58 ms 94288 KB Output is correct
65 Correct 58 ms 94236 KB Output is correct
66 Correct 104 ms 112320 KB Output is correct
67 Correct 104 ms 112320 KB Output is correct
68 Correct 120 ms 111300 KB Output is correct
69 Correct 117 ms 112576 KB Output is correct
70 Correct 128 ms 109816 KB Output is correct
71 Correct 136 ms 111300 KB Output is correct
72 Correct 151 ms 109384 KB Output is correct
73 Correct 139 ms 110152 KB Output is correct
74 Correct 137 ms 107852 KB Output is correct
75 Correct 129 ms 108168 KB Output is correct
76 Correct 114 ms 105544 KB Output is correct
77 Correct 118 ms 105288 KB Output is correct
78 Correct 123 ms 105032 KB Output is correct
79 Correct 119 ms 104788 KB Output is correct
80 Correct 115 ms 103752 KB Output is correct
81 Correct 101 ms 103496 KB Output is correct
82 Correct 69 ms 96328 KB Output is correct
83 Correct 75 ms 96328 KB Output is correct
84 Correct 72 ms 96140 KB Output is correct
85 Correct 71 ms 96320 KB Output is correct
86 Correct 94 ms 96072 KB Output is correct
87 Correct 90 ms 96084 KB Output is correct
88 Correct 70 ms 94520 KB Output is correct
89 Correct 74 ms 94420 KB Output is correct
90 Correct 62 ms 94360 KB Output is correct
91 Correct 64 ms 94536 KB Output is correct
92 Correct 69 ms 94388 KB Output is correct
93 Correct 74 ms 94488 KB Output is correct
94 Correct 77 ms 94580 KB Output is correct
95 Correct 89 ms 94468 KB Output is correct
96 Correct 70 ms 94428 KB Output is correct
97 Correct 78 ms 94280 KB Output is correct
98 Correct 79 ms 94392 KB Output is correct
99 Correct 83 ms 94540 KB Output is correct
100 Correct 90 ms 94540 KB Output is correct
101 Correct 67 ms 94280 KB Output is correct
102 Correct 78 ms 94404 KB Output is correct
103 Correct 65 ms 94372 KB Output is correct
104 Correct 64 ms 94536 KB Output is correct
105 Correct 67 ms 94536 KB Output is correct
106 Correct 65 ms 94392 KB Output is correct
107 Correct 64 ms 94492 KB Output is correct
108 Correct 125 ms 106568 KB Output is correct
109 Correct 123 ms 107032 KB Output is correct
110 Correct 137 ms 107080 KB Output is correct
111 Correct 145 ms 106356 KB Output is correct
112 Correct 152 ms 106316 KB Output is correct
113 Correct 144 ms 115652 KB Output is correct
114 Correct 145 ms 112580 KB Output is correct
115 Correct 153 ms 110408 KB Output is correct
116 Correct 137 ms 109120 KB Output is correct
117 Correct 131 ms 107040 KB Output is correct
118 Correct 130 ms 107452 KB Output is correct
119 Correct 134 ms 107376 KB Output is correct
120 Correct 153 ms 107592 KB Output is correct
121 Correct 129 ms 106824 KB Output is correct
122 Correct 139 ms 106056 KB Output is correct
123 Correct 114 ms 103496 KB Output is correct
124 Correct 111 ms 108056 KB Output is correct
125 Correct 111 ms 108076 KB Output is correct
126 Correct 123 ms 108220 KB Output is correct
127 Correct 131 ms 108104 KB Output is correct
128 Correct 64 ms 94404 KB Output is correct
129 Correct 62 ms 94280 KB Output is correct
130 Correct 62 ms 94420 KB Output is correct
131 Correct 60 ms 94280 KB Output is correct
132 Correct 63 ms 94280 KB Output is correct
133 Correct 59 ms 94280 KB Output is correct
134 Correct 67 ms 94452 KB Output is correct
135 Correct 69 ms 94448 KB Output is correct
136 Correct 64 ms 94436 KB Output is correct
137 Correct 64 ms 94284 KB Output is correct
138 Correct 64 ms 94280 KB Output is correct
139 Correct 66 ms 94536 KB Output is correct
140 Correct 69 ms 94544 KB Output is correct
141 Correct 69 ms 94536 KB Output is correct
142 Correct 65 ms 94540 KB Output is correct
143 Correct 72 ms 94280 KB Output is correct
144 Correct 64 ms 94280 KB Output is correct
145 Correct 64 ms 94520 KB Output is correct
146 Correct 66 ms 94516 KB Output is correct
147 Correct 67 ms 94280 KB Output is correct
148 Correct 62 ms 94300 KB Output is correct
149 Correct 75 ms 94280 KB Output is correct
150 Correct 63 ms 94280 KB Output is correct
151 Correct 64 ms 94280 KB Output is correct
152 Correct 63 ms 94280 KB Output is correct
153 Correct 63 ms 94416 KB Output is correct
154 Correct 68 ms 94280 KB Output is correct
155 Correct 153 ms 106316 KB Output is correct
156 Correct 134 ms 106108 KB Output is correct
157 Correct 157 ms 106568 KB Output is correct
158 Correct 139 ms 104888 KB Output is correct
159 Correct 136 ms 104264 KB Output is correct
160 Correct 179 ms 105032 KB Output is correct
161 Correct 128 ms 104876 KB Output is correct
162 Correct 120 ms 103752 KB Output is correct
163 Correct 133 ms 104864 KB Output is correct
164 Correct 142 ms 104776 KB Output is correct
165 Correct 115 ms 104440 KB Output is correct
166 Correct 127 ms 104520 KB Output is correct
167 Correct 105 ms 104520 KB Output is correct
168 Correct 112 ms 105412 KB Output is correct
169 Correct 141 ms 111632 KB Output is correct
170 Correct 148 ms 110604 KB Output is correct
171 Correct 156 ms 110276 KB Output is correct
172 Correct 162 ms 109640 KB Output is correct
173 Correct 150 ms 104780 KB Output is correct
174 Correct 154 ms 106312 KB Output is correct
175 Correct 133 ms 106212 KB Output is correct
176 Correct 123 ms 105800 KB Output is correct
177 Correct 138 ms 105296 KB Output is correct
178 Correct 125 ms 107336 KB Output is correct
179 Correct 134 ms 107336 KB Output is correct
180 Correct 125 ms 106948 KB Output is correct
181 Correct 147 ms 106824 KB Output is correct
182 Correct 61 ms 94280 KB Output is correct
183 Correct 65 ms 94280 KB Output is correct
184 Correct 64 ms 94544 KB Output is correct
185 Correct 64 ms 94540 KB Output is correct
186 Correct 63 ms 94536 KB Output is correct
187 Correct 65 ms 94284 KB Output is correct
188 Correct 69 ms 94280 KB Output is correct
189 Correct 65 ms 94280 KB Output is correct
190 Correct 65 ms 94404 KB Output is correct
191 Correct 65 ms 94296 KB Output is correct
192 Correct 64 ms 94320 KB Output is correct
193 Correct 63 ms 94544 KB Output is correct
194 Correct 78 ms 94384 KB Output is correct
195 Correct 69 ms 94288 KB Output is correct
196 Correct 63 ms 94280 KB Output is correct
197 Correct 68 ms 94280 KB Output is correct
198 Correct 65 ms 94580 KB Output is correct
199 Correct 62 ms 94512 KB Output is correct
200 Correct 66 ms 94536 KB Output is correct
201 Correct 65 ms 94536 KB Output is correct
202 Correct 67 ms 94512 KB Output is correct
203 Correct 66 ms 94472 KB Output is correct
204 Correct 64 ms 94280 KB Output is correct
205 Correct 69 ms 94280 KB Output is correct
206 Correct 68 ms 94288 KB Output is correct
207 Correct 66 ms 94280 KB Output is correct
208 Correct 67 ms 94516 KB Output is correct
209 Correct 62 ms 95816 KB Output is correct
210 Correct 115 ms 102728 KB Output is correct
211 Correct 114 ms 107460 KB Output is correct
212 Correct 146 ms 110356 KB Output is correct
213 Correct 138 ms 112576 KB Output is correct
214 Correct 93 ms 105288 KB Output is correct
215 Correct 94 ms 105288 KB Output is correct
216 Correct 126 ms 107148 KB Output is correct
217 Correct 133 ms 105976 KB Output is correct
218 Correct 142 ms 105032 KB Output is correct
219 Correct 129 ms 104852 KB Output is correct
220 Correct 114 ms 104956 KB Output is correct
221 Correct 119 ms 104776 KB Output is correct
222 Correct 114 ms 105556 KB Output is correct
223 Correct 138 ms 108616 KB Output is correct
224 Correct 157 ms 107848 KB Output is correct
225 Correct 139 ms 105868 KB Output is correct
226 Correct 150 ms 105920 KB Output is correct
227 Correct 146 ms 105800 KB Output is correct
228 Correct 122 ms 105500 KB Output is correct
229 Correct 121 ms 105032 KB Output is correct
230 Correct 144 ms 106568 KB Output is correct
231 Correct 128 ms 106568 KB Output is correct