답안 #920260

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
920260 2024-02-02T10:58:14 Z vjudge1 Council (JOI23_council) C++17
100 / 100
1012 ms 61020 KB
#include<bits/stdc++.h>
using namespace std;

typedef unsigned long long ll;
#define MAXN (int)pow(2,21)+10

int pc(ll x){
	int now=0;
	while(x){
		now++;
		x^=(x&(-x));
	}
	return now;
}

ll sm[25];
ll num[300010],pnums[300010],pans[300010];
int gs[MAXN];
ll omx[MAXN],osmx[MAXN];
//ll umx[MAXN],usmx[MAXN];

int main(){
	//freopen("try.in","r",stdin);
	//freopen("try2.out","w",stdout);
	memset(gs,0,sizeof gs);
	memset(omx,0,sizeof omx);
	memset(osmx,0,sizeof osmx);
	//memset(umx,0,sizeof umx);
	//memset(usmx,0,sizeof usmx);
	memset(num,0,sizeof num);
	//printf("%d %d %d",((int)pow(2,21)-1)-3,6^((int)pow(2,21)-1),1023^((int)pow(2,21)-1));
	int n,m; scanf("%d %d",&n,&m);
	for (int i=1;i<=n;i++){
		for (int p=1;p<=m;p++){
			int tp; scanf("%d",&tp);
			sm[p]+=tp;
			num[i]+=(tp<<(p-1));
		}
		ll tp=(1<<m)-num[i]-1;
		omx[tp]=tp;
		gs[tp]++;
		//printf("%d %lld\n",i,tp);
		//umx[num[i]]=tp;
	}
	for (int i=1;i<=n;i++){
		ll wfj=0;
		ll tp;
		for (int p=1;p<=m;p++){
			tp=sm[p];
			tp-=(num[i]>>(p-1))&1;
			if (tp==(n/2)){
				wfj+=(1<<(p-1));
			}else if (tp>(n/2)){
				pans[i]++;
			}
		}
		pnums[i]=wfj;
	}
	/*
	for (int i=1;i<=n;i++){
		printf("%lld %lld %d\n",pans[i],pnums[i],n/2);
	}*/
	for (int i=0;i<m;i++){
		for (int p=(1<<m)-1;p>=0;p--){
			if (((p>>i)&1)==1){
				int tp=p-(1<<i);
				//printf("%d %d\n",p,tp);
				if (pc(omx[p]&tp)>pc(osmx[tp]&tp)&&(omx[p]!=omx[tp])){
					osmx[tp]=omx[p];
					if (pc(osmx[tp]&tp)>pc(omx[tp]&tp)) swap(omx[tp],osmx[tp]);
					//printf("%d %d %d %d %d\n",omx[p],tp,osmx[tp],omx[tp],osmx[tp]);	
				}
				if (pc(osmx[p]&tp)>pc(osmx[tp]&tp)&&(osmx[p]!=omx[tp])){
					osmx[tp]=osmx[p];
					if (pc(osmx[tp]&tp)>pc(omx[tp]&tp)) swap(omx[tp],osmx[tp]);
					//printf("%d %d %d %d %d\n",omx[p],tp,osmx[tp],omx[tp],osmx[tp]);
				}
			}
		}
	}
	for (int i=0;i<m;i++){
		for (int p=0;p<(1<<m);p++){
			if (((p>>i)&1)==0){
				int tp=p+(1<<i);
				//printf("%d %d\n",p,tp); 
				if (pc(omx[p]&tp)>pc(osmx[tp]&tp)&&(omx[p]!=omx[tp])){
					osmx[tp]=omx[p];
					if (pc(osmx[tp]&tp)>pc(omx[tp]&tp)) swap(omx[tp],osmx[tp]);
					//printf("%d %d %d %d %d\n",omx[p],tp,osmx[tp],omx[tp],osmx[tp]);	
				}
				if (pc(osmx[p]&tp)>pc(osmx[tp]&tp)&&(osmx[p]!=omx[tp])){
					osmx[tp]=osmx[p];
					if (pc(osmx[tp]&tp)>pc(omx[tp]&tp)) swap(omx[tp],osmx[tp]);
					//printf("%d %d %d %d %d\n",omx[p],tp,osmx[tp],omx[tp],osmx[tp]);
				}
			}
		}
	}
	
	for (int i=1;i<=n;i++){
		int itp=pnums[i];
		int tp1=omx[itp];
		//int tp2=umx[itp];
		/*
		if (((1<<m)-1-tp1)==num[i]){
			//printf("%d %d\n",tp1,num[i]);
			tp1=osmx[itp];
		}*/
		if ((((1<<m)-1-tp1)==num[i])&&(gs[tp1]==1)){
			//printf("tl");
			tp1=osmx[itp];
		}
		/*
		if (tp2==num[i]){
			tp2=usmx[itp];
		}*/
		//printf("%d %d %d %d %lld %lld %lld %lld\n",i,gs[tp1],pc(tp1&itp),pans[i],tp1,itp,num[i],(1<<m)-1-tp1);
		printf("%d\n",pc(tp1&itp)+pans[i]);
	}
}

Compilation message

council.cpp: In function 'int main()':
council.cpp:51:10: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
   51 |    if (tp==(n/2)){
      |        ~~^~~~~~~
council.cpp:53:16: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
   53 |    }else if (tp>(n/2)){
      |              ~~^~~~~~
council.cpp:109:22: warning: comparison of integer expressions of different signedness: 'int' and 'll' {aka 'long long unsigned int'} [-Wsign-compare]
  109 |   if ((((1<<m)-1-tp1)==num[i])&&(gs[tp1]==1)){
      |        ~~~~~~~~~~~~~~^~~~~~~~
council.cpp:118:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'll' {aka 'long long unsigned int'} [-Wformat=]
  118 |   printf("%d\n",pc(tp1&itp)+pans[i]);
      |           ~^    ~~~~~~~~~~~~~~~~~~~
      |            |               |
      |            int             ll {aka long long unsigned int}
      |           %lld
council.cpp:32:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   32 |  int n,m; scanf("%d %d",&n,&m);
      |           ~~~~~^~~~~~~~~~~~~~~
council.cpp:35:17: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   35 |    int tp; scanf("%d",&tp);
      |            ~~~~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 46424 KB Output is correct
2 Correct 9 ms 46428 KB Output is correct
3 Correct 8 ms 46424 KB Output is correct
4 Correct 7 ms 46424 KB Output is correct
5 Correct 217 ms 46476 KB Output is correct
6 Correct 72 ms 46444 KB Output is correct
7 Correct 124 ms 46436 KB Output is correct
8 Correct 169 ms 46424 KB Output is correct
9 Correct 332 ms 46448 KB Output is correct
10 Correct 135 ms 46440 KB Output is correct
11 Correct 188 ms 46424 KB Output is correct
12 Correct 329 ms 46424 KB Output is correct
13 Correct 8 ms 46424 KB Output is correct
14 Correct 8 ms 46424 KB Output is correct
15 Correct 8 ms 46424 KB Output is correct
16 Correct 8 ms 46624 KB Output is correct
17 Correct 8 ms 46424 KB Output is correct
18 Correct 8 ms 46264 KB Output is correct
19 Correct 9 ms 46424 KB Output is correct
20 Correct 8 ms 46428 KB Output is correct
21 Correct 8 ms 46424 KB Output is correct
22 Correct 8 ms 46424 KB Output is correct
23 Correct 8 ms 46424 KB Output is correct
24 Correct 8 ms 46428 KB Output is correct
25 Correct 9 ms 46424 KB Output is correct
26 Correct 8 ms 46424 KB Output is correct
27 Correct 8 ms 46424 KB Output is correct
28 Correct 8 ms 46424 KB Output is correct
29 Correct 8 ms 46424 KB Output is correct
30 Correct 8 ms 46428 KB Output is correct
31 Correct 9 ms 46424 KB Output is correct
32 Correct 8 ms 46424 KB Output is correct
33 Correct 8 ms 46424 KB Output is correct
34 Correct 8 ms 46428 KB Output is correct
35 Correct 9 ms 46428 KB Output is correct
36 Correct 9 ms 46424 KB Output is correct
37 Correct 7 ms 46424 KB Output is correct
38 Correct 9 ms 46428 KB Output is correct
39 Correct 8 ms 46424 KB Output is correct
40 Correct 9 ms 46424 KB Output is correct
41 Correct 9 ms 46424 KB Output is correct
42 Correct 10 ms 46428 KB Output is correct
43 Correct 10 ms 46624 KB Output is correct
44 Correct 9 ms 46424 KB Output is correct
45 Correct 11 ms 46424 KB Output is correct
46 Correct 27 ms 46428 KB Output is correct
47 Correct 21 ms 46424 KB Output is correct
48 Correct 28 ms 46424 KB Output is correct
49 Correct 20 ms 46424 KB Output is correct
50 Correct 30 ms 46424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 46424 KB Output is correct
2 Correct 9 ms 46428 KB Output is correct
3 Correct 8 ms 46424 KB Output is correct
4 Correct 7 ms 46424 KB Output is correct
5 Correct 217 ms 46476 KB Output is correct
6 Correct 72 ms 46444 KB Output is correct
7 Correct 124 ms 46436 KB Output is correct
8 Correct 169 ms 46424 KB Output is correct
9 Correct 332 ms 46448 KB Output is correct
10 Correct 135 ms 46440 KB Output is correct
11 Correct 188 ms 46424 KB Output is correct
12 Correct 329 ms 46424 KB Output is correct
13 Correct 8 ms 46424 KB Output is correct
14 Correct 8 ms 46424 KB Output is correct
15 Correct 8 ms 46424 KB Output is correct
16 Correct 8 ms 46624 KB Output is correct
17 Correct 8 ms 46424 KB Output is correct
18 Correct 8 ms 46264 KB Output is correct
19 Correct 9 ms 46424 KB Output is correct
20 Correct 8 ms 46428 KB Output is correct
21 Correct 8 ms 46424 KB Output is correct
22 Correct 8 ms 46424 KB Output is correct
23 Correct 8 ms 46424 KB Output is correct
24 Correct 8 ms 46428 KB Output is correct
25 Correct 9 ms 46424 KB Output is correct
26 Correct 8 ms 46424 KB Output is correct
27 Correct 8 ms 46424 KB Output is correct
28 Correct 8 ms 46424 KB Output is correct
29 Correct 8 ms 46424 KB Output is correct
30 Correct 8 ms 46428 KB Output is correct
31 Correct 9 ms 46424 KB Output is correct
32 Correct 8 ms 46424 KB Output is correct
33 Correct 8 ms 46424 KB Output is correct
34 Correct 8 ms 46428 KB Output is correct
35 Correct 9 ms 46428 KB Output is correct
36 Correct 9 ms 46424 KB Output is correct
37 Correct 7 ms 46424 KB Output is correct
38 Correct 9 ms 46428 KB Output is correct
39 Correct 8 ms 46424 KB Output is correct
40 Correct 9 ms 46424 KB Output is correct
41 Correct 9 ms 46424 KB Output is correct
42 Correct 10 ms 46428 KB Output is correct
43 Correct 10 ms 46624 KB Output is correct
44 Correct 9 ms 46424 KB Output is correct
45 Correct 11 ms 46424 KB Output is correct
46 Correct 27 ms 46428 KB Output is correct
47 Correct 21 ms 46424 KB Output is correct
48 Correct 28 ms 46424 KB Output is correct
49 Correct 20 ms 46424 KB Output is correct
50 Correct 30 ms 46424 KB Output is correct
51 Correct 64 ms 46424 KB Output is correct
52 Correct 134 ms 46428 KB Output is correct
53 Correct 434 ms 46440 KB Output is correct
54 Correct 431 ms 46672 KB Output is correct
55 Correct 9 ms 46428 KB Output is correct
56 Correct 56 ms 46424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 46424 KB Output is correct
2 Correct 64 ms 48976 KB Output is correct
3 Correct 61 ms 46928 KB Output is correct
4 Correct 48 ms 46928 KB Output is correct
5 Correct 70 ms 46928 KB Output is correct
6 Correct 51 ms 46928 KB Output is correct
7 Correct 70 ms 49008 KB Output is correct
8 Correct 9 ms 46424 KB Output is correct
9 Correct 8 ms 46424 KB Output is correct
10 Correct 8 ms 46424 KB Output is correct
11 Correct 8 ms 46424 KB Output is correct
12 Correct 8 ms 46428 KB Output is correct
13 Correct 8 ms 46424 KB Output is correct
14 Correct 8 ms 46424 KB Output is correct
15 Correct 9 ms 46428 KB Output is correct
16 Correct 9 ms 46424 KB Output is correct
17 Correct 9 ms 46424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 46424 KB Output is correct
2 Correct 64 ms 48976 KB Output is correct
3 Correct 61 ms 46928 KB Output is correct
4 Correct 48 ms 46928 KB Output is correct
5 Correct 70 ms 46928 KB Output is correct
6 Correct 51 ms 46928 KB Output is correct
7 Correct 70 ms 49008 KB Output is correct
8 Correct 9 ms 46424 KB Output is correct
9 Correct 8 ms 46424 KB Output is correct
10 Correct 8 ms 46424 KB Output is correct
11 Correct 8 ms 46424 KB Output is correct
12 Correct 8 ms 46428 KB Output is correct
13 Correct 8 ms 46424 KB Output is correct
14 Correct 8 ms 46424 KB Output is correct
15 Correct 9 ms 46428 KB Output is correct
16 Correct 9 ms 46424 KB Output is correct
17 Correct 9 ms 46424 KB Output is correct
18 Correct 8 ms 46424 KB Output is correct
19 Correct 8 ms 46424 KB Output is correct
20 Correct 217 ms 46948 KB Output is correct
21 Correct 199 ms 49020 KB Output is correct
22 Correct 203 ms 48976 KB Output is correct
23 Correct 200 ms 49232 KB Output is correct
24 Correct 189 ms 47440 KB Output is correct
25 Correct 207 ms 48996 KB Output is correct
26 Correct 221 ms 48980 KB Output is correct
27 Correct 9 ms 46424 KB Output is correct
28 Correct 8 ms 46424 KB Output is correct
29 Correct 8 ms 46428 KB Output is correct
30 Correct 8 ms 46428 KB Output is correct
31 Correct 8 ms 46424 KB Output is correct
32 Correct 9 ms 46428 KB Output is correct
33 Correct 8 ms 46424 KB Output is correct
34 Correct 8 ms 46428 KB Output is correct
35 Correct 8 ms 46424 KB Output is correct
36 Correct 9 ms 46424 KB Output is correct
37 Correct 9 ms 46424 KB Output is correct
38 Correct 9 ms 46428 KB Output is correct
39 Correct 8 ms 46424 KB Output is correct
40 Correct 8 ms 46424 KB Output is correct
41 Correct 8 ms 46424 KB Output is correct
42 Correct 9 ms 46428 KB Output is correct
43 Correct 8 ms 46260 KB Output is correct
44 Correct 8 ms 46424 KB Output is correct
45 Correct 8 ms 46424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 46424 KB Output is correct
2 Correct 64 ms 48976 KB Output is correct
3 Correct 61 ms 46928 KB Output is correct
4 Correct 48 ms 46928 KB Output is correct
5 Correct 70 ms 46928 KB Output is correct
6 Correct 51 ms 46928 KB Output is correct
7 Correct 70 ms 49008 KB Output is correct
8 Correct 9 ms 46424 KB Output is correct
9 Correct 8 ms 46424 KB Output is correct
10 Correct 8 ms 46424 KB Output is correct
11 Correct 8 ms 46424 KB Output is correct
12 Correct 8 ms 46428 KB Output is correct
13 Correct 8 ms 46424 KB Output is correct
14 Correct 8 ms 46424 KB Output is correct
15 Correct 9 ms 46428 KB Output is correct
16 Correct 9 ms 46424 KB Output is correct
17 Correct 9 ms 46424 KB Output is correct
18 Correct 8 ms 46424 KB Output is correct
19 Correct 8 ms 46424 KB Output is correct
20 Correct 217 ms 46948 KB Output is correct
21 Correct 199 ms 49020 KB Output is correct
22 Correct 203 ms 48976 KB Output is correct
23 Correct 200 ms 49232 KB Output is correct
24 Correct 189 ms 47440 KB Output is correct
25 Correct 207 ms 48996 KB Output is correct
26 Correct 221 ms 48980 KB Output is correct
27 Correct 9 ms 46424 KB Output is correct
28 Correct 8 ms 46424 KB Output is correct
29 Correct 8 ms 46428 KB Output is correct
30 Correct 8 ms 46428 KB Output is correct
31 Correct 8 ms 46424 KB Output is correct
32 Correct 9 ms 46428 KB Output is correct
33 Correct 8 ms 46424 KB Output is correct
34 Correct 8 ms 46428 KB Output is correct
35 Correct 8 ms 46424 KB Output is correct
36 Correct 9 ms 46424 KB Output is correct
37 Correct 9 ms 46424 KB Output is correct
38 Correct 9 ms 46428 KB Output is correct
39 Correct 8 ms 46424 KB Output is correct
40 Correct 8 ms 46424 KB Output is correct
41 Correct 8 ms 46424 KB Output is correct
42 Correct 9 ms 46428 KB Output is correct
43 Correct 8 ms 46260 KB Output is correct
44 Correct 8 ms 46424 KB Output is correct
45 Correct 8 ms 46424 KB Output is correct
46 Correct 9 ms 46424 KB Output is correct
47 Correct 304 ms 46956 KB Output is correct
48 Correct 280 ms 49004 KB Output is correct
49 Correct 280 ms 49036 KB Output is correct
50 Correct 259 ms 49232 KB Output is correct
51 Correct 252 ms 46948 KB Output is correct
52 Correct 278 ms 49000 KB Output is correct
53 Correct 302 ms 49124 KB Output is correct
54 Correct 9 ms 46424 KB Output is correct
55 Correct 9 ms 46424 KB Output is correct
56 Correct 10 ms 46424 KB Output is correct
57 Correct 11 ms 46428 KB Output is correct
58 Correct 11 ms 46424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 46424 KB Output is correct
2 Correct 64 ms 48976 KB Output is correct
3 Correct 61 ms 46928 KB Output is correct
4 Correct 48 ms 46928 KB Output is correct
5 Correct 70 ms 46928 KB Output is correct
6 Correct 51 ms 46928 KB Output is correct
7 Correct 70 ms 49008 KB Output is correct
8 Correct 9 ms 46424 KB Output is correct
9 Correct 8 ms 46424 KB Output is correct
10 Correct 8 ms 46424 KB Output is correct
11 Correct 8 ms 46424 KB Output is correct
12 Correct 8 ms 46428 KB Output is correct
13 Correct 8 ms 46424 KB Output is correct
14 Correct 8 ms 46424 KB Output is correct
15 Correct 9 ms 46428 KB Output is correct
16 Correct 9 ms 46424 KB Output is correct
17 Correct 9 ms 46424 KB Output is correct
18 Correct 8 ms 46424 KB Output is correct
19 Correct 8 ms 46424 KB Output is correct
20 Correct 217 ms 46948 KB Output is correct
21 Correct 199 ms 49020 KB Output is correct
22 Correct 203 ms 48976 KB Output is correct
23 Correct 200 ms 49232 KB Output is correct
24 Correct 189 ms 47440 KB Output is correct
25 Correct 207 ms 48996 KB Output is correct
26 Correct 221 ms 48980 KB Output is correct
27 Correct 9 ms 46424 KB Output is correct
28 Correct 8 ms 46424 KB Output is correct
29 Correct 8 ms 46428 KB Output is correct
30 Correct 8 ms 46428 KB Output is correct
31 Correct 8 ms 46424 KB Output is correct
32 Correct 9 ms 46428 KB Output is correct
33 Correct 8 ms 46424 KB Output is correct
34 Correct 8 ms 46428 KB Output is correct
35 Correct 8 ms 46424 KB Output is correct
36 Correct 9 ms 46424 KB Output is correct
37 Correct 9 ms 46424 KB Output is correct
38 Correct 9 ms 46428 KB Output is correct
39 Correct 8 ms 46424 KB Output is correct
40 Correct 8 ms 46424 KB Output is correct
41 Correct 8 ms 46424 KB Output is correct
42 Correct 9 ms 46428 KB Output is correct
43 Correct 8 ms 46260 KB Output is correct
44 Correct 8 ms 46424 KB Output is correct
45 Correct 8 ms 46424 KB Output is correct
46 Correct 9 ms 46424 KB Output is correct
47 Correct 304 ms 46956 KB Output is correct
48 Correct 280 ms 49004 KB Output is correct
49 Correct 280 ms 49036 KB Output is correct
50 Correct 259 ms 49232 KB Output is correct
51 Correct 252 ms 46948 KB Output is correct
52 Correct 278 ms 49000 KB Output is correct
53 Correct 302 ms 49124 KB Output is correct
54 Correct 9 ms 46424 KB Output is correct
55 Correct 9 ms 46424 KB Output is correct
56 Correct 10 ms 46424 KB Output is correct
57 Correct 11 ms 46428 KB Output is correct
58 Correct 11 ms 46424 KB Output is correct
59 Correct 322 ms 49488 KB Output is correct
60 Correct 195 ms 48720 KB Output is correct
61 Correct 196 ms 48720 KB Output is correct
62 Correct 205 ms 49008 KB Output is correct
63 Correct 354 ms 46952 KB Output is correct
64 Correct 416 ms 49004 KB Output is correct
65 Correct 384 ms 49012 KB Output is correct
66 Correct 314 ms 49232 KB Output is correct
67 Correct 321 ms 46952 KB Output is correct
68 Correct 380 ms 48976 KB Output is correct
69 Correct 411 ms 49516 KB Output is correct
70 Correct 27 ms 46424 KB Output is correct
71 Correct 20 ms 46428 KB Output is correct
72 Correct 26 ms 46424 KB Output is correct
73 Correct 21 ms 46428 KB Output is correct
74 Correct 30 ms 46424 KB Output is correct
75 Correct 57 ms 46424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 46424 KB Output is correct
2 Correct 9 ms 46428 KB Output is correct
3 Correct 8 ms 46424 KB Output is correct
4 Correct 7 ms 46424 KB Output is correct
5 Correct 217 ms 46476 KB Output is correct
6 Correct 72 ms 46444 KB Output is correct
7 Correct 124 ms 46436 KB Output is correct
8 Correct 169 ms 46424 KB Output is correct
9 Correct 332 ms 46448 KB Output is correct
10 Correct 135 ms 46440 KB Output is correct
11 Correct 188 ms 46424 KB Output is correct
12 Correct 329 ms 46424 KB Output is correct
13 Correct 8 ms 46424 KB Output is correct
14 Correct 8 ms 46424 KB Output is correct
15 Correct 8 ms 46424 KB Output is correct
16 Correct 8 ms 46624 KB Output is correct
17 Correct 8 ms 46424 KB Output is correct
18 Correct 8 ms 46264 KB Output is correct
19 Correct 9 ms 46424 KB Output is correct
20 Correct 8 ms 46428 KB Output is correct
21 Correct 8 ms 46424 KB Output is correct
22 Correct 8 ms 46424 KB Output is correct
23 Correct 8 ms 46424 KB Output is correct
24 Correct 8 ms 46428 KB Output is correct
25 Correct 9 ms 46424 KB Output is correct
26 Correct 8 ms 46424 KB Output is correct
27 Correct 8 ms 46424 KB Output is correct
28 Correct 8 ms 46424 KB Output is correct
29 Correct 8 ms 46424 KB Output is correct
30 Correct 8 ms 46428 KB Output is correct
31 Correct 9 ms 46424 KB Output is correct
32 Correct 8 ms 46424 KB Output is correct
33 Correct 8 ms 46424 KB Output is correct
34 Correct 8 ms 46428 KB Output is correct
35 Correct 9 ms 46428 KB Output is correct
36 Correct 9 ms 46424 KB Output is correct
37 Correct 7 ms 46424 KB Output is correct
38 Correct 9 ms 46428 KB Output is correct
39 Correct 8 ms 46424 KB Output is correct
40 Correct 9 ms 46424 KB Output is correct
41 Correct 9 ms 46424 KB Output is correct
42 Correct 10 ms 46428 KB Output is correct
43 Correct 10 ms 46624 KB Output is correct
44 Correct 9 ms 46424 KB Output is correct
45 Correct 11 ms 46424 KB Output is correct
46 Correct 27 ms 46428 KB Output is correct
47 Correct 21 ms 46424 KB Output is correct
48 Correct 28 ms 46424 KB Output is correct
49 Correct 20 ms 46424 KB Output is correct
50 Correct 30 ms 46424 KB Output is correct
51 Correct 64 ms 46424 KB Output is correct
52 Correct 134 ms 46428 KB Output is correct
53 Correct 434 ms 46440 KB Output is correct
54 Correct 431 ms 46672 KB Output is correct
55 Correct 9 ms 46428 KB Output is correct
56 Correct 56 ms 46424 KB Output is correct
57 Correct 8 ms 46424 KB Output is correct
58 Correct 64 ms 48976 KB Output is correct
59 Correct 61 ms 46928 KB Output is correct
60 Correct 48 ms 46928 KB Output is correct
61 Correct 70 ms 46928 KB Output is correct
62 Correct 51 ms 46928 KB Output is correct
63 Correct 70 ms 49008 KB Output is correct
64 Correct 9 ms 46424 KB Output is correct
65 Correct 8 ms 46424 KB Output is correct
66 Correct 8 ms 46424 KB Output is correct
67 Correct 8 ms 46424 KB Output is correct
68 Correct 8 ms 46428 KB Output is correct
69 Correct 8 ms 46424 KB Output is correct
70 Correct 8 ms 46424 KB Output is correct
71 Correct 9 ms 46428 KB Output is correct
72 Correct 9 ms 46424 KB Output is correct
73 Correct 9 ms 46424 KB Output is correct
74 Correct 8 ms 46424 KB Output is correct
75 Correct 8 ms 46424 KB Output is correct
76 Correct 217 ms 46948 KB Output is correct
77 Correct 199 ms 49020 KB Output is correct
78 Correct 203 ms 48976 KB Output is correct
79 Correct 200 ms 49232 KB Output is correct
80 Correct 189 ms 47440 KB Output is correct
81 Correct 207 ms 48996 KB Output is correct
82 Correct 221 ms 48980 KB Output is correct
83 Correct 9 ms 46424 KB Output is correct
84 Correct 8 ms 46424 KB Output is correct
85 Correct 8 ms 46428 KB Output is correct
86 Correct 8 ms 46428 KB Output is correct
87 Correct 8 ms 46424 KB Output is correct
88 Correct 9 ms 46428 KB Output is correct
89 Correct 8 ms 46424 KB Output is correct
90 Correct 8 ms 46428 KB Output is correct
91 Correct 8 ms 46424 KB Output is correct
92 Correct 9 ms 46424 KB Output is correct
93 Correct 9 ms 46424 KB Output is correct
94 Correct 9 ms 46428 KB Output is correct
95 Correct 8 ms 46424 KB Output is correct
96 Correct 8 ms 46424 KB Output is correct
97 Correct 8 ms 46424 KB Output is correct
98 Correct 9 ms 46428 KB Output is correct
99 Correct 8 ms 46260 KB Output is correct
100 Correct 8 ms 46424 KB Output is correct
101 Correct 8 ms 46424 KB Output is correct
102 Correct 9 ms 46424 KB Output is correct
103 Correct 304 ms 46956 KB Output is correct
104 Correct 280 ms 49004 KB Output is correct
105 Correct 280 ms 49036 KB Output is correct
106 Correct 259 ms 49232 KB Output is correct
107 Correct 252 ms 46948 KB Output is correct
108 Correct 278 ms 49000 KB Output is correct
109 Correct 302 ms 49124 KB Output is correct
110 Correct 9 ms 46424 KB Output is correct
111 Correct 9 ms 46424 KB Output is correct
112 Correct 10 ms 46424 KB Output is correct
113 Correct 11 ms 46428 KB Output is correct
114 Correct 11 ms 46424 KB Output is correct
115 Correct 322 ms 49488 KB Output is correct
116 Correct 195 ms 48720 KB Output is correct
117 Correct 196 ms 48720 KB Output is correct
118 Correct 205 ms 49008 KB Output is correct
119 Correct 354 ms 46952 KB Output is correct
120 Correct 416 ms 49004 KB Output is correct
121 Correct 384 ms 49012 KB Output is correct
122 Correct 314 ms 49232 KB Output is correct
123 Correct 321 ms 46952 KB Output is correct
124 Correct 380 ms 48976 KB Output is correct
125 Correct 411 ms 49516 KB Output is correct
126 Correct 27 ms 46424 KB Output is correct
127 Correct 20 ms 46428 KB Output is correct
128 Correct 26 ms 46424 KB Output is correct
129 Correct 21 ms 46428 KB Output is correct
130 Correct 30 ms 46424 KB Output is correct
131 Correct 57 ms 46424 KB Output is correct
132 Correct 894 ms 49508 KB Output is correct
133 Correct 944 ms 47212 KB Output is correct
134 Correct 907 ms 49268 KB Output is correct
135 Correct 798 ms 59116 KB Output is correct
136 Correct 844 ms 59008 KB Output is correct
137 Correct 585 ms 60248 KB Output is correct
138 Correct 569 ms 60552 KB Output is correct
139 Correct 443 ms 61008 KB Output is correct
140 Correct 481 ms 58732 KB Output is correct
141 Correct 959 ms 60772 KB Output is correct
142 Correct 1012 ms 61020 KB Output is correct