답안 #924570

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
924570 2024-02-09T08:20:45 Z ttamx Council (JOI23_council) C++14
100 / 100
457 ms 18896 KB
#pragma GCC optimize("O3, unroll-loops")
#include<bits/stdc++.h>

using namespace std;

using pi = pair<int,int>;
using ppi = pair<pi,pi>;

const int N=3e5+5;
const int M=25;
const int K=(1<<20)+5;

int n,m;
int a[N],cnt[M];
ppi dp[K];

void upd(ppi &x,pi v){
    if(v.second==x.first.second)return void(x.first=min(x.first,v));
    x.second=min(x.second,v);
    if(x.first>x.second)swap(x.first,x.second);
}

void upd(ppi &x,ppi y){
    upd(x,y.first);
    upd(x,y.second);
}

int main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    cin >> n >> m;
    for(int i=1;i<=n;i++){
        for(int j=0;j<m;j++){
            int x;
            cin >> x;
            a[i]|=x<<j;
            cnt[j]+=x;
        }
    }
    for(int i=0;i<1<<m;i++)dp[i]=ppi(pi(m,0),pi(m,0));
    for(int i=1;i<=n;i++)upd(dp[a[i]],pi(0,i));
    for(int k=1;k<1<<m;k<<=1){
        for(int i=0;i<1<<m;i+=k<<1){
            for(int j=0;j<k;j++){
                int u=i+j,v=i+j+k;
                auto du=dp[u],dv=dp[v];
                dp[v].first.first++;
                dp[v].second.first++;
                upd(dp[u],dv);
                upd(dp[v],du);
            }
        }
    }
    for(int i=1;i<=n;i++){
        int mask=0,ans=0;
        for(int j=0;j<m;j++){
            int res=cnt[j]-(a[i]>>j&1);
            if(res==n/2)mask|=1<<j;
            if(res>=n/2)ans++;
        }
        cout << ans-(dp[mask].first.second!=i?dp[mask].first:dp[mask].second).first << "\n";
    }
}

Compilation message

council.cpp:1:40: warning: bad option '-f unroll-loops' to pragma 'optimize' [-Wpragmas]
    1 | #pragma GCC optimize("O3, unroll-loops")
      |                                        ^
council.cpp:17:21: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
   17 | void upd(ppi &x,pi v){
      |                     ^
council.cpp:23:22: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
   23 | void upd(ppi &x,ppi y){
      |                      ^
council.cpp:28:10: warning: bad option '-f unroll-loops' to attribute 'optimize' [-Wattributes]
   28 | int main(){
      |          ^
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 1 ms 2392 KB Output is correct
3 Correct 1 ms 2392 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 66 ms 16988 KB Output is correct
6 Correct 65 ms 16988 KB Output is correct
7 Correct 66 ms 16988 KB Output is correct
8 Correct 73 ms 16984 KB Output is correct
9 Correct 105 ms 17232 KB Output is correct
10 Correct 65 ms 16988 KB Output is correct
11 Correct 75 ms 16988 KB Output is correct
12 Correct 110 ms 16988 KB Output is correct
13 Correct 1 ms 2392 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 1 ms 2396 KB Output is correct
16 Correct 1 ms 2392 KB Output is correct
17 Correct 1 ms 2392 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 1 ms 2396 KB Output is correct
23 Correct 1 ms 2392 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 1 ms 2392 KB Output is correct
26 Correct 1 ms 2396 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 1 ms 2396 KB Output is correct
30 Correct 1 ms 2592 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 2 ms 4696 KB Output is correct
42 Correct 1 ms 4700 KB Output is correct
43 Correct 2 ms 4700 KB Output is correct
44 Correct 2 ms 4700 KB Output is correct
45 Correct 2 ms 4700 KB Output is correct
46 Correct 7 ms 4696 KB Output is correct
47 Correct 7 ms 4700 KB Output is correct
48 Correct 8 ms 4740 KB Output is correct
49 Correct 7 ms 4700 KB Output is correct
50 Correct 9 ms 4700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 1 ms 2392 KB Output is correct
3 Correct 1 ms 2392 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 66 ms 16988 KB Output is correct
6 Correct 65 ms 16988 KB Output is correct
7 Correct 66 ms 16988 KB Output is correct
8 Correct 73 ms 16984 KB Output is correct
9 Correct 105 ms 17232 KB Output is correct
10 Correct 65 ms 16988 KB Output is correct
11 Correct 75 ms 16988 KB Output is correct
12 Correct 110 ms 16988 KB Output is correct
13 Correct 1 ms 2392 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 1 ms 2396 KB Output is correct
16 Correct 1 ms 2392 KB Output is correct
17 Correct 1 ms 2392 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 1 ms 2396 KB Output is correct
23 Correct 1 ms 2392 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 1 ms 2392 KB Output is correct
26 Correct 1 ms 2396 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 1 ms 2396 KB Output is correct
30 Correct 1 ms 2592 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 2 ms 4696 KB Output is correct
42 Correct 1 ms 4700 KB Output is correct
43 Correct 2 ms 4700 KB Output is correct
44 Correct 2 ms 4700 KB Output is correct
45 Correct 2 ms 4700 KB Output is correct
46 Correct 7 ms 4696 KB Output is correct
47 Correct 7 ms 4700 KB Output is correct
48 Correct 8 ms 4740 KB Output is correct
49 Correct 7 ms 4700 KB Output is correct
50 Correct 9 ms 4700 KB Output is correct
51 Correct 67 ms 17040 KB Output is correct
52 Correct 62 ms 16988 KB Output is correct
53 Correct 129 ms 17036 KB Output is correct
54 Correct 137 ms 16984 KB Output is correct
55 Correct 1 ms 2396 KB Output is correct
56 Correct 19 ms 4748 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 40 ms 3996 KB Output is correct
3 Correct 38 ms 3988 KB Output is correct
4 Correct 28 ms 3924 KB Output is correct
5 Correct 40 ms 3920 KB Output is correct
6 Correct 29 ms 3920 KB Output is correct
7 Correct 44 ms 3924 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 1 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 0 ms 2396 KB Output is correct
12 Correct 0 ms 2396 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 40 ms 3996 KB Output is correct
3 Correct 38 ms 3988 KB Output is correct
4 Correct 28 ms 3924 KB Output is correct
5 Correct 40 ms 3920 KB Output is correct
6 Correct 29 ms 3920 KB Output is correct
7 Correct 44 ms 3924 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 1 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 0 ms 2396 KB Output is correct
12 Correct 0 ms 2396 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 0 ms 2392 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 151 ms 3916 KB Output is correct
21 Correct 139 ms 3984 KB Output is correct
22 Correct 145 ms 3964 KB Output is correct
23 Correct 130 ms 4300 KB Output is correct
24 Correct 126 ms 3920 KB Output is correct
25 Correct 146 ms 4176 KB Output is correct
26 Correct 158 ms 3924 KB Output is correct
27 Correct 1 ms 2392 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2392 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 1 ms 2396 KB Output is correct
42 Correct 0 ms 2396 KB Output is correct
43 Correct 1 ms 2396 KB Output is correct
44 Correct 1 ms 2396 KB Output is correct
45 Correct 1 ms 2396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 40 ms 3996 KB Output is correct
3 Correct 38 ms 3988 KB Output is correct
4 Correct 28 ms 3924 KB Output is correct
5 Correct 40 ms 3920 KB Output is correct
6 Correct 29 ms 3920 KB Output is correct
7 Correct 44 ms 3924 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 1 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 0 ms 2396 KB Output is correct
12 Correct 0 ms 2396 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 0 ms 2392 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 151 ms 3916 KB Output is correct
21 Correct 139 ms 3984 KB Output is correct
22 Correct 145 ms 3964 KB Output is correct
23 Correct 130 ms 4300 KB Output is correct
24 Correct 126 ms 3920 KB Output is correct
25 Correct 146 ms 4176 KB Output is correct
26 Correct 158 ms 3924 KB Output is correct
27 Correct 1 ms 2392 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2392 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 1 ms 2396 KB Output is correct
42 Correct 0 ms 2396 KB Output is correct
43 Correct 1 ms 2396 KB Output is correct
44 Correct 1 ms 2396 KB Output is correct
45 Correct 1 ms 2396 KB Output is correct
46 Correct 1 ms 2396 KB Output is correct
47 Correct 208 ms 6144 KB Output is correct
48 Correct 196 ms 4152 KB Output is correct
49 Correct 195 ms 4176 KB Output is correct
50 Correct 172 ms 6400 KB Output is correct
51 Correct 166 ms 6228 KB Output is correct
52 Correct 193 ms 6228 KB Output is correct
53 Correct 217 ms 7004 KB Output is correct
54 Correct 1 ms 4700 KB Output is correct
55 Correct 1 ms 4700 KB Output is correct
56 Correct 2 ms 4700 KB Output is correct
57 Correct 2 ms 4700 KB Output is correct
58 Correct 2 ms 4700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 40 ms 3996 KB Output is correct
3 Correct 38 ms 3988 KB Output is correct
4 Correct 28 ms 3924 KB Output is correct
5 Correct 40 ms 3920 KB Output is correct
6 Correct 29 ms 3920 KB Output is correct
7 Correct 44 ms 3924 KB Output is correct
8 Correct 1 ms 2396 KB Output is correct
9 Correct 1 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 0 ms 2396 KB Output is correct
12 Correct 0 ms 2396 KB Output is correct
13 Correct 1 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 1 ms 2396 KB Output is correct
18 Correct 0 ms 2392 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 151 ms 3916 KB Output is correct
21 Correct 139 ms 3984 KB Output is correct
22 Correct 145 ms 3964 KB Output is correct
23 Correct 130 ms 4300 KB Output is correct
24 Correct 126 ms 3920 KB Output is correct
25 Correct 146 ms 4176 KB Output is correct
26 Correct 158 ms 3924 KB Output is correct
27 Correct 1 ms 2392 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2392 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 1 ms 2396 KB Output is correct
42 Correct 0 ms 2396 KB Output is correct
43 Correct 1 ms 2396 KB Output is correct
44 Correct 1 ms 2396 KB Output is correct
45 Correct 1 ms 2396 KB Output is correct
46 Correct 1 ms 2396 KB Output is correct
47 Correct 208 ms 6144 KB Output is correct
48 Correct 196 ms 4152 KB Output is correct
49 Correct 195 ms 4176 KB Output is correct
50 Correct 172 ms 6400 KB Output is correct
51 Correct 166 ms 6228 KB Output is correct
52 Correct 193 ms 6228 KB Output is correct
53 Correct 217 ms 7004 KB Output is correct
54 Correct 1 ms 4700 KB Output is correct
55 Correct 1 ms 4700 KB Output is correct
56 Correct 2 ms 4700 KB Output is correct
57 Correct 2 ms 4700 KB Output is correct
58 Correct 2 ms 4700 KB Output is correct
59 Correct 225 ms 6432 KB Output is correct
60 Correct 109 ms 5160 KB Output is correct
61 Correct 116 ms 5320 KB Output is correct
62 Correct 118 ms 5204 KB Output is correct
63 Correct 242 ms 6088 KB Output is correct
64 Correct 259 ms 6248 KB Output is correct
65 Correct 262 ms 6088 KB Output is correct
66 Correct 222 ms 6592 KB Output is correct
67 Correct 217 ms 6224 KB Output is correct
68 Correct 246 ms 6224 KB Output is correct
69 Correct 270 ms 6484 KB Output is correct
70 Correct 7 ms 4700 KB Output is correct
71 Correct 7 ms 4700 KB Output is correct
72 Correct 8 ms 4700 KB Output is correct
73 Correct 7 ms 4700 KB Output is correct
74 Correct 9 ms 4740 KB Output is correct
75 Correct 19 ms 4700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 2396 KB Output is correct
2 Correct 1 ms 2392 KB Output is correct
3 Correct 1 ms 2392 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 66 ms 16988 KB Output is correct
6 Correct 65 ms 16988 KB Output is correct
7 Correct 66 ms 16988 KB Output is correct
8 Correct 73 ms 16984 KB Output is correct
9 Correct 105 ms 17232 KB Output is correct
10 Correct 65 ms 16988 KB Output is correct
11 Correct 75 ms 16988 KB Output is correct
12 Correct 110 ms 16988 KB Output is correct
13 Correct 1 ms 2392 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 1 ms 2396 KB Output is correct
16 Correct 1 ms 2392 KB Output is correct
17 Correct 1 ms 2392 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 1 ms 2396 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 1 ms 2396 KB Output is correct
23 Correct 1 ms 2392 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
25 Correct 1 ms 2392 KB Output is correct
26 Correct 1 ms 2396 KB Output is correct
27 Correct 1 ms 2396 KB Output is correct
28 Correct 1 ms 2396 KB Output is correct
29 Correct 1 ms 2396 KB Output is correct
30 Correct 1 ms 2592 KB Output is correct
31 Correct 1 ms 2396 KB Output is correct
32 Correct 1 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 1 ms 2396 KB Output is correct
35 Correct 1 ms 2396 KB Output is correct
36 Correct 1 ms 2396 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 1 ms 2396 KB Output is correct
40 Correct 1 ms 2396 KB Output is correct
41 Correct 2 ms 4696 KB Output is correct
42 Correct 1 ms 4700 KB Output is correct
43 Correct 2 ms 4700 KB Output is correct
44 Correct 2 ms 4700 KB Output is correct
45 Correct 2 ms 4700 KB Output is correct
46 Correct 7 ms 4696 KB Output is correct
47 Correct 7 ms 4700 KB Output is correct
48 Correct 8 ms 4740 KB Output is correct
49 Correct 7 ms 4700 KB Output is correct
50 Correct 9 ms 4700 KB Output is correct
51 Correct 67 ms 17040 KB Output is correct
52 Correct 62 ms 16988 KB Output is correct
53 Correct 129 ms 17036 KB Output is correct
54 Correct 137 ms 16984 KB Output is correct
55 Correct 1 ms 2396 KB Output is correct
56 Correct 19 ms 4748 KB Output is correct
57 Correct 1 ms 2396 KB Output is correct
58 Correct 40 ms 3996 KB Output is correct
59 Correct 38 ms 3988 KB Output is correct
60 Correct 28 ms 3924 KB Output is correct
61 Correct 40 ms 3920 KB Output is correct
62 Correct 29 ms 3920 KB Output is correct
63 Correct 44 ms 3924 KB Output is correct
64 Correct 1 ms 2396 KB Output is correct
65 Correct 1 ms 2396 KB Output is correct
66 Correct 0 ms 2396 KB Output is correct
67 Correct 0 ms 2396 KB Output is correct
68 Correct 0 ms 2396 KB Output is correct
69 Correct 1 ms 2396 KB Output is correct
70 Correct 1 ms 2396 KB Output is correct
71 Correct 0 ms 2396 KB Output is correct
72 Correct 0 ms 2396 KB Output is correct
73 Correct 1 ms 2396 KB Output is correct
74 Correct 0 ms 2392 KB Output is correct
75 Correct 1 ms 2396 KB Output is correct
76 Correct 151 ms 3916 KB Output is correct
77 Correct 139 ms 3984 KB Output is correct
78 Correct 145 ms 3964 KB Output is correct
79 Correct 130 ms 4300 KB Output is correct
80 Correct 126 ms 3920 KB Output is correct
81 Correct 146 ms 4176 KB Output is correct
82 Correct 158 ms 3924 KB Output is correct
83 Correct 1 ms 2392 KB Output is correct
84 Correct 1 ms 2396 KB Output is correct
85 Correct 0 ms 2396 KB Output is correct
86 Correct 1 ms 2392 KB Output is correct
87 Correct 1 ms 2396 KB Output is correct
88 Correct 1 ms 2396 KB Output is correct
89 Correct 1 ms 2396 KB Output is correct
90 Correct 1 ms 2396 KB Output is correct
91 Correct 1 ms 2396 KB Output is correct
92 Correct 1 ms 2396 KB Output is correct
93 Correct 1 ms 2396 KB Output is correct
94 Correct 0 ms 2396 KB Output is correct
95 Correct 0 ms 2396 KB Output is correct
96 Correct 1 ms 2396 KB Output is correct
97 Correct 1 ms 2396 KB Output is correct
98 Correct 0 ms 2396 KB Output is correct
99 Correct 1 ms 2396 KB Output is correct
100 Correct 1 ms 2396 KB Output is correct
101 Correct 1 ms 2396 KB Output is correct
102 Correct 1 ms 2396 KB Output is correct
103 Correct 208 ms 6144 KB Output is correct
104 Correct 196 ms 4152 KB Output is correct
105 Correct 195 ms 4176 KB Output is correct
106 Correct 172 ms 6400 KB Output is correct
107 Correct 166 ms 6228 KB Output is correct
108 Correct 193 ms 6228 KB Output is correct
109 Correct 217 ms 7004 KB Output is correct
110 Correct 1 ms 4700 KB Output is correct
111 Correct 1 ms 4700 KB Output is correct
112 Correct 2 ms 4700 KB Output is correct
113 Correct 2 ms 4700 KB Output is correct
114 Correct 2 ms 4700 KB Output is correct
115 Correct 225 ms 6432 KB Output is correct
116 Correct 109 ms 5160 KB Output is correct
117 Correct 116 ms 5320 KB Output is correct
118 Correct 118 ms 5204 KB Output is correct
119 Correct 242 ms 6088 KB Output is correct
120 Correct 259 ms 6248 KB Output is correct
121 Correct 262 ms 6088 KB Output is correct
122 Correct 222 ms 6592 KB Output is correct
123 Correct 217 ms 6224 KB Output is correct
124 Correct 246 ms 6224 KB Output is correct
125 Correct 270 ms 6484 KB Output is correct
126 Correct 7 ms 4700 KB Output is correct
127 Correct 7 ms 4700 KB Output is correct
128 Correct 8 ms 4700 KB Output is correct
129 Correct 7 ms 4700 KB Output is correct
130 Correct 9 ms 4740 KB Output is correct
131 Correct 19 ms 4700 KB Output is correct
132 Correct 394 ms 18796 KB Output is correct
133 Correct 396 ms 18540 KB Output is correct
134 Correct 390 ms 18880 KB Output is correct
135 Correct 442 ms 18792 KB Output is correct
136 Correct 434 ms 18772 KB Output is correct
137 Correct 341 ms 12372 KB Output is correct
138 Correct 340 ms 12624 KB Output is correct
139 Correct 308 ms 18896 KB Output is correct
140 Correct 292 ms 18516 KB Output is correct
141 Correct 424 ms 18556 KB Output is correct
142 Correct 457 ms 18772 KB Output is correct