답안 #235980

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
235980 2020-05-30T14:48:24 Z DodgeBallMan 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
194 ms 26152 KB
#include <bits/stdc++.h>

using namespace std;

const int N = 2e5 + 10;
int n, m, pre[N], low[N], subsz[N], compsz[N];
long long ans;
bool art[N];

vector<vector<int>> g(N), ccs;
void tarjan( int u, int p ) {
    static int ti = 0;
    static stack<int> s;
    int chk = 0;
    low[u] = pre[u] = ++ti;
    s.emplace( u );
    for( int v : g[u] ) if( !pre[v] ) {
        tarjan( v, u );
        chk++;
        low[u] = min( low[u], low[v] );
        if( !p && chk > 1 || p && low[v] >= pre[u] ) art[u] = true;
        if( low[v] >= pre[u] ) {
            ccs.emplace_back( vector<int>() );
            ccs.back().emplace_back( u );
            while( ccs.back().back() != v ) ccs.back().emplace_back( s.top() ), s.pop();
        }
    }
    else if( v != p ) low[u] = min( low[u], pre[v] );
}

void genbcc() {
    g.clear(), g.resize( n+1 );
    for( vector<int> &cc : ccs ) {
        g.emplace_back( vector<int>() );
        compsz[(int)g.size()-1] = cc.size();
        for( int u : cc ) g[u].emplace_back( ( int )g.size() - 1 ), g[(int)g.size() - 1].emplace_back( u );
    }
}

int getsz( int u, int p ) {
    if( u <= n ) subsz[u] = 1;
    for( int v : g[u] ) if( v != p ) 
        subsz[u] += getsz( v, u );
    return subsz[u];
}

void bad( int u, int p, int all ) {
    //printf("%d %d\n",u,p);
    if( u <= n ) for( int v : g[u] ) {
        if( v != p ) ans -= 1ll * ( compsz[v] - 1 ) * ( all - subsz[v] ) * ( all - subsz[v] - 1 );
        else ans -= 1ll * ( compsz[v] - 1 ) * subsz[u] * ( subsz[u] - 1 );
    }
    for( int v : g[u] ) if( v != p ) bad( v, u, all );
}

int main()
{
    scanf("%d %d",&n,&m);
    for( int i = 0, a, b ; i < m ; i++ ) {
        scanf("%d %d",&a,&b);
        g[a].emplace_back( b ), g[b].emplace_back( a );
    }
    for( int i = 1 ; i <= n ; i++ ) if( !pre[i] ) tarjan( i, 0 );
    genbcc();
    for( int i = 1 ; i <= n ; i++ ) if( !subsz[i] ) {
        getsz( i, 0 );
        //printf("%d\n",subsz[i]);
        ans += 1ll * subsz[i] * ( subsz[i] - 1 ) * ( subsz[i] - 2 );
        bad( i, 0, subsz[i] );
    }
    printf("%lld",ans);
    return 0;
}

Compilation message

count_triplets.cpp: In function 'void tarjan(int, int)':
count_triplets.cpp:21:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
         if( !p && chk > 1 || p && low[v] >= pre[u] ) art[u] = true;
             ~~~^~~~~~~~~~
count_triplets.cpp: In function 'int main()':
count_triplets.cpp:58:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d",&n,&m);
     ~~~~~^~~~~~~~~~~~~~~
count_triplets.cpp:60:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d %d",&a,&b);
         ~~~~~^~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 5120 KB Output is correct
2 Correct 7 ms 5120 KB Output is correct
3 Correct 8 ms 5152 KB Output is correct
4 Correct 8 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 8 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 5120 KB Output is correct
10 Correct 8 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 4992 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 5120 KB Output is correct
2 Correct 7 ms 5120 KB Output is correct
3 Correct 8 ms 5152 KB Output is correct
4 Correct 8 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 8 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 5120 KB Output is correct
10 Correct 8 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 4992 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
36 Correct 7 ms 5120 KB Output is correct
37 Correct 7 ms 5120 KB Output is correct
38 Correct 7 ms 4992 KB Output is correct
39 Correct 7 ms 4992 KB Output is correct
40 Correct 7 ms 4992 KB Output is correct
41 Correct 8 ms 5120 KB Output is correct
42 Correct 7 ms 4992 KB Output is correct
43 Correct 7 ms 5120 KB Output is correct
44 Correct 7 ms 4992 KB Output is correct
45 Correct 7 ms 5120 KB Output is correct
46 Correct 7 ms 4992 KB Output is correct
47 Correct 7 ms 5248 KB Output is correct
48 Correct 7 ms 4992 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 7 ms 4992 KB Output is correct
51 Correct 7 ms 5120 KB Output is correct
52 Correct 8 ms 4992 KB Output is correct
53 Correct 7 ms 4992 KB Output is correct
54 Correct 7 ms 4992 KB Output is correct
55 Correct 7 ms 4992 KB Output is correct
56 Correct 7 ms 4992 KB Output is correct
57 Correct 7 ms 4992 KB Output is correct
58 Correct 7 ms 4992 KB Output is correct
59 Correct 8 ms 4992 KB Output is correct
60 Correct 7 ms 4992 KB Output is correct
61 Correct 7 ms 5120 KB Output is correct
62 Correct 7 ms 4992 KB Output is correct
63 Correct 7 ms 4992 KB Output is correct
64 Correct 7 ms 4992 KB Output is correct
65 Correct 8 ms 4992 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 96 ms 22828 KB Output is correct
2 Correct 117 ms 22828 KB Output is correct
3 Correct 134 ms 21276 KB Output is correct
4 Correct 115 ms 21840 KB Output is correct
5 Correct 125 ms 18052 KB Output is correct
6 Correct 121 ms 19880 KB Output is correct
7 Correct 149 ms 18924 KB Output is correct
8 Correct 118 ms 19760 KB Output is correct
9 Correct 136 ms 17964 KB Output is correct
10 Correct 122 ms 18220 KB Output is correct
11 Correct 109 ms 15404 KB Output is correct
12 Correct 103 ms 15148 KB Output is correct
13 Correct 105 ms 15020 KB Output is correct
14 Correct 110 ms 14764 KB Output is correct
15 Correct 87 ms 13740 KB Output is correct
16 Correct 78 ms 13356 KB Output is correct
17 Correct 11 ms 6656 KB Output is correct
18 Correct 11 ms 6656 KB Output is correct
19 Correct 10 ms 6656 KB Output is correct
20 Correct 10 ms 6656 KB Output is correct
21 Correct 10 ms 6656 KB Output is correct
22 Correct 11 ms 6656 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 5248 KB Output is correct
2 Correct 10 ms 5248 KB Output is correct
3 Correct 8 ms 5248 KB Output is correct
4 Correct 8 ms 5248 KB Output is correct
5 Correct 8 ms 5248 KB Output is correct
6 Correct 8 ms 5248 KB Output is correct
7 Correct 8 ms 5248 KB Output is correct
8 Correct 8 ms 5248 KB Output is correct
9 Correct 8 ms 5248 KB Output is correct
10 Correct 9 ms 5248 KB Output is correct
11 Correct 8 ms 5248 KB Output is correct
12 Correct 8 ms 5248 KB Output is correct
13 Correct 8 ms 5248 KB Output is correct
14 Correct 8 ms 5248 KB Output is correct
15 Correct 8 ms 5248 KB Output is correct
16 Correct 8 ms 5120 KB Output is correct
17 Correct 8 ms 5248 KB Output is correct
18 Correct 8 ms 5248 KB Output is correct
19 Correct 8 ms 5240 KB Output is correct
20 Correct 8 ms 5376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 156 ms 20264 KB Output is correct
2 Correct 183 ms 20264 KB Output is correct
3 Correct 180 ms 20264 KB Output is correct
4 Correct 170 ms 20240 KB Output is correct
5 Correct 159 ms 20236 KB Output is correct
6 Correct 157 ms 26152 KB Output is correct
7 Correct 159 ms 24228 KB Output is correct
8 Correct 165 ms 23036 KB Output is correct
9 Correct 153 ms 22056 KB Output is correct
10 Correct 141 ms 20264 KB Output is correct
11 Correct 156 ms 20264 KB Output is correct
12 Correct 159 ms 20260 KB Output is correct
13 Correct 165 ms 20264 KB Output is correct
14 Correct 139 ms 19112 KB Output is correct
15 Correct 136 ms 17992 KB Output is correct
16 Correct 83 ms 14224 KB Output is correct
17 Correct 119 ms 20444 KB Output is correct
18 Correct 128 ms 20376 KB Output is correct
19 Correct 103 ms 20500 KB Output is correct
20 Correct 109 ms 20376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 5248 KB Output is correct
2 Correct 8 ms 5248 KB Output is correct
3 Correct 8 ms 5248 KB Output is correct
4 Correct 8 ms 5248 KB Output is correct
5 Correct 8 ms 5120 KB Output is correct
6 Correct 8 ms 5120 KB Output is correct
7 Correct 8 ms 5120 KB Output is correct
8 Correct 8 ms 5120 KB Output is correct
9 Correct 8 ms 5120 KB Output is correct
10 Correct 8 ms 5120 KB Output is correct
11 Correct 8 ms 5120 KB Output is correct
12 Correct 8 ms 5248 KB Output is correct
13 Correct 8 ms 5248 KB Output is correct
14 Correct 11 ms 5248 KB Output is correct
15 Correct 8 ms 5248 KB Output is correct
16 Correct 8 ms 5120 KB Output is correct
17 Correct 8 ms 5120 KB Output is correct
18 Correct 8 ms 5120 KB Output is correct
19 Correct 8 ms 5248 KB Output is correct
20 Correct 11 ms 5120 KB Output is correct
21 Correct 8 ms 5248 KB Output is correct
22 Correct 8 ms 5248 KB Output is correct
23 Correct 8 ms 5248 KB Output is correct
24 Correct 8 ms 5120 KB Output is correct
25 Correct 7 ms 5120 KB Output is correct
26 Correct 7 ms 5120 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 149 ms 20260 KB Output is correct
2 Correct 164 ms 20136 KB Output is correct
3 Correct 158 ms 18860 KB Output is correct
4 Correct 194 ms 16812 KB Output is correct
5 Correct 132 ms 14764 KB Output is correct
6 Correct 131 ms 14000 KB Output is correct
7 Correct 115 ms 13488 KB Output is correct
8 Correct 103 ms 12852 KB Output is correct
9 Correct 104 ms 12724 KB Output is correct
10 Correct 98 ms 12536 KB Output is correct
11 Correct 104 ms 12280 KB Output is correct
12 Correct 103 ms 12280 KB Output is correct
13 Correct 102 ms 12280 KB Output is correct
14 Correct 109 ms 14712 KB Output is correct
15 Correct 193 ms 23204 KB Output is correct
16 Correct 168 ms 21800 KB Output is correct
17 Correct 174 ms 21668 KB Output is correct
18 Correct 155 ms 20260 KB Output is correct
19 Correct 162 ms 16812 KB Output is correct
20 Correct 168 ms 16812 KB Output is correct
21 Correct 168 ms 16812 KB Output is correct
22 Correct 151 ms 15788 KB Output is correct
23 Correct 126 ms 14908 KB Output is correct
24 Correct 130 ms 18908 KB Output is correct
25 Correct 136 ms 19044 KB Output is correct
26 Correct 133 ms 17764 KB Output is correct
27 Correct 148 ms 17688 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 5120 KB Output is correct
2 Correct 7 ms 5120 KB Output is correct
3 Correct 8 ms 5152 KB Output is correct
4 Correct 8 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 8 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 5120 KB Output is correct
10 Correct 8 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 4992 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
36 Correct 7 ms 5120 KB Output is correct
37 Correct 7 ms 5120 KB Output is correct
38 Correct 7 ms 4992 KB Output is correct
39 Correct 7 ms 4992 KB Output is correct
40 Correct 7 ms 4992 KB Output is correct
41 Correct 8 ms 5120 KB Output is correct
42 Correct 7 ms 4992 KB Output is correct
43 Correct 7 ms 5120 KB Output is correct
44 Correct 7 ms 4992 KB Output is correct
45 Correct 7 ms 5120 KB Output is correct
46 Correct 7 ms 4992 KB Output is correct
47 Correct 7 ms 5248 KB Output is correct
48 Correct 7 ms 4992 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 7 ms 4992 KB Output is correct
51 Correct 7 ms 5120 KB Output is correct
52 Correct 8 ms 4992 KB Output is correct
53 Correct 7 ms 4992 KB Output is correct
54 Correct 7 ms 4992 KB Output is correct
55 Correct 7 ms 4992 KB Output is correct
56 Correct 7 ms 4992 KB Output is correct
57 Correct 7 ms 4992 KB Output is correct
58 Correct 7 ms 4992 KB Output is correct
59 Correct 8 ms 4992 KB Output is correct
60 Correct 7 ms 4992 KB Output is correct
61 Correct 7 ms 5120 KB Output is correct
62 Correct 7 ms 4992 KB Output is correct
63 Correct 7 ms 4992 KB Output is correct
64 Correct 7 ms 4992 KB Output is correct
65 Correct 8 ms 4992 KB Output is correct
66 Correct 7 ms 5120 KB Output is correct
67 Correct 8 ms 5120 KB Output is correct
68 Correct 8 ms 5120 KB Output is correct
69 Correct 8 ms 5120 KB Output is correct
70 Correct 8 ms 5248 KB Output is correct
71 Correct 8 ms 5120 KB Output is correct
72 Correct 8 ms 5120 KB Output is correct
73 Correct 8 ms 5120 KB Output is correct
74 Correct 8 ms 5120 KB Output is correct
75 Correct 8 ms 5120 KB Output is correct
76 Correct 7 ms 4992 KB Output is correct
77 Correct 8 ms 5120 KB Output is correct
78 Correct 8 ms 5120 KB Output is correct
79 Correct 8 ms 5120 KB Output is correct
80 Correct 8 ms 5120 KB Output is correct
81 Correct 8 ms 5120 KB Output is correct
82 Correct 8 ms 5248 KB Output is correct
83 Correct 8 ms 5248 KB Output is correct
84 Correct 8 ms 5120 KB Output is correct
85 Correct 8 ms 5120 KB Output is correct
86 Correct 9 ms 5120 KB Output is correct
87 Correct 8 ms 5120 KB Output is correct
88 Correct 8 ms 5120 KB Output is correct
89 Correct 8 ms 5120 KB Output is correct
90 Correct 8 ms 5120 KB Output is correct
91 Correct 8 ms 5120 KB Output is correct
92 Correct 8 ms 5120 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 5120 KB Output is correct
2 Correct 7 ms 5120 KB Output is correct
3 Correct 8 ms 5152 KB Output is correct
4 Correct 8 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 8 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 5120 KB Output is correct
10 Correct 8 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 4992 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
36 Correct 7 ms 5120 KB Output is correct
37 Correct 7 ms 5120 KB Output is correct
38 Correct 7 ms 4992 KB Output is correct
39 Correct 7 ms 4992 KB Output is correct
40 Correct 7 ms 4992 KB Output is correct
41 Correct 8 ms 5120 KB Output is correct
42 Correct 7 ms 4992 KB Output is correct
43 Correct 7 ms 5120 KB Output is correct
44 Correct 7 ms 4992 KB Output is correct
45 Correct 7 ms 5120 KB Output is correct
46 Correct 7 ms 4992 KB Output is correct
47 Correct 7 ms 5248 KB Output is correct
48 Correct 7 ms 4992 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 7 ms 4992 KB Output is correct
51 Correct 7 ms 5120 KB Output is correct
52 Correct 8 ms 4992 KB Output is correct
53 Correct 7 ms 4992 KB Output is correct
54 Correct 7 ms 4992 KB Output is correct
55 Correct 7 ms 4992 KB Output is correct
56 Correct 7 ms 4992 KB Output is correct
57 Correct 7 ms 4992 KB Output is correct
58 Correct 7 ms 4992 KB Output is correct
59 Correct 8 ms 4992 KB Output is correct
60 Correct 7 ms 4992 KB Output is correct
61 Correct 7 ms 5120 KB Output is correct
62 Correct 7 ms 4992 KB Output is correct
63 Correct 7 ms 4992 KB Output is correct
64 Correct 7 ms 4992 KB Output is correct
65 Correct 8 ms 4992 KB Output is correct
66 Correct 96 ms 22828 KB Output is correct
67 Correct 117 ms 22828 KB Output is correct
68 Correct 134 ms 21276 KB Output is correct
69 Correct 115 ms 21840 KB Output is correct
70 Correct 125 ms 18052 KB Output is correct
71 Correct 121 ms 19880 KB Output is correct
72 Correct 149 ms 18924 KB Output is correct
73 Correct 118 ms 19760 KB Output is correct
74 Correct 136 ms 17964 KB Output is correct
75 Correct 122 ms 18220 KB Output is correct
76 Correct 109 ms 15404 KB Output is correct
77 Correct 103 ms 15148 KB Output is correct
78 Correct 105 ms 15020 KB Output is correct
79 Correct 110 ms 14764 KB Output is correct
80 Correct 87 ms 13740 KB Output is correct
81 Correct 78 ms 13356 KB Output is correct
82 Correct 11 ms 6656 KB Output is correct
83 Correct 11 ms 6656 KB Output is correct
84 Correct 10 ms 6656 KB Output is correct
85 Correct 10 ms 6656 KB Output is correct
86 Correct 10 ms 6656 KB Output is correct
87 Correct 11 ms 6656 KB Output is correct
88 Correct 8 ms 5248 KB Output is correct
89 Correct 10 ms 5248 KB Output is correct
90 Correct 8 ms 5248 KB Output is correct
91 Correct 8 ms 5248 KB Output is correct
92 Correct 8 ms 5248 KB Output is correct
93 Correct 8 ms 5248 KB Output is correct
94 Correct 8 ms 5248 KB Output is correct
95 Correct 8 ms 5248 KB Output is correct
96 Correct 8 ms 5248 KB Output is correct
97 Correct 9 ms 5248 KB Output is correct
98 Correct 8 ms 5248 KB Output is correct
99 Correct 8 ms 5248 KB Output is correct
100 Correct 8 ms 5248 KB Output is correct
101 Correct 8 ms 5248 KB Output is correct
102 Correct 8 ms 5248 KB Output is correct
103 Correct 8 ms 5120 KB Output is correct
104 Correct 8 ms 5248 KB Output is correct
105 Correct 8 ms 5248 KB Output is correct
106 Correct 8 ms 5240 KB Output is correct
107 Correct 8 ms 5376 KB Output is correct
108 Correct 156 ms 20264 KB Output is correct
109 Correct 183 ms 20264 KB Output is correct
110 Correct 180 ms 20264 KB Output is correct
111 Correct 170 ms 20240 KB Output is correct
112 Correct 159 ms 20236 KB Output is correct
113 Correct 157 ms 26152 KB Output is correct
114 Correct 159 ms 24228 KB Output is correct
115 Correct 165 ms 23036 KB Output is correct
116 Correct 153 ms 22056 KB Output is correct
117 Correct 141 ms 20264 KB Output is correct
118 Correct 156 ms 20264 KB Output is correct
119 Correct 159 ms 20260 KB Output is correct
120 Correct 165 ms 20264 KB Output is correct
121 Correct 139 ms 19112 KB Output is correct
122 Correct 136 ms 17992 KB Output is correct
123 Correct 83 ms 14224 KB Output is correct
124 Correct 119 ms 20444 KB Output is correct
125 Correct 128 ms 20376 KB Output is correct
126 Correct 103 ms 20500 KB Output is correct
127 Correct 109 ms 20376 KB Output is correct
128 Correct 11 ms 5248 KB Output is correct
129 Correct 8 ms 5248 KB Output is correct
130 Correct 8 ms 5248 KB Output is correct
131 Correct 8 ms 5248 KB Output is correct
132 Correct 8 ms 5120 KB Output is correct
133 Correct 8 ms 5120 KB Output is correct
134 Correct 8 ms 5120 KB Output is correct
135 Correct 8 ms 5120 KB Output is correct
136 Correct 8 ms 5120 KB Output is correct
137 Correct 8 ms 5120 KB Output is correct
138 Correct 8 ms 5120 KB Output is correct
139 Correct 8 ms 5248 KB Output is correct
140 Correct 8 ms 5248 KB Output is correct
141 Correct 11 ms 5248 KB Output is correct
142 Correct 8 ms 5248 KB Output is correct
143 Correct 8 ms 5120 KB Output is correct
144 Correct 8 ms 5120 KB Output is correct
145 Correct 8 ms 5120 KB Output is correct
146 Correct 8 ms 5248 KB Output is correct
147 Correct 11 ms 5120 KB Output is correct
148 Correct 8 ms 5248 KB Output is correct
149 Correct 8 ms 5248 KB Output is correct
150 Correct 8 ms 5248 KB Output is correct
151 Correct 8 ms 5120 KB Output is correct
152 Correct 7 ms 5120 KB Output is correct
153 Correct 7 ms 5120 KB Output is correct
154 Correct 7 ms 5120 KB Output is correct
155 Correct 149 ms 20260 KB Output is correct
156 Correct 164 ms 20136 KB Output is correct
157 Correct 158 ms 18860 KB Output is correct
158 Correct 194 ms 16812 KB Output is correct
159 Correct 132 ms 14764 KB Output is correct
160 Correct 131 ms 14000 KB Output is correct
161 Correct 115 ms 13488 KB Output is correct
162 Correct 103 ms 12852 KB Output is correct
163 Correct 104 ms 12724 KB Output is correct
164 Correct 98 ms 12536 KB Output is correct
165 Correct 104 ms 12280 KB Output is correct
166 Correct 103 ms 12280 KB Output is correct
167 Correct 102 ms 12280 KB Output is correct
168 Correct 109 ms 14712 KB Output is correct
169 Correct 193 ms 23204 KB Output is correct
170 Correct 168 ms 21800 KB Output is correct
171 Correct 174 ms 21668 KB Output is correct
172 Correct 155 ms 20260 KB Output is correct
173 Correct 162 ms 16812 KB Output is correct
174 Correct 168 ms 16812 KB Output is correct
175 Correct 168 ms 16812 KB Output is correct
176 Correct 151 ms 15788 KB Output is correct
177 Correct 126 ms 14908 KB Output is correct
178 Correct 130 ms 18908 KB Output is correct
179 Correct 136 ms 19044 KB Output is correct
180 Correct 133 ms 17764 KB Output is correct
181 Correct 148 ms 17688 KB Output is correct
182 Correct 7 ms 5120 KB Output is correct
183 Correct 8 ms 5120 KB Output is correct
184 Correct 8 ms 5120 KB Output is correct
185 Correct 8 ms 5120 KB Output is correct
186 Correct 8 ms 5248 KB Output is correct
187 Correct 8 ms 5120 KB Output is correct
188 Correct 8 ms 5120 KB Output is correct
189 Correct 8 ms 5120 KB Output is correct
190 Correct 8 ms 5120 KB Output is correct
191 Correct 8 ms 5120 KB Output is correct
192 Correct 7 ms 4992 KB Output is correct
193 Correct 8 ms 5120 KB Output is correct
194 Correct 8 ms 5120 KB Output is correct
195 Correct 8 ms 5120 KB Output is correct
196 Correct 8 ms 5120 KB Output is correct
197 Correct 8 ms 5120 KB Output is correct
198 Correct 8 ms 5248 KB Output is correct
199 Correct 8 ms 5248 KB Output is correct
200 Correct 8 ms 5120 KB Output is correct
201 Correct 8 ms 5120 KB Output is correct
202 Correct 9 ms 5120 KB Output is correct
203 Correct 8 ms 5120 KB Output is correct
204 Correct 8 ms 5120 KB Output is correct
205 Correct 8 ms 5120 KB Output is correct
206 Correct 8 ms 5120 KB Output is correct
207 Correct 8 ms 5120 KB Output is correct
208 Correct 8 ms 5120 KB Output is correct
209 Correct 11 ms 6656 KB Output is correct
210 Correct 73 ms 13788 KB Output is correct
211 Correct 123 ms 17068 KB Output is correct
212 Correct 153 ms 18864 KB Output is correct
213 Correct 185 ms 20572 KB Output is correct
214 Correct 82 ms 14764 KB Output is correct
215 Correct 81 ms 14128 KB Output is correct
216 Correct 142 ms 17576 KB Output is correct
217 Correct 140 ms 15316 KB Output is correct
218 Correct 129 ms 13084 KB Output is correct
219 Correct 112 ms 12408 KB Output is correct
220 Correct 96 ms 12280 KB Output is correct
221 Correct 95 ms 12024 KB Output is correct
222 Correct 118 ms 13432 KB Output is correct
223 Correct 184 ms 17964 KB Output is correct
224 Correct 158 ms 17072 KB Output is correct
225 Correct 139 ms 14680 KB Output is correct
226 Correct 157 ms 14636 KB Output is correct
227 Correct 149 ms 14636 KB Output is correct
228 Correct 142 ms 14128 KB Output is correct
229 Correct 122 ms 13880 KB Output is correct
230 Correct 147 ms 15088 KB Output is correct
231 Correct 145 ms 15148 KB Output is correct