답안 #987699

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
987699 2024-05-23T11:35:28 Z AdamGS Jelly Flavours (IOI20_jelly) C++17
100 / 100
249 ms 313700 KB
#include "jelly.h"
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
const int LIM=2e3+7, MAXX=1e4+7;
ll dppref[LIM][MAXX], dpsuf[LIM][MAXX], n;
pair<ll,ll>T[LIM];
int find_maximum_unique(int x, int y, vector<int>a, vector<int>b) {
  swap(x, y);
  n=a.size();
  rep(i, n) T[i]={a[i], b[i]};
  sort(T, T+n);
  rep(i, n) {
    rep(j, x+1) {
      dppref[i+1][j]=dppref[i][j]+T[i].st;
      if(j>=T[i].nd) dppref[i+1][j]=min(dppref[i+1][j], dppref[i][j-T[i].nd]);
    }
  }
  for(int i=n-1; i>=0; --i) {
    rep(j, x+1) {
      dpsuf[i][j]=dpsuf[i+1][j];
      if(j>=T[i].nd) dpsuf[i][j]=max(dpsuf[i][j], dpsuf[i+1][j-T[i].nd]+1);
    }
  }
  ll ans=0;
  rep(i, n+1) rep(j, x+1) if(dppref[i][j]<=y) ans=max(ans, i+dpsuf[i][x-j]);
  return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 440 KB Output is correct
4 Correct 1 ms 2652 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 2 ms 2648 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 600 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 1 ms 604 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 1 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 856 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 348 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 1 ms 604 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 1 ms 436 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 348 KB Output is correct
36 Correct 1 ms 2652 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 344 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 1 ms 344 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 1 ms 440 KB Output is correct
44 Correct 1 ms 604 KB Output is correct
45 Correct 1 ms 368 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 1 ms 604 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 1 ms 348 KB Output is correct
50 Correct 1 ms 2652 KB Output is correct
51 Correct 1 ms 604 KB Output is correct
52 Correct 1 ms 348 KB Output is correct
53 Correct 1 ms 604 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 1 ms 2652 KB Output is correct
57 Correct 1 ms 2492 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 1 ms 600 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 1 ms 2648 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 352 KB Output is correct
67 Correct 1 ms 608 KB Output is correct
68 Correct 2 ms 344 KB Output is correct
69 Correct 1 ms 608 KB Output is correct
70 Correct 1 ms 2664 KB Output is correct
71 Correct 1 ms 608 KB Output is correct
72 Correct 1 ms 352 KB Output is correct
73 Correct 1 ms 612 KB Output is correct
74 Correct 1 ms 360 KB Output is correct
75 Correct 1 ms 356 KB Output is correct
76 Correct 2 ms 2660 KB Output is correct
77 Correct 1 ms 360 KB Output is correct
78 Correct 1 ms 360 KB Output is correct
79 Correct 1 ms 360 KB Output is correct
80 Correct 1 ms 360 KB Output is correct
81 Correct 1 ms 352 KB Output is correct
82 Correct 1 ms 352 KB Output is correct
83 Correct 1 ms 356 KB Output is correct
84 Correct 1 ms 2664 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 348 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 1 ms 600 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 604 KB Output is correct
94 Correct 1 ms 348 KB Output is correct
95 Correct 1 ms 348 KB Output is correct
96 Correct 2 ms 2652 KB Output is correct
97 Correct 1 ms 348 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 348 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 1 ms 348 KB Output is correct
104 Correct 1 ms 2652 KB Output is correct
105 Correct 1 ms 348 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 600 KB Output is correct
108 Correct 1 ms 448 KB Output is correct
109 Correct 1 ms 600 KB Output is correct
110 Correct 1 ms 604 KB Output is correct
111 Correct 1 ms 604 KB Output is correct
112 Correct 1 ms 348 KB Output is correct
113 Correct 1 ms 600 KB Output is correct
114 Correct 1 ms 348 KB Output is correct
115 Correct 1 ms 348 KB Output is correct
116 Correct 1 ms 604 KB Output is correct
117 Correct 2 ms 2396 KB Output is correct
118 Correct 1 ms 348 KB Output is correct
119 Correct 1 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 440 KB Output is correct
4 Correct 1 ms 2652 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 2 ms 2648 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 600 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 1 ms 604 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 1 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 856 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 348 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 1 ms 604 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 1 ms 436 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 348 KB Output is correct
36 Correct 1 ms 2652 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 344 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 1 ms 344 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 1 ms 440 KB Output is correct
44 Correct 1 ms 604 KB Output is correct
45 Correct 1 ms 368 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 1 ms 604 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 1 ms 348 KB Output is correct
50 Correct 1 ms 2652 KB Output is correct
51 Correct 1 ms 604 KB Output is correct
52 Correct 1 ms 348 KB Output is correct
53 Correct 1 ms 604 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 1 ms 2652 KB Output is correct
57 Correct 1 ms 2492 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 1 ms 600 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 1 ms 2648 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 352 KB Output is correct
67 Correct 1 ms 608 KB Output is correct
68 Correct 2 ms 344 KB Output is correct
69 Correct 1 ms 608 KB Output is correct
70 Correct 1 ms 2664 KB Output is correct
71 Correct 1 ms 608 KB Output is correct
72 Correct 1 ms 352 KB Output is correct
73 Correct 1 ms 612 KB Output is correct
74 Correct 1 ms 360 KB Output is correct
75 Correct 1 ms 356 KB Output is correct
76 Correct 2 ms 2660 KB Output is correct
77 Correct 1 ms 360 KB Output is correct
78 Correct 1 ms 360 KB Output is correct
79 Correct 1 ms 360 KB Output is correct
80 Correct 1 ms 360 KB Output is correct
81 Correct 1 ms 352 KB Output is correct
82 Correct 1 ms 352 KB Output is correct
83 Correct 1 ms 356 KB Output is correct
84 Correct 1 ms 2664 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 348 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 1 ms 600 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 604 KB Output is correct
94 Correct 1 ms 348 KB Output is correct
95 Correct 1 ms 348 KB Output is correct
96 Correct 2 ms 2652 KB Output is correct
97 Correct 1 ms 348 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 348 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 1 ms 348 KB Output is correct
104 Correct 1 ms 2652 KB Output is correct
105 Correct 1 ms 348 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 600 KB Output is correct
108 Correct 1 ms 448 KB Output is correct
109 Correct 1 ms 600 KB Output is correct
110 Correct 1 ms 604 KB Output is correct
111 Correct 1 ms 604 KB Output is correct
112 Correct 1 ms 348 KB Output is correct
113 Correct 1 ms 600 KB Output is correct
114 Correct 1 ms 348 KB Output is correct
115 Correct 1 ms 348 KB Output is correct
116 Correct 1 ms 604 KB Output is correct
117 Correct 2 ms 2396 KB Output is correct
118 Correct 1 ms 348 KB Output is correct
119 Correct 1 ms 348 KB Output is correct
120 Correct 1 ms 1884 KB Output is correct
121 Correct 4 ms 10688 KB Output is correct
122 Correct 2 ms 3420 KB Output is correct
123 Correct 3 ms 3164 KB Output is correct
124 Correct 4 ms 10844 KB Output is correct
125 Correct 4 ms 10596 KB Output is correct
126 Correct 3 ms 10840 KB Output is correct
127 Correct 3 ms 10840 KB Output is correct
128 Correct 3 ms 10844 KB Output is correct
129 Correct 3 ms 10588 KB Output is correct
130 Correct 3 ms 3160 KB Output is correct
131 Correct 2 ms 7772 KB Output is correct
132 Correct 3 ms 7204 KB Output is correct
133 Correct 2 ms 3420 KB Output is correct
134 Correct 3 ms 7004 KB Output is correct
135 Correct 3 ms 6752 KB Output is correct
136 Correct 2 ms 2152 KB Output is correct
137 Correct 2 ms 5980 KB Output is correct
138 Correct 1 ms 2240 KB Output is correct
139 Correct 2 ms 1884 KB Output is correct
140 Correct 1 ms 1884 KB Output is correct
141 Correct 3 ms 3176 KB Output is correct
142 Correct 3 ms 3416 KB Output is correct
143 Correct 2 ms 3160 KB Output is correct
144 Correct 2 ms 3420 KB Output is correct
145 Correct 3 ms 7004 KB Output is correct
146 Correct 3 ms 7004 KB Output is correct
147 Correct 3 ms 7004 KB Output is correct
148 Correct 3 ms 7004 KB Output is correct
149 Correct 3 ms 7004 KB Output is correct
150 Correct 3 ms 6748 KB Output is correct
151 Correct 2 ms 5724 KB Output is correct
152 Correct 3 ms 6836 KB Output is correct
153 Correct 4 ms 7260 KB Output is correct
154 Correct 3 ms 7000 KB Output is correct
155 Correct 2 ms 6748 KB Output is correct
156 Correct 2 ms 5980 KB Output is correct
157 Correct 2 ms 5980 KB Output is correct
158 Correct 2 ms 5976 KB Output is correct
159 Correct 2 ms 5976 KB Output is correct
160 Correct 2 ms 5724 KB Output is correct
161 Correct 3 ms 7004 KB Output is correct
162 Correct 3 ms 7004 KB Output is correct
163 Correct 3 ms 6748 KB Output is correct
164 Correct 3 ms 7004 KB Output is correct
165 Correct 3 ms 7000 KB Output is correct
166 Correct 2 ms 7004 KB Output is correct
167 Correct 3 ms 7004 KB Output is correct
168 Correct 3 ms 7004 KB Output is correct
169 Correct 3 ms 7004 KB Output is correct
170 Correct 2 ms 6744 KB Output is correct
171 Correct 2 ms 5724 KB Output is correct
172 Correct 2 ms 7004 KB Output is correct
173 Correct 3 ms 7260 KB Output is correct
174 Correct 3 ms 7000 KB Output is correct
175 Correct 3 ms 6744 KB Output is correct
176 Correct 2 ms 5976 KB Output is correct
177 Correct 3 ms 5980 KB Output is correct
178 Correct 2 ms 5980 KB Output is correct
179 Correct 2 ms 5724 KB Output is correct
180 Correct 2 ms 5976 KB Output is correct
181 Correct 3 ms 6992 KB Output is correct
182 Correct 3 ms 7000 KB Output is correct
183 Correct 2 ms 6748 KB Output is correct
184 Correct 3 ms 7256 KB Output is correct
185 Correct 3 ms 7004 KB Output is correct
186 Correct 3 ms 7004 KB Output is correct
187 Correct 3 ms 7000 KB Output is correct
188 Correct 2 ms 7004 KB Output is correct
189 Correct 3 ms 7000 KB Output is correct
190 Correct 3 ms 6744 KB Output is correct
191 Correct 2 ms 5724 KB Output is correct
192 Correct 3 ms 7004 KB Output is correct
193 Correct 3 ms 7260 KB Output is correct
194 Correct 3 ms 7004 KB Output is correct
195 Correct 2 ms 6748 KB Output is correct
196 Correct 2 ms 5980 KB Output is correct
197 Correct 2 ms 5980 KB Output is correct
198 Correct 2 ms 5980 KB Output is correct
199 Correct 2 ms 5724 KB Output is correct
200 Correct 2 ms 5724 KB Output is correct
201 Correct 2 ms 6936 KB Output is correct
202 Correct 2 ms 7004 KB Output is correct
203 Correct 3 ms 6748 KB Output is correct
204 Correct 3 ms 7004 KB Output is correct
205 Correct 3 ms 7004 KB Output is correct
206 Correct 3 ms 7004 KB Output is correct
207 Correct 3 ms 7004 KB Output is correct
208 Correct 3 ms 7000 KB Output is correct
209 Correct 3 ms 7004 KB Output is correct
210 Correct 4 ms 6748 KB Output is correct
211 Correct 2 ms 5724 KB Output is correct
212 Correct 2 ms 7004 KB Output is correct
213 Correct 2 ms 7260 KB Output is correct
214 Correct 3 ms 7004 KB Output is correct
215 Correct 2 ms 6748 KB Output is correct
216 Correct 2 ms 5976 KB Output is correct
217 Correct 2 ms 5980 KB Output is correct
218 Correct 2 ms 5980 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 20572 KB Output is correct
2 Correct 11 ms 20572 KB Output is correct
3 Correct 8 ms 20824 KB Output is correct
4 Correct 9 ms 20316 KB Output is correct
5 Correct 9 ms 20316 KB Output is correct
6 Correct 9 ms 20568 KB Output is correct
7 Correct 9 ms 20572 KB Output is correct
8 Correct 9 ms 20316 KB Output is correct
9 Correct 10 ms 20828 KB Output is correct
10 Correct 11 ms 20572 KB Output is correct
11 Correct 10 ms 20828 KB Output is correct
12 Correct 10 ms 20572 KB Output is correct
13 Correct 10 ms 20312 KB Output is correct
14 Correct 10 ms 20316 KB Output is correct
15 Correct 9 ms 20572 KB Output is correct
16 Correct 8 ms 20572 KB Output is correct
17 Correct 10 ms 20572 KB Output is correct
18 Correct 10 ms 20312 KB Output is correct
19 Correct 8 ms 20572 KB Output is correct
20 Correct 9 ms 20316 KB Output is correct
21 Correct 9 ms 20824 KB Output is correct
22 Correct 9 ms 20572 KB Output is correct
23 Correct 9 ms 20572 KB Output is correct
24 Correct 9 ms 20156 KB Output is correct
25 Correct 10 ms 20156 KB Output is correct
26 Correct 8 ms 20576 KB Output is correct
27 Correct 10 ms 20576 KB Output is correct
28 Correct 9 ms 20312 KB Output is correct
29 Correct 11 ms 20828 KB Output is correct
30 Correct 12 ms 20724 KB Output is correct
31 Correct 9 ms 21076 KB Output is correct
32 Correct 9 ms 20572 KB Output is correct
33 Correct 9 ms 20316 KB Output is correct
34 Correct 11 ms 20316 KB Output is correct
35 Correct 12 ms 20756 KB Output is correct
36 Correct 9 ms 20572 KB Output is correct
37 Correct 9 ms 20312 KB Output is correct
38 Correct 9 ms 20312 KB Output is correct
39 Correct 10 ms 20572 KB Output is correct
40 Correct 9 ms 20316 KB Output is correct
41 Correct 10 ms 20568 KB Output is correct
42 Correct 9 ms 20568 KB Output is correct
43 Correct 9 ms 20572 KB Output is correct
44 Correct 9 ms 20316 KB Output is correct
45 Correct 11 ms 20312 KB Output is correct
46 Correct 9 ms 20572 KB Output is correct
47 Correct 11 ms 20572 KB Output is correct
48 Correct 9 ms 20316 KB Output is correct
49 Correct 10 ms 20828 KB Output is correct
50 Correct 10 ms 20572 KB Output is correct
51 Correct 9 ms 20828 KB Output is correct
52 Correct 9 ms 20572 KB Output is correct
53 Correct 9 ms 20312 KB Output is correct
54 Correct 9 ms 20316 KB Output is correct
55 Correct 9 ms 20572 KB Output is correct
56 Correct 9 ms 20572 KB Output is correct
57 Correct 9 ms 20316 KB Output is correct
58 Correct 10 ms 20316 KB Output is correct
59 Correct 11 ms 20576 KB Output is correct
60 Correct 8 ms 20316 KB Output is correct
61 Correct 9 ms 20572 KB Output is correct
62 Correct 9 ms 20572 KB Output is correct
63 Correct 10 ms 20572 KB Output is correct
64 Correct 9 ms 20316 KB Output is correct
65 Correct 9 ms 20316 KB Output is correct
66 Correct 10 ms 20572 KB Output is correct
67 Correct 9 ms 20568 KB Output is correct
68 Correct 10 ms 20312 KB Output is correct
69 Correct 10 ms 20828 KB Output is correct
70 Correct 9 ms 20572 KB Output is correct
71 Correct 9 ms 20828 KB Output is correct
72 Correct 9 ms 20572 KB Output is correct
73 Correct 8 ms 20312 KB Output is correct
74 Correct 11 ms 20572 KB Output is correct
75 Correct 13 ms 20572 KB Output is correct
76 Correct 10 ms 20568 KB Output is correct
77 Correct 9 ms 20316 KB Output is correct
78 Correct 9 ms 20316 KB Output is correct
79 Correct 8 ms 20316 KB Output is correct
80 Correct 9 ms 20360 KB Output is correct
81 Correct 9 ms 20572 KB Output is correct
82 Correct 9 ms 20572 KB Output is correct
83 Correct 11 ms 20568 KB Output is correct
84 Correct 8 ms 20312 KB Output is correct
85 Correct 9 ms 20312 KB Output is correct
86 Correct 8 ms 20572 KB Output is correct
87 Correct 8 ms 20568 KB Output is correct
88 Correct 12 ms 20316 KB Output is correct
89 Correct 10 ms 20828 KB Output is correct
90 Correct 10 ms 20568 KB Output is correct
91 Correct 11 ms 20828 KB Output is correct
92 Correct 11 ms 20612 KB Output is correct
93 Correct 8 ms 20316 KB Output is correct
94 Correct 9 ms 20316 KB Output is correct
95 Correct 8 ms 20416 KB Output is correct
96 Correct 9 ms 20572 KB Output is correct
97 Correct 8 ms 20316 KB Output is correct
98 Correct 9 ms 20316 KB Output is correct
99 Correct 10 ms 20572 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 36 ms 61288 KB Output is correct
2 Correct 179 ms 311124 KB Output is correct
3 Correct 154 ms 297228 KB Output is correct
4 Correct 172 ms 298880 KB Output is correct
5 Correct 197 ms 310100 KB Output is correct
6 Correct 171 ms 298628 KB Output is correct
7 Correct 200 ms 308560 KB Output is correct
8 Correct 168 ms 300116 KB Output is correct
9 Correct 164 ms 286392 KB Output is correct
10 Correct 191 ms 304272 KB Output is correct
11 Correct 172 ms 306096 KB Output is correct
12 Correct 9 ms 20056 KB Output is correct
13 Correct 173 ms 304264 KB Output is correct
14 Correct 187 ms 304588 KB Output is correct
15 Correct 207 ms 305748 KB Output is correct
16 Correct 186 ms 301904 KB Output is correct
17 Correct 11 ms 22616 KB Output is correct
18 Correct 42 ms 66440 KB Output is correct
19 Correct 27 ms 45144 KB Output is correct
20 Correct 13 ms 24924 KB Output is correct
21 Correct 34 ms 61272 KB Output is correct
22 Correct 176 ms 310924 KB Output is correct
23 Correct 167 ms 297332 KB Output is correct
24 Correct 182 ms 298944 KB Output is correct
25 Correct 176 ms 310100 KB Output is correct
26 Correct 184 ms 298576 KB Output is correct
27 Correct 176 ms 308352 KB Output is correct
28 Correct 155 ms 300116 KB Output is correct
29 Correct 170 ms 286544 KB Output is correct
30 Correct 183 ms 304108 KB Output is correct
31 Correct 174 ms 306128 KB Output is correct
32 Correct 9 ms 22108 KB Output is correct
33 Correct 175 ms 304540 KB Output is correct
34 Correct 181 ms 304376 KB Output is correct
35 Correct 209 ms 305744 KB Output is correct
36 Correct 170 ms 301904 KB Output is correct
37 Correct 11 ms 24408 KB Output is correct
38 Correct 42 ms 67920 KB Output is correct
39 Correct 27 ms 45144 KB Output is correct
40 Correct 13 ms 26716 KB Output is correct
41 Correct 34 ms 62920 KB Output is correct
42 Correct 180 ms 311120 KB Output is correct
43 Correct 187 ms 297616 KB Output is correct
44 Correct 241 ms 299124 KB Output is correct
45 Correct 187 ms 310096 KB Output is correct
46 Correct 179 ms 298716 KB Output is correct
47 Correct 175 ms 308252 KB Output is correct
48 Correct 186 ms 300068 KB Output is correct
49 Correct 173 ms 286604 KB Output is correct
50 Correct 171 ms 304208 KB Output is correct
51 Correct 182 ms 306256 KB Output is correct
52 Correct 8 ms 22360 KB Output is correct
53 Correct 173 ms 304212 KB Output is correct
54 Correct 185 ms 304344 KB Output is correct
55 Correct 184 ms 305764 KB Output is correct
56 Correct 192 ms 302164 KB Output is correct
57 Correct 13 ms 24412 KB Output is correct
58 Correct 39 ms 67924 KB Output is correct
59 Correct 28 ms 46940 KB Output is correct
60 Correct 13 ms 26716 KB Output is correct
61 Correct 36 ms 62812 KB Output is correct
62 Correct 196 ms 311120 KB Output is correct
63 Correct 165 ms 297348 KB Output is correct
64 Correct 179 ms 299028 KB Output is correct
65 Correct 174 ms 310060 KB Output is correct
66 Correct 174 ms 298580 KB Output is correct
67 Correct 173 ms 308308 KB Output is correct
68 Correct 168 ms 300264 KB Output is correct
69 Correct 170 ms 286548 KB Output is correct
70 Correct 184 ms 304244 KB Output is correct
71 Correct 172 ms 306480 KB Output is correct
72 Correct 9 ms 20060 KB Output is correct
73 Correct 173 ms 304152 KB Output is correct
74 Correct 183 ms 304212 KB Output is correct
75 Correct 183 ms 305808 KB Output is correct
76 Correct 156 ms 301900 KB Output is correct
77 Correct 11 ms 22616 KB Output is correct
78 Correct 41 ms 66452 KB Output is correct
79 Correct 33 ms 45140 KB Output is correct
80 Correct 13 ms 24924 KB Output is correct
81 Correct 37 ms 61288 KB Output is correct
82 Correct 182 ms 311116 KB Output is correct
83 Correct 176 ms 297652 KB Output is correct
84 Correct 173 ms 298900 KB Output is correct
85 Correct 189 ms 310096 KB Output is correct
86 Correct 175 ms 298828 KB Output is correct
87 Correct 178 ms 308268 KB Output is correct
88 Correct 168 ms 300112 KB Output is correct
89 Correct 170 ms 286448 KB Output is correct
90 Correct 183 ms 304216 KB Output is correct
91 Correct 178 ms 306256 KB Output is correct
92 Correct 8 ms 20060 KB Output is correct
93 Correct 171 ms 304052 KB Output is correct
94 Correct 183 ms 304208 KB Output is correct
95 Correct 181 ms 305748 KB Output is correct
96 Correct 158 ms 301672 KB Output is correct
97 Correct 11 ms 22620 KB Output is correct
98 Correct 41 ms 66396 KB Output is correct
99 Correct 28 ms 45148 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 30 ms 53084 KB Output is correct
2 Correct 162 ms 288612 KB Output is correct
3 Correct 166 ms 295632 KB Output is correct
4 Correct 187 ms 304724 KB Output is correct
5 Correct 182 ms 298340 KB Output is correct
6 Correct 187 ms 307400 KB Output is correct
7 Correct 179 ms 311116 KB Output is correct
8 Correct 177 ms 299784 KB Output is correct
9 Correct 184 ms 302416 KB Output is correct
10 Correct 197 ms 312400 KB Output is correct
11 Correct 178 ms 298588 KB Output is correct
12 Correct 9 ms 20568 KB Output is correct
13 Correct 173 ms 300372 KB Output is correct
14 Correct 179 ms 308816 KB Output is correct
15 Correct 184 ms 294348 KB Output is correct
16 Correct 169 ms 286032 KB Output is correct
17 Correct 50 ms 77904 KB Output is correct
18 Correct 54 ms 78724 KB Output is correct
19 Correct 12 ms 23128 KB Output is correct
20 Correct 10 ms 20316 KB Output is correct
21 Correct 33 ms 49744 KB Output is correct
22 Correct 170 ms 288308 KB Output is correct
23 Correct 173 ms 295632 KB Output is correct
24 Correct 186 ms 304616 KB Output is correct
25 Correct 174 ms 298320 KB Output is correct
26 Correct 175 ms 307756 KB Output is correct
27 Correct 167 ms 311120 KB Output is correct
28 Correct 173 ms 299520 KB Output is correct
29 Correct 194 ms 302560 KB Output is correct
30 Correct 184 ms 312408 KB Output is correct
31 Correct 179 ms 298576 KB Output is correct
32 Correct 9 ms 16676 KB Output is correct
33 Correct 167 ms 300356 KB Output is correct
34 Correct 180 ms 308816 KB Output is correct
35 Correct 187 ms 294228 KB Output is correct
36 Correct 173 ms 285776 KB Output is correct
37 Correct 49 ms 74872 KB Output is correct
38 Correct 50 ms 75600 KB Output is correct
39 Correct 11 ms 19288 KB Output is correct
40 Correct 9 ms 18264 KB Output is correct
41 Correct 34 ms 49756 KB Output is correct
42 Correct 182 ms 288340 KB Output is correct
43 Correct 173 ms 295508 KB Output is correct
44 Correct 178 ms 304468 KB Output is correct
45 Correct 179 ms 298152 KB Output is correct
46 Correct 165 ms 307416 KB Output is correct
47 Correct 195 ms 311376 KB Output is correct
48 Correct 183 ms 299384 KB Output is correct
49 Correct 186 ms 302164 KB Output is correct
50 Correct 200 ms 312348 KB Output is correct
51 Correct 180 ms 298580 KB Output is correct
52 Correct 8 ms 16476 KB Output is correct
53 Correct 181 ms 300512 KB Output is correct
54 Correct 199 ms 308944 KB Output is correct
55 Correct 169 ms 294224 KB Output is correct
56 Correct 172 ms 285776 KB Output is correct
57 Correct 44 ms 74832 KB Output is correct
58 Correct 49 ms 75604 KB Output is correct
59 Correct 12 ms 19292 KB Output is correct
60 Correct 11 ms 18232 KB Output is correct
61 Correct 33 ms 49756 KB Output is correct
62 Correct 171 ms 288400 KB Output is correct
63 Correct 173 ms 295456 KB Output is correct
64 Correct 249 ms 304580 KB Output is correct
65 Correct 174 ms 298068 KB Output is correct
66 Correct 193 ms 307512 KB Output is correct
67 Correct 183 ms 311124 KB Output is correct
68 Correct 185 ms 299536 KB Output is correct
69 Correct 187 ms 302164 KB Output is correct
70 Correct 181 ms 312408 KB Output is correct
71 Correct 165 ms 298576 KB Output is correct
72 Correct 8 ms 16472 KB Output is correct
73 Correct 172 ms 300452 KB Output is correct
74 Correct 198 ms 308872 KB Output is correct
75 Correct 187 ms 294108 KB Output is correct
76 Correct 171 ms 285780 KB Output is correct
77 Correct 53 ms 74836 KB Output is correct
78 Correct 42 ms 75604 KB Output is correct
79 Correct 11 ms 19288 KB Output is correct
80 Correct 11 ms 18268 KB Output is correct
81 Correct 30 ms 49756 KB Output is correct
82 Correct 170 ms 288412 KB Output is correct
83 Correct 173 ms 295588 KB Output is correct
84 Correct 197 ms 304724 KB Output is correct
85 Correct 173 ms 298072 KB Output is correct
86 Correct 182 ms 307540 KB Output is correct
87 Correct 179 ms 311120 KB Output is correct
88 Correct 177 ms 299344 KB Output is correct
89 Correct 172 ms 302168 KB Output is correct
90 Correct 189 ms 312664 KB Output is correct
91 Correct 164 ms 298488 KB Output is correct
92 Correct 10 ms 16472 KB Output is correct
93 Correct 178 ms 300448 KB Output is correct
94 Correct 192 ms 308804 KB Output is correct
95 Correct 182 ms 294192 KB Output is correct
96 Correct 160 ms 285888 KB Output is correct
97 Correct 43 ms 74832 KB Output is correct
98 Correct 59 ms 75608 KB Output is correct
99 Correct 12 ms 19288 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 1 ms 440 KB Output is correct
4 Correct 1 ms 2652 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 604 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 2 ms 2648 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 1 ms 600 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 1 ms 604 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 1 ms 604 KB Output is correct
19 Correct 1 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 604 KB Output is correct
22 Correct 1 ms 856 KB Output is correct
23 Correct 1 ms 604 KB Output is correct
24 Correct 1 ms 348 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 1 ms 348 KB Output is correct
28 Correct 1 ms 604 KB Output is correct
29 Correct 1 ms 348 KB Output is correct
30 Correct 1 ms 348 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 1 ms 436 KB Output is correct
34 Correct 1 ms 348 KB Output is correct
35 Correct 1 ms 348 KB Output is correct
36 Correct 1 ms 2652 KB Output is correct
37 Correct 1 ms 2396 KB Output is correct
38 Correct 1 ms 344 KB Output is correct
39 Correct 1 ms 348 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 1 ms 344 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 1 ms 440 KB Output is correct
44 Correct 1 ms 604 KB Output is correct
45 Correct 1 ms 368 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 1 ms 604 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 1 ms 348 KB Output is correct
50 Correct 1 ms 2652 KB Output is correct
51 Correct 1 ms 604 KB Output is correct
52 Correct 1 ms 348 KB Output is correct
53 Correct 1 ms 604 KB Output is correct
54 Correct 1 ms 344 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 1 ms 2652 KB Output is correct
57 Correct 1 ms 2492 KB Output is correct
58 Correct 1 ms 348 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 1 ms 600 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 1 ms 2648 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 352 KB Output is correct
67 Correct 1 ms 608 KB Output is correct
68 Correct 2 ms 344 KB Output is correct
69 Correct 1 ms 608 KB Output is correct
70 Correct 1 ms 2664 KB Output is correct
71 Correct 1 ms 608 KB Output is correct
72 Correct 1 ms 352 KB Output is correct
73 Correct 1 ms 612 KB Output is correct
74 Correct 1 ms 360 KB Output is correct
75 Correct 1 ms 356 KB Output is correct
76 Correct 2 ms 2660 KB Output is correct
77 Correct 1 ms 360 KB Output is correct
78 Correct 1 ms 360 KB Output is correct
79 Correct 1 ms 360 KB Output is correct
80 Correct 1 ms 360 KB Output is correct
81 Correct 1 ms 352 KB Output is correct
82 Correct 1 ms 352 KB Output is correct
83 Correct 1 ms 356 KB Output is correct
84 Correct 1 ms 2664 KB Output is correct
85 Correct 1 ms 348 KB Output is correct
86 Correct 1 ms 348 KB Output is correct
87 Correct 1 ms 604 KB Output is correct
88 Correct 1 ms 348 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 1 ms 604 KB Output is correct
91 Correct 1 ms 600 KB Output is correct
92 Correct 1 ms 348 KB Output is correct
93 Correct 1 ms 604 KB Output is correct
94 Correct 1 ms 348 KB Output is correct
95 Correct 1 ms 348 KB Output is correct
96 Correct 2 ms 2652 KB Output is correct
97 Correct 1 ms 348 KB Output is correct
98 Correct 1 ms 348 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 348 KB Output is correct
101 Correct 1 ms 348 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 1 ms 348 KB Output is correct
104 Correct 1 ms 2652 KB Output is correct
105 Correct 1 ms 348 KB Output is correct
106 Correct 1 ms 348 KB Output is correct
107 Correct 1 ms 600 KB Output is correct
108 Correct 1 ms 448 KB Output is correct
109 Correct 1 ms 600 KB Output is correct
110 Correct 1 ms 604 KB Output is correct
111 Correct 1 ms 604 KB Output is correct
112 Correct 1 ms 348 KB Output is correct
113 Correct 1 ms 600 KB Output is correct
114 Correct 1 ms 348 KB Output is correct
115 Correct 1 ms 348 KB Output is correct
116 Correct 1 ms 604 KB Output is correct
117 Correct 2 ms 2396 KB Output is correct
118 Correct 1 ms 348 KB Output is correct
119 Correct 1 ms 348 KB Output is correct
120 Correct 1 ms 1884 KB Output is correct
121 Correct 4 ms 10688 KB Output is correct
122 Correct 2 ms 3420 KB Output is correct
123 Correct 3 ms 3164 KB Output is correct
124 Correct 4 ms 10844 KB Output is correct
125 Correct 4 ms 10596 KB Output is correct
126 Correct 3 ms 10840 KB Output is correct
127 Correct 3 ms 10840 KB Output is correct
128 Correct 3 ms 10844 KB Output is correct
129 Correct 3 ms 10588 KB Output is correct
130 Correct 3 ms 3160 KB Output is correct
131 Correct 2 ms 7772 KB Output is correct
132 Correct 3 ms 7204 KB Output is correct
133 Correct 2 ms 3420 KB Output is correct
134 Correct 3 ms 7004 KB Output is correct
135 Correct 3 ms 6752 KB Output is correct
136 Correct 2 ms 2152 KB Output is correct
137 Correct 2 ms 5980 KB Output is correct
138 Correct 1 ms 2240 KB Output is correct
139 Correct 2 ms 1884 KB Output is correct
140 Correct 1 ms 1884 KB Output is correct
141 Correct 3 ms 3176 KB Output is correct
142 Correct 3 ms 3416 KB Output is correct
143 Correct 2 ms 3160 KB Output is correct
144 Correct 2 ms 3420 KB Output is correct
145 Correct 3 ms 7004 KB Output is correct
146 Correct 3 ms 7004 KB Output is correct
147 Correct 3 ms 7004 KB Output is correct
148 Correct 3 ms 7004 KB Output is correct
149 Correct 3 ms 7004 KB Output is correct
150 Correct 3 ms 6748 KB Output is correct
151 Correct 2 ms 5724 KB Output is correct
152 Correct 3 ms 6836 KB Output is correct
153 Correct 4 ms 7260 KB Output is correct
154 Correct 3 ms 7000 KB Output is correct
155 Correct 2 ms 6748 KB Output is correct
156 Correct 2 ms 5980 KB Output is correct
157 Correct 2 ms 5980 KB Output is correct
158 Correct 2 ms 5976 KB Output is correct
159 Correct 2 ms 5976 KB Output is correct
160 Correct 2 ms 5724 KB Output is correct
161 Correct 3 ms 7004 KB Output is correct
162 Correct 3 ms 7004 KB Output is correct
163 Correct 3 ms 6748 KB Output is correct
164 Correct 3 ms 7004 KB Output is correct
165 Correct 3 ms 7000 KB Output is correct
166 Correct 2 ms 7004 KB Output is correct
167 Correct 3 ms 7004 KB Output is correct
168 Correct 3 ms 7004 KB Output is correct
169 Correct 3 ms 7004 KB Output is correct
170 Correct 2 ms 6744 KB Output is correct
171 Correct 2 ms 5724 KB Output is correct
172 Correct 2 ms 7004 KB Output is correct
173 Correct 3 ms 7260 KB Output is correct
174 Correct 3 ms 7000 KB Output is correct
175 Correct 3 ms 6744 KB Output is correct
176 Correct 2 ms 5976 KB Output is correct
177 Correct 3 ms 5980 KB Output is correct
178 Correct 2 ms 5980 KB Output is correct
179 Correct 2 ms 5724 KB Output is correct
180 Correct 2 ms 5976 KB Output is correct
181 Correct 3 ms 6992 KB Output is correct
182 Correct 3 ms 7000 KB Output is correct
183 Correct 2 ms 6748 KB Output is correct
184 Correct 3 ms 7256 KB Output is correct
185 Correct 3 ms 7004 KB Output is correct
186 Correct 3 ms 7004 KB Output is correct
187 Correct 3 ms 7000 KB Output is correct
188 Correct 2 ms 7004 KB Output is correct
189 Correct 3 ms 7000 KB Output is correct
190 Correct 3 ms 6744 KB Output is correct
191 Correct 2 ms 5724 KB Output is correct
192 Correct 3 ms 7004 KB Output is correct
193 Correct 3 ms 7260 KB Output is correct
194 Correct 3 ms 7004 KB Output is correct
195 Correct 2 ms 6748 KB Output is correct
196 Correct 2 ms 5980 KB Output is correct
197 Correct 2 ms 5980 KB Output is correct
198 Correct 2 ms 5980 KB Output is correct
199 Correct 2 ms 5724 KB Output is correct
200 Correct 2 ms 5724 KB Output is correct
201 Correct 2 ms 6936 KB Output is correct
202 Correct 2 ms 7004 KB Output is correct
203 Correct 3 ms 6748 KB Output is correct
204 Correct 3 ms 7004 KB Output is correct
205 Correct 3 ms 7004 KB Output is correct
206 Correct 3 ms 7004 KB Output is correct
207 Correct 3 ms 7004 KB Output is correct
208 Correct 3 ms 7000 KB Output is correct
209 Correct 3 ms 7004 KB Output is correct
210 Correct 4 ms 6748 KB Output is correct
211 Correct 2 ms 5724 KB Output is correct
212 Correct 2 ms 7004 KB Output is correct
213 Correct 2 ms 7260 KB Output is correct
214 Correct 3 ms 7004 KB Output is correct
215 Correct 2 ms 6748 KB Output is correct
216 Correct 2 ms 5976 KB Output is correct
217 Correct 2 ms 5980 KB Output is correct
218 Correct 2 ms 5980 KB Output is correct
219 Correct 9 ms 20572 KB Output is correct
220 Correct 11 ms 20572 KB Output is correct
221 Correct 8 ms 20824 KB Output is correct
222 Correct 9 ms 20316 KB Output is correct
223 Correct 9 ms 20316 KB Output is correct
224 Correct 9 ms 20568 KB Output is correct
225 Correct 9 ms 20572 KB Output is correct
226 Correct 9 ms 20316 KB Output is correct
227 Correct 10 ms 20828 KB Output is correct
228 Correct 11 ms 20572 KB Output is correct
229 Correct 10 ms 20828 KB Output is correct
230 Correct 10 ms 20572 KB Output is correct
231 Correct 10 ms 20312 KB Output is correct
232 Correct 10 ms 20316 KB Output is correct
233 Correct 9 ms 20572 KB Output is correct
234 Correct 8 ms 20572 KB Output is correct
235 Correct 10 ms 20572 KB Output is correct
236 Correct 10 ms 20312 KB Output is correct
237 Correct 8 ms 20572 KB Output is correct
238 Correct 9 ms 20316 KB Output is correct
239 Correct 9 ms 20824 KB Output is correct
240 Correct 9 ms 20572 KB Output is correct
241 Correct 9 ms 20572 KB Output is correct
242 Correct 9 ms 20156 KB Output is correct
243 Correct 10 ms 20156 KB Output is correct
244 Correct 8 ms 20576 KB Output is correct
245 Correct 10 ms 20576 KB Output is correct
246 Correct 9 ms 20312 KB Output is correct
247 Correct 11 ms 20828 KB Output is correct
248 Correct 12 ms 20724 KB Output is correct
249 Correct 9 ms 21076 KB Output is correct
250 Correct 9 ms 20572 KB Output is correct
251 Correct 9 ms 20316 KB Output is correct
252 Correct 11 ms 20316 KB Output is correct
253 Correct 12 ms 20756 KB Output is correct
254 Correct 9 ms 20572 KB Output is correct
255 Correct 9 ms 20312 KB Output is correct
256 Correct 9 ms 20312 KB Output is correct
257 Correct 10 ms 20572 KB Output is correct
258 Correct 9 ms 20316 KB Output is correct
259 Correct 10 ms 20568 KB Output is correct
260 Correct 9 ms 20568 KB Output is correct
261 Correct 9 ms 20572 KB Output is correct
262 Correct 9 ms 20316 KB Output is correct
263 Correct 11 ms 20312 KB Output is correct
264 Correct 9 ms 20572 KB Output is correct
265 Correct 11 ms 20572 KB Output is correct
266 Correct 9 ms 20316 KB Output is correct
267 Correct 10 ms 20828 KB Output is correct
268 Correct 10 ms 20572 KB Output is correct
269 Correct 9 ms 20828 KB Output is correct
270 Correct 9 ms 20572 KB Output is correct
271 Correct 9 ms 20312 KB Output is correct
272 Correct 9 ms 20316 KB Output is correct
273 Correct 9 ms 20572 KB Output is correct
274 Correct 9 ms 20572 KB Output is correct
275 Correct 9 ms 20316 KB Output is correct
276 Correct 10 ms 20316 KB Output is correct
277 Correct 11 ms 20576 KB Output is correct
278 Correct 8 ms 20316 KB Output is correct
279 Correct 9 ms 20572 KB Output is correct
280 Correct 9 ms 20572 KB Output is correct
281 Correct 10 ms 20572 KB Output is correct
282 Correct 9 ms 20316 KB Output is correct
283 Correct 9 ms 20316 KB Output is correct
284 Correct 10 ms 20572 KB Output is correct
285 Correct 9 ms 20568 KB Output is correct
286 Correct 10 ms 20312 KB Output is correct
287 Correct 10 ms 20828 KB Output is correct
288 Correct 9 ms 20572 KB Output is correct
289 Correct 9 ms 20828 KB Output is correct
290 Correct 9 ms 20572 KB Output is correct
291 Correct 8 ms 20312 KB Output is correct
292 Correct 11 ms 20572 KB Output is correct
293 Correct 13 ms 20572 KB Output is correct
294 Correct 10 ms 20568 KB Output is correct
295 Correct 9 ms 20316 KB Output is correct
296 Correct 9 ms 20316 KB Output is correct
297 Correct 8 ms 20316 KB Output is correct
298 Correct 9 ms 20360 KB Output is correct
299 Correct 9 ms 20572 KB Output is correct
300 Correct 9 ms 20572 KB Output is correct
301 Correct 11 ms 20568 KB Output is correct
302 Correct 8 ms 20312 KB Output is correct
303 Correct 9 ms 20312 KB Output is correct
304 Correct 8 ms 20572 KB Output is correct
305 Correct 8 ms 20568 KB Output is correct
306 Correct 12 ms 20316 KB Output is correct
307 Correct 10 ms 20828 KB Output is correct
308 Correct 10 ms 20568 KB Output is correct
309 Correct 11 ms 20828 KB Output is correct
310 Correct 11 ms 20612 KB Output is correct
311 Correct 8 ms 20316 KB Output is correct
312 Correct 9 ms 20316 KB Output is correct
313 Correct 8 ms 20416 KB Output is correct
314 Correct 9 ms 20572 KB Output is correct
315 Correct 8 ms 20316 KB Output is correct
316 Correct 9 ms 20316 KB Output is correct
317 Correct 10 ms 20572 KB Output is correct
318 Correct 36 ms 61288 KB Output is correct
319 Correct 179 ms 311124 KB Output is correct
320 Correct 154 ms 297228 KB Output is correct
321 Correct 172 ms 298880 KB Output is correct
322 Correct 197 ms 310100 KB Output is correct
323 Correct 171 ms 298628 KB Output is correct
324 Correct 200 ms 308560 KB Output is correct
325 Correct 168 ms 300116 KB Output is correct
326 Correct 164 ms 286392 KB Output is correct
327 Correct 191 ms 304272 KB Output is correct
328 Correct 172 ms 306096 KB Output is correct
329 Correct 9 ms 20056 KB Output is correct
330 Correct 173 ms 304264 KB Output is correct
331 Correct 187 ms 304588 KB Output is correct
332 Correct 207 ms 305748 KB Output is correct
333 Correct 186 ms 301904 KB Output is correct
334 Correct 11 ms 22616 KB Output is correct
335 Correct 42 ms 66440 KB Output is correct
336 Correct 27 ms 45144 KB Output is correct
337 Correct 13 ms 24924 KB Output is correct
338 Correct 34 ms 61272 KB Output is correct
339 Correct 176 ms 310924 KB Output is correct
340 Correct 167 ms 297332 KB Output is correct
341 Correct 182 ms 298944 KB Output is correct
342 Correct 176 ms 310100 KB Output is correct
343 Correct 184 ms 298576 KB Output is correct
344 Correct 176 ms 308352 KB Output is correct
345 Correct 155 ms 300116 KB Output is correct
346 Correct 170 ms 286544 KB Output is correct
347 Correct 183 ms 304108 KB Output is correct
348 Correct 174 ms 306128 KB Output is correct
349 Correct 9 ms 22108 KB Output is correct
350 Correct 175 ms 304540 KB Output is correct
351 Correct 181 ms 304376 KB Output is correct
352 Correct 209 ms 305744 KB Output is correct
353 Correct 170 ms 301904 KB Output is correct
354 Correct 11 ms 24408 KB Output is correct
355 Correct 42 ms 67920 KB Output is correct
356 Correct 27 ms 45144 KB Output is correct
357 Correct 13 ms 26716 KB Output is correct
358 Correct 34 ms 62920 KB Output is correct
359 Correct 180 ms 311120 KB Output is correct
360 Correct 187 ms 297616 KB Output is correct
361 Correct 241 ms 299124 KB Output is correct
362 Correct 187 ms 310096 KB Output is correct
363 Correct 179 ms 298716 KB Output is correct
364 Correct 175 ms 308252 KB Output is correct
365 Correct 186 ms 300068 KB Output is correct
366 Correct 173 ms 286604 KB Output is correct
367 Correct 171 ms 304208 KB Output is correct
368 Correct 182 ms 306256 KB Output is correct
369 Correct 8 ms 22360 KB Output is correct
370 Correct 173 ms 304212 KB Output is correct
371 Correct 185 ms 304344 KB Output is correct
372 Correct 184 ms 305764 KB Output is correct
373 Correct 192 ms 302164 KB Output is correct
374 Correct 13 ms 24412 KB Output is correct
375 Correct 39 ms 67924 KB Output is correct
376 Correct 28 ms 46940 KB Output is correct
377 Correct 13 ms 26716 KB Output is correct
378 Correct 36 ms 62812 KB Output is correct
379 Correct 196 ms 311120 KB Output is correct
380 Correct 165 ms 297348 KB Output is correct
381 Correct 179 ms 299028 KB Output is correct
382 Correct 174 ms 310060 KB Output is correct
383 Correct 174 ms 298580 KB Output is correct
384 Correct 173 ms 308308 KB Output is correct
385 Correct 168 ms 300264 KB Output is correct
386 Correct 170 ms 286548 KB Output is correct
387 Correct 184 ms 304244 KB Output is correct
388 Correct 172 ms 306480 KB Output is correct
389 Correct 9 ms 20060 KB Output is correct
390 Correct 173 ms 304152 KB Output is correct
391 Correct 183 ms 304212 KB Output is correct
392 Correct 183 ms 305808 KB Output is correct
393 Correct 156 ms 301900 KB Output is correct
394 Correct 11 ms 22616 KB Output is correct
395 Correct 41 ms 66452 KB Output is correct
396 Correct 33 ms 45140 KB Output is correct
397 Correct 13 ms 24924 KB Output is correct
398 Correct 37 ms 61288 KB Output is correct
399 Correct 182 ms 311116 KB Output is correct
400 Correct 176 ms 297652 KB Output is correct
401 Correct 173 ms 298900 KB Output is correct
402 Correct 189 ms 310096 KB Output is correct
403 Correct 175 ms 298828 KB Output is correct
404 Correct 178 ms 308268 KB Output is correct
405 Correct 168 ms 300112 KB Output is correct
406 Correct 170 ms 286448 KB Output is correct
407 Correct 183 ms 304216 KB Output is correct
408 Correct 178 ms 306256 KB Output is correct
409 Correct 8 ms 20060 KB Output is correct
410 Correct 171 ms 304052 KB Output is correct
411 Correct 183 ms 304208 KB Output is correct
412 Correct 181 ms 305748 KB Output is correct
413 Correct 158 ms 301672 KB Output is correct
414 Correct 11 ms 22620 KB Output is correct
415 Correct 41 ms 66396 KB Output is correct
416 Correct 28 ms 45148 KB Output is correct
417 Correct 30 ms 53084 KB Output is correct
418 Correct 162 ms 288612 KB Output is correct
419 Correct 166 ms 295632 KB Output is correct
420 Correct 187 ms 304724 KB Output is correct
421 Correct 182 ms 298340 KB Output is correct
422 Correct 187 ms 307400 KB Output is correct
423 Correct 179 ms 311116 KB Output is correct
424 Correct 177 ms 299784 KB Output is correct
425 Correct 184 ms 302416 KB Output is correct
426 Correct 197 ms 312400 KB Output is correct
427 Correct 178 ms 298588 KB Output is correct
428 Correct 9 ms 20568 KB Output is correct
429 Correct 173 ms 300372 KB Output is correct
430 Correct 179 ms 308816 KB Output is correct
431 Correct 184 ms 294348 KB Output is correct
432 Correct 169 ms 286032 KB Output is correct
433 Correct 50 ms 77904 KB Output is correct
434 Correct 54 ms 78724 KB Output is correct
435 Correct 12 ms 23128 KB Output is correct
436 Correct 10 ms 20316 KB Output is correct
437 Correct 33 ms 49744 KB Output is correct
438 Correct 170 ms 288308 KB Output is correct
439 Correct 173 ms 295632 KB Output is correct
440 Correct 186 ms 304616 KB Output is correct
441 Correct 174 ms 298320 KB Output is correct
442 Correct 175 ms 307756 KB Output is correct
443 Correct 167 ms 311120 KB Output is correct
444 Correct 173 ms 299520 KB Output is correct
445 Correct 194 ms 302560 KB Output is correct
446 Correct 184 ms 312408 KB Output is correct
447 Correct 179 ms 298576 KB Output is correct
448 Correct 9 ms 16676 KB Output is correct
449 Correct 167 ms 300356 KB Output is correct
450 Correct 180 ms 308816 KB Output is correct
451 Correct 187 ms 294228 KB Output is correct
452 Correct 173 ms 285776 KB Output is correct
453 Correct 49 ms 74872 KB Output is correct
454 Correct 50 ms 75600 KB Output is correct
455 Correct 11 ms 19288 KB Output is correct
456 Correct 9 ms 18264 KB Output is correct
457 Correct 34 ms 49756 KB Output is correct
458 Correct 182 ms 288340 KB Output is correct
459 Correct 173 ms 295508 KB Output is correct
460 Correct 178 ms 304468 KB Output is correct
461 Correct 179 ms 298152 KB Output is correct
462 Correct 165 ms 307416 KB Output is correct
463 Correct 195 ms 311376 KB Output is correct
464 Correct 183 ms 299384 KB Output is correct
465 Correct 186 ms 302164 KB Output is correct
466 Correct 200 ms 312348 KB Output is correct
467 Correct 180 ms 298580 KB Output is correct
468 Correct 8 ms 16476 KB Output is correct
469 Correct 181 ms 300512 KB Output is correct
470 Correct 199 ms 308944 KB Output is correct
471 Correct 169 ms 294224 KB Output is correct
472 Correct 172 ms 285776 KB Output is correct
473 Correct 44 ms 74832 KB Output is correct
474 Correct 49 ms 75604 KB Output is correct
475 Correct 12 ms 19292 KB Output is correct
476 Correct 11 ms 18232 KB Output is correct
477 Correct 33 ms 49756 KB Output is correct
478 Correct 171 ms 288400 KB Output is correct
479 Correct 173 ms 295456 KB Output is correct
480 Correct 249 ms 304580 KB Output is correct
481 Correct 174 ms 298068 KB Output is correct
482 Correct 193 ms 307512 KB Output is correct
483 Correct 183 ms 311124 KB Output is correct
484 Correct 185 ms 299536 KB Output is correct
485 Correct 187 ms 302164 KB Output is correct
486 Correct 181 ms 312408 KB Output is correct
487 Correct 165 ms 298576 KB Output is correct
488 Correct 8 ms 16472 KB Output is correct
489 Correct 172 ms 300452 KB Output is correct
490 Correct 198 ms 308872 KB Output is correct
491 Correct 187 ms 294108 KB Output is correct
492 Correct 171 ms 285780 KB Output is correct
493 Correct 53 ms 74836 KB Output is correct
494 Correct 42 ms 75604 KB Output is correct
495 Correct 11 ms 19288 KB Output is correct
496 Correct 11 ms 18268 KB Output is correct
497 Correct 30 ms 49756 KB Output is correct
498 Correct 170 ms 288412 KB Output is correct
499 Correct 173 ms 295588 KB Output is correct
500 Correct 197 ms 304724 KB Output is correct
501 Correct 173 ms 298072 KB Output is correct
502 Correct 182 ms 307540 KB Output is correct
503 Correct 179 ms 311120 KB Output is correct
504 Correct 177 ms 299344 KB Output is correct
505 Correct 172 ms 302168 KB Output is correct
506 Correct 189 ms 312664 KB Output is correct
507 Correct 164 ms 298488 KB Output is correct
508 Correct 10 ms 16472 KB Output is correct
509 Correct 178 ms 300448 KB Output is correct
510 Correct 192 ms 308804 KB Output is correct
511 Correct 182 ms 294192 KB Output is correct
512 Correct 160 ms 285888 KB Output is correct
513 Correct 43 ms 74832 KB Output is correct
514 Correct 59 ms 75608 KB Output is correct
515 Correct 12 ms 19288 KB Output is correct
516 Correct 40 ms 60504 KB Output is correct
517 Correct 162 ms 301648 KB Output is correct
518 Correct 167 ms 311124 KB Output is correct
519 Correct 192 ms 298436 KB Output is correct
520 Correct 194 ms 308596 KB Output is correct
521 Correct 184 ms 313456 KB Output is correct
522 Correct 179 ms 300364 KB Output is correct
523 Correct 181 ms 306380 KB Output is correct
524 Correct 187 ms 300824 KB Output is correct
525 Correct 194 ms 313680 KB Output is correct
526 Correct 181 ms 306244 KB Output is correct
527 Correct 9 ms 16476 KB Output is correct
528 Correct 179 ms 301144 KB Output is correct
529 Correct 178 ms 304876 KB Output is correct
530 Correct 212 ms 308940 KB Output is correct
531 Correct 177 ms 302400 KB Output is correct
532 Correct 49 ms 73040 KB Output is correct
533 Correct 22 ms 33476 KB Output is correct
534 Correct 45 ms 65108 KB Output is correct
535 Correct 46 ms 61040 KB Output is correct
536 Correct 44 ms 60652 KB Output is correct
537 Correct 163 ms 301648 KB Output is correct
538 Correct 188 ms 311104 KB Output is correct
539 Correct 184 ms 298488 KB Output is correct
540 Correct 180 ms 308560 KB Output is correct
541 Correct 184 ms 313548 KB Output is correct
542 Correct 184 ms 300304 KB Output is correct
543 Correct 168 ms 306260 KB Output is correct
544 Correct 189 ms 300736 KB Output is correct
545 Correct 202 ms 313700 KB Output is correct
546 Correct 192 ms 306260 KB Output is correct
547 Correct 8 ms 16476 KB Output is correct
548 Correct 178 ms 301068 KB Output is correct
549 Correct 179 ms 304892 KB Output is correct
550 Correct 194 ms 309128 KB Output is correct
551 Correct 190 ms 302416 KB Output is correct
552 Correct 49 ms 73052 KB Output is correct
553 Correct 22 ms 33628 KB Output is correct
554 Correct 45 ms 65108 KB Output is correct
555 Correct 42 ms 60908 KB Output is correct
556 Correct 41 ms 60500 KB Output is correct
557 Correct 178 ms 301652 KB Output is correct
558 Correct 184 ms 311124 KB Output is correct
559 Correct 183 ms 298320 KB Output is correct
560 Correct 205 ms 308656 KB Output is correct
561 Correct 183 ms 313428 KB Output is correct
562 Correct 173 ms 300552 KB Output is correct
563 Correct 216 ms 306380 KB Output is correct
564 Correct 175 ms 300880 KB Output is correct
565 Correct 195 ms 313448 KB Output is correct
566 Correct 192 ms 306244 KB Output is correct
567 Correct 9 ms 16476 KB Output is correct
568 Correct 177 ms 301120 KB Output is correct
569 Correct 190 ms 304688 KB Output is correct
570 Correct 178 ms 309072 KB Output is correct
571 Correct 180 ms 302168 KB Output is correct
572 Correct 48 ms 73048 KB Output is correct
573 Correct 22 ms 33624 KB Output is correct
574 Correct 46 ms 65104 KB Output is correct
575 Correct 40 ms 61012 KB Output is correct
576 Correct 41 ms 60304 KB Output is correct
577 Correct 176 ms 301672 KB Output is correct
578 Correct 186 ms 311216 KB Output is correct
579 Correct 183 ms 298324 KB Output is correct
580 Correct 195 ms 308564 KB Output is correct
581 Correct 186 ms 313636 KB Output is correct
582 Correct 164 ms 300112 KB Output is correct
583 Correct 180 ms 306384 KB Output is correct
584 Correct 176 ms 300732 KB Output is correct
585 Correct 195 ms 313604 KB Output is correct
586 Correct 184 ms 306256 KB Output is correct
587 Correct 9 ms 16484 KB Output is correct
588 Correct 180 ms 301136 KB Output is correct
589 Correct 223 ms 304724 KB Output is correct
590 Correct 201 ms 308880 KB Output is correct
591 Correct 171 ms 302164 KB Output is correct
592 Correct 47 ms 73024 KB Output is correct
593 Correct 22 ms 33624 KB Output is correct
594 Correct 41 ms 65104 KB Output is correct
595 Correct 43 ms 61112 KB Output is correct
596 Correct 41 ms 60508 KB Output is correct
597 Correct 196 ms 301560 KB Output is correct
598 Correct 183 ms 311464 KB Output is correct
599 Correct 187 ms 298324 KB Output is correct
600 Correct 193 ms 308564 KB Output is correct
601 Correct 184 ms 313680 KB Output is correct
602 Correct 183 ms 300372 KB Output is correct
603 Correct 174 ms 306232 KB Output is correct
604 Correct 184 ms 300976 KB Output is correct
605 Correct 195 ms 313440 KB Output is correct
606 Correct 170 ms 306192 KB Output is correct
607 Correct 9 ms 16476 KB Output is correct
608 Correct 182 ms 301212 KB Output is correct
609 Correct 189 ms 304740 KB Output is correct
610 Correct 197 ms 309072 KB Output is correct
611 Correct 175 ms 302420 KB Output is correct
612 Correct 49 ms 73048 KB Output is correct
613 Correct 22 ms 33628 KB Output is correct
614 Correct 46 ms 65112 KB Output is correct