답안 #1008418

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1008418 2024-06-26T12:02:07 Z snpmrnhlol Council (JOI23_council) C++17
100 / 100
596 ms 30596 KB
#include<bits/stdc++.h>
using namespace std;
const int N = 3e5;
const int M = 20;
pair<int,int> f[1<<M][2];
int f2[M];
int v[N];
void add(int pos,int x,int id){
    for(int i = 0;i < 2;i++){
        if(f[pos][i].second == id){
            f[pos][i].first = max(f[pos][i].first, x);
            if(f[pos][0].first < f[pos][1].first)swap(f[pos][0],f[pos][1]);
            return;
        }
    }
    for(int i = 0;i < 2;i++){
        if(pair<int,int>{x,id} > f[pos][i]){
            pair<int,int> tmp = f[pos][i];
            f[pos][i] = {x,id};
            //cout<<x<<' '<<id<<' '<<pos<<' '<<i<<"ll\n";
            x = tmp.first;
            id = tmp.second;
        }
    }
}
int main(){
    int n,m;
    cin>>n>>m;
    for(int i = 0;i < n;i++){
        int nr = 0;
        int cnt = 0;
        for(int j = 0;j < m;j++){
            char ch;
            cin>>ch;
            nr = nr*2 + ch - '0';
            f2[j]+=ch - '0';
        }
        v[i] = nr;
        add((nr^((1<<m) - 1)),__builtin_popcount((nr^((1<<m) - 1))),i + 1);
    }
    for(int i = (1<<m) - 1;i >= 0;i--){
        for(int j = 0;j < m;j++){
            if(i>>j&1){
                add(i^(1<<j),f[i][0].first - 1,f[i][0].second);
                add(i^(1<<j),f[i][1].first - 1,f[i][1].second);
                //f[i^(1<<j)] = f[i] - 1;
            }
        }
    }
    for(int i = 0;i < (1<<m);i++){
        for(int j = 0;j < m;j++){
            if(!(i>>j&1)){
                add(i^(1<<j),f[i][0].first,f[i][0].second);
                add(i^(1<<j),f[i][1].first,f[i][1].second);
            }
        }
        //cout<<f[i][0].first<<' '<<f[i][1].first<<' '<<f[i][0].second<<' '<<f[i][1].second<<'\n';
    }
    for(int i = 0;i < n;i++){
        int ans = 0;
        int nr2 = 0;
        for(int j = 0;j < m;j++){
            bool ok = ((v[i]>>(m - j - 1))&1);
            int nr = f2[j] - ok - 1;
            //cout<<nr<<' '<<n/2<<'\n';
            if(nr + 1 == n/2){
                nr2+=(1<<(m - j - 1));
            }else{
                ans+=bool(nr + 1 > n/2);
            }
        }
        //cout<<nr2<<' '<<f[nr2][0].first<<' '<<f[nr2][0].second<<' '<<f[nr2][1].first<<' '<<f[nr2][1].second<<'\n';
        if(f[nr2][0].second != i + 1){
            ans+=f[nr2][0].first;
        }else{
            ans+=f[nr2][1].first;
        }
        cout<<ans<<'\n';
    }
    return 0;
}

Compilation message

council.cpp: In function 'int main()':
council.cpp:31:13: warning: unused variable 'cnt' [-Wunused-variable]
   31 |         int cnt = 0;
      |             ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 211 ms 16848 KB Output is correct
6 Correct 235 ms 16712 KB Output is correct
7 Correct 220 ms 16776 KB Output is correct
8 Correct 270 ms 16720 KB Output is correct
9 Correct 349 ms 16840 KB Output is correct
10 Correct 229 ms 16696 KB Output is correct
11 Correct 283 ms 16708 KB Output is correct
12 Correct 306 ms 16796 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 444 KB Output is correct
21 Correct 1 ms 344 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 344 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 3 ms 604 KB Output is correct
42 Correct 3 ms 604 KB Output is correct
43 Correct 4 ms 604 KB Output is correct
44 Correct 4 ms 708 KB Output is correct
45 Correct 3 ms 604 KB Output is correct
46 Correct 23 ms 2396 KB Output is correct
47 Correct 30 ms 2648 KB Output is correct
48 Correct 29 ms 2396 KB Output is correct
49 Correct 27 ms 2396 KB Output is correct
50 Correct 26 ms 2396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 211 ms 16848 KB Output is correct
6 Correct 235 ms 16712 KB Output is correct
7 Correct 220 ms 16776 KB Output is correct
8 Correct 270 ms 16720 KB Output is correct
9 Correct 349 ms 16840 KB Output is correct
10 Correct 229 ms 16696 KB Output is correct
11 Correct 283 ms 16708 KB Output is correct
12 Correct 306 ms 16796 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 444 KB Output is correct
21 Correct 1 ms 344 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 344 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 3 ms 604 KB Output is correct
42 Correct 3 ms 604 KB Output is correct
43 Correct 4 ms 604 KB Output is correct
44 Correct 4 ms 708 KB Output is correct
45 Correct 3 ms 604 KB Output is correct
46 Correct 23 ms 2396 KB Output is correct
47 Correct 30 ms 2648 KB Output is correct
48 Correct 29 ms 2396 KB Output is correct
49 Correct 27 ms 2396 KB Output is correct
50 Correct 26 ms 2396 KB Output is correct
51 Correct 200 ms 16976 KB Output is correct
52 Correct 207 ms 16752 KB Output is correct
53 Correct 251 ms 16724 KB Output is correct
54 Correct 319 ms 16976 KB Output is correct
55 Correct 1 ms 600 KB Output is correct
56 Correct 37 ms 2392 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 36 ms 3280 KB Output is correct
3 Correct 37 ms 3124 KB Output is correct
4 Correct 30 ms 2672 KB Output is correct
5 Correct 37 ms 3260 KB Output is correct
6 Correct 29 ms 2640 KB Output is correct
7 Correct 45 ms 3152 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 36 ms 3280 KB Output is correct
3 Correct 37 ms 3124 KB Output is correct
4 Correct 30 ms 2672 KB Output is correct
5 Correct 37 ms 3260 KB Output is correct
6 Correct 29 ms 2640 KB Output is correct
7 Correct 45 ms 3152 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 0 ms 444 KB Output is correct
20 Correct 145 ms 8088 KB Output is correct
21 Correct 128 ms 7464 KB Output is correct
22 Correct 131 ms 7312 KB Output is correct
23 Correct 123 ms 8272 KB Output is correct
24 Correct 118 ms 8020 KB Output is correct
25 Correct 136 ms 8020 KB Output is correct
26 Correct 145 ms 8224 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 440 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 1 ms 604 KB Output is correct
44 Correct 1 ms 344 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 36 ms 3280 KB Output is correct
3 Correct 37 ms 3124 KB Output is correct
4 Correct 30 ms 2672 KB Output is correct
5 Correct 37 ms 3260 KB Output is correct
6 Correct 29 ms 2640 KB Output is correct
7 Correct 45 ms 3152 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 0 ms 444 KB Output is correct
20 Correct 145 ms 8088 KB Output is correct
21 Correct 128 ms 7464 KB Output is correct
22 Correct 131 ms 7312 KB Output is correct
23 Correct 123 ms 8272 KB Output is correct
24 Correct 118 ms 8020 KB Output is correct
25 Correct 136 ms 8020 KB Output is correct
26 Correct 145 ms 8224 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 440 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 1 ms 604 KB Output is correct
44 Correct 1 ms 344 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 175 ms 10580 KB Output is correct
48 Correct 167 ms 9812 KB Output is correct
49 Correct 194 ms 9816 KB Output is correct
50 Correct 203 ms 10908 KB Output is correct
51 Correct 188 ms 10688 KB Output is correct
52 Correct 168 ms 10628 KB Output is correct
53 Correct 181 ms 10832 KB Output is correct
54 Correct 3 ms 600 KB Output is correct
55 Correct 3 ms 604 KB Output is correct
56 Correct 4 ms 604 KB Output is correct
57 Correct 3 ms 604 KB Output is correct
58 Correct 4 ms 604 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 36 ms 3280 KB Output is correct
3 Correct 37 ms 3124 KB Output is correct
4 Correct 30 ms 2672 KB Output is correct
5 Correct 37 ms 3260 KB Output is correct
6 Correct 29 ms 2640 KB Output is correct
7 Correct 45 ms 3152 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 0 ms 444 KB Output is correct
20 Correct 145 ms 8088 KB Output is correct
21 Correct 128 ms 7464 KB Output is correct
22 Correct 131 ms 7312 KB Output is correct
23 Correct 123 ms 8272 KB Output is correct
24 Correct 118 ms 8020 KB Output is correct
25 Correct 136 ms 8020 KB Output is correct
26 Correct 145 ms 8224 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 440 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 1 ms 604 KB Output is correct
44 Correct 1 ms 344 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 175 ms 10580 KB Output is correct
48 Correct 167 ms 9812 KB Output is correct
49 Correct 194 ms 9816 KB Output is correct
50 Correct 203 ms 10908 KB Output is correct
51 Correct 188 ms 10688 KB Output is correct
52 Correct 168 ms 10628 KB Output is correct
53 Correct 181 ms 10832 KB Output is correct
54 Correct 3 ms 600 KB Output is correct
55 Correct 3 ms 604 KB Output is correct
56 Correct 4 ms 604 KB Output is correct
57 Correct 3 ms 604 KB Output is correct
58 Correct 4 ms 604 KB Output is correct
59 Correct 225 ms 12708 KB Output is correct
60 Correct 125 ms 7064 KB Output is correct
61 Correct 130 ms 7212 KB Output is correct
62 Correct 139 ms 7408 KB Output is correct
63 Correct 271 ms 12368 KB Output is correct
64 Correct 244 ms 14416 KB Output is correct
65 Correct 243 ms 14160 KB Output is correct
66 Correct 234 ms 14420 KB Output is correct
67 Correct 261 ms 13964 KB Output is correct
68 Correct 221 ms 14164 KB Output is correct
69 Correct 261 ms 14384 KB Output is correct
70 Correct 29 ms 2396 KB Output is correct
71 Correct 25 ms 2396 KB Output is correct
72 Correct 29 ms 2508 KB Output is correct
73 Correct 23 ms 2392 KB Output is correct
74 Correct 27 ms 2408 KB Output is correct
75 Correct 37 ms 2396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 211 ms 16848 KB Output is correct
6 Correct 235 ms 16712 KB Output is correct
7 Correct 220 ms 16776 KB Output is correct
8 Correct 270 ms 16720 KB Output is correct
9 Correct 349 ms 16840 KB Output is correct
10 Correct 229 ms 16696 KB Output is correct
11 Correct 283 ms 16708 KB Output is correct
12 Correct 306 ms 16796 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 444 KB Output is correct
21 Correct 1 ms 344 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 344 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 1 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 KB Output is correct
33 Correct 1 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 3 ms 604 KB Output is correct
42 Correct 3 ms 604 KB Output is correct
43 Correct 4 ms 604 KB Output is correct
44 Correct 4 ms 708 KB Output is correct
45 Correct 3 ms 604 KB Output is correct
46 Correct 23 ms 2396 KB Output is correct
47 Correct 30 ms 2648 KB Output is correct
48 Correct 29 ms 2396 KB Output is correct
49 Correct 27 ms 2396 KB Output is correct
50 Correct 26 ms 2396 KB Output is correct
51 Correct 200 ms 16976 KB Output is correct
52 Correct 207 ms 16752 KB Output is correct
53 Correct 251 ms 16724 KB Output is correct
54 Correct 319 ms 16976 KB Output is correct
55 Correct 1 ms 600 KB Output is correct
56 Correct 37 ms 2392 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 36 ms 3280 KB Output is correct
59 Correct 37 ms 3124 KB Output is correct
60 Correct 30 ms 2672 KB Output is correct
61 Correct 37 ms 3260 KB Output is correct
62 Correct 29 ms 2640 KB Output is correct
63 Correct 45 ms 3152 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 0 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 0 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
73 Correct 1 ms 348 KB Output is correct
74 Correct 0 ms 344 KB Output is correct
75 Correct 0 ms 444 KB Output is correct
76 Correct 145 ms 8088 KB Output is correct
77 Correct 128 ms 7464 KB Output is correct
78 Correct 131 ms 7312 KB Output is correct
79 Correct 123 ms 8272 KB Output is correct
80 Correct 118 ms 8020 KB Output is correct
81 Correct 136 ms 8020 KB Output is correct
82 Correct 145 ms 8224 KB Output is correct
83 Correct 1 ms 348 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 1 ms 348 KB Output is correct
88 Correct 0 ms 344 KB Output is correct
89 Correct 0 ms 348 KB Output is correct
90 Correct 1 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 1 ms 344 KB Output is correct
93 Correct 0 ms 348 KB Output is correct
94 Correct 0 ms 440 KB Output is correct
95 Correct 0 ms 344 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 0 ms 348 KB Output is correct
98 Correct 0 ms 348 KB Output is correct
99 Correct 1 ms 604 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 175 ms 10580 KB Output is correct
104 Correct 167 ms 9812 KB Output is correct
105 Correct 194 ms 9816 KB Output is correct
106 Correct 203 ms 10908 KB Output is correct
107 Correct 188 ms 10688 KB Output is correct
108 Correct 168 ms 10628 KB Output is correct
109 Correct 181 ms 10832 KB Output is correct
110 Correct 3 ms 600 KB Output is correct
111 Correct 3 ms 604 KB Output is correct
112 Correct 4 ms 604 KB Output is correct
113 Correct 3 ms 604 KB Output is correct
114 Correct 4 ms 604 KB Output is correct
115 Correct 225 ms 12708 KB Output is correct
116 Correct 125 ms 7064 KB Output is correct
117 Correct 130 ms 7212 KB Output is correct
118 Correct 139 ms 7408 KB Output is correct
119 Correct 271 ms 12368 KB Output is correct
120 Correct 244 ms 14416 KB Output is correct
121 Correct 243 ms 14160 KB Output is correct
122 Correct 234 ms 14420 KB Output is correct
123 Correct 261 ms 13964 KB Output is correct
124 Correct 221 ms 14164 KB Output is correct
125 Correct 261 ms 14384 KB Output is correct
126 Correct 29 ms 2396 KB Output is correct
127 Correct 25 ms 2396 KB Output is correct
128 Correct 29 ms 2508 KB Output is correct
129 Correct 23 ms 2392 KB Output is correct
130 Correct 27 ms 2408 KB Output is correct
131 Correct 37 ms 2396 KB Output is correct
132 Correct 470 ms 30476 KB Output is correct
133 Correct 470 ms 30292 KB Output is correct
134 Correct 465 ms 30544 KB Output is correct
135 Correct 561 ms 30596 KB Output is correct
136 Correct 544 ms 30484 KB Output is correct
137 Correct 370 ms 21584 KB Output is correct
138 Correct 405 ms 21732 KB Output is correct
139 Correct 410 ms 30552 KB Output is correct
140 Correct 422 ms 30176 KB Output is correct
141 Correct 568 ms 30280 KB Output is correct
142 Correct 596 ms 30564 KB Output is correct