#include<bits/stdc++.h>
#define ll long long
using namespace std;
int kritv,N,M,K,maks[300005],maska[300005],glasa[300005][25],stepen[25],ukup[25],res[300005],dist[1050005];
map<int,bool> bio;
/*
0 - Moze a ne mora za to da ne glasa
1 - Mora da to da ne glasa
Dodavanje - 0 u 1 dodaje 1 cene
Ispitivanje - 1 u 0 dodaje 1 cene
*/
void rek1(int poz,int targ,int tren,int cena){
if(poz>=K){
tren+=(targ&(stepen[M]-stepen[K]));
dist[tren]=min(dist[tren],cena);
return;
}
///Dodaje 0
rek1(poz+1,targ,tren,cena);
///Dodaje 1
if((targ&stepen[poz])==0)
rek1(poz+1,targ,tren+stepen[poz],cena+1);
else
rek1(poz+1,targ,tren+stepen[poz],cena);
return;
}
void dodaj(int x){
if(bio[x])
return;
bio[x]=true;
rek1(0,(stepen[M]-1)^x,0,0);
return;
}
void rek2(int poz,int targ,int tren,int cena,int indx){
if(res[indx]<=cena)
return;
if(poz>=M){
res[indx]=min(res[indx],cena+dist[tren]);
return;
}
/// Dodaje 1
rek2(poz+1,targ,tren+stepen[poz],cena,indx);
/// Dodaje 0
if((targ&stepen[poz])!=0)
rek2(poz+1,targ,tren,cena+1,indx);
else
rek2(poz+1,targ,tren,cena,indx);
return;
}
void najblizi(int indx,int sta){
rek2(K,sta,sta&(stepen[K]-1),0,indx);
return;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
cin>>N>>M;
kritv=N/2;
stepen[0]=1;
for(int i=1;i<=24;i++)
stepen[i]=stepen[i-1]*2;
K=(M/2);
for(int i=1;i<=N;i++){
for(int j=0;j<M;j++)
cin>>glasa[i][j];
for(int j=0;j+j<M;j++)
swap(glasa[i][j],glasa[i][M-1-j]);
for(int j=0;j<M;j++){
ukup[j]+=glasa[i][j];
maska[i]+=stepen[j]*glasa[i][j];
}
}
for(int i=1;i<=N;i++)
for(int j=0;j<M;j++)
if(ukup[j]-glasa[i][j]>=kritv)
maks[i]++;
for(int i=1;i<=N;i++)
res[i]=M+1;
for(int i=0;i<=1050000;i++)
dist[i]=M+1;
bio.clear();
for(int i=2;i<=N;i++){
dodaj(maska[i-1]);
int x=0;
for(int j=0;j<M;j++){
int kol=ukup[j]-glasa[i][j];
if(kol==kritv)
x+=stepen[j];
}
najblizi(i,x);
}
for(int i=0;i<=1050000;i++)
dist[i]=M+1;
bio.clear();
for(int i=N-1;i>=1;i--){
dodaj(maska[i+1]);
int x=0;
for(int j=0;j<M;j++){
int kol=ukup[j]-glasa[i][j];
if(kol==kritv)
x+=stepen[j];
}
najblizi(i,x);
}
for(int i=1;i<=N;i++)
cout<<maks[i]-res[i]<<"\n";
cout<<"\n";
/* for(int i=1;i<=N;i++)
cout<<maks[i]<<" ";
cout<<"\n";
for(int i=1;i<=N;i++)
cout<<res[i]<<" ";
cout<<"\n";*/
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4436 KB |
Output is correct |
2 |
Correct |
3 ms |
4436 KB |
Output is correct |
3 |
Correct |
3 ms |
4436 KB |
Output is correct |
4 |
Correct |
3 ms |
4436 KB |
Output is correct |
5 |
Correct |
3 ms |
4424 KB |
Output is correct |
6 |
Correct |
6 ms |
4436 KB |
Output is correct |
7 |
Correct |
3 ms |
4436 KB |
Output is correct |
8 |
Correct |
3 ms |
4436 KB |
Output is correct |
9 |
Correct |
9 ms |
4436 KB |
Output is correct |
10 |
Correct |
3 ms |
4436 KB |
Output is correct |
11 |
Correct |
4 ms |
4436 KB |
Output is correct |
12 |
Correct |
11 ms |
4436 KB |
Output is correct |
13 |
Correct |
3 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4428 KB |
Output is correct |
15 |
Correct |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4420 KB |
Output is correct |
17 |
Correct |
3 ms |
4436 KB |
Output is correct |
18 |
Correct |
3 ms |
4436 KB |
Output is correct |
19 |
Correct |
3 ms |
4436 KB |
Output is correct |
20 |
Correct |
3 ms |
4436 KB |
Output is correct |
21 |
Correct |
3 ms |
4428 KB |
Output is correct |
22 |
Correct |
3 ms |
4436 KB |
Output is correct |
23 |
Correct |
3 ms |
4436 KB |
Output is correct |
24 |
Correct |
3 ms |
4436 KB |
Output is correct |
25 |
Correct |
3 ms |
4436 KB |
Output is correct |
26 |
Correct |
4 ms |
4436 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
3 ms |
4436 KB |
Output is correct |
29 |
Correct |
3 ms |
4436 KB |
Output is correct |
30 |
Correct |
3 ms |
4436 KB |
Output is correct |
31 |
Correct |
4 ms |
4436 KB |
Output is correct |
32 |
Correct |
3 ms |
4436 KB |
Output is correct |
33 |
Correct |
3 ms |
4424 KB |
Output is correct |
34 |
Correct |
3 ms |
4436 KB |
Output is correct |
35 |
Correct |
3 ms |
4436 KB |
Output is correct |
36 |
Correct |
3 ms |
4436 KB |
Output is correct |
37 |
Correct |
3 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 ms |
4436 KB |
Output is correct |
39 |
Correct |
2 ms |
4436 KB |
Output is correct |
40 |
Correct |
3 ms |
4436 KB |
Output is correct |
41 |
Correct |
3 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
3 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
3 ms |
4436 KB |
Output is correct |
46 |
Correct |
4 ms |
4452 KB |
Output is correct |
47 |
Correct |
3 ms |
4436 KB |
Output is correct |
48 |
Correct |
4 ms |
4436 KB |
Output is correct |
49 |
Correct |
3 ms |
4436 KB |
Output is correct |
50 |
Correct |
3 ms |
4436 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4436 KB |
Output is correct |
2 |
Correct |
3 ms |
4436 KB |
Output is correct |
3 |
Correct |
3 ms |
4436 KB |
Output is correct |
4 |
Correct |
3 ms |
4436 KB |
Output is correct |
5 |
Correct |
3 ms |
4424 KB |
Output is correct |
6 |
Correct |
6 ms |
4436 KB |
Output is correct |
7 |
Correct |
3 ms |
4436 KB |
Output is correct |
8 |
Correct |
3 ms |
4436 KB |
Output is correct |
9 |
Correct |
9 ms |
4436 KB |
Output is correct |
10 |
Correct |
3 ms |
4436 KB |
Output is correct |
11 |
Correct |
4 ms |
4436 KB |
Output is correct |
12 |
Correct |
11 ms |
4436 KB |
Output is correct |
13 |
Correct |
3 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4428 KB |
Output is correct |
15 |
Correct |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4420 KB |
Output is correct |
17 |
Correct |
3 ms |
4436 KB |
Output is correct |
18 |
Correct |
3 ms |
4436 KB |
Output is correct |
19 |
Correct |
3 ms |
4436 KB |
Output is correct |
20 |
Correct |
3 ms |
4436 KB |
Output is correct |
21 |
Correct |
3 ms |
4428 KB |
Output is correct |
22 |
Correct |
3 ms |
4436 KB |
Output is correct |
23 |
Correct |
3 ms |
4436 KB |
Output is correct |
24 |
Correct |
3 ms |
4436 KB |
Output is correct |
25 |
Correct |
3 ms |
4436 KB |
Output is correct |
26 |
Correct |
4 ms |
4436 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
3 ms |
4436 KB |
Output is correct |
29 |
Correct |
3 ms |
4436 KB |
Output is correct |
30 |
Correct |
3 ms |
4436 KB |
Output is correct |
31 |
Correct |
4 ms |
4436 KB |
Output is correct |
32 |
Correct |
3 ms |
4436 KB |
Output is correct |
33 |
Correct |
3 ms |
4424 KB |
Output is correct |
34 |
Correct |
3 ms |
4436 KB |
Output is correct |
35 |
Correct |
3 ms |
4436 KB |
Output is correct |
36 |
Correct |
3 ms |
4436 KB |
Output is correct |
37 |
Correct |
3 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 ms |
4436 KB |
Output is correct |
39 |
Correct |
2 ms |
4436 KB |
Output is correct |
40 |
Correct |
3 ms |
4436 KB |
Output is correct |
41 |
Correct |
3 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
3 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
3 ms |
4436 KB |
Output is correct |
46 |
Correct |
4 ms |
4452 KB |
Output is correct |
47 |
Correct |
3 ms |
4436 KB |
Output is correct |
48 |
Correct |
4 ms |
4436 KB |
Output is correct |
49 |
Correct |
3 ms |
4436 KB |
Output is correct |
50 |
Correct |
3 ms |
4436 KB |
Output is correct |
51 |
Correct |
40 ms |
4856 KB |
Output is correct |
52 |
Correct |
10 ms |
4820 KB |
Output is correct |
53 |
Correct |
71 ms |
5000 KB |
Output is correct |
54 |
Correct |
78 ms |
4940 KB |
Output is correct |
55 |
Correct |
4 ms |
4692 KB |
Output is correct |
56 |
Correct |
26 ms |
4980 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4436 KB |
Output is correct |
2 |
Correct |
80 ms |
38540 KB |
Output is correct |
3 |
Correct |
79 ms |
37528 KB |
Output is correct |
4 |
Correct |
64 ms |
37092 KB |
Output is correct |
5 |
Correct |
90 ms |
37460 KB |
Output is correct |
6 |
Correct |
81 ms |
38152 KB |
Output is correct |
7 |
Correct |
89 ms |
38640 KB |
Output is correct |
8 |
Correct |
3 ms |
4436 KB |
Output is correct |
9 |
Correct |
3 ms |
4424 KB |
Output is correct |
10 |
Correct |
3 ms |
4436 KB |
Output is correct |
11 |
Correct |
3 ms |
4436 KB |
Output is correct |
12 |
Correct |
3 ms |
4424 KB |
Output is correct |
13 |
Correct |
3 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4436 KB |
Output is correct |
15 |
Correct |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4796 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4436 KB |
Output is correct |
2 |
Correct |
80 ms |
38540 KB |
Output is correct |
3 |
Correct |
79 ms |
37528 KB |
Output is correct |
4 |
Correct |
64 ms |
37092 KB |
Output is correct |
5 |
Correct |
90 ms |
37460 KB |
Output is correct |
6 |
Correct |
81 ms |
38152 KB |
Output is correct |
7 |
Correct |
89 ms |
38640 KB |
Output is correct |
8 |
Correct |
3 ms |
4436 KB |
Output is correct |
9 |
Correct |
3 ms |
4424 KB |
Output is correct |
10 |
Correct |
3 ms |
4436 KB |
Output is correct |
11 |
Correct |
3 ms |
4436 KB |
Output is correct |
12 |
Correct |
3 ms |
4424 KB |
Output is correct |
13 |
Correct |
3 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4436 KB |
Output is correct |
15 |
Correct |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4796 KB |
Output is correct |
18 |
Correct |
3 ms |
4436 KB |
Output is correct |
19 |
Correct |
3 ms |
4436 KB |
Output is correct |
20 |
Correct |
296 ms |
39248 KB |
Output is correct |
21 |
Correct |
264 ms |
39244 KB |
Output is correct |
22 |
Correct |
256 ms |
39240 KB |
Output is correct |
23 |
Correct |
244 ms |
39496 KB |
Output is correct |
24 |
Correct |
193 ms |
38060 KB |
Output is correct |
25 |
Correct |
240 ms |
39276 KB |
Output is correct |
26 |
Correct |
278 ms |
39248 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
3 ms |
4436 KB |
Output is correct |
29 |
Correct |
3 ms |
4436 KB |
Output is correct |
30 |
Correct |
3 ms |
4436 KB |
Output is correct |
31 |
Correct |
3 ms |
4436 KB |
Output is correct |
32 |
Correct |
3 ms |
4424 KB |
Output is correct |
33 |
Correct |
3 ms |
4436 KB |
Output is correct |
34 |
Correct |
3 ms |
4436 KB |
Output is correct |
35 |
Correct |
3 ms |
4436 KB |
Output is correct |
36 |
Correct |
4 ms |
4436 KB |
Output is correct |
37 |
Correct |
3 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 ms |
4436 KB |
Output is correct |
39 |
Correct |
4 ms |
4436 KB |
Output is correct |
40 |
Correct |
3 ms |
4436 KB |
Output is correct |
41 |
Correct |
3 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
3 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
3 ms |
4436 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4436 KB |
Output is correct |
2 |
Correct |
80 ms |
38540 KB |
Output is correct |
3 |
Correct |
79 ms |
37528 KB |
Output is correct |
4 |
Correct |
64 ms |
37092 KB |
Output is correct |
5 |
Correct |
90 ms |
37460 KB |
Output is correct |
6 |
Correct |
81 ms |
38152 KB |
Output is correct |
7 |
Correct |
89 ms |
38640 KB |
Output is correct |
8 |
Correct |
3 ms |
4436 KB |
Output is correct |
9 |
Correct |
3 ms |
4424 KB |
Output is correct |
10 |
Correct |
3 ms |
4436 KB |
Output is correct |
11 |
Correct |
3 ms |
4436 KB |
Output is correct |
12 |
Correct |
3 ms |
4424 KB |
Output is correct |
13 |
Correct |
3 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4436 KB |
Output is correct |
15 |
Correct |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4796 KB |
Output is correct |
18 |
Correct |
3 ms |
4436 KB |
Output is correct |
19 |
Correct |
3 ms |
4436 KB |
Output is correct |
20 |
Correct |
296 ms |
39248 KB |
Output is correct |
21 |
Correct |
264 ms |
39244 KB |
Output is correct |
22 |
Correct |
256 ms |
39240 KB |
Output is correct |
23 |
Correct |
244 ms |
39496 KB |
Output is correct |
24 |
Correct |
193 ms |
38060 KB |
Output is correct |
25 |
Correct |
240 ms |
39276 KB |
Output is correct |
26 |
Correct |
278 ms |
39248 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
3 ms |
4436 KB |
Output is correct |
29 |
Correct |
3 ms |
4436 KB |
Output is correct |
30 |
Correct |
3 ms |
4436 KB |
Output is correct |
31 |
Correct |
3 ms |
4436 KB |
Output is correct |
32 |
Correct |
3 ms |
4424 KB |
Output is correct |
33 |
Correct |
3 ms |
4436 KB |
Output is correct |
34 |
Correct |
3 ms |
4436 KB |
Output is correct |
35 |
Correct |
3 ms |
4436 KB |
Output is correct |
36 |
Correct |
4 ms |
4436 KB |
Output is correct |
37 |
Correct |
3 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 ms |
4436 KB |
Output is correct |
39 |
Correct |
4 ms |
4436 KB |
Output is correct |
40 |
Correct |
3 ms |
4436 KB |
Output is correct |
41 |
Correct |
3 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
3 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
3 ms |
4436 KB |
Output is correct |
46 |
Correct |
3 ms |
4436 KB |
Output is correct |
47 |
Correct |
417 ms |
39372 KB |
Output is correct |
48 |
Correct |
420 ms |
39372 KB |
Output is correct |
49 |
Correct |
426 ms |
39348 KB |
Output is correct |
50 |
Correct |
467 ms |
39636 KB |
Output is correct |
51 |
Correct |
248 ms |
38036 KB |
Output is correct |
52 |
Correct |
416 ms |
39984 KB |
Output is correct |
53 |
Correct |
468 ms |
40412 KB |
Output is correct |
54 |
Correct |
3 ms |
4436 KB |
Output is correct |
55 |
Correct |
3 ms |
4436 KB |
Output is correct |
56 |
Correct |
3 ms |
4436 KB |
Output is correct |
57 |
Correct |
3 ms |
4436 KB |
Output is correct |
58 |
Correct |
3 ms |
4436 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4436 KB |
Output is correct |
2 |
Correct |
80 ms |
38540 KB |
Output is correct |
3 |
Correct |
79 ms |
37528 KB |
Output is correct |
4 |
Correct |
64 ms |
37092 KB |
Output is correct |
5 |
Correct |
90 ms |
37460 KB |
Output is correct |
6 |
Correct |
81 ms |
38152 KB |
Output is correct |
7 |
Correct |
89 ms |
38640 KB |
Output is correct |
8 |
Correct |
3 ms |
4436 KB |
Output is correct |
9 |
Correct |
3 ms |
4424 KB |
Output is correct |
10 |
Correct |
3 ms |
4436 KB |
Output is correct |
11 |
Correct |
3 ms |
4436 KB |
Output is correct |
12 |
Correct |
3 ms |
4424 KB |
Output is correct |
13 |
Correct |
3 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4436 KB |
Output is correct |
15 |
Correct |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4436 KB |
Output is correct |
17 |
Correct |
4 ms |
4796 KB |
Output is correct |
18 |
Correct |
3 ms |
4436 KB |
Output is correct |
19 |
Correct |
3 ms |
4436 KB |
Output is correct |
20 |
Correct |
296 ms |
39248 KB |
Output is correct |
21 |
Correct |
264 ms |
39244 KB |
Output is correct |
22 |
Correct |
256 ms |
39240 KB |
Output is correct |
23 |
Correct |
244 ms |
39496 KB |
Output is correct |
24 |
Correct |
193 ms |
38060 KB |
Output is correct |
25 |
Correct |
240 ms |
39276 KB |
Output is correct |
26 |
Correct |
278 ms |
39248 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
3 ms |
4436 KB |
Output is correct |
29 |
Correct |
3 ms |
4436 KB |
Output is correct |
30 |
Correct |
3 ms |
4436 KB |
Output is correct |
31 |
Correct |
3 ms |
4436 KB |
Output is correct |
32 |
Correct |
3 ms |
4424 KB |
Output is correct |
33 |
Correct |
3 ms |
4436 KB |
Output is correct |
34 |
Correct |
3 ms |
4436 KB |
Output is correct |
35 |
Correct |
3 ms |
4436 KB |
Output is correct |
36 |
Correct |
4 ms |
4436 KB |
Output is correct |
37 |
Correct |
3 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 ms |
4436 KB |
Output is correct |
39 |
Correct |
4 ms |
4436 KB |
Output is correct |
40 |
Correct |
3 ms |
4436 KB |
Output is correct |
41 |
Correct |
3 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
3 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
3 ms |
4436 KB |
Output is correct |
46 |
Correct |
3 ms |
4436 KB |
Output is correct |
47 |
Correct |
417 ms |
39372 KB |
Output is correct |
48 |
Correct |
420 ms |
39372 KB |
Output is correct |
49 |
Correct |
426 ms |
39348 KB |
Output is correct |
50 |
Correct |
467 ms |
39636 KB |
Output is correct |
51 |
Correct |
248 ms |
38036 KB |
Output is correct |
52 |
Correct |
416 ms |
39984 KB |
Output is correct |
53 |
Correct |
468 ms |
40412 KB |
Output is correct |
54 |
Correct |
3 ms |
4436 KB |
Output is correct |
55 |
Correct |
3 ms |
4436 KB |
Output is correct |
56 |
Correct |
3 ms |
4436 KB |
Output is correct |
57 |
Correct |
3 ms |
4436 KB |
Output is correct |
58 |
Correct |
3 ms |
4436 KB |
Output is correct |
59 |
Correct |
623 ms |
41360 KB |
Output is correct |
60 |
Correct |
851 ms |
24048 KB |
Output is correct |
61 |
Correct |
886 ms |
25348 KB |
Output is correct |
62 |
Correct |
913 ms |
26100 KB |
Output is correct |
63 |
Correct |
632 ms |
39836 KB |
Output is correct |
64 |
Correct |
897 ms |
40528 KB |
Output is correct |
65 |
Correct |
713 ms |
40656 KB |
Output is correct |
66 |
Correct |
1554 ms |
39812 KB |
Output is correct |
67 |
Correct |
281 ms |
38312 KB |
Output is correct |
68 |
Correct |
1211 ms |
44992 KB |
Output is correct |
69 |
Correct |
1241 ms |
45460 KB |
Output is correct |
70 |
Correct |
3 ms |
4436 KB |
Output is correct |
71 |
Correct |
3 ms |
4436 KB |
Output is correct |
72 |
Correct |
4 ms |
4424 KB |
Output is correct |
73 |
Correct |
3 ms |
4436 KB |
Output is correct |
74 |
Correct |
4 ms |
4436 KB |
Output is correct |
75 |
Correct |
26 ms |
4948 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
4436 KB |
Output is correct |
2 |
Correct |
3 ms |
4436 KB |
Output is correct |
3 |
Correct |
3 ms |
4436 KB |
Output is correct |
4 |
Correct |
3 ms |
4436 KB |
Output is correct |
5 |
Correct |
3 ms |
4424 KB |
Output is correct |
6 |
Correct |
6 ms |
4436 KB |
Output is correct |
7 |
Correct |
3 ms |
4436 KB |
Output is correct |
8 |
Correct |
3 ms |
4436 KB |
Output is correct |
9 |
Correct |
9 ms |
4436 KB |
Output is correct |
10 |
Correct |
3 ms |
4436 KB |
Output is correct |
11 |
Correct |
4 ms |
4436 KB |
Output is correct |
12 |
Correct |
11 ms |
4436 KB |
Output is correct |
13 |
Correct |
3 ms |
4436 KB |
Output is correct |
14 |
Correct |
3 ms |
4428 KB |
Output is correct |
15 |
Correct |
3 ms |
4436 KB |
Output is correct |
16 |
Correct |
3 ms |
4420 KB |
Output is correct |
17 |
Correct |
3 ms |
4436 KB |
Output is correct |
18 |
Correct |
3 ms |
4436 KB |
Output is correct |
19 |
Correct |
3 ms |
4436 KB |
Output is correct |
20 |
Correct |
3 ms |
4436 KB |
Output is correct |
21 |
Correct |
3 ms |
4428 KB |
Output is correct |
22 |
Correct |
3 ms |
4436 KB |
Output is correct |
23 |
Correct |
3 ms |
4436 KB |
Output is correct |
24 |
Correct |
3 ms |
4436 KB |
Output is correct |
25 |
Correct |
3 ms |
4436 KB |
Output is correct |
26 |
Correct |
4 ms |
4436 KB |
Output is correct |
27 |
Correct |
3 ms |
4436 KB |
Output is correct |
28 |
Correct |
3 ms |
4436 KB |
Output is correct |
29 |
Correct |
3 ms |
4436 KB |
Output is correct |
30 |
Correct |
3 ms |
4436 KB |
Output is correct |
31 |
Correct |
4 ms |
4436 KB |
Output is correct |
32 |
Correct |
3 ms |
4436 KB |
Output is correct |
33 |
Correct |
3 ms |
4424 KB |
Output is correct |
34 |
Correct |
3 ms |
4436 KB |
Output is correct |
35 |
Correct |
3 ms |
4436 KB |
Output is correct |
36 |
Correct |
3 ms |
4436 KB |
Output is correct |
37 |
Correct |
3 ms |
4436 KB |
Output is correct |
38 |
Correct |
3 ms |
4436 KB |
Output is correct |
39 |
Correct |
2 ms |
4436 KB |
Output is correct |
40 |
Correct |
3 ms |
4436 KB |
Output is correct |
41 |
Correct |
3 ms |
4436 KB |
Output is correct |
42 |
Correct |
3 ms |
4436 KB |
Output is correct |
43 |
Correct |
3 ms |
4436 KB |
Output is correct |
44 |
Correct |
3 ms |
4436 KB |
Output is correct |
45 |
Correct |
3 ms |
4436 KB |
Output is correct |
46 |
Correct |
4 ms |
4452 KB |
Output is correct |
47 |
Correct |
3 ms |
4436 KB |
Output is correct |
48 |
Correct |
4 ms |
4436 KB |
Output is correct |
49 |
Correct |
3 ms |
4436 KB |
Output is correct |
50 |
Correct |
3 ms |
4436 KB |
Output is correct |
51 |
Correct |
40 ms |
4856 KB |
Output is correct |
52 |
Correct |
10 ms |
4820 KB |
Output is correct |
53 |
Correct |
71 ms |
5000 KB |
Output is correct |
54 |
Correct |
78 ms |
4940 KB |
Output is correct |
55 |
Correct |
4 ms |
4692 KB |
Output is correct |
56 |
Correct |
26 ms |
4980 KB |
Output is correct |
57 |
Correct |
3 ms |
4436 KB |
Output is correct |
58 |
Correct |
80 ms |
38540 KB |
Output is correct |
59 |
Correct |
79 ms |
37528 KB |
Output is correct |
60 |
Correct |
64 ms |
37092 KB |
Output is correct |
61 |
Correct |
90 ms |
37460 KB |
Output is correct |
62 |
Correct |
81 ms |
38152 KB |
Output is correct |
63 |
Correct |
89 ms |
38640 KB |
Output is correct |
64 |
Correct |
3 ms |
4436 KB |
Output is correct |
65 |
Correct |
3 ms |
4424 KB |
Output is correct |
66 |
Correct |
3 ms |
4436 KB |
Output is correct |
67 |
Correct |
3 ms |
4436 KB |
Output is correct |
68 |
Correct |
3 ms |
4424 KB |
Output is correct |
69 |
Correct |
3 ms |
4436 KB |
Output is correct |
70 |
Correct |
3 ms |
4436 KB |
Output is correct |
71 |
Correct |
3 ms |
4436 KB |
Output is correct |
72 |
Correct |
3 ms |
4436 KB |
Output is correct |
73 |
Correct |
4 ms |
4796 KB |
Output is correct |
74 |
Correct |
3 ms |
4436 KB |
Output is correct |
75 |
Correct |
3 ms |
4436 KB |
Output is correct |
76 |
Correct |
296 ms |
39248 KB |
Output is correct |
77 |
Correct |
264 ms |
39244 KB |
Output is correct |
78 |
Correct |
256 ms |
39240 KB |
Output is correct |
79 |
Correct |
244 ms |
39496 KB |
Output is correct |
80 |
Correct |
193 ms |
38060 KB |
Output is correct |
81 |
Correct |
240 ms |
39276 KB |
Output is correct |
82 |
Correct |
278 ms |
39248 KB |
Output is correct |
83 |
Correct |
3 ms |
4436 KB |
Output is correct |
84 |
Correct |
3 ms |
4436 KB |
Output is correct |
85 |
Correct |
3 ms |
4436 KB |
Output is correct |
86 |
Correct |
3 ms |
4436 KB |
Output is correct |
87 |
Correct |
3 ms |
4436 KB |
Output is correct |
88 |
Correct |
3 ms |
4424 KB |
Output is correct |
89 |
Correct |
3 ms |
4436 KB |
Output is correct |
90 |
Correct |
3 ms |
4436 KB |
Output is correct |
91 |
Correct |
3 ms |
4436 KB |
Output is correct |
92 |
Correct |
4 ms |
4436 KB |
Output is correct |
93 |
Correct |
3 ms |
4436 KB |
Output is correct |
94 |
Correct |
3 ms |
4436 KB |
Output is correct |
95 |
Correct |
4 ms |
4436 KB |
Output is correct |
96 |
Correct |
3 ms |
4436 KB |
Output is correct |
97 |
Correct |
3 ms |
4436 KB |
Output is correct |
98 |
Correct |
3 ms |
4436 KB |
Output is correct |
99 |
Correct |
3 ms |
4436 KB |
Output is correct |
100 |
Correct |
3 ms |
4436 KB |
Output is correct |
101 |
Correct |
3 ms |
4436 KB |
Output is correct |
102 |
Correct |
3 ms |
4436 KB |
Output is correct |
103 |
Correct |
417 ms |
39372 KB |
Output is correct |
104 |
Correct |
420 ms |
39372 KB |
Output is correct |
105 |
Correct |
426 ms |
39348 KB |
Output is correct |
106 |
Correct |
467 ms |
39636 KB |
Output is correct |
107 |
Correct |
248 ms |
38036 KB |
Output is correct |
108 |
Correct |
416 ms |
39984 KB |
Output is correct |
109 |
Correct |
468 ms |
40412 KB |
Output is correct |
110 |
Correct |
3 ms |
4436 KB |
Output is correct |
111 |
Correct |
3 ms |
4436 KB |
Output is correct |
112 |
Correct |
3 ms |
4436 KB |
Output is correct |
113 |
Correct |
3 ms |
4436 KB |
Output is correct |
114 |
Correct |
3 ms |
4436 KB |
Output is correct |
115 |
Correct |
623 ms |
41360 KB |
Output is correct |
116 |
Correct |
851 ms |
24048 KB |
Output is correct |
117 |
Correct |
886 ms |
25348 KB |
Output is correct |
118 |
Correct |
913 ms |
26100 KB |
Output is correct |
119 |
Correct |
632 ms |
39836 KB |
Output is correct |
120 |
Correct |
897 ms |
40528 KB |
Output is correct |
121 |
Correct |
713 ms |
40656 KB |
Output is correct |
122 |
Correct |
1554 ms |
39812 KB |
Output is correct |
123 |
Correct |
281 ms |
38312 KB |
Output is correct |
124 |
Correct |
1211 ms |
44992 KB |
Output is correct |
125 |
Correct |
1241 ms |
45460 KB |
Output is correct |
126 |
Correct |
3 ms |
4436 KB |
Output is correct |
127 |
Correct |
3 ms |
4436 KB |
Output is correct |
128 |
Correct |
4 ms |
4424 KB |
Output is correct |
129 |
Correct |
3 ms |
4436 KB |
Output is correct |
130 |
Correct |
4 ms |
4436 KB |
Output is correct |
131 |
Correct |
26 ms |
4948 KB |
Output is correct |
132 |
Execution timed out |
4032 ms |
49896 KB |
Time limit exceeded |
133 |
Halted |
0 ms |
0 KB |
- |