Submission #748169

# Submission time Handle Problem Language Result Execution time Memory
748169 2023-05-25T13:37:54 Z NemanjaSo2005 Council (JOI23_council) C++17
78 / 100
4000 ms 48156 KB
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int kritv,N,M,K,maks[300005],maska[300005],glasa[300005][25],ukup[25],res[300005],dist[1050005];
map<int,bool> bio;
const int stepen[25]={1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,8388608,16777216};
/*
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(){
    srand(532);
   ios_base::sync_with_stdio(false);
   cin.tie(0);
  cin>>N>>M;
   kritv=N/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 4 ms 4436 KB Output is correct
6 Correct 8 ms 4492 KB Output is correct
7 Correct 3 ms 4436 KB Output is correct
8 Correct 4 ms 4436 KB Output is correct
9 Correct 9 ms 4508 KB Output is correct
10 Correct 3 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 10 ms 4436 KB Output is correct
13 Correct 3 ms 4436 KB Output is correct
14 Correct 2 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 3 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 3 ms 4436 KB Output is correct
21 Correct 3 ms 4436 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 4444 KB Output is correct
25 Correct 3 ms 4392 KB Output is correct
26 Correct 3 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 3 ms 4436 KB Output is correct
32 Correct 3 ms 4436 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 3 ms 4460 KB Output is correct
37 Correct 3 ms 4436 KB Output is correct
38 Correct 3 ms 4436 KB Output is correct
39 Correct 3 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 4 ms 4436 KB Output is correct
48 Correct 3 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 4 ms 4436 KB Output is correct
6 Correct 8 ms 4492 KB Output is correct
7 Correct 3 ms 4436 KB Output is correct
8 Correct 4 ms 4436 KB Output is correct
9 Correct 9 ms 4508 KB Output is correct
10 Correct 3 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 10 ms 4436 KB Output is correct
13 Correct 3 ms 4436 KB Output is correct
14 Correct 2 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 3 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 3 ms 4436 KB Output is correct
21 Correct 3 ms 4436 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 4444 KB Output is correct
25 Correct 3 ms 4392 KB Output is correct
26 Correct 3 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 3 ms 4436 KB Output is correct
32 Correct 3 ms 4436 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 3 ms 4460 KB Output is correct
37 Correct 3 ms 4436 KB Output is correct
38 Correct 3 ms 4436 KB Output is correct
39 Correct 3 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 4 ms 4436 KB Output is correct
48 Correct 3 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 35 ms 4772 KB Output is correct
52 Correct 6 ms 4692 KB Output is correct
53 Correct 68 ms 4820 KB Output is correct
54 Correct 70 ms 4868 KB Output is correct
55 Correct 4 ms 4692 KB Output is correct
56 Correct 26 ms 4932 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 4436 KB Output is correct
2 Correct 74 ms 37824 KB Output is correct
3 Correct 85 ms 36704 KB Output is correct
4 Correct 80 ms 36656 KB Output is correct
5 Correct 91 ms 36764 KB Output is correct
6 Correct 69 ms 37836 KB Output is correct
7 Correct 91 ms 37768 KB Output is correct
8 Correct 3 ms 4436 KB Output is correct
9 Correct 3 ms 4436 KB Output is correct
10 Correct 3 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 3 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 3 ms 4436 KB Output is correct
17 Correct 4 ms 4740 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 4436 KB Output is correct
2 Correct 74 ms 37824 KB Output is correct
3 Correct 85 ms 36704 KB Output is correct
4 Correct 80 ms 36656 KB Output is correct
5 Correct 91 ms 36764 KB Output is correct
6 Correct 69 ms 37836 KB Output is correct
7 Correct 91 ms 37768 KB Output is correct
8 Correct 3 ms 4436 KB Output is correct
9 Correct 3 ms 4436 KB Output is correct
10 Correct 3 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 3 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 3 ms 4436 KB Output is correct
17 Correct 4 ms 4740 KB Output is correct
18 Correct 3 ms 4436 KB Output is correct
19 Correct 3 ms 4436 KB Output is correct
20 Correct 280 ms 37880 KB Output is correct
21 Correct 259 ms 37860 KB Output is correct
22 Correct 247 ms 37836 KB Output is correct
23 Correct 241 ms 38180 KB Output is correct
24 Correct 183 ms 36612 KB Output is correct
25 Correct 248 ms 37844 KB Output is correct
26 Correct 272 ms 37860 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 2 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 4436 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 3 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 74 ms 37824 KB Output is correct
3 Correct 85 ms 36704 KB Output is correct
4 Correct 80 ms 36656 KB Output is correct
5 Correct 91 ms 36764 KB Output is correct
6 Correct 69 ms 37836 KB Output is correct
7 Correct 91 ms 37768 KB Output is correct
8 Correct 3 ms 4436 KB Output is correct
9 Correct 3 ms 4436 KB Output is correct
10 Correct 3 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 3 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 3 ms 4436 KB Output is correct
17 Correct 4 ms 4740 KB Output is correct
18 Correct 3 ms 4436 KB Output is correct
19 Correct 3 ms 4436 KB Output is correct
20 Correct 280 ms 37880 KB Output is correct
21 Correct 259 ms 37860 KB Output is correct
22 Correct 247 ms 37836 KB Output is correct
23 Correct 241 ms 38180 KB Output is correct
24 Correct 183 ms 36612 KB Output is correct
25 Correct 248 ms 37844 KB Output is correct
26 Correct 272 ms 37860 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 2 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 4436 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 3 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 400 ms 37988 KB Output is correct
48 Correct 394 ms 37912 KB Output is correct
49 Correct 413 ms 37960 KB Output is correct
50 Correct 459 ms 38184 KB Output is correct
51 Correct 241 ms 36704 KB Output is correct
52 Correct 403 ms 38652 KB Output is correct
53 Correct 453 ms 38872 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 4 ms 4388 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 4436 KB Output is correct
2 Correct 74 ms 37824 KB Output is correct
3 Correct 85 ms 36704 KB Output is correct
4 Correct 80 ms 36656 KB Output is correct
5 Correct 91 ms 36764 KB Output is correct
6 Correct 69 ms 37836 KB Output is correct
7 Correct 91 ms 37768 KB Output is correct
8 Correct 3 ms 4436 KB Output is correct
9 Correct 3 ms 4436 KB Output is correct
10 Correct 3 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 2 ms 4436 KB Output is correct
13 Correct 2 ms 4436 KB Output is correct
14 Correct 3 ms 4436 KB Output is correct
15 Correct 2 ms 4436 KB Output is correct
16 Correct 3 ms 4436 KB Output is correct
17 Correct 4 ms 4740 KB Output is correct
18 Correct 3 ms 4436 KB Output is correct
19 Correct 3 ms 4436 KB Output is correct
20 Correct 280 ms 37880 KB Output is correct
21 Correct 259 ms 37860 KB Output is correct
22 Correct 247 ms 37836 KB Output is correct
23 Correct 241 ms 38180 KB Output is correct
24 Correct 183 ms 36612 KB Output is correct
25 Correct 248 ms 37844 KB Output is correct
26 Correct 272 ms 37860 KB Output is correct
27 Correct 3 ms 4436 KB Output is correct
28 Correct 2 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 4436 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 3 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 400 ms 37988 KB Output is correct
48 Correct 394 ms 37912 KB Output is correct
49 Correct 413 ms 37960 KB Output is correct
50 Correct 459 ms 38184 KB Output is correct
51 Correct 241 ms 36704 KB Output is correct
52 Correct 403 ms 38652 KB Output is correct
53 Correct 453 ms 38872 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 4 ms 4388 KB Output is correct
59 Correct 625 ms 40024 KB Output is correct
60 Correct 895 ms 22620 KB Output is correct
61 Correct 908 ms 23936 KB Output is correct
62 Correct 973 ms 24692 KB Output is correct
63 Correct 637 ms 38508 KB Output is correct
64 Correct 821 ms 39012 KB Output is correct
65 Correct 741 ms 39012 KB Output is correct
66 Correct 1457 ms 38208 KB Output is correct
67 Correct 280 ms 36680 KB Output is correct
68 Correct 1156 ms 43328 KB Output is correct
69 Correct 1222 ms 43808 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 3 ms 4436 KB Output is correct
74 Correct 3 ms 4436 KB Output is correct
75 Correct 28 ms 4888 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 4 ms 4436 KB Output is correct
6 Correct 8 ms 4492 KB Output is correct
7 Correct 3 ms 4436 KB Output is correct
8 Correct 4 ms 4436 KB Output is correct
9 Correct 9 ms 4508 KB Output is correct
10 Correct 3 ms 4436 KB Output is correct
11 Correct 3 ms 4436 KB Output is correct
12 Correct 10 ms 4436 KB Output is correct
13 Correct 3 ms 4436 KB Output is correct
14 Correct 2 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 3 ms 4436 KB Output is correct
18 Correct 2 ms 4436 KB Output is correct
19 Correct 2 ms 4436 KB Output is correct
20 Correct 3 ms 4436 KB Output is correct
21 Correct 3 ms 4436 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 4444 KB Output is correct
25 Correct 3 ms 4392 KB Output is correct
26 Correct 3 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 3 ms 4436 KB Output is correct
32 Correct 3 ms 4436 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 3 ms 4460 KB Output is correct
37 Correct 3 ms 4436 KB Output is correct
38 Correct 3 ms 4436 KB Output is correct
39 Correct 3 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 4 ms 4436 KB Output is correct
48 Correct 3 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 35 ms 4772 KB Output is correct
52 Correct 6 ms 4692 KB Output is correct
53 Correct 68 ms 4820 KB Output is correct
54 Correct 70 ms 4868 KB Output is correct
55 Correct 4 ms 4692 KB Output is correct
56 Correct 26 ms 4932 KB Output is correct
57 Correct 3 ms 4436 KB Output is correct
58 Correct 74 ms 37824 KB Output is correct
59 Correct 85 ms 36704 KB Output is correct
60 Correct 80 ms 36656 KB Output is correct
61 Correct 91 ms 36764 KB Output is correct
62 Correct 69 ms 37836 KB Output is correct
63 Correct 91 ms 37768 KB Output is correct
64 Correct 3 ms 4436 KB Output is correct
65 Correct 3 ms 4436 KB Output is correct
66 Correct 3 ms 4436 KB Output is correct
67 Correct 3 ms 4436 KB Output is correct
68 Correct 2 ms 4436 KB Output is correct
69 Correct 2 ms 4436 KB Output is correct
70 Correct 3 ms 4436 KB Output is correct
71 Correct 2 ms 4436 KB Output is correct
72 Correct 3 ms 4436 KB Output is correct
73 Correct 4 ms 4740 KB Output is correct
74 Correct 3 ms 4436 KB Output is correct
75 Correct 3 ms 4436 KB Output is correct
76 Correct 280 ms 37880 KB Output is correct
77 Correct 259 ms 37860 KB Output is correct
78 Correct 247 ms 37836 KB Output is correct
79 Correct 241 ms 38180 KB Output is correct
80 Correct 183 ms 36612 KB Output is correct
81 Correct 248 ms 37844 KB Output is correct
82 Correct 272 ms 37860 KB Output is correct
83 Correct 3 ms 4436 KB Output is correct
84 Correct 2 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 4436 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 3 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 400 ms 37988 KB Output is correct
104 Correct 394 ms 37912 KB Output is correct
105 Correct 413 ms 37960 KB Output is correct
106 Correct 459 ms 38184 KB Output is correct
107 Correct 241 ms 36704 KB Output is correct
108 Correct 403 ms 38652 KB Output is correct
109 Correct 453 ms 38872 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 4 ms 4388 KB Output is correct
115 Correct 625 ms 40024 KB Output is correct
116 Correct 895 ms 22620 KB Output is correct
117 Correct 908 ms 23936 KB Output is correct
118 Correct 973 ms 24692 KB Output is correct
119 Correct 637 ms 38508 KB Output is correct
120 Correct 821 ms 39012 KB Output is correct
121 Correct 741 ms 39012 KB Output is correct
122 Correct 1457 ms 38208 KB Output is correct
123 Correct 280 ms 36680 KB Output is correct
124 Correct 1156 ms 43328 KB Output is correct
125 Correct 1222 ms 43808 KB Output is correct
126 Correct 3 ms 4436 KB Output is correct
127 Correct 3 ms 4436 KB Output is correct
128 Correct 3 ms 4436 KB Output is correct
129 Correct 3 ms 4436 KB Output is correct
130 Correct 3 ms 4436 KB Output is correct
131 Correct 28 ms 4888 KB Output is correct
132 Execution timed out 4067 ms 48156 KB Time limit exceeded
133 Halted 0 ms 0 KB -