# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
836909 | 2023-08-24T17:04:05 Z | alvingogo | Cookies (JOI23_cookies) | C++14 | 155 ms | 234940 KB |
#include <bits/stdc++.h> #pragma GCC optimize("Ofast") #define AquA cin.tie(0);ios_base::sync_with_stdio(0); #define fs first #define sc second #define p_q priority_queue using namespace std; int main(){ AquA; int n; cin >> n; vector<int> a(n); int s=0; const int gd=15005; vector<int> c(gd); for(int i=0;i<n;i++){ cin >> a[i]; c[a[i]]++; s+=a[i]; } for(int i=gd-2;i>=1;i--){ c[i]+=c[i+1]; } for(int i=2;i<gd;i++){ c[i]+=c[i-1]; } int m; cin >> m; vector<int> b(m+1); for(int i=1;i<=m;i++){ cin >> b[i]; } reverse(b.begin()+1,b.end()); vector<vector<bitset<gd> > > bt(m+1); vector<bitset<gd> > lp(gd+1); for(int i=1;i<gd;i++){ lp[i]|=lp[i-1]; for(int j=c[i-1]+1;j<=c[i];j++){ lp[i][j]=1; } } bt[0].resize(1); bt[0][0][0]=1; for(int i=0;i<m;i++){ bt[i+1].resize(s/(b[i+1])+1); for(int j=0;j<bt[i].size();j++){ bt[i+1][j]|=bt[i][j]; } for(int j=1;j<bt[i+1].size();j++){ bt[i+1][j]|=(bt[i+1][j-1]<<b[i+1])&lp[j]; } } for(int j=0;j<gd;j++){ for(int i=0;i<=m;i++){ if(j<bt[i].size() && bt[i][j][s]){ vector<int> k; while(i>0 && j>0){ if(j<bt[i-1].size() && bt[i-1][j][s]){ i--; } else{ k.push_back(b[i]); s-=b[i]; j--; } } p_q<pair<int,int> > pq; for(int f=0;f<n;f++){ pq.push({a[f],f}); } cout << k.size() << "\n"; for(auto h:k){ vector<pair<int,int> > d; cout << h << ' '; for(int p=0;p<h;p++){ d.push_back(pq.top()); pq.pop(); } for(auto z:d){ pq.push({z.fs-1,z.sc}); cout << z.sc+1 << " "; } cout << "\n"; } return 0; } } } cout << -1 << "\n"; return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 27988 KB | Output is correct |
2 | Correct | 14 ms | 27988 KB | Output is correct |
3 | Correct | 14 ms | 27988 KB | Output is correct |
4 | Correct | 14 ms | 27988 KB | Output is correct |
5 | Correct | 15 ms | 27988 KB | Output is correct |
6 | Correct | 14 ms | 27988 KB | Output is correct |
7 | Correct | 14 ms | 27988 KB | Output is correct |
8 | Correct | 16 ms | 28884 KB | Output is correct |
9 | Correct | 15 ms | 27988 KB | Output is correct |
10 | Correct | 18 ms | 34772 KB | Output is correct |
11 | Correct | 18 ms | 28884 KB | Output is correct |
12 | Correct | 17 ms | 31312 KB | Output is correct |
13 | Correct | 16 ms | 28884 KB | Output is correct |
14 | Correct | 15 ms | 29140 KB | Output is correct |
15 | Correct | 15 ms | 29012 KB | Output is correct |
16 | Correct | 15 ms | 29140 KB | Output is correct |
17 | Correct | 14 ms | 28244 KB | Output is correct |
18 | Correct | 15 ms | 28756 KB | Output is correct |
19 | Correct | 14 ms | 28116 KB | Output is correct |
20 | Correct | 17 ms | 28092 KB | Output is correct |
21 | Correct | 15 ms | 28884 KB | Output is correct |
22 | Correct | 19 ms | 30924 KB | Output is correct |
23 | Correct | 19 ms | 30548 KB | Output is correct |
24 | Correct | 15 ms | 29140 KB | Output is correct |
25 | Correct | 15 ms | 29140 KB | Output is correct |
26 | Correct | 14 ms | 28244 KB | Output is correct |
27 | Correct | 14 ms | 28368 KB | Output is correct |
28 | Correct | 14 ms | 28740 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 13 ms | 27988 KB | Output is correct |
2 | Correct | 13 ms | 27988 KB | Output is correct |
3 | Correct | 13 ms | 27988 KB | Output is correct |
4 | Correct | 14 ms | 27988 KB | Output is correct |
5 | Correct | 15 ms | 29008 KB | Output is correct |
6 | Correct | 15 ms | 27988 KB | Output is correct |
7 | Correct | 14 ms | 27988 KB | Output is correct |
8 | Correct | 14 ms | 28884 KB | Output is correct |
9 | Correct | 17 ms | 33492 KB | Output is correct |
10 | Correct | 31 ms | 55764 KB | Output is correct |
11 | Correct | 11 ms | 27988 KB | Output is correct |
12 | Correct | 11 ms | 27988 KB | Output is correct |
13 | Correct | 11 ms | 27988 KB | Output is correct |
14 | Correct | 12 ms | 28000 KB | Output is correct |
15 | Correct | 16 ms | 27988 KB | Output is correct |
16 | Correct | 16 ms | 27988 KB | Output is correct |
17 | Correct | 11 ms | 27988 KB | Output is correct |
18 | Correct | 23 ms | 34900 KB | Output is correct |
19 | Correct | 21 ms | 37204 KB | Output is correct |
20 | Correct | 16 ms | 28372 KB | Output is correct |
21 | Correct | 15 ms | 28164 KB | Output is correct |
22 | Correct | 13 ms | 28244 KB | Output is correct |
23 | Correct | 14 ms | 27988 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 28008 KB | Output is correct |
2 | Correct | 14 ms | 27988 KB | Output is correct |
3 | Correct | 14 ms | 27984 KB | Output is correct |
4 | Correct | 13 ms | 27988 KB | Output is correct |
5 | Correct | 14 ms | 27988 KB | Output is correct |
6 | Correct | 14 ms | 27988 KB | Output is correct |
7 | Correct | 17 ms | 27988 KB | Output is correct |
8 | Correct | 15 ms | 28000 KB | Output is correct |
9 | Correct | 13 ms | 27988 KB | Output is correct |
10 | Correct | 13 ms | 27988 KB | Output is correct |
11 | Correct | 13 ms | 27988 KB | Output is correct |
12 | Correct | 15 ms | 27988 KB | Output is correct |
13 | Correct | 14 ms | 27988 KB | Output is correct |
14 | Correct | 13 ms | 27988 KB | Output is correct |
15 | Correct | 14 ms | 27988 KB | Output is correct |
16 | Correct | 14 ms | 27988 KB | Output is correct |
17 | Correct | 13 ms | 27988 KB | Output is correct |
18 | Correct | 14 ms | 28000 KB | Output is correct |
19 | Correct | 15 ms | 28016 KB | Output is correct |
20 | Correct | 14 ms | 27988 KB | Output is correct |
21 | Correct | 15 ms | 27988 KB | Output is correct |
22 | Correct | 13 ms | 27988 KB | Output is correct |
23 | Correct | 18 ms | 28000 KB | Output is correct |
24 | Correct | 13 ms | 27992 KB | Output is correct |
25 | Correct | 15 ms | 27988 KB | Output is correct |
26 | Correct | 14 ms | 27988 KB | Output is correct |
27 | Correct | 14 ms | 27988 KB | Output is correct |
28 | Correct | 13 ms | 27988 KB | Output is correct |
29 | Correct | 12 ms | 27988 KB | Output is correct |
30 | Correct | 14 ms | 27988 KB | Output is correct |
31 | Correct | 14 ms | 27988 KB | Output is correct |
32 | Correct | 14 ms | 27988 KB | Output is correct |
33 | Correct | 13 ms | 27988 KB | Output is correct |
34 | Correct | 13 ms | 28000 KB | Output is correct |
35 | Correct | 13 ms | 28060 KB | Output is correct |
36 | Correct | 14 ms | 27988 KB | Output is correct |
37 | Correct | 13 ms | 27988 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 27988 KB | Output is correct |
2 | Correct | 14 ms | 27988 KB | Output is correct |
3 | Correct | 14 ms | 27988 KB | Output is correct |
4 | Correct | 14 ms | 27988 KB | Output is correct |
5 | Correct | 15 ms | 27988 KB | Output is correct |
6 | Correct | 14 ms | 27988 KB | Output is correct |
7 | Correct | 14 ms | 27988 KB | Output is correct |
8 | Correct | 16 ms | 28884 KB | Output is correct |
9 | Correct | 15 ms | 27988 KB | Output is correct |
10 | Correct | 18 ms | 34772 KB | Output is correct |
11 | Correct | 18 ms | 28884 KB | Output is correct |
12 | Correct | 17 ms | 31312 KB | Output is correct |
13 | Correct | 16 ms | 28884 KB | Output is correct |
14 | Correct | 15 ms | 29140 KB | Output is correct |
15 | Correct | 15 ms | 29012 KB | Output is correct |
16 | Correct | 15 ms | 29140 KB | Output is correct |
17 | Correct | 14 ms | 28244 KB | Output is correct |
18 | Correct | 15 ms | 28756 KB | Output is correct |
19 | Correct | 14 ms | 28116 KB | Output is correct |
20 | Correct | 17 ms | 28092 KB | Output is correct |
21 | Correct | 15 ms | 28884 KB | Output is correct |
22 | Correct | 19 ms | 30924 KB | Output is correct |
23 | Correct | 19 ms | 30548 KB | Output is correct |
24 | Correct | 15 ms | 29140 KB | Output is correct |
25 | Correct | 15 ms | 29140 KB | Output is correct |
26 | Correct | 14 ms | 28244 KB | Output is correct |
27 | Correct | 14 ms | 28368 KB | Output is correct |
28 | Correct | 14 ms | 28740 KB | Output is correct |
29 | Correct | 14 ms | 28008 KB | Output is correct |
30 | Correct | 14 ms | 27988 KB | Output is correct |
31 | Correct | 14 ms | 27984 KB | Output is correct |
32 | Correct | 13 ms | 27988 KB | Output is correct |
33 | Correct | 14 ms | 27988 KB | Output is correct |
34 | Correct | 14 ms | 27988 KB | Output is correct |
35 | Correct | 17 ms | 27988 KB | Output is correct |
36 | Correct | 15 ms | 28000 KB | Output is correct |
37 | Correct | 13 ms | 27988 KB | Output is correct |
38 | Correct | 13 ms | 27988 KB | Output is correct |
39 | Correct | 13 ms | 27988 KB | Output is correct |
40 | Correct | 15 ms | 27988 KB | Output is correct |
41 | Correct | 14 ms | 27988 KB | Output is correct |
42 | Correct | 13 ms | 27988 KB | Output is correct |
43 | Correct | 14 ms | 27988 KB | Output is correct |
44 | Correct | 14 ms | 27988 KB | Output is correct |
45 | Correct | 13 ms | 27988 KB | Output is correct |
46 | Correct | 14 ms | 28000 KB | Output is correct |
47 | Correct | 15 ms | 28016 KB | Output is correct |
48 | Correct | 14 ms | 27988 KB | Output is correct |
49 | Correct | 15 ms | 27988 KB | Output is correct |
50 | Correct | 13 ms | 27988 KB | Output is correct |
51 | Correct | 18 ms | 28000 KB | Output is correct |
52 | Correct | 13 ms | 27992 KB | Output is correct |
53 | Correct | 15 ms | 27988 KB | Output is correct |
54 | Correct | 14 ms | 27988 KB | Output is correct |
55 | Correct | 14 ms | 27988 KB | Output is correct |
56 | Correct | 13 ms | 27988 KB | Output is correct |
57 | Correct | 12 ms | 27988 KB | Output is correct |
58 | Correct | 14 ms | 27988 KB | Output is correct |
59 | Correct | 14 ms | 27988 KB | Output is correct |
60 | Correct | 14 ms | 27988 KB | Output is correct |
61 | Correct | 13 ms | 27988 KB | Output is correct |
62 | Correct | 13 ms | 28000 KB | Output is correct |
63 | Correct | 13 ms | 28060 KB | Output is correct |
64 | Correct | 14 ms | 27988 KB | Output is correct |
65 | Correct | 13 ms | 27988 KB | Output is correct |
66 | Correct | 13 ms | 27964 KB | Output is correct |
67 | Correct | 15 ms | 28884 KB | Output is correct |
68 | Correct | 15 ms | 27988 KB | Output is correct |
69 | Correct | 18 ms | 27988 KB | Output is correct |
70 | Correct | 13 ms | 28244 KB | Output is correct |
71 | Correct | 14 ms | 29524 KB | Output is correct |
72 | Correct | 13 ms | 29012 KB | Output is correct |
73 | Correct | 13 ms | 28116 KB | Output is correct |
74 | Correct | 14 ms | 28236 KB | Output is correct |
75 | Correct | 14 ms | 29444 KB | Output is correct |
76 | Correct | 14 ms | 29268 KB | Output is correct |
77 | Correct | 14 ms | 29524 KB | Output is correct |
78 | Correct | 15 ms | 29140 KB | Output is correct |
79 | Correct | 16 ms | 29524 KB | Output is correct |
80 | Correct | 16 ms | 29552 KB | Output is correct |
81 | Correct | 14 ms | 28244 KB | Output is correct |
82 | Correct | 16 ms | 29824 KB | Output is correct |
83 | Correct | 15 ms | 28116 KB | Output is correct |
84 | Correct | 17 ms | 30152 KB | Output is correct |
85 | Correct | 15 ms | 29524 KB | Output is correct |
86 | Correct | 17 ms | 30804 KB | Output is correct |
87 | Correct | 17 ms | 30540 KB | Output is correct |
88 | Correct | 16 ms | 30676 KB | Output is correct |
89 | Correct | 16 ms | 30932 KB | Output is correct |
90 | Correct | 16 ms | 30420 KB | Output is correct |
91 | Correct | 16 ms | 30480 KB | Output is correct |
92 | Correct | 17 ms | 31700 KB | Output is correct |
93 | Correct | 16 ms | 32084 KB | Output is correct |
94 | Correct | 18 ms | 31696 KB | Output is correct |
95 | Correct | 16 ms | 30548 KB | Output is correct |
96 | Correct | 17 ms | 29780 KB | Output is correct |
97 | Correct | 16 ms | 29780 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 27988 KB | Output is correct |
2 | Correct | 14 ms | 27988 KB | Output is correct |
3 | Correct | 14 ms | 27988 KB | Output is correct |
4 | Correct | 14 ms | 27988 KB | Output is correct |
5 | Correct | 15 ms | 27988 KB | Output is correct |
6 | Correct | 14 ms | 27988 KB | Output is correct |
7 | Correct | 14 ms | 27988 KB | Output is correct |
8 | Correct | 16 ms | 28884 KB | Output is correct |
9 | Correct | 15 ms | 27988 KB | Output is correct |
10 | Correct | 18 ms | 34772 KB | Output is correct |
11 | Correct | 18 ms | 28884 KB | Output is correct |
12 | Correct | 17 ms | 31312 KB | Output is correct |
13 | Correct | 16 ms | 28884 KB | Output is correct |
14 | Correct | 15 ms | 29140 KB | Output is correct |
15 | Correct | 15 ms | 29012 KB | Output is correct |
16 | Correct | 15 ms | 29140 KB | Output is correct |
17 | Correct | 14 ms | 28244 KB | Output is correct |
18 | Correct | 15 ms | 28756 KB | Output is correct |
19 | Correct | 14 ms | 28116 KB | Output is correct |
20 | Correct | 17 ms | 28092 KB | Output is correct |
21 | Correct | 15 ms | 28884 KB | Output is correct |
22 | Correct | 19 ms | 30924 KB | Output is correct |
23 | Correct | 19 ms | 30548 KB | Output is correct |
24 | Correct | 15 ms | 29140 KB | Output is correct |
25 | Correct | 15 ms | 29140 KB | Output is correct |
26 | Correct | 14 ms | 28244 KB | Output is correct |
27 | Correct | 14 ms | 28368 KB | Output is correct |
28 | Correct | 14 ms | 28740 KB | Output is correct |
29 | Correct | 14 ms | 28008 KB | Output is correct |
30 | Correct | 14 ms | 27988 KB | Output is correct |
31 | Correct | 14 ms | 27984 KB | Output is correct |
32 | Correct | 13 ms | 27988 KB | Output is correct |
33 | Correct | 14 ms | 27988 KB | Output is correct |
34 | Correct | 14 ms | 27988 KB | Output is correct |
35 | Correct | 17 ms | 27988 KB | Output is correct |
36 | Correct | 15 ms | 28000 KB | Output is correct |
37 | Correct | 13 ms | 27988 KB | Output is correct |
38 | Correct | 13 ms | 27988 KB | Output is correct |
39 | Correct | 13 ms | 27988 KB | Output is correct |
40 | Correct | 15 ms | 27988 KB | Output is correct |
41 | Correct | 14 ms | 27988 KB | Output is correct |
42 | Correct | 13 ms | 27988 KB | Output is correct |
43 | Correct | 14 ms | 27988 KB | Output is correct |
44 | Correct | 14 ms | 27988 KB | Output is correct |
45 | Correct | 13 ms | 27988 KB | Output is correct |
46 | Correct | 14 ms | 28000 KB | Output is correct |
47 | Correct | 15 ms | 28016 KB | Output is correct |
48 | Correct | 14 ms | 27988 KB | Output is correct |
49 | Correct | 15 ms | 27988 KB | Output is correct |
50 | Correct | 13 ms | 27988 KB | Output is correct |
51 | Correct | 18 ms | 28000 KB | Output is correct |
52 | Correct | 13 ms | 27992 KB | Output is correct |
53 | Correct | 15 ms | 27988 KB | Output is correct |
54 | Correct | 14 ms | 27988 KB | Output is correct |
55 | Correct | 14 ms | 27988 KB | Output is correct |
56 | Correct | 13 ms | 27988 KB | Output is correct |
57 | Correct | 12 ms | 27988 KB | Output is correct |
58 | Correct | 14 ms | 27988 KB | Output is correct |
59 | Correct | 14 ms | 27988 KB | Output is correct |
60 | Correct | 14 ms | 27988 KB | Output is correct |
61 | Correct | 13 ms | 27988 KB | Output is correct |
62 | Correct | 13 ms | 28000 KB | Output is correct |
63 | Correct | 13 ms | 28060 KB | Output is correct |
64 | Correct | 14 ms | 27988 KB | Output is correct |
65 | Correct | 13 ms | 27988 KB | Output is correct |
66 | Correct | 13 ms | 27964 KB | Output is correct |
67 | Correct | 15 ms | 28884 KB | Output is correct |
68 | Correct | 15 ms | 27988 KB | Output is correct |
69 | Correct | 18 ms | 27988 KB | Output is correct |
70 | Correct | 13 ms | 28244 KB | Output is correct |
71 | Correct | 14 ms | 29524 KB | Output is correct |
72 | Correct | 13 ms | 29012 KB | Output is correct |
73 | Correct | 13 ms | 28116 KB | Output is correct |
74 | Correct | 14 ms | 28236 KB | Output is correct |
75 | Correct | 14 ms | 29444 KB | Output is correct |
76 | Correct | 14 ms | 29268 KB | Output is correct |
77 | Correct | 14 ms | 29524 KB | Output is correct |
78 | Correct | 15 ms | 29140 KB | Output is correct |
79 | Correct | 16 ms | 29524 KB | Output is correct |
80 | Correct | 16 ms | 29552 KB | Output is correct |
81 | Correct | 14 ms | 28244 KB | Output is correct |
82 | Correct | 16 ms | 29824 KB | Output is correct |
83 | Correct | 15 ms | 28116 KB | Output is correct |
84 | Correct | 17 ms | 30152 KB | Output is correct |
85 | Correct | 15 ms | 29524 KB | Output is correct |
86 | Correct | 17 ms | 30804 KB | Output is correct |
87 | Correct | 17 ms | 30540 KB | Output is correct |
88 | Correct | 16 ms | 30676 KB | Output is correct |
89 | Correct | 16 ms | 30932 KB | Output is correct |
90 | Correct | 16 ms | 30420 KB | Output is correct |
91 | Correct | 16 ms | 30480 KB | Output is correct |
92 | Correct | 17 ms | 31700 KB | Output is correct |
93 | Correct | 16 ms | 32084 KB | Output is correct |
94 | Correct | 18 ms | 31696 KB | Output is correct |
95 | Correct | 16 ms | 30548 KB | Output is correct |
96 | Correct | 17 ms | 29780 KB | Output is correct |
97 | Correct | 16 ms | 29780 KB | Output is correct |
98 | Correct | 18 ms | 33616 KB | Output is correct |
99 | Correct | 14 ms | 27988 KB | Output is correct |
100 | Correct | 20 ms | 36308 KB | Output is correct |
101 | Correct | 16 ms | 30420 KB | Output is correct |
102 | Correct | 16 ms | 30420 KB | Output is correct |
103 | Correct | 27 ms | 44756 KB | Output is correct |
104 | Correct | 24 ms | 43348 KB | Output is correct |
105 | Correct | 35 ms | 59220 KB | Output is correct |
106 | Correct | 36 ms | 61132 KB | Output is correct |
107 | Correct | 32 ms | 55252 KB | Output is correct |
108 | Correct | 28 ms | 48780 KB | Output is correct |
109 | Correct | 22 ms | 38996 KB | Output is correct |
110 | Correct | 24 ms | 39124 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 14 ms | 27988 KB | Output is correct |
2 | Correct | 14 ms | 27988 KB | Output is correct |
3 | Correct | 14 ms | 27988 KB | Output is correct |
4 | Correct | 14 ms | 27988 KB | Output is correct |
5 | Correct | 15 ms | 27988 KB | Output is correct |
6 | Correct | 14 ms | 27988 KB | Output is correct |
7 | Correct | 14 ms | 27988 KB | Output is correct |
8 | Correct | 16 ms | 28884 KB | Output is correct |
9 | Correct | 15 ms | 27988 KB | Output is correct |
10 | Correct | 18 ms | 34772 KB | Output is correct |
11 | Correct | 18 ms | 28884 KB | Output is correct |
12 | Correct | 17 ms | 31312 KB | Output is correct |
13 | Correct | 16 ms | 28884 KB | Output is correct |
14 | Correct | 15 ms | 29140 KB | Output is correct |
15 | Correct | 15 ms | 29012 KB | Output is correct |
16 | Correct | 15 ms | 29140 KB | Output is correct |
17 | Correct | 14 ms | 28244 KB | Output is correct |
18 | Correct | 15 ms | 28756 KB | Output is correct |
19 | Correct | 14 ms | 28116 KB | Output is correct |
20 | Correct | 17 ms | 28092 KB | Output is correct |
21 | Correct | 15 ms | 28884 KB | Output is correct |
22 | Correct | 19 ms | 30924 KB | Output is correct |
23 | Correct | 19 ms | 30548 KB | Output is correct |
24 | Correct | 15 ms | 29140 KB | Output is correct |
25 | Correct | 15 ms | 29140 KB | Output is correct |
26 | Correct | 14 ms | 28244 KB | Output is correct |
27 | Correct | 14 ms | 28368 KB | Output is correct |
28 | Correct | 14 ms | 28740 KB | Output is correct |
29 | Correct | 13 ms | 27988 KB | Output is correct |
30 | Correct | 13 ms | 27988 KB | Output is correct |
31 | Correct | 13 ms | 27988 KB | Output is correct |
32 | Correct | 14 ms | 27988 KB | Output is correct |
33 | Correct | 15 ms | 29008 KB | Output is correct |
34 | Correct | 15 ms | 27988 KB | Output is correct |
35 | Correct | 14 ms | 27988 KB | Output is correct |
36 | Correct | 14 ms | 28884 KB | Output is correct |
37 | Correct | 17 ms | 33492 KB | Output is correct |
38 | Correct | 31 ms | 55764 KB | Output is correct |
39 | Correct | 11 ms | 27988 KB | Output is correct |
40 | Correct | 11 ms | 27988 KB | Output is correct |
41 | Correct | 11 ms | 27988 KB | Output is correct |
42 | Correct | 12 ms | 28000 KB | Output is correct |
43 | Correct | 16 ms | 27988 KB | Output is correct |
44 | Correct | 16 ms | 27988 KB | Output is correct |
45 | Correct | 11 ms | 27988 KB | Output is correct |
46 | Correct | 23 ms | 34900 KB | Output is correct |
47 | Correct | 21 ms | 37204 KB | Output is correct |
48 | Correct | 16 ms | 28372 KB | Output is correct |
49 | Correct | 15 ms | 28164 KB | Output is correct |
50 | Correct | 13 ms | 28244 KB | Output is correct |
51 | Correct | 14 ms | 27988 KB | Output is correct |
52 | Correct | 14 ms | 28008 KB | Output is correct |
53 | Correct | 14 ms | 27988 KB | Output is correct |
54 | Correct | 14 ms | 27984 KB | Output is correct |
55 | Correct | 13 ms | 27988 KB | Output is correct |
56 | Correct | 14 ms | 27988 KB | Output is correct |
57 | Correct | 14 ms | 27988 KB | Output is correct |
58 | Correct | 17 ms | 27988 KB | Output is correct |
59 | Correct | 15 ms | 28000 KB | Output is correct |
60 | Correct | 13 ms | 27988 KB | Output is correct |
61 | Correct | 13 ms | 27988 KB | Output is correct |
62 | Correct | 13 ms | 27988 KB | Output is correct |
63 | Correct | 15 ms | 27988 KB | Output is correct |
64 | Correct | 14 ms | 27988 KB | Output is correct |
65 | Correct | 13 ms | 27988 KB | Output is correct |
66 | Correct | 14 ms | 27988 KB | Output is correct |
67 | Correct | 14 ms | 27988 KB | Output is correct |
68 | Correct | 13 ms | 27988 KB | Output is correct |
69 | Correct | 14 ms | 28000 KB | Output is correct |
70 | Correct | 15 ms | 28016 KB | Output is correct |
71 | Correct | 14 ms | 27988 KB | Output is correct |
72 | Correct | 15 ms | 27988 KB | Output is correct |
73 | Correct | 13 ms | 27988 KB | Output is correct |
74 | Correct | 18 ms | 28000 KB | Output is correct |
75 | Correct | 13 ms | 27992 KB | Output is correct |
76 | Correct | 15 ms | 27988 KB | Output is correct |
77 | Correct | 14 ms | 27988 KB | Output is correct |
78 | Correct | 14 ms | 27988 KB | Output is correct |
79 | Correct | 13 ms | 27988 KB | Output is correct |
80 | Correct | 12 ms | 27988 KB | Output is correct |
81 | Correct | 14 ms | 27988 KB | Output is correct |
82 | Correct | 14 ms | 27988 KB | Output is correct |
83 | Correct | 14 ms | 27988 KB | Output is correct |
84 | Correct | 13 ms | 27988 KB | Output is correct |
85 | Correct | 13 ms | 28000 KB | Output is correct |
86 | Correct | 13 ms | 28060 KB | Output is correct |
87 | Correct | 14 ms | 27988 KB | Output is correct |
88 | Correct | 13 ms | 27988 KB | Output is correct |
89 | Correct | 13 ms | 27964 KB | Output is correct |
90 | Correct | 15 ms | 28884 KB | Output is correct |
91 | Correct | 15 ms | 27988 KB | Output is correct |
92 | Correct | 18 ms | 27988 KB | Output is correct |
93 | Correct | 13 ms | 28244 KB | Output is correct |
94 | Correct | 14 ms | 29524 KB | Output is correct |
95 | Correct | 13 ms | 29012 KB | Output is correct |
96 | Correct | 13 ms | 28116 KB | Output is correct |
97 | Correct | 14 ms | 28236 KB | Output is correct |
98 | Correct | 14 ms | 29444 KB | Output is correct |
99 | Correct | 14 ms | 29268 KB | Output is correct |
100 | Correct | 14 ms | 29524 KB | Output is correct |
101 | Correct | 15 ms | 29140 KB | Output is correct |
102 | Correct | 16 ms | 29524 KB | Output is correct |
103 | Correct | 16 ms | 29552 KB | Output is correct |
104 | Correct | 14 ms | 28244 KB | Output is correct |
105 | Correct | 16 ms | 29824 KB | Output is correct |
106 | Correct | 15 ms | 28116 KB | Output is correct |
107 | Correct | 17 ms | 30152 KB | Output is correct |
108 | Correct | 15 ms | 29524 KB | Output is correct |
109 | Correct | 17 ms | 30804 KB | Output is correct |
110 | Correct | 17 ms | 30540 KB | Output is correct |
111 | Correct | 16 ms | 30676 KB | Output is correct |
112 | Correct | 16 ms | 30932 KB | Output is correct |
113 | Correct | 16 ms | 30420 KB | Output is correct |
114 | Correct | 16 ms | 30480 KB | Output is correct |
115 | Correct | 17 ms | 31700 KB | Output is correct |
116 | Correct | 16 ms | 32084 KB | Output is correct |
117 | Correct | 18 ms | 31696 KB | Output is correct |
118 | Correct | 16 ms | 30548 KB | Output is correct |
119 | Correct | 17 ms | 29780 KB | Output is correct |
120 | Correct | 16 ms | 29780 KB | Output is correct |
121 | Correct | 18 ms | 33616 KB | Output is correct |
122 | Correct | 14 ms | 27988 KB | Output is correct |
123 | Correct | 20 ms | 36308 KB | Output is correct |
124 | Correct | 16 ms | 30420 KB | Output is correct |
125 | Correct | 16 ms | 30420 KB | Output is correct |
126 | Correct | 27 ms | 44756 KB | Output is correct |
127 | Correct | 24 ms | 43348 KB | Output is correct |
128 | Correct | 35 ms | 59220 KB | Output is correct |
129 | Correct | 36 ms | 61132 KB | Output is correct |
130 | Correct | 32 ms | 55252 KB | Output is correct |
131 | Correct | 28 ms | 48780 KB | Output is correct |
132 | Correct | 22 ms | 38996 KB | Output is correct |
133 | Correct | 24 ms | 39124 KB | Output is correct |
134 | Correct | 44 ms | 67736 KB | Output is correct |
135 | Correct | 19 ms | 33100 KB | Output is correct |
136 | Correct | 16 ms | 28628 KB | Output is correct |
137 | Correct | 62 ms | 94924 KB | Output is correct |
138 | Correct | 67 ms | 97060 KB | Output is correct |
139 | Correct | 146 ms | 224716 KB | Output is correct |
140 | Correct | 155 ms | 234940 KB | Output is correct |
141 | Correct | 118 ms | 186920 KB | Output is correct |
142 | Correct | 102 ms | 155340 KB | Output is correct |
143 | Correct | 55 ms | 83376 KB | Output is correct |
144 | Correct | 56 ms | 83532 KB | Output is correct |