# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
807266 |
2023-08-04T15:22:14 Z |
oscar1f |
Cookies (JOI23_cookies) |
C++17 |
|
238 ms |
226012 KB |
#include<bits/stdc++.h>
using namespace std;
const int MAX_SOM=15000+5;
using bits=bitset<MAX_SOM>;
int nbPiles,nbPossi,valNouv,somGlob,enCours,minPris,dernPris;
vector<int> possi,listePris;
vector<vector<bits>> estPossi;
bits toutZer;
int nbOccu[MAX_SOM],cumu[MAX_SOM];
set<pair<int,int>> etat,aRemettre;
set<pair<int,int>>::iterator it;
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin>>nbPiles;
for (int i=0;i<nbPiles;i++) {
cin>>valNouv;
somGlob+=valNouv;
nbOccu[valNouv]++;
etat.insert({-valNouv,i+1});
}
enCours=nbPiles;
for (int i=1;i<MAX_SOM;i++) {
cumu[i]=cumu[i-1]+enCours;
enCours-=nbOccu[i];
//cout<<i<<" : "<<cumu[i]<<endl;
}
cin>>nbPossi;
for (int i=0;i<nbPossi;i++) {
cin>>valNouv;
possi.push_back(valNouv);
}
reverse(possi.begin(),possi.end());
for (int i=nbPossi-1;i>=0;i--) {
estPossi.push_back({});
}
minPris=MAX_SOM;
for (int i=0;i<nbPossi;i++) {
for (int j=0;j<=MAX_SOM/possi[i];j++) {
estPossi[i].push_back(toutZer);
}
}
estPossi[0][0][0]=true;
for (int i=0;i<nbPossi;i++) {
for (int j=0;j<=MAX_SOM/possi[i];j++) {
if (i!=0 and possi[i-1]*j<=MAX_SOM) {
estPossi[i][j]|=estPossi[i-1][j];
}
if (j!=0) {
estPossi[i][j]|=(estPossi[i][j-1]<<possi[i]);
}
estPossi[i][j]<<=(MAX_SOM-1-cumu[j]);
estPossi[i][j]>>=(MAX_SOM-1-cumu[j]);
if (estPossi[i][j][somGlob] and j<minPris) {
minPris=j;
dernPris=i;
}
//cout<<i<<" "<<j<<" : "<<estPossi[i][j]<<endl;
}
}
if (minPris==MAX_SOM) {
cout<<-1<<endl;
return 0;
}
cout<<minPris<<endl;
while (minPris!=0) {
if (dernPris!=0 and possi[dernPris-1]*minPris<=MAX_SOM and estPossi[dernPris-1][minPris][somGlob]) {
dernPris--;
}
else {
listePris.push_back(possi[dernPris]);
somGlob-=possi[dernPris];
minPris--;
}
}
for (int i:listePris) {
cout<<i<<" ";
for (int j=0;j<i;j++) {
it=etat.begin();
cout<<(*it).second<<" ";
aRemettre.insert({(*it).first+1,(*it).second});
etat.erase(it);
}
for (auto k:aRemettre) {
etat.insert(k);
}
aRemettre.clear();
cout<<endl;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
53696 KB |
Output is correct |
2 |
Correct |
29 ms |
30596 KB |
Output is correct |
3 |
Correct |
30 ms |
30580 KB |
Output is correct |
4 |
Correct |
15 ms |
15592 KB |
Output is correct |
5 |
Correct |
45 ms |
44464 KB |
Output is correct |
6 |
Correct |
29 ms |
32220 KB |
Output is correct |
7 |
Correct |
44 ms |
43148 KB |
Output is correct |
8 |
Correct |
35 ms |
30632 KB |
Output is correct |
9 |
Correct |
1 ms |
468 KB |
Output is correct |
10 |
Correct |
185 ms |
192644 KB |
Output is correct |
11 |
Correct |
16 ms |
20692 KB |
Output is correct |
12 |
Correct |
111 ms |
103720 KB |
Output is correct |
13 |
Correct |
22 ms |
25808 KB |
Output is correct |
14 |
Correct |
25 ms |
29936 KB |
Output is correct |
15 |
Correct |
22 ms |
26560 KB |
Output is correct |
16 |
Correct |
21 ms |
26184 KB |
Output is correct |
17 |
Correct |
10 ms |
10996 KB |
Output is correct |
18 |
Correct |
29 ms |
27144 KB |
Output is correct |
19 |
Correct |
6 ms |
6396 KB |
Output is correct |
20 |
Correct |
2 ms |
2696 KB |
Output is correct |
21 |
Correct |
30 ms |
29472 KB |
Output is correct |
22 |
Correct |
84 ms |
87064 KB |
Output is correct |
23 |
Correct |
69 ms |
76276 KB |
Output is correct |
24 |
Correct |
40 ms |
37852 KB |
Output is correct |
25 |
Correct |
43 ms |
37092 KB |
Output is correct |
26 |
Correct |
8 ms |
8264 KB |
Output is correct |
27 |
Correct |
7 ms |
7424 KB |
Output is correct |
28 |
Correct |
15 ms |
17800 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
7 ms |
7988 KB |
Output is correct |
2 |
Correct |
30 ms |
30576 KB |
Output is correct |
3 |
Correct |
35 ms |
30644 KB |
Output is correct |
4 |
Correct |
15 ms |
15532 KB |
Output is correct |
5 |
Correct |
30 ms |
30668 KB |
Output is correct |
6 |
Correct |
1 ms |
468 KB |
Output is correct |
7 |
Correct |
42 ms |
30712 KB |
Output is correct |
8 |
Correct |
30 ms |
30624 KB |
Output is correct |
9 |
Correct |
34 ms |
30676 KB |
Output is correct |
10 |
Correct |
49 ms |
30584 KB |
Output is correct |
11 |
Correct |
31 ms |
30668 KB |
Output is correct |
12 |
Correct |
15 ms |
15592 KB |
Output is correct |
13 |
Correct |
15 ms |
15568 KB |
Output is correct |
14 |
Correct |
11 ms |
15592 KB |
Output is correct |
15 |
Correct |
15 ms |
15592 KB |
Output is correct |
16 |
Correct |
4 ms |
4212 KB |
Output is correct |
17 |
Correct |
3 ms |
4212 KB |
Output is correct |
18 |
Correct |
14 ms |
7964 KB |
Output is correct |
19 |
Correct |
22 ms |
15592 KB |
Output is correct |
20 |
Correct |
5 ms |
1004 KB |
Output is correct |
21 |
Correct |
4 ms |
596 KB |
Output is correct |
22 |
Correct |
3 ms |
744 KB |
Output is correct |
23 |
Correct |
1 ms |
596 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
53712 KB |
Output is correct |
2 |
Correct |
7 ms |
7964 KB |
Output is correct |
3 |
Correct |
29 ms |
30596 KB |
Output is correct |
4 |
Correct |
31 ms |
30692 KB |
Output is correct |
5 |
Correct |
18 ms |
15592 KB |
Output is correct |
6 |
Correct |
43 ms |
44484 KB |
Output is correct |
7 |
Correct |
33 ms |
32176 KB |
Output is correct |
8 |
Correct |
43 ms |
43096 KB |
Output is correct |
9 |
Correct |
30 ms |
30580 KB |
Output is correct |
10 |
Correct |
30 ms |
30624 KB |
Output is correct |
11 |
Correct |
18 ms |
15592 KB |
Output is correct |
12 |
Correct |
15 ms |
15568 KB |
Output is correct |
13 |
Correct |
12 ms |
15536 KB |
Output is correct |
14 |
Correct |
17 ms |
15592 KB |
Output is correct |
15 |
Correct |
48 ms |
44432 KB |
Output is correct |
16 |
Correct |
28 ms |
32216 KB |
Output is correct |
17 |
Correct |
58 ms |
53620 KB |
Output is correct |
18 |
Correct |
20 ms |
22480 KB |
Output is correct |
19 |
Correct |
53 ms |
46776 KB |
Output is correct |
20 |
Correct |
35 ms |
39020 KB |
Output is correct |
21 |
Correct |
28 ms |
28072 KB |
Output is correct |
22 |
Correct |
27 ms |
27992 KB |
Output is correct |
23 |
Correct |
29 ms |
27944 KB |
Output is correct |
24 |
Correct |
52 ms |
51408 KB |
Output is correct |
25 |
Correct |
34 ms |
27124 KB |
Output is correct |
26 |
Correct |
27 ms |
25768 KB |
Output is correct |
27 |
Correct |
50 ms |
45376 KB |
Output is correct |
28 |
Correct |
48 ms |
49236 KB |
Output is correct |
29 |
Correct |
43 ms |
42100 KB |
Output is correct |
30 |
Correct |
43 ms |
42116 KB |
Output is correct |
31 |
Correct |
74 ms |
69168 KB |
Output is correct |
32 |
Correct |
29 ms |
23640 KB |
Output is correct |
33 |
Correct |
43 ms |
42672 KB |
Output is correct |
34 |
Correct |
31 ms |
32004 KB |
Output is correct |
35 |
Correct |
67 ms |
63524 KB |
Output is correct |
36 |
Correct |
101 ms |
92912 KB |
Output is correct |
37 |
Correct |
39 ms |
37468 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
53696 KB |
Output is correct |
2 |
Correct |
29 ms |
30596 KB |
Output is correct |
3 |
Correct |
30 ms |
30580 KB |
Output is correct |
4 |
Correct |
15 ms |
15592 KB |
Output is correct |
5 |
Correct |
45 ms |
44464 KB |
Output is correct |
6 |
Correct |
29 ms |
32220 KB |
Output is correct |
7 |
Correct |
44 ms |
43148 KB |
Output is correct |
8 |
Correct |
35 ms |
30632 KB |
Output is correct |
9 |
Correct |
1 ms |
468 KB |
Output is correct |
10 |
Correct |
185 ms |
192644 KB |
Output is correct |
11 |
Correct |
16 ms |
20692 KB |
Output is correct |
12 |
Correct |
111 ms |
103720 KB |
Output is correct |
13 |
Correct |
22 ms |
25808 KB |
Output is correct |
14 |
Correct |
25 ms |
29936 KB |
Output is correct |
15 |
Correct |
22 ms |
26560 KB |
Output is correct |
16 |
Correct |
21 ms |
26184 KB |
Output is correct |
17 |
Correct |
10 ms |
10996 KB |
Output is correct |
18 |
Correct |
29 ms |
27144 KB |
Output is correct |
19 |
Correct |
6 ms |
6396 KB |
Output is correct |
20 |
Correct |
2 ms |
2696 KB |
Output is correct |
21 |
Correct |
30 ms |
29472 KB |
Output is correct |
22 |
Correct |
84 ms |
87064 KB |
Output is correct |
23 |
Correct |
69 ms |
76276 KB |
Output is correct |
24 |
Correct |
40 ms |
37852 KB |
Output is correct |
25 |
Correct |
43 ms |
37092 KB |
Output is correct |
26 |
Correct |
8 ms |
8264 KB |
Output is correct |
27 |
Correct |
7 ms |
7424 KB |
Output is correct |
28 |
Correct |
15 ms |
17800 KB |
Output is correct |
29 |
Correct |
56 ms |
53712 KB |
Output is correct |
30 |
Correct |
7 ms |
7964 KB |
Output is correct |
31 |
Correct |
29 ms |
30596 KB |
Output is correct |
32 |
Correct |
31 ms |
30692 KB |
Output is correct |
33 |
Correct |
18 ms |
15592 KB |
Output is correct |
34 |
Correct |
43 ms |
44484 KB |
Output is correct |
35 |
Correct |
33 ms |
32176 KB |
Output is correct |
36 |
Correct |
43 ms |
43096 KB |
Output is correct |
37 |
Correct |
30 ms |
30580 KB |
Output is correct |
38 |
Correct |
30 ms |
30624 KB |
Output is correct |
39 |
Correct |
18 ms |
15592 KB |
Output is correct |
40 |
Correct |
15 ms |
15568 KB |
Output is correct |
41 |
Correct |
12 ms |
15536 KB |
Output is correct |
42 |
Correct |
17 ms |
15592 KB |
Output is correct |
43 |
Correct |
48 ms |
44432 KB |
Output is correct |
44 |
Correct |
28 ms |
32216 KB |
Output is correct |
45 |
Correct |
58 ms |
53620 KB |
Output is correct |
46 |
Correct |
20 ms |
22480 KB |
Output is correct |
47 |
Correct |
53 ms |
46776 KB |
Output is correct |
48 |
Correct |
35 ms |
39020 KB |
Output is correct |
49 |
Correct |
28 ms |
28072 KB |
Output is correct |
50 |
Correct |
27 ms |
27992 KB |
Output is correct |
51 |
Correct |
29 ms |
27944 KB |
Output is correct |
52 |
Correct |
52 ms |
51408 KB |
Output is correct |
53 |
Correct |
34 ms |
27124 KB |
Output is correct |
54 |
Correct |
27 ms |
25768 KB |
Output is correct |
55 |
Correct |
50 ms |
45376 KB |
Output is correct |
56 |
Correct |
48 ms |
49236 KB |
Output is correct |
57 |
Correct |
43 ms |
42100 KB |
Output is correct |
58 |
Correct |
43 ms |
42116 KB |
Output is correct |
59 |
Correct |
74 ms |
69168 KB |
Output is correct |
60 |
Correct |
29 ms |
23640 KB |
Output is correct |
61 |
Correct |
43 ms |
42672 KB |
Output is correct |
62 |
Correct |
31 ms |
32004 KB |
Output is correct |
63 |
Correct |
67 ms |
63524 KB |
Output is correct |
64 |
Correct |
101 ms |
92912 KB |
Output is correct |
65 |
Correct |
39 ms |
37468 KB |
Output is correct |
66 |
Correct |
21 ms |
20232 KB |
Output is correct |
67 |
Correct |
29 ms |
30676 KB |
Output is correct |
68 |
Correct |
4 ms |
4212 KB |
Output is correct |
69 |
Correct |
3 ms |
4192 KB |
Output is correct |
70 |
Correct |
9 ms |
9000 KB |
Output is correct |
71 |
Correct |
51 ms |
50308 KB |
Output is correct |
72 |
Correct |
37 ms |
34580 KB |
Output is correct |
73 |
Correct |
5 ms |
5984 KB |
Output is correct |
74 |
Correct |
10 ms |
10972 KB |
Output is correct |
75 |
Correct |
48 ms |
46756 KB |
Output is correct |
76 |
Correct |
45 ms |
43064 KB |
Output is correct |
77 |
Correct |
56 ms |
51568 KB |
Output is correct |
78 |
Correct |
42 ms |
40468 KB |
Output is correct |
79 |
Correct |
59 ms |
57884 KB |
Output is correct |
80 |
Correct |
56 ms |
50608 KB |
Output is correct |
81 |
Correct |
13 ms |
12488 KB |
Output is correct |
82 |
Correct |
62 ms |
60424 KB |
Output is correct |
83 |
Correct |
5 ms |
4724 KB |
Output is correct |
84 |
Correct |
71 ms |
69260 KB |
Output is correct |
85 |
Correct |
53 ms |
56412 KB |
Output is correct |
86 |
Correct |
94 ms |
88548 KB |
Output is correct |
87 |
Correct |
88 ms |
81152 KB |
Output is correct |
88 |
Correct |
88 ms |
83324 KB |
Output is correct |
89 |
Correct |
99 ms |
92960 KB |
Output is correct |
90 |
Correct |
85 ms |
77384 KB |
Output is correct |
91 |
Correct |
83 ms |
78508 KB |
Output is correct |
92 |
Correct |
125 ms |
115436 KB |
Output is correct |
93 |
Correct |
106 ms |
114124 KB |
Output is correct |
94 |
Correct |
107 ms |
106652 KB |
Output is correct |
95 |
Correct |
102 ms |
82792 KB |
Output is correct |
96 |
Correct |
61 ms |
57836 KB |
Output is correct |
97 |
Correct |
59 ms |
58296 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
53696 KB |
Output is correct |
2 |
Correct |
29 ms |
30596 KB |
Output is correct |
3 |
Correct |
30 ms |
30580 KB |
Output is correct |
4 |
Correct |
15 ms |
15592 KB |
Output is correct |
5 |
Correct |
45 ms |
44464 KB |
Output is correct |
6 |
Correct |
29 ms |
32220 KB |
Output is correct |
7 |
Correct |
44 ms |
43148 KB |
Output is correct |
8 |
Correct |
35 ms |
30632 KB |
Output is correct |
9 |
Correct |
1 ms |
468 KB |
Output is correct |
10 |
Correct |
185 ms |
192644 KB |
Output is correct |
11 |
Correct |
16 ms |
20692 KB |
Output is correct |
12 |
Correct |
111 ms |
103720 KB |
Output is correct |
13 |
Correct |
22 ms |
25808 KB |
Output is correct |
14 |
Correct |
25 ms |
29936 KB |
Output is correct |
15 |
Correct |
22 ms |
26560 KB |
Output is correct |
16 |
Correct |
21 ms |
26184 KB |
Output is correct |
17 |
Correct |
10 ms |
10996 KB |
Output is correct |
18 |
Correct |
29 ms |
27144 KB |
Output is correct |
19 |
Correct |
6 ms |
6396 KB |
Output is correct |
20 |
Correct |
2 ms |
2696 KB |
Output is correct |
21 |
Correct |
30 ms |
29472 KB |
Output is correct |
22 |
Correct |
84 ms |
87064 KB |
Output is correct |
23 |
Correct |
69 ms |
76276 KB |
Output is correct |
24 |
Correct |
40 ms |
37852 KB |
Output is correct |
25 |
Correct |
43 ms |
37092 KB |
Output is correct |
26 |
Correct |
8 ms |
8264 KB |
Output is correct |
27 |
Correct |
7 ms |
7424 KB |
Output is correct |
28 |
Correct |
15 ms |
17800 KB |
Output is correct |
29 |
Correct |
56 ms |
53712 KB |
Output is correct |
30 |
Correct |
7 ms |
7964 KB |
Output is correct |
31 |
Correct |
29 ms |
30596 KB |
Output is correct |
32 |
Correct |
31 ms |
30692 KB |
Output is correct |
33 |
Correct |
18 ms |
15592 KB |
Output is correct |
34 |
Correct |
43 ms |
44484 KB |
Output is correct |
35 |
Correct |
33 ms |
32176 KB |
Output is correct |
36 |
Correct |
43 ms |
43096 KB |
Output is correct |
37 |
Correct |
30 ms |
30580 KB |
Output is correct |
38 |
Correct |
30 ms |
30624 KB |
Output is correct |
39 |
Correct |
18 ms |
15592 KB |
Output is correct |
40 |
Correct |
15 ms |
15568 KB |
Output is correct |
41 |
Correct |
12 ms |
15536 KB |
Output is correct |
42 |
Correct |
17 ms |
15592 KB |
Output is correct |
43 |
Correct |
48 ms |
44432 KB |
Output is correct |
44 |
Correct |
28 ms |
32216 KB |
Output is correct |
45 |
Correct |
58 ms |
53620 KB |
Output is correct |
46 |
Correct |
20 ms |
22480 KB |
Output is correct |
47 |
Correct |
53 ms |
46776 KB |
Output is correct |
48 |
Correct |
35 ms |
39020 KB |
Output is correct |
49 |
Correct |
28 ms |
28072 KB |
Output is correct |
50 |
Correct |
27 ms |
27992 KB |
Output is correct |
51 |
Correct |
29 ms |
27944 KB |
Output is correct |
52 |
Correct |
52 ms |
51408 KB |
Output is correct |
53 |
Correct |
34 ms |
27124 KB |
Output is correct |
54 |
Correct |
27 ms |
25768 KB |
Output is correct |
55 |
Correct |
50 ms |
45376 KB |
Output is correct |
56 |
Correct |
48 ms |
49236 KB |
Output is correct |
57 |
Correct |
43 ms |
42100 KB |
Output is correct |
58 |
Correct |
43 ms |
42116 KB |
Output is correct |
59 |
Correct |
74 ms |
69168 KB |
Output is correct |
60 |
Correct |
29 ms |
23640 KB |
Output is correct |
61 |
Correct |
43 ms |
42672 KB |
Output is correct |
62 |
Correct |
31 ms |
32004 KB |
Output is correct |
63 |
Correct |
67 ms |
63524 KB |
Output is correct |
64 |
Correct |
101 ms |
92912 KB |
Output is correct |
65 |
Correct |
39 ms |
37468 KB |
Output is correct |
66 |
Correct |
21 ms |
20232 KB |
Output is correct |
67 |
Correct |
29 ms |
30676 KB |
Output is correct |
68 |
Correct |
4 ms |
4212 KB |
Output is correct |
69 |
Correct |
3 ms |
4192 KB |
Output is correct |
70 |
Correct |
9 ms |
9000 KB |
Output is correct |
71 |
Correct |
51 ms |
50308 KB |
Output is correct |
72 |
Correct |
37 ms |
34580 KB |
Output is correct |
73 |
Correct |
5 ms |
5984 KB |
Output is correct |
74 |
Correct |
10 ms |
10972 KB |
Output is correct |
75 |
Correct |
48 ms |
46756 KB |
Output is correct |
76 |
Correct |
45 ms |
43064 KB |
Output is correct |
77 |
Correct |
56 ms |
51568 KB |
Output is correct |
78 |
Correct |
42 ms |
40468 KB |
Output is correct |
79 |
Correct |
59 ms |
57884 KB |
Output is correct |
80 |
Correct |
56 ms |
50608 KB |
Output is correct |
81 |
Correct |
13 ms |
12488 KB |
Output is correct |
82 |
Correct |
62 ms |
60424 KB |
Output is correct |
83 |
Correct |
5 ms |
4724 KB |
Output is correct |
84 |
Correct |
71 ms |
69260 KB |
Output is correct |
85 |
Correct |
53 ms |
56412 KB |
Output is correct |
86 |
Correct |
94 ms |
88548 KB |
Output is correct |
87 |
Correct |
88 ms |
81152 KB |
Output is correct |
88 |
Correct |
88 ms |
83324 KB |
Output is correct |
89 |
Correct |
99 ms |
92960 KB |
Output is correct |
90 |
Correct |
85 ms |
77384 KB |
Output is correct |
91 |
Correct |
83 ms |
78508 KB |
Output is correct |
92 |
Correct |
125 ms |
115436 KB |
Output is correct |
93 |
Correct |
106 ms |
114124 KB |
Output is correct |
94 |
Correct |
107 ms |
106652 KB |
Output is correct |
95 |
Correct |
102 ms |
82792 KB |
Output is correct |
96 |
Correct |
61 ms |
57836 KB |
Output is correct |
97 |
Correct |
59 ms |
58296 KB |
Output is correct |
98 |
Correct |
35 ms |
30640 KB |
Output is correct |
99 |
Correct |
1 ms |
584 KB |
Output is correct |
100 |
Correct |
51 ms |
44972 KB |
Output is correct |
101 |
Correct |
15 ms |
14564 KB |
Output is correct |
102 |
Correct |
15 ms |
17108 KB |
Output is correct |
103 |
Correct |
92 ms |
87300 KB |
Output is correct |
104 |
Correct |
88 ms |
80140 KB |
Output is correct |
105 |
Correct |
194 ms |
159016 KB |
Output is correct |
106 |
Correct |
144 ms |
165832 KB |
Output is correct |
107 |
Correct |
128 ms |
136896 KB |
Output is correct |
108 |
Correct |
119 ms |
109472 KB |
Output is correct |
109 |
Correct |
64 ms |
58444 KB |
Output is correct |
110 |
Correct |
65 ms |
58504 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
53696 KB |
Output is correct |
2 |
Correct |
29 ms |
30596 KB |
Output is correct |
3 |
Correct |
30 ms |
30580 KB |
Output is correct |
4 |
Correct |
15 ms |
15592 KB |
Output is correct |
5 |
Correct |
45 ms |
44464 KB |
Output is correct |
6 |
Correct |
29 ms |
32220 KB |
Output is correct |
7 |
Correct |
44 ms |
43148 KB |
Output is correct |
8 |
Correct |
35 ms |
30632 KB |
Output is correct |
9 |
Correct |
1 ms |
468 KB |
Output is correct |
10 |
Correct |
185 ms |
192644 KB |
Output is correct |
11 |
Correct |
16 ms |
20692 KB |
Output is correct |
12 |
Correct |
111 ms |
103720 KB |
Output is correct |
13 |
Correct |
22 ms |
25808 KB |
Output is correct |
14 |
Correct |
25 ms |
29936 KB |
Output is correct |
15 |
Correct |
22 ms |
26560 KB |
Output is correct |
16 |
Correct |
21 ms |
26184 KB |
Output is correct |
17 |
Correct |
10 ms |
10996 KB |
Output is correct |
18 |
Correct |
29 ms |
27144 KB |
Output is correct |
19 |
Correct |
6 ms |
6396 KB |
Output is correct |
20 |
Correct |
2 ms |
2696 KB |
Output is correct |
21 |
Correct |
30 ms |
29472 KB |
Output is correct |
22 |
Correct |
84 ms |
87064 KB |
Output is correct |
23 |
Correct |
69 ms |
76276 KB |
Output is correct |
24 |
Correct |
40 ms |
37852 KB |
Output is correct |
25 |
Correct |
43 ms |
37092 KB |
Output is correct |
26 |
Correct |
8 ms |
8264 KB |
Output is correct |
27 |
Correct |
7 ms |
7424 KB |
Output is correct |
28 |
Correct |
15 ms |
17800 KB |
Output is correct |
29 |
Correct |
7 ms |
7988 KB |
Output is correct |
30 |
Correct |
30 ms |
30576 KB |
Output is correct |
31 |
Correct |
35 ms |
30644 KB |
Output is correct |
32 |
Correct |
15 ms |
15532 KB |
Output is correct |
33 |
Correct |
30 ms |
30668 KB |
Output is correct |
34 |
Correct |
1 ms |
468 KB |
Output is correct |
35 |
Correct |
42 ms |
30712 KB |
Output is correct |
36 |
Correct |
30 ms |
30624 KB |
Output is correct |
37 |
Correct |
34 ms |
30676 KB |
Output is correct |
38 |
Correct |
49 ms |
30584 KB |
Output is correct |
39 |
Correct |
31 ms |
30668 KB |
Output is correct |
40 |
Correct |
15 ms |
15592 KB |
Output is correct |
41 |
Correct |
15 ms |
15568 KB |
Output is correct |
42 |
Correct |
11 ms |
15592 KB |
Output is correct |
43 |
Correct |
15 ms |
15592 KB |
Output is correct |
44 |
Correct |
4 ms |
4212 KB |
Output is correct |
45 |
Correct |
3 ms |
4212 KB |
Output is correct |
46 |
Correct |
14 ms |
7964 KB |
Output is correct |
47 |
Correct |
22 ms |
15592 KB |
Output is correct |
48 |
Correct |
5 ms |
1004 KB |
Output is correct |
49 |
Correct |
4 ms |
596 KB |
Output is correct |
50 |
Correct |
3 ms |
744 KB |
Output is correct |
51 |
Correct |
1 ms |
596 KB |
Output is correct |
52 |
Correct |
56 ms |
53712 KB |
Output is correct |
53 |
Correct |
7 ms |
7964 KB |
Output is correct |
54 |
Correct |
29 ms |
30596 KB |
Output is correct |
55 |
Correct |
31 ms |
30692 KB |
Output is correct |
56 |
Correct |
18 ms |
15592 KB |
Output is correct |
57 |
Correct |
43 ms |
44484 KB |
Output is correct |
58 |
Correct |
33 ms |
32176 KB |
Output is correct |
59 |
Correct |
43 ms |
43096 KB |
Output is correct |
60 |
Correct |
30 ms |
30580 KB |
Output is correct |
61 |
Correct |
30 ms |
30624 KB |
Output is correct |
62 |
Correct |
18 ms |
15592 KB |
Output is correct |
63 |
Correct |
15 ms |
15568 KB |
Output is correct |
64 |
Correct |
12 ms |
15536 KB |
Output is correct |
65 |
Correct |
17 ms |
15592 KB |
Output is correct |
66 |
Correct |
48 ms |
44432 KB |
Output is correct |
67 |
Correct |
28 ms |
32216 KB |
Output is correct |
68 |
Correct |
58 ms |
53620 KB |
Output is correct |
69 |
Correct |
20 ms |
22480 KB |
Output is correct |
70 |
Correct |
53 ms |
46776 KB |
Output is correct |
71 |
Correct |
35 ms |
39020 KB |
Output is correct |
72 |
Correct |
28 ms |
28072 KB |
Output is correct |
73 |
Correct |
27 ms |
27992 KB |
Output is correct |
74 |
Correct |
29 ms |
27944 KB |
Output is correct |
75 |
Correct |
52 ms |
51408 KB |
Output is correct |
76 |
Correct |
34 ms |
27124 KB |
Output is correct |
77 |
Correct |
27 ms |
25768 KB |
Output is correct |
78 |
Correct |
50 ms |
45376 KB |
Output is correct |
79 |
Correct |
48 ms |
49236 KB |
Output is correct |
80 |
Correct |
43 ms |
42100 KB |
Output is correct |
81 |
Correct |
43 ms |
42116 KB |
Output is correct |
82 |
Correct |
74 ms |
69168 KB |
Output is correct |
83 |
Correct |
29 ms |
23640 KB |
Output is correct |
84 |
Correct |
43 ms |
42672 KB |
Output is correct |
85 |
Correct |
31 ms |
32004 KB |
Output is correct |
86 |
Correct |
67 ms |
63524 KB |
Output is correct |
87 |
Correct |
101 ms |
92912 KB |
Output is correct |
88 |
Correct |
39 ms |
37468 KB |
Output is correct |
89 |
Correct |
21 ms |
20232 KB |
Output is correct |
90 |
Correct |
29 ms |
30676 KB |
Output is correct |
91 |
Correct |
4 ms |
4212 KB |
Output is correct |
92 |
Correct |
3 ms |
4192 KB |
Output is correct |
93 |
Correct |
9 ms |
9000 KB |
Output is correct |
94 |
Correct |
51 ms |
50308 KB |
Output is correct |
95 |
Correct |
37 ms |
34580 KB |
Output is correct |
96 |
Correct |
5 ms |
5984 KB |
Output is correct |
97 |
Correct |
10 ms |
10972 KB |
Output is correct |
98 |
Correct |
48 ms |
46756 KB |
Output is correct |
99 |
Correct |
45 ms |
43064 KB |
Output is correct |
100 |
Correct |
56 ms |
51568 KB |
Output is correct |
101 |
Correct |
42 ms |
40468 KB |
Output is correct |
102 |
Correct |
59 ms |
57884 KB |
Output is correct |
103 |
Correct |
56 ms |
50608 KB |
Output is correct |
104 |
Correct |
13 ms |
12488 KB |
Output is correct |
105 |
Correct |
62 ms |
60424 KB |
Output is correct |
106 |
Correct |
5 ms |
4724 KB |
Output is correct |
107 |
Correct |
71 ms |
69260 KB |
Output is correct |
108 |
Correct |
53 ms |
56412 KB |
Output is correct |
109 |
Correct |
94 ms |
88548 KB |
Output is correct |
110 |
Correct |
88 ms |
81152 KB |
Output is correct |
111 |
Correct |
88 ms |
83324 KB |
Output is correct |
112 |
Correct |
99 ms |
92960 KB |
Output is correct |
113 |
Correct |
85 ms |
77384 KB |
Output is correct |
114 |
Correct |
83 ms |
78508 KB |
Output is correct |
115 |
Correct |
125 ms |
115436 KB |
Output is correct |
116 |
Correct |
106 ms |
114124 KB |
Output is correct |
117 |
Correct |
107 ms |
106652 KB |
Output is correct |
118 |
Correct |
102 ms |
82792 KB |
Output is correct |
119 |
Correct |
61 ms |
57836 KB |
Output is correct |
120 |
Correct |
59 ms |
58296 KB |
Output is correct |
121 |
Correct |
35 ms |
30640 KB |
Output is correct |
122 |
Correct |
1 ms |
584 KB |
Output is correct |
123 |
Correct |
51 ms |
44972 KB |
Output is correct |
124 |
Correct |
15 ms |
14564 KB |
Output is correct |
125 |
Correct |
15 ms |
17108 KB |
Output is correct |
126 |
Correct |
92 ms |
87300 KB |
Output is correct |
127 |
Correct |
88 ms |
80140 KB |
Output is correct |
128 |
Correct |
194 ms |
159016 KB |
Output is correct |
129 |
Correct |
144 ms |
165832 KB |
Output is correct |
130 |
Correct |
128 ms |
136896 KB |
Output is correct |
131 |
Correct |
119 ms |
109472 KB |
Output is correct |
132 |
Correct |
64 ms |
58444 KB |
Output is correct |
133 |
Correct |
65 ms |
58504 KB |
Output is correct |
134 |
Correct |
54 ms |
42800 KB |
Output is correct |
135 |
Correct |
10 ms |
6768 KB |
Output is correct |
136 |
Correct |
6 ms |
1444 KB |
Output is correct |
137 |
Correct |
88 ms |
70144 KB |
Output is correct |
138 |
Correct |
91 ms |
72220 KB |
Output is correct |
139 |
Correct |
238 ms |
202612 KB |
Output is correct |
140 |
Correct |
199 ms |
226012 KB |
Output is correct |
141 |
Correct |
169 ms |
170564 KB |
Output is correct |
142 |
Correct |
166 ms |
131604 KB |
Output is correct |
143 |
Correct |
72 ms |
58620 KB |
Output is correct |
144 |
Correct |
72 ms |
59016 KB |
Output is correct |