Submission #979139

# Submission time Handle Problem Language Result Execution time Memory
979139 2024-05-10T09:38:19 Z sleepntsheep Council (JOI23_council) C
100 / 100
889 ms 22356 KB
#include<stdio.h>
#include<assert.h>
#include<string.h>

#define N 300000
#define M 20

int a[N], b[N], n, m, cc[M], f[1<<M][2];

int count(int x) {
#if defined __has_builtin
    return __builtin_popcount(x);
#else
    return x ? 1 + count(x&x-1) : 0;
#endif
}

int gt(int i,int j,int s){if(i==-1)return 0;if(j==-1)return 1;return count(b[i]&s)>count(b[j]&s);}

void put(int i, int v)
{
    if (gt(v, f[i][0], i))
        f[i][1]=f[i][0],f[i][0]=v;
    else if (v != f[i][0] && gt(v, f[i][1], i))
        f[i][1]=v;
}

int main()
{
    memset(f,-1,sizeof f);
    scanf("%d%d",&n,&m);
    for(int i=0;i<n;++i)
    {
        for(int x,j=0;j<m;++j)
            scanf("%d",&x),a[i]|=x<<j, cc[j]+=x;

        b[i]=((1<<m)-1)&~a[i];
        put(b[i], i);
    }

    /* need to find max count(b[i] & S)
     * SOS dp :question: */

    for(int i=0;i<m;++i)
        for(int j=0;j<(1<<m);++j)
            if(1==((j>>i)&1))
            {
                int jj=j^(1<<i);
                put(jj, f[j][1]); 
                put(jj, f[j][0]);
            }

    for(int i=0;i<m;++i)
        for(int j=0;j<(1<<m);++j)
            if(0==((j>>i)&1))
            {
                int jj=j^(1<<i);
                put(jj, f[j][1]); 
                put(jj, f[j][0]);
            }

    for(int i=0;i<n;++i)
    {
        int S=0,ans=0;
        for(int j=0;j<m;++j)
        {
            int c=cc[j]-((a[i]>>j)&1);
            if (c>n/2)
                ++ans;
            else if(c==n/2)
                S|=1<<j;
        }
        if (i == f[S][0])
            ans += count(b[f[S][1]]&S);
        else
            ans += count(b[f[S][0]]&S);

        printf("%d\n", ans);
    }

}


Compilation message

council.c: In function 'main':
council.c:31:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   31 |     scanf("%d%d",&n,&m);
      |     ^~~~~~~~~~~~~~~~~~~
council.c:35:13: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   35 |             scanf("%d",&x),a[i]|=x<<j, cc[j]+=x;
      |             ^~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 2 ms 9560 KB Output is correct
2 Correct 2 ms 9564 KB Output is correct
3 Correct 2 ms 9564 KB Output is correct
4 Correct 2 ms 9564 KB Output is correct
5 Correct 172 ms 9812 KB Output is correct
6 Correct 106 ms 9564 KB Output is correct
7 Correct 127 ms 9564 KB Output is correct
8 Correct 151 ms 9560 KB Output is correct
9 Correct 240 ms 9564 KB Output is correct
10 Correct 129 ms 9756 KB Output is correct
11 Correct 163 ms 9560 KB Output is correct
12 Correct 223 ms 9760 KB Output is correct
13 Correct 2 ms 9560 KB Output is correct
14 Correct 2 ms 9564 KB Output is correct
15 Correct 2 ms 9564 KB Output is correct
16 Correct 2 ms 9564 KB Output is correct
17 Correct 2 ms 9568 KB Output is correct
18 Correct 2 ms 9564 KB Output is correct
19 Correct 2 ms 9564 KB Output is correct
20 Correct 2 ms 9560 KB Output is correct
21 Correct 2 ms 9564 KB Output is correct
22 Correct 2 ms 9776 KB Output is correct
23 Correct 2 ms 9564 KB Output is correct
24 Correct 2 ms 9564 KB Output is correct
25 Correct 2 ms 9564 KB Output is correct
26 Correct 2 ms 9768 KB Output is correct
27 Correct 2 ms 9560 KB Output is correct
28 Correct 2 ms 9564 KB Output is correct
29 Correct 2 ms 9564 KB Output is correct
30 Correct 2 ms 9564 KB Output is correct
31 Correct 2 ms 9564 KB Output is correct
32 Correct 2 ms 9920 KB Output is correct
33 Correct 2 ms 9564 KB Output is correct
34 Correct 2 ms 9564 KB Output is correct
35 Correct 2 ms 9564 KB Output is correct
36 Correct 2 ms 9564 KB Output is correct
37 Correct 2 ms 9564 KB Output is correct
38 Correct 2 ms 9772 KB Output is correct
39 Correct 2 ms 9564 KB Output is correct
40 Correct 2 ms 9564 KB Output is correct
41 Correct 4 ms 9776 KB Output is correct
42 Correct 3 ms 9760 KB Output is correct
43 Correct 4 ms 9564 KB Output is correct
44 Correct 4 ms 9564 KB Output is correct
45 Correct 4 ms 9560 KB Output is correct
46 Correct 20 ms 9564 KB Output is correct
47 Correct 19 ms 9780 KB Output is correct
48 Correct 19 ms 9560 KB Output is correct
49 Correct 16 ms 9564 KB Output is correct
50 Correct 21 ms 9560 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 9560 KB Output is correct
2 Correct 2 ms 9564 KB Output is correct
3 Correct 2 ms 9564 KB Output is correct
4 Correct 2 ms 9564 KB Output is correct
5 Correct 172 ms 9812 KB Output is correct
6 Correct 106 ms 9564 KB Output is correct
7 Correct 127 ms 9564 KB Output is correct
8 Correct 151 ms 9560 KB Output is correct
9 Correct 240 ms 9564 KB Output is correct
10 Correct 129 ms 9756 KB Output is correct
11 Correct 163 ms 9560 KB Output is correct
12 Correct 223 ms 9760 KB Output is correct
13 Correct 2 ms 9560 KB Output is correct
14 Correct 2 ms 9564 KB Output is correct
15 Correct 2 ms 9564 KB Output is correct
16 Correct 2 ms 9564 KB Output is correct
17 Correct 2 ms 9568 KB Output is correct
18 Correct 2 ms 9564 KB Output is correct
19 Correct 2 ms 9564 KB Output is correct
20 Correct 2 ms 9560 KB Output is correct
21 Correct 2 ms 9564 KB Output is correct
22 Correct 2 ms 9776 KB Output is correct
23 Correct 2 ms 9564 KB Output is correct
24 Correct 2 ms 9564 KB Output is correct
25 Correct 2 ms 9564 KB Output is correct
26 Correct 2 ms 9768 KB Output is correct
27 Correct 2 ms 9560 KB Output is correct
28 Correct 2 ms 9564 KB Output is correct
29 Correct 2 ms 9564 KB Output is correct
30 Correct 2 ms 9564 KB Output is correct
31 Correct 2 ms 9564 KB Output is correct
32 Correct 2 ms 9920 KB Output is correct
33 Correct 2 ms 9564 KB Output is correct
34 Correct 2 ms 9564 KB Output is correct
35 Correct 2 ms 9564 KB Output is correct
36 Correct 2 ms 9564 KB Output is correct
37 Correct 2 ms 9564 KB Output is correct
38 Correct 2 ms 9772 KB Output is correct
39 Correct 2 ms 9564 KB Output is correct
40 Correct 2 ms 9564 KB Output is correct
41 Correct 4 ms 9776 KB Output is correct
42 Correct 3 ms 9760 KB Output is correct
43 Correct 4 ms 9564 KB Output is correct
44 Correct 4 ms 9564 KB Output is correct
45 Correct 4 ms 9560 KB Output is correct
46 Correct 20 ms 9564 KB Output is correct
47 Correct 19 ms 9780 KB Output is correct
48 Correct 19 ms 9560 KB Output is correct
49 Correct 16 ms 9564 KB Output is correct
50 Correct 21 ms 9560 KB Output is correct
51 Correct 104 ms 9816 KB Output is correct
52 Correct 244 ms 9884 KB Output is correct
53 Correct 284 ms 9880 KB Output is correct
54 Correct 290 ms 9820 KB Output is correct
55 Correct 4 ms 9564 KB Output is correct
56 Correct 52 ms 9820 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 9564 KB Output is correct
2 Correct 59 ms 12612 KB Output is correct
3 Correct 82 ms 12644 KB Output is correct
4 Correct 43 ms 12116 KB Output is correct
5 Correct 61 ms 12560 KB Output is correct
6 Correct 61 ms 12048 KB Output is correct
7 Correct 65 ms 12624 KB Output is correct
8 Correct 3 ms 9560 KB Output is correct
9 Correct 4 ms 8540 KB Output is correct
10 Correct 4 ms 8636 KB Output is correct
11 Correct 4 ms 8540 KB Output is correct
12 Correct 3 ms 8536 KB Output is correct
13 Correct 3 ms 8540 KB Output is correct
14 Correct 3 ms 8540 KB Output is correct
15 Correct 4 ms 8540 KB Output is correct
16 Correct 3 ms 8536 KB Output is correct
17 Correct 4 ms 8540 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 9564 KB Output is correct
2 Correct 59 ms 12612 KB Output is correct
3 Correct 82 ms 12644 KB Output is correct
4 Correct 43 ms 12116 KB Output is correct
5 Correct 61 ms 12560 KB Output is correct
6 Correct 61 ms 12048 KB Output is correct
7 Correct 65 ms 12624 KB Output is correct
8 Correct 3 ms 9560 KB Output is correct
9 Correct 4 ms 8540 KB Output is correct
10 Correct 4 ms 8636 KB Output is correct
11 Correct 4 ms 8540 KB Output is correct
12 Correct 3 ms 8536 KB Output is correct
13 Correct 3 ms 8540 KB Output is correct
14 Correct 3 ms 8540 KB Output is correct
15 Correct 4 ms 8540 KB Output is correct
16 Correct 3 ms 8536 KB Output is correct
17 Correct 4 ms 8540 KB Output is correct
18 Correct 3 ms 8536 KB Output is correct
19 Correct 3 ms 8536 KB Output is correct
20 Correct 254 ms 17216 KB Output is correct
21 Correct 197 ms 16576 KB Output is correct
22 Correct 228 ms 16772 KB Output is correct
23 Correct 228 ms 17588 KB Output is correct
24 Correct 197 ms 17360 KB Output is correct
25 Correct 219 ms 17184 KB Output is correct
26 Correct 214 ms 17236 KB Output is correct
27 Correct 2 ms 9564 KB Output is correct
28 Correct 2 ms 9564 KB Output is correct
29 Correct 2 ms 9564 KB Output is correct
30 Correct 2 ms 9564 KB Output is correct
31 Correct 4 ms 8540 KB Output is correct
32 Correct 3 ms 8540 KB Output is correct
33 Correct 3 ms 8540 KB Output is correct
34 Correct 4 ms 8540 KB Output is correct
35 Correct 4 ms 8540 KB Output is correct
36 Correct 3 ms 8536 KB Output is correct
37 Correct 3 ms 8540 KB Output is correct
38 Correct 4 ms 8540 KB Output is correct
39 Correct 4 ms 8540 KB Output is correct
40 Correct 3 ms 9564 KB Output is correct
41 Correct 2 ms 9564 KB Output is correct
42 Correct 3 ms 9564 KB Output is correct
43 Correct 2 ms 9772 KB Output is correct
44 Correct 2 ms 9564 KB Output is correct
45 Correct 3 ms 9564 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 9564 KB Output is correct
2 Correct 59 ms 12612 KB Output is correct
3 Correct 82 ms 12644 KB Output is correct
4 Correct 43 ms 12116 KB Output is correct
5 Correct 61 ms 12560 KB Output is correct
6 Correct 61 ms 12048 KB Output is correct
7 Correct 65 ms 12624 KB Output is correct
8 Correct 3 ms 9560 KB Output is correct
9 Correct 4 ms 8540 KB Output is correct
10 Correct 4 ms 8636 KB Output is correct
11 Correct 4 ms 8540 KB Output is correct
12 Correct 3 ms 8536 KB Output is correct
13 Correct 3 ms 8540 KB Output is correct
14 Correct 3 ms 8540 KB Output is correct
15 Correct 4 ms 8540 KB Output is correct
16 Correct 3 ms 8536 KB Output is correct
17 Correct 4 ms 8540 KB Output is correct
18 Correct 3 ms 8536 KB Output is correct
19 Correct 3 ms 8536 KB Output is correct
20 Correct 254 ms 17216 KB Output is correct
21 Correct 197 ms 16576 KB Output is correct
22 Correct 228 ms 16772 KB Output is correct
23 Correct 228 ms 17588 KB Output is correct
24 Correct 197 ms 17360 KB Output is correct
25 Correct 219 ms 17184 KB Output is correct
26 Correct 214 ms 17236 KB Output is correct
27 Correct 2 ms 9564 KB Output is correct
28 Correct 2 ms 9564 KB Output is correct
29 Correct 2 ms 9564 KB Output is correct
30 Correct 2 ms 9564 KB Output is correct
31 Correct 4 ms 8540 KB Output is correct
32 Correct 3 ms 8540 KB Output is correct
33 Correct 3 ms 8540 KB Output is correct
34 Correct 4 ms 8540 KB Output is correct
35 Correct 4 ms 8540 KB Output is correct
36 Correct 3 ms 8536 KB Output is correct
37 Correct 3 ms 8540 KB Output is correct
38 Correct 4 ms 8540 KB Output is correct
39 Correct 4 ms 8540 KB Output is correct
40 Correct 3 ms 9564 KB Output is correct
41 Correct 2 ms 9564 KB Output is correct
42 Correct 3 ms 9564 KB Output is correct
43 Correct 2 ms 9772 KB Output is correct
44 Correct 2 ms 9564 KB Output is correct
45 Correct 3 ms 9564 KB Output is correct
46 Correct 4 ms 9564 KB Output is correct
47 Correct 296 ms 19684 KB Output is correct
48 Correct 274 ms 19076 KB Output is correct
49 Correct 274 ms 19348 KB Output is correct
50 Correct 259 ms 19892 KB Output is correct
51 Correct 266 ms 19520 KB Output is correct
52 Correct 278 ms 19536 KB Output is correct
53 Correct 297 ms 19796 KB Output is correct
54 Correct 4 ms 9564 KB Output is correct
55 Correct 3 ms 9564 KB Output is correct
56 Correct 4 ms 9564 KB Output is correct
57 Correct 4 ms 9560 KB Output is correct
58 Correct 4 ms 9560 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 9564 KB Output is correct
2 Correct 59 ms 12612 KB Output is correct
3 Correct 82 ms 12644 KB Output is correct
4 Correct 43 ms 12116 KB Output is correct
5 Correct 61 ms 12560 KB Output is correct
6 Correct 61 ms 12048 KB Output is correct
7 Correct 65 ms 12624 KB Output is correct
8 Correct 3 ms 9560 KB Output is correct
9 Correct 4 ms 8540 KB Output is correct
10 Correct 4 ms 8636 KB Output is correct
11 Correct 4 ms 8540 KB Output is correct
12 Correct 3 ms 8536 KB Output is correct
13 Correct 3 ms 8540 KB Output is correct
14 Correct 3 ms 8540 KB Output is correct
15 Correct 4 ms 8540 KB Output is correct
16 Correct 3 ms 8536 KB Output is correct
17 Correct 4 ms 8540 KB Output is correct
18 Correct 3 ms 8536 KB Output is correct
19 Correct 3 ms 8536 KB Output is correct
20 Correct 254 ms 17216 KB Output is correct
21 Correct 197 ms 16576 KB Output is correct
22 Correct 228 ms 16772 KB Output is correct
23 Correct 228 ms 17588 KB Output is correct
24 Correct 197 ms 17360 KB Output is correct
25 Correct 219 ms 17184 KB Output is correct
26 Correct 214 ms 17236 KB Output is correct
27 Correct 2 ms 9564 KB Output is correct
28 Correct 2 ms 9564 KB Output is correct
29 Correct 2 ms 9564 KB Output is correct
30 Correct 2 ms 9564 KB Output is correct
31 Correct 4 ms 8540 KB Output is correct
32 Correct 3 ms 8540 KB Output is correct
33 Correct 3 ms 8540 KB Output is correct
34 Correct 4 ms 8540 KB Output is correct
35 Correct 4 ms 8540 KB Output is correct
36 Correct 3 ms 8536 KB Output is correct
37 Correct 3 ms 8540 KB Output is correct
38 Correct 4 ms 8540 KB Output is correct
39 Correct 4 ms 8540 KB Output is correct
40 Correct 3 ms 9564 KB Output is correct
41 Correct 2 ms 9564 KB Output is correct
42 Correct 3 ms 9564 KB Output is correct
43 Correct 2 ms 9772 KB Output is correct
44 Correct 2 ms 9564 KB Output is correct
45 Correct 3 ms 9564 KB Output is correct
46 Correct 4 ms 9564 KB Output is correct
47 Correct 296 ms 19684 KB Output is correct
48 Correct 274 ms 19076 KB Output is correct
49 Correct 274 ms 19348 KB Output is correct
50 Correct 259 ms 19892 KB Output is correct
51 Correct 266 ms 19520 KB Output is correct
52 Correct 278 ms 19536 KB Output is correct
53 Correct 297 ms 19796 KB Output is correct
54 Correct 4 ms 9564 KB Output is correct
55 Correct 3 ms 9564 KB Output is correct
56 Correct 4 ms 9564 KB Output is correct
57 Correct 4 ms 9560 KB Output is correct
58 Correct 4 ms 9560 KB Output is correct
59 Correct 328 ms 21192 KB Output is correct
60 Correct 185 ms 14352 KB Output is correct
61 Correct 188 ms 14684 KB Output is correct
62 Correct 198 ms 14676 KB Output is correct
63 Correct 350 ms 20840 KB Output is correct
64 Correct 386 ms 21332 KB Output is correct
65 Correct 389 ms 21676 KB Output is correct
66 Correct 355 ms 21588 KB Output is correct
67 Correct 326 ms 21328 KB Output is correct
68 Correct 398 ms 21628 KB Output is correct
69 Correct 427 ms 20824 KB Output is correct
70 Correct 24 ms 9564 KB Output is correct
71 Correct 16 ms 9776 KB Output is correct
72 Correct 22 ms 9820 KB Output is correct
73 Correct 16 ms 9560 KB Output is correct
74 Correct 21 ms 9564 KB Output is correct
75 Correct 38 ms 9876 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 9560 KB Output is correct
2 Correct 2 ms 9564 KB Output is correct
3 Correct 2 ms 9564 KB Output is correct
4 Correct 2 ms 9564 KB Output is correct
5 Correct 172 ms 9812 KB Output is correct
6 Correct 106 ms 9564 KB Output is correct
7 Correct 127 ms 9564 KB Output is correct
8 Correct 151 ms 9560 KB Output is correct
9 Correct 240 ms 9564 KB Output is correct
10 Correct 129 ms 9756 KB Output is correct
11 Correct 163 ms 9560 KB Output is correct
12 Correct 223 ms 9760 KB Output is correct
13 Correct 2 ms 9560 KB Output is correct
14 Correct 2 ms 9564 KB Output is correct
15 Correct 2 ms 9564 KB Output is correct
16 Correct 2 ms 9564 KB Output is correct
17 Correct 2 ms 9568 KB Output is correct
18 Correct 2 ms 9564 KB Output is correct
19 Correct 2 ms 9564 KB Output is correct
20 Correct 2 ms 9560 KB Output is correct
21 Correct 2 ms 9564 KB Output is correct
22 Correct 2 ms 9776 KB Output is correct
23 Correct 2 ms 9564 KB Output is correct
24 Correct 2 ms 9564 KB Output is correct
25 Correct 2 ms 9564 KB Output is correct
26 Correct 2 ms 9768 KB Output is correct
27 Correct 2 ms 9560 KB Output is correct
28 Correct 2 ms 9564 KB Output is correct
29 Correct 2 ms 9564 KB Output is correct
30 Correct 2 ms 9564 KB Output is correct
31 Correct 2 ms 9564 KB Output is correct
32 Correct 2 ms 9920 KB Output is correct
33 Correct 2 ms 9564 KB Output is correct
34 Correct 2 ms 9564 KB Output is correct
35 Correct 2 ms 9564 KB Output is correct
36 Correct 2 ms 9564 KB Output is correct
37 Correct 2 ms 9564 KB Output is correct
38 Correct 2 ms 9772 KB Output is correct
39 Correct 2 ms 9564 KB Output is correct
40 Correct 2 ms 9564 KB Output is correct
41 Correct 4 ms 9776 KB Output is correct
42 Correct 3 ms 9760 KB Output is correct
43 Correct 4 ms 9564 KB Output is correct
44 Correct 4 ms 9564 KB Output is correct
45 Correct 4 ms 9560 KB Output is correct
46 Correct 20 ms 9564 KB Output is correct
47 Correct 19 ms 9780 KB Output is correct
48 Correct 19 ms 9560 KB Output is correct
49 Correct 16 ms 9564 KB Output is correct
50 Correct 21 ms 9560 KB Output is correct
51 Correct 104 ms 9816 KB Output is correct
52 Correct 244 ms 9884 KB Output is correct
53 Correct 284 ms 9880 KB Output is correct
54 Correct 290 ms 9820 KB Output is correct
55 Correct 4 ms 9564 KB Output is correct
56 Correct 52 ms 9820 KB Output is correct
57 Correct 2 ms 9564 KB Output is correct
58 Correct 59 ms 12612 KB Output is correct
59 Correct 82 ms 12644 KB Output is correct
60 Correct 43 ms 12116 KB Output is correct
61 Correct 61 ms 12560 KB Output is correct
62 Correct 61 ms 12048 KB Output is correct
63 Correct 65 ms 12624 KB Output is correct
64 Correct 3 ms 9560 KB Output is correct
65 Correct 4 ms 8540 KB Output is correct
66 Correct 4 ms 8636 KB Output is correct
67 Correct 4 ms 8540 KB Output is correct
68 Correct 3 ms 8536 KB Output is correct
69 Correct 3 ms 8540 KB Output is correct
70 Correct 3 ms 8540 KB Output is correct
71 Correct 4 ms 8540 KB Output is correct
72 Correct 3 ms 8536 KB Output is correct
73 Correct 4 ms 8540 KB Output is correct
74 Correct 3 ms 8536 KB Output is correct
75 Correct 3 ms 8536 KB Output is correct
76 Correct 254 ms 17216 KB Output is correct
77 Correct 197 ms 16576 KB Output is correct
78 Correct 228 ms 16772 KB Output is correct
79 Correct 228 ms 17588 KB Output is correct
80 Correct 197 ms 17360 KB Output is correct
81 Correct 219 ms 17184 KB Output is correct
82 Correct 214 ms 17236 KB Output is correct
83 Correct 2 ms 9564 KB Output is correct
84 Correct 2 ms 9564 KB Output is correct
85 Correct 2 ms 9564 KB Output is correct
86 Correct 2 ms 9564 KB Output is correct
87 Correct 4 ms 8540 KB Output is correct
88 Correct 3 ms 8540 KB Output is correct
89 Correct 3 ms 8540 KB Output is correct
90 Correct 4 ms 8540 KB Output is correct
91 Correct 4 ms 8540 KB Output is correct
92 Correct 3 ms 8536 KB Output is correct
93 Correct 3 ms 8540 KB Output is correct
94 Correct 4 ms 8540 KB Output is correct
95 Correct 4 ms 8540 KB Output is correct
96 Correct 3 ms 9564 KB Output is correct
97 Correct 2 ms 9564 KB Output is correct
98 Correct 3 ms 9564 KB Output is correct
99 Correct 2 ms 9772 KB Output is correct
100 Correct 2 ms 9564 KB Output is correct
101 Correct 3 ms 9564 KB Output is correct
102 Correct 4 ms 9564 KB Output is correct
103 Correct 296 ms 19684 KB Output is correct
104 Correct 274 ms 19076 KB Output is correct
105 Correct 274 ms 19348 KB Output is correct
106 Correct 259 ms 19892 KB Output is correct
107 Correct 266 ms 19520 KB Output is correct
108 Correct 278 ms 19536 KB Output is correct
109 Correct 297 ms 19796 KB Output is correct
110 Correct 4 ms 9564 KB Output is correct
111 Correct 3 ms 9564 KB Output is correct
112 Correct 4 ms 9564 KB Output is correct
113 Correct 4 ms 9560 KB Output is correct
114 Correct 4 ms 9560 KB Output is correct
115 Correct 328 ms 21192 KB Output is correct
116 Correct 185 ms 14352 KB Output is correct
117 Correct 188 ms 14684 KB Output is correct
118 Correct 198 ms 14676 KB Output is correct
119 Correct 350 ms 20840 KB Output is correct
120 Correct 386 ms 21332 KB Output is correct
121 Correct 389 ms 21676 KB Output is correct
122 Correct 355 ms 21588 KB Output is correct
123 Correct 326 ms 21328 KB Output is correct
124 Correct 398 ms 21628 KB Output is correct
125 Correct 427 ms 20824 KB Output is correct
126 Correct 24 ms 9564 KB Output is correct
127 Correct 16 ms 9776 KB Output is correct
128 Correct 22 ms 9820 KB Output is correct
129 Correct 16 ms 9560 KB Output is correct
130 Correct 21 ms 9564 KB Output is correct
131 Correct 38 ms 9876 KB Output is correct
132 Correct 799 ms 22356 KB Output is correct
133 Correct 805 ms 22156 KB Output is correct
134 Correct 820 ms 20892 KB Output is correct
135 Correct 758 ms 20896 KB Output is correct
136 Correct 761 ms 17972 KB Output is correct
137 Correct 572 ms 17348 KB Output is correct
138 Correct 549 ms 17488 KB Output is correct
139 Correct 481 ms 17812 KB Output is correct
140 Correct 575 ms 17416 KB Output is correct
141 Correct 863 ms 17824 KB Output is correct
142 Correct 889 ms 17800 KB Output is correct