답안 #914467

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
914467 2024-01-22T08:24:45 Z vjudge1 Council (JOI23_council) C++17
41 / 100
4000 ms 75088 KB
#include<bits/stdc++.h>
using namespace std;

struct trie{
	int s[2];
	int numb=0;
}tre[300000*10];

int n,m;
int c[300100][25],sm[25];
int head=0,prv=0,nxt[300100];
int uct[25];
int cnt=0;

void insert(int which){
	int nw=0;
	for (int i=head;i!=-1;i=nxt[i]){
		int tp=c[which][i];
		if (!tre[nw].s[tp]){
			tre[nw].s[tp]=++cnt;
		}
		//printf("%d %d\n",tp,tre[nw].s[tp]);
		nw=tre[nw].s[tp];
	}
	tre[nw].numb++;
}

int fd(int level,int tnum,int l,int cur,int ult[]){
	if (l<0){
		return -99999;
	}
	if (level==-1){
	    if (tre[tnum].numb<=1){
	        bool same=true;
    		for (int i=head;i!=-1;i=nxt[i]){
    			if (ult[i]!=c[cur][i]){
    				same=false;
    				break;
    			}
    		}
    		if (same) return -99999;
	    }
		int ans=0;
		for (int i=head;i!=-1;i=nxt[i]){
			if (ult[i]==0&&uct[i]==1){
				ans++;
			}
		}
		return ans;
	}
	int ans=0;
	if (tre[tnum].s[0]){
		ult[level]=0;
		ans=max(ans,fd(nxt[level],tre[tnum].s[0],l,cur,ult));
	}
	int emmmm=0;
	if (tre[tnum].s[1]){
		ult[level]=1;
		int tp=0;
		if (uct[level]==1){
			emmmm=1;
		}
		tp=fd(nxt[level],tre[tnum].s[1],l-emmmm,cur,ult);
		ans=max(tp,ans);
	}
	//printf("%d %d %d\n",level,l,ans);
	return ans;
}

int main(){
	scanf("%d %d",&n,&m);
	for (int i=1;i<=n;i++){
		for (int p=1;p<=m;p++){
			scanf("%d",&c[i][p]);
			sm[p]+=c[i][p];
		}
	}
	int orians=0;
	int mode=0;
	for (int i=1;i<=m;i++){
		if (sm[i]>=(n/2+2)){
			orians++;
		}else if (sm[i]>=n/2){
			if (!head) head=i;
			else nxt[prv]=i;
			prv=i;
			mode++;
		}
	}
	nxt[prv]=-1;
	/*
	for (int i=head;i!=-1;i=nxt[i]){
		printf("%d ",i);
	}
	printf("\n");*/
	for (int i=1;i<=n;i++){
		insert(i);
	}
	//
	//
	for (int i=1;i<=n;i++){
		int ans=0,ct=0;
		memset(uct,0,sizeof uct);
		int tsans=0;
		for (int p=head;p!=-1;p=nxt[p]){
			if (c[i][p]&&sm[p]==(n/2)){
				continue;
			}
			else if (c[i][p]||sm[p]==(n/2)){
				uct[p]=1;
				ct++;
			}else if (sm[p]>=n/2+1){
				tsans++;
			}
		}
		int tpans=0;
		for (int p=0;p<=ct;p++){
			int emtary[25];
			memset(emtary,0,sizeof emtary);
			int tps=fd(head,0,p,i,emtary);
			if (tps>0){
				tpans=tps;
				break;
			}
		}
		//printf("%d %d %d\n",orians,tsans,tpans);
		printf("%d\n",orians+tsans+tpans);
	}
}

Compilation message

council.cpp: In function 'int main()':
council.cpp:102:7: warning: unused variable 'ans' [-Wunused-variable]
  102 |   int ans=0,ct=0;
      |       ^~~
council.cpp:71:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   71 |  scanf("%d %d",&n,&m);
      |  ~~~~~^~~~~~~~~~~~~~~
council.cpp:74:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   74 |    scanf("%d",&c[i][p]);
      |    ~~~~~^~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 39260 KB Output is correct
2 Correct 8 ms 39516 KB Output is correct
3 Correct 8 ms 39260 KB Output is correct
4 Correct 8 ms 39256 KB Output is correct
5 Correct 8 ms 39260 KB Output is correct
6 Correct 8 ms 39348 KB Output is correct
7 Correct 8 ms 39260 KB Output is correct
8 Correct 8 ms 39260 KB Output is correct
9 Correct 8 ms 39336 KB Output is correct
10 Correct 8 ms 39260 KB Output is correct
11 Correct 8 ms 39260 KB Output is correct
12 Correct 12 ms 39260 KB Output is correct
13 Correct 8 ms 39260 KB Output is correct
14 Correct 9 ms 39108 KB Output is correct
15 Correct 8 ms 39256 KB Output is correct
16 Correct 8 ms 39260 KB Output is correct
17 Correct 7 ms 39260 KB Output is correct
18 Correct 8 ms 39260 KB Output is correct
19 Correct 7 ms 39260 KB Output is correct
20 Correct 8 ms 39340 KB Output is correct
21 Correct 7 ms 39260 KB Output is correct
22 Correct 9 ms 39260 KB Output is correct
23 Correct 8 ms 39260 KB Output is correct
24 Correct 8 ms 39260 KB Output is correct
25 Correct 8 ms 39260 KB Output is correct
26 Correct 7 ms 39260 KB Output is correct
27 Correct 9 ms 39260 KB Output is correct
28 Correct 7 ms 39260 KB Output is correct
29 Correct 8 ms 39260 KB Output is correct
30 Correct 12 ms 39260 KB Output is correct
31 Correct 7 ms 39096 KB Output is correct
32 Correct 8 ms 39256 KB Output is correct
33 Correct 8 ms 39260 KB Output is correct
34 Correct 8 ms 39260 KB Output is correct
35 Correct 8 ms 39128 KB Output is correct
36 Correct 8 ms 39256 KB Output is correct
37 Correct 8 ms 39260 KB Output is correct
38 Correct 8 ms 39260 KB Output is correct
39 Correct 9 ms 39260 KB Output is correct
40 Correct 9 ms 39256 KB Output is correct
41 Correct 8 ms 39260 KB Output is correct
42 Correct 8 ms 39260 KB Output is correct
43 Correct 8 ms 39256 KB Output is correct
44 Correct 9 ms 39260 KB Output is correct
45 Correct 8 ms 39256 KB Output is correct
46 Correct 8 ms 39260 KB Output is correct
47 Correct 8 ms 39260 KB Output is correct
48 Correct 7 ms 39260 KB Output is correct
49 Correct 8 ms 39256 KB Output is correct
50 Correct 8 ms 39260 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 39260 KB Output is correct
2 Correct 8 ms 39516 KB Output is correct
3 Correct 8 ms 39260 KB Output is correct
4 Correct 8 ms 39256 KB Output is correct
5 Correct 8 ms 39260 KB Output is correct
6 Correct 8 ms 39348 KB Output is correct
7 Correct 8 ms 39260 KB Output is correct
8 Correct 8 ms 39260 KB Output is correct
9 Correct 8 ms 39336 KB Output is correct
10 Correct 8 ms 39260 KB Output is correct
11 Correct 8 ms 39260 KB Output is correct
12 Correct 12 ms 39260 KB Output is correct
13 Correct 8 ms 39260 KB Output is correct
14 Correct 9 ms 39108 KB Output is correct
15 Correct 8 ms 39256 KB Output is correct
16 Correct 8 ms 39260 KB Output is correct
17 Correct 7 ms 39260 KB Output is correct
18 Correct 8 ms 39260 KB Output is correct
19 Correct 7 ms 39260 KB Output is correct
20 Correct 8 ms 39340 KB Output is correct
21 Correct 7 ms 39260 KB Output is correct
22 Correct 9 ms 39260 KB Output is correct
23 Correct 8 ms 39260 KB Output is correct
24 Correct 8 ms 39260 KB Output is correct
25 Correct 8 ms 39260 KB Output is correct
26 Correct 7 ms 39260 KB Output is correct
27 Correct 9 ms 39260 KB Output is correct
28 Correct 7 ms 39260 KB Output is correct
29 Correct 8 ms 39260 KB Output is correct
30 Correct 12 ms 39260 KB Output is correct
31 Correct 7 ms 39096 KB Output is correct
32 Correct 8 ms 39256 KB Output is correct
33 Correct 8 ms 39260 KB Output is correct
34 Correct 8 ms 39260 KB Output is correct
35 Correct 8 ms 39128 KB Output is correct
36 Correct 8 ms 39256 KB Output is correct
37 Correct 8 ms 39260 KB Output is correct
38 Correct 8 ms 39260 KB Output is correct
39 Correct 9 ms 39260 KB Output is correct
40 Correct 9 ms 39256 KB Output is correct
41 Correct 8 ms 39260 KB Output is correct
42 Correct 8 ms 39260 KB Output is correct
43 Correct 8 ms 39256 KB Output is correct
44 Correct 9 ms 39260 KB Output is correct
45 Correct 8 ms 39256 KB Output is correct
46 Correct 8 ms 39260 KB Output is correct
47 Correct 8 ms 39260 KB Output is correct
48 Correct 7 ms 39260 KB Output is correct
49 Correct 8 ms 39256 KB Output is correct
50 Correct 8 ms 39260 KB Output is correct
51 Correct 12 ms 39260 KB Output is correct
52 Correct 12 ms 39348 KB Output is correct
53 Correct 13 ms 39260 KB Output is correct
54 Correct 43 ms 39260 KB Output is correct
55 Correct 9 ms 39348 KB Output is correct
56 Correct 39 ms 39424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 39260 KB Output is correct
2 Correct 87 ms 67612 KB Output is correct
3 Correct 84 ms 67540 KB Output is correct
4 Correct 63 ms 67084 KB Output is correct
5 Correct 93 ms 67700 KB Output is correct
6 Correct 71 ms 66984 KB Output is correct
7 Correct 105 ms 67676 KB Output is correct
8 Correct 8 ms 39260 KB Output is correct
9 Correct 8 ms 39260 KB Output is correct
10 Correct 8 ms 39340 KB Output is correct
11 Correct 8 ms 39260 KB Output is correct
12 Correct 10 ms 39260 KB Output is correct
13 Correct 7 ms 39516 KB Output is correct
14 Correct 8 ms 39148 KB Output is correct
15 Correct 8 ms 39260 KB Output is correct
16 Correct 8 ms 39260 KB Output is correct
17 Correct 9 ms 39260 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 39260 KB Output is correct
2 Correct 87 ms 67612 KB Output is correct
3 Correct 84 ms 67540 KB Output is correct
4 Correct 63 ms 67084 KB Output is correct
5 Correct 93 ms 67700 KB Output is correct
6 Correct 71 ms 66984 KB Output is correct
7 Correct 105 ms 67676 KB Output is correct
8 Correct 8 ms 39260 KB Output is correct
9 Correct 8 ms 39260 KB Output is correct
10 Correct 8 ms 39340 KB Output is correct
11 Correct 8 ms 39260 KB Output is correct
12 Correct 10 ms 39260 KB Output is correct
13 Correct 7 ms 39516 KB Output is correct
14 Correct 8 ms 39148 KB Output is correct
15 Correct 8 ms 39260 KB Output is correct
16 Correct 8 ms 39260 KB Output is correct
17 Correct 9 ms 39260 KB Output is correct
18 Correct 8 ms 39260 KB Output is correct
19 Correct 7 ms 39260 KB Output is correct
20 Correct 464 ms 72600 KB Output is correct
21 Correct 510 ms 71804 KB Output is correct
22 Correct 330 ms 72024 KB Output is correct
23 Correct 249 ms 72532 KB Output is correct
24 Correct 249 ms 72376 KB Output is correct
25 Correct 260 ms 72340 KB Output is correct
26 Correct 1628 ms 72352 KB Output is correct
27 Correct 8 ms 39260 KB Output is correct
28 Correct 7 ms 39260 KB Output is correct
29 Correct 7 ms 39260 KB Output is correct
30 Correct 8 ms 39260 KB Output is correct
31 Correct 8 ms 39260 KB Output is correct
32 Correct 9 ms 39516 KB Output is correct
33 Correct 8 ms 39260 KB Output is correct
34 Correct 7 ms 39260 KB Output is correct
35 Correct 8 ms 39260 KB Output is correct
36 Correct 8 ms 39260 KB Output is correct
37 Correct 9 ms 39260 KB Output is correct
38 Correct 7 ms 39120 KB Output is correct
39 Correct 8 ms 39340 KB Output is correct
40 Correct 9 ms 39260 KB Output is correct
41 Correct 8 ms 39260 KB Output is correct
42 Correct 7 ms 39260 KB Output is correct
43 Correct 8 ms 39260 KB Output is correct
44 Correct 8 ms 39260 KB Output is correct
45 Correct 9 ms 39260 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 39260 KB Output is correct
2 Correct 87 ms 67612 KB Output is correct
3 Correct 84 ms 67540 KB Output is correct
4 Correct 63 ms 67084 KB Output is correct
5 Correct 93 ms 67700 KB Output is correct
6 Correct 71 ms 66984 KB Output is correct
7 Correct 105 ms 67676 KB Output is correct
8 Correct 8 ms 39260 KB Output is correct
9 Correct 8 ms 39260 KB Output is correct
10 Correct 8 ms 39340 KB Output is correct
11 Correct 8 ms 39260 KB Output is correct
12 Correct 10 ms 39260 KB Output is correct
13 Correct 7 ms 39516 KB Output is correct
14 Correct 8 ms 39148 KB Output is correct
15 Correct 8 ms 39260 KB Output is correct
16 Correct 8 ms 39260 KB Output is correct
17 Correct 9 ms 39260 KB Output is correct
18 Correct 8 ms 39260 KB Output is correct
19 Correct 7 ms 39260 KB Output is correct
20 Correct 464 ms 72600 KB Output is correct
21 Correct 510 ms 71804 KB Output is correct
22 Correct 330 ms 72024 KB Output is correct
23 Correct 249 ms 72532 KB Output is correct
24 Correct 249 ms 72376 KB Output is correct
25 Correct 260 ms 72340 KB Output is correct
26 Correct 1628 ms 72352 KB Output is correct
27 Correct 8 ms 39260 KB Output is correct
28 Correct 7 ms 39260 KB Output is correct
29 Correct 7 ms 39260 KB Output is correct
30 Correct 8 ms 39260 KB Output is correct
31 Correct 8 ms 39260 KB Output is correct
32 Correct 9 ms 39516 KB Output is correct
33 Correct 8 ms 39260 KB Output is correct
34 Correct 7 ms 39260 KB Output is correct
35 Correct 8 ms 39260 KB Output is correct
36 Correct 8 ms 39260 KB Output is correct
37 Correct 9 ms 39260 KB Output is correct
38 Correct 7 ms 39120 KB Output is correct
39 Correct 8 ms 39340 KB Output is correct
40 Correct 9 ms 39260 KB Output is correct
41 Correct 8 ms 39260 KB Output is correct
42 Correct 7 ms 39260 KB Output is correct
43 Correct 8 ms 39260 KB Output is correct
44 Correct 8 ms 39260 KB Output is correct
45 Correct 9 ms 39260 KB Output is correct
46 Correct 8 ms 39260 KB Output is correct
47 Correct 820 ms 74716 KB Output is correct
48 Correct 1209 ms 74296 KB Output is correct
49 Correct 611 ms 74160 KB Output is correct
50 Correct 325 ms 75088 KB Output is correct
51 Correct 311 ms 74580 KB Output is correct
52 Correct 474 ms 74836 KB Output is correct
53 Execution timed out 4098 ms 74748 KB Time limit exceeded
54 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 39260 KB Output is correct
2 Correct 87 ms 67612 KB Output is correct
3 Correct 84 ms 67540 KB Output is correct
4 Correct 63 ms 67084 KB Output is correct
5 Correct 93 ms 67700 KB Output is correct
6 Correct 71 ms 66984 KB Output is correct
7 Correct 105 ms 67676 KB Output is correct
8 Correct 8 ms 39260 KB Output is correct
9 Correct 8 ms 39260 KB Output is correct
10 Correct 8 ms 39340 KB Output is correct
11 Correct 8 ms 39260 KB Output is correct
12 Correct 10 ms 39260 KB Output is correct
13 Correct 7 ms 39516 KB Output is correct
14 Correct 8 ms 39148 KB Output is correct
15 Correct 8 ms 39260 KB Output is correct
16 Correct 8 ms 39260 KB Output is correct
17 Correct 9 ms 39260 KB Output is correct
18 Correct 8 ms 39260 KB Output is correct
19 Correct 7 ms 39260 KB Output is correct
20 Correct 464 ms 72600 KB Output is correct
21 Correct 510 ms 71804 KB Output is correct
22 Correct 330 ms 72024 KB Output is correct
23 Correct 249 ms 72532 KB Output is correct
24 Correct 249 ms 72376 KB Output is correct
25 Correct 260 ms 72340 KB Output is correct
26 Correct 1628 ms 72352 KB Output is correct
27 Correct 8 ms 39260 KB Output is correct
28 Correct 7 ms 39260 KB Output is correct
29 Correct 7 ms 39260 KB Output is correct
30 Correct 8 ms 39260 KB Output is correct
31 Correct 8 ms 39260 KB Output is correct
32 Correct 9 ms 39516 KB Output is correct
33 Correct 8 ms 39260 KB Output is correct
34 Correct 7 ms 39260 KB Output is correct
35 Correct 8 ms 39260 KB Output is correct
36 Correct 8 ms 39260 KB Output is correct
37 Correct 9 ms 39260 KB Output is correct
38 Correct 7 ms 39120 KB Output is correct
39 Correct 8 ms 39340 KB Output is correct
40 Correct 9 ms 39260 KB Output is correct
41 Correct 8 ms 39260 KB Output is correct
42 Correct 7 ms 39260 KB Output is correct
43 Correct 8 ms 39260 KB Output is correct
44 Correct 8 ms 39260 KB Output is correct
45 Correct 9 ms 39260 KB Output is correct
46 Correct 8 ms 39260 KB Output is correct
47 Correct 820 ms 74716 KB Output is correct
48 Correct 1209 ms 74296 KB Output is correct
49 Correct 611 ms 74160 KB Output is correct
50 Correct 325 ms 75088 KB Output is correct
51 Correct 311 ms 74580 KB Output is correct
52 Correct 474 ms 74836 KB Output is correct
53 Execution timed out 4098 ms 74748 KB Time limit exceeded
54 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 39260 KB Output is correct
2 Correct 8 ms 39516 KB Output is correct
3 Correct 8 ms 39260 KB Output is correct
4 Correct 8 ms 39256 KB Output is correct
5 Correct 8 ms 39260 KB Output is correct
6 Correct 8 ms 39348 KB Output is correct
7 Correct 8 ms 39260 KB Output is correct
8 Correct 8 ms 39260 KB Output is correct
9 Correct 8 ms 39336 KB Output is correct
10 Correct 8 ms 39260 KB Output is correct
11 Correct 8 ms 39260 KB Output is correct
12 Correct 12 ms 39260 KB Output is correct
13 Correct 8 ms 39260 KB Output is correct
14 Correct 9 ms 39108 KB Output is correct
15 Correct 8 ms 39256 KB Output is correct
16 Correct 8 ms 39260 KB Output is correct
17 Correct 7 ms 39260 KB Output is correct
18 Correct 8 ms 39260 KB Output is correct
19 Correct 7 ms 39260 KB Output is correct
20 Correct 8 ms 39340 KB Output is correct
21 Correct 7 ms 39260 KB Output is correct
22 Correct 9 ms 39260 KB Output is correct
23 Correct 8 ms 39260 KB Output is correct
24 Correct 8 ms 39260 KB Output is correct
25 Correct 8 ms 39260 KB Output is correct
26 Correct 7 ms 39260 KB Output is correct
27 Correct 9 ms 39260 KB Output is correct
28 Correct 7 ms 39260 KB Output is correct
29 Correct 8 ms 39260 KB Output is correct
30 Correct 12 ms 39260 KB Output is correct
31 Correct 7 ms 39096 KB Output is correct
32 Correct 8 ms 39256 KB Output is correct
33 Correct 8 ms 39260 KB Output is correct
34 Correct 8 ms 39260 KB Output is correct
35 Correct 8 ms 39128 KB Output is correct
36 Correct 8 ms 39256 KB Output is correct
37 Correct 8 ms 39260 KB Output is correct
38 Correct 8 ms 39260 KB Output is correct
39 Correct 9 ms 39260 KB Output is correct
40 Correct 9 ms 39256 KB Output is correct
41 Correct 8 ms 39260 KB Output is correct
42 Correct 8 ms 39260 KB Output is correct
43 Correct 8 ms 39256 KB Output is correct
44 Correct 9 ms 39260 KB Output is correct
45 Correct 8 ms 39256 KB Output is correct
46 Correct 8 ms 39260 KB Output is correct
47 Correct 8 ms 39260 KB Output is correct
48 Correct 7 ms 39260 KB Output is correct
49 Correct 8 ms 39256 KB Output is correct
50 Correct 8 ms 39260 KB Output is correct
51 Correct 12 ms 39260 KB Output is correct
52 Correct 12 ms 39348 KB Output is correct
53 Correct 13 ms 39260 KB Output is correct
54 Correct 43 ms 39260 KB Output is correct
55 Correct 9 ms 39348 KB Output is correct
56 Correct 39 ms 39424 KB Output is correct
57 Correct 8 ms 39260 KB Output is correct
58 Correct 87 ms 67612 KB Output is correct
59 Correct 84 ms 67540 KB Output is correct
60 Correct 63 ms 67084 KB Output is correct
61 Correct 93 ms 67700 KB Output is correct
62 Correct 71 ms 66984 KB Output is correct
63 Correct 105 ms 67676 KB Output is correct
64 Correct 8 ms 39260 KB Output is correct
65 Correct 8 ms 39260 KB Output is correct
66 Correct 8 ms 39340 KB Output is correct
67 Correct 8 ms 39260 KB Output is correct
68 Correct 10 ms 39260 KB Output is correct
69 Correct 7 ms 39516 KB Output is correct
70 Correct 8 ms 39148 KB Output is correct
71 Correct 8 ms 39260 KB Output is correct
72 Correct 8 ms 39260 KB Output is correct
73 Correct 9 ms 39260 KB Output is correct
74 Correct 8 ms 39260 KB Output is correct
75 Correct 7 ms 39260 KB Output is correct
76 Correct 464 ms 72600 KB Output is correct
77 Correct 510 ms 71804 KB Output is correct
78 Correct 330 ms 72024 KB Output is correct
79 Correct 249 ms 72532 KB Output is correct
80 Correct 249 ms 72376 KB Output is correct
81 Correct 260 ms 72340 KB Output is correct
82 Correct 1628 ms 72352 KB Output is correct
83 Correct 8 ms 39260 KB Output is correct
84 Correct 7 ms 39260 KB Output is correct
85 Correct 7 ms 39260 KB Output is correct
86 Correct 8 ms 39260 KB Output is correct
87 Correct 8 ms 39260 KB Output is correct
88 Correct 9 ms 39516 KB Output is correct
89 Correct 8 ms 39260 KB Output is correct
90 Correct 7 ms 39260 KB Output is correct
91 Correct 8 ms 39260 KB Output is correct
92 Correct 8 ms 39260 KB Output is correct
93 Correct 9 ms 39260 KB Output is correct
94 Correct 7 ms 39120 KB Output is correct
95 Correct 8 ms 39340 KB Output is correct
96 Correct 9 ms 39260 KB Output is correct
97 Correct 8 ms 39260 KB Output is correct
98 Correct 7 ms 39260 KB Output is correct
99 Correct 8 ms 39260 KB Output is correct
100 Correct 8 ms 39260 KB Output is correct
101 Correct 9 ms 39260 KB Output is correct
102 Correct 8 ms 39260 KB Output is correct
103 Correct 820 ms 74716 KB Output is correct
104 Correct 1209 ms 74296 KB Output is correct
105 Correct 611 ms 74160 KB Output is correct
106 Correct 325 ms 75088 KB Output is correct
107 Correct 311 ms 74580 KB Output is correct
108 Correct 474 ms 74836 KB Output is correct
109 Execution timed out 4098 ms 74748 KB Time limit exceeded
110 Halted 0 ms 0 KB -