#define DEBUG 0
#include <bits/stdc++.h>
using namespace std;
#if DEBUG
// basic debugging macros
int __i__,__j__;
#define printLine(l) for(__i__=0;__i__<l;__i__++){cout<<"-";}cout<<endl
#define printLine2(l,c) for(__i__=0;__i__<l;__i__++){cout<<c;}cout<<endl
#define printVar(n) cout<<#n<<": "<<n<<endl
#define printArr(a,l) cout<<#a<<": ";for(__i__=0;__i__<l;__i__++){cout<<a[__i__]<<" ";}cout<<endl
#define print2dArr(a,r,c) cout<<#a<<":\n";for(__i__=0;__i__<r;__i__++){for(__j__=0;__j__<c;__j__++){cout<<a[__i__][__j__]<<" ";}cout<<endl;}
#define print2dArr2(a,r,c,l) cout<<#a<<":\n";for(__i__=0;__i__<r;__i__++){for(__j__=0;__j__<c;__j__++){cout<<setw(l)<<setfill(' ')<<a[__i__][__j__]<<" ";}cout<<endl;}
// advanced debugging class
// debug 1,2,'A',"test";
class _Debug {
public:
template<typename T>
_Debug& operator,(T val) {
cout << val << endl;
return *this;
}
};
#define debug _Debug(),
#else
#define printLine(l)
#define printLine2(l,c)
#define printVar(n)
#define printArr(a,l)
#define print2dArr(a,r,c)
#define print2dArr2(a,r,c,l)
#define debug
#endif
// define
#define MAX_VAL 999999999
#define MAX_VAL_2 999999999999999999LL
#define EPS 1e-6
#define mp make_pair
#define pb push_back
// typedef
typedef unsigned int UI;
typedef long long int LLI;
typedef unsigned long long int ULLI;
typedef unsigned short int US;
typedef pair<int,int> pii;
typedef pair<LLI,LLI> plli;
typedef vector<int> vi;
typedef vector<LLI> vlli;
typedef vector<pii> vpii;
typedef vector<plli> vplli;
// ---------- END OF TEMPLATE ----------
LLI _A[601],*A = _A+300;
LLI _curr[601],*curr = _curr+300;
vpii poss;
int _dp[3000001],*dp = _dp+1500000;
int main() {
int i;
int M;
LLI L;
scanf("%d %lld",&M,&L);
for (i = -M; i <= M; i++) scanf("%lld",&A[i]);
LLI s1 = 0,s2 = 0,ans = 0;
for (i = 1; i <= M; i++) s1 += i*A[i];
for (i = -M; i <= -1; i++) s2 += i*A[i];
if ((L > s1) || (L < s2)) {
printf("impossible\n");
return 0;
}
LLI s = 0;
if (L >= s1+s2) {
for (i = 0; i <= M; i++) curr[i] = A[i],s += i*A[i];
for (i = -1; i >= -M; i--) curr[i] = min((s-L)/(-i),A[i]),s += i*curr[i];
}
else {
for (i = 0; i >= -M; i--) curr[i] = A[i],s += i*A[i];
for (i = 1; i <= M; i++) curr[i] = min((L-s)/i,A[i]),s += i*curr[i];
}
L -= s;
for (i = -M; i <= M; i++) {
ans += curr[i];
if (i != 0) {
int t = min(curr[i],(LLI) M);
if (t > 0) {
int k = 1;
while (t > k) t -= k,poss.pb(mp(-k*i,-k)),k *= 2;
poss.pb(mp(-k*i,-k));
}
t = min(A[i]-curr[i],(LLI) M);
if (t > 0) {
int k = 1;
while (t > k) t -= k,poss.pb(mp(k*i,k)),k *= 2;
poss.pb(mp(k*i,k));
}
}
}
random_shuffle(poss.begin(),poss.end());
int B = min(1500000,(int) 2e8/((int) poss.size()+1));
fill(dp-B,dp+B,-1e9),dp[0] = 0;
for (auto [c,v]: poss) {
if (c > 0) {
for (i = B; i >= -B+c; i--) dp[i] = max(dp[i],dp[i-c]+v);
}
else {
for (i = -B; i <= B+c; i++) dp[i] = max(dp[i],dp[i-c]+v);
}
}
if (dp[L] < -1e8) printf("impossible\n");
else printf("%lld\n",ans+dp[L]);
return 0;
}
Compilation message
vault.cpp: In function 'int main()':
vault.cpp:66:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
66 | scanf("%d %lld",&M,&L);
| ~~~~~^~~~~~~~~~~~~~~~~
vault.cpp:67:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
67 | for (i = -M; i <= M; i++) scanf("%lld",&A[i]);
| ~~~~~^~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
11988 KB |
Output is correct |
2 |
Correct |
19 ms |
12048 KB |
Output is correct |
3 |
Correct |
12 ms |
11984 KB |
Output is correct |
4 |
Correct |
82 ms |
12028 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
373 ms |
3480 KB |
Output is correct |
7 |
Correct |
326 ms |
7764 KB |
Output is correct |
8 |
Correct |
328 ms |
3512 KB |
Output is correct |
9 |
Correct |
372 ms |
2908 KB |
Output is correct |
10 |
Correct |
42 ms |
12024 KB |
Output is correct |
11 |
Correct |
59 ms |
12024 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
11988 KB |
Output is correct |
2 |
Correct |
19 ms |
12048 KB |
Output is correct |
3 |
Correct |
12 ms |
11984 KB |
Output is correct |
4 |
Correct |
82 ms |
12028 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
373 ms |
3480 KB |
Output is correct |
7 |
Correct |
326 ms |
7764 KB |
Output is correct |
8 |
Correct |
328 ms |
3512 KB |
Output is correct |
9 |
Correct |
372 ms |
2908 KB |
Output is correct |
10 |
Correct |
42 ms |
12024 KB |
Output is correct |
11 |
Correct |
59 ms |
12024 KB |
Output is correct |
12 |
Correct |
23 ms |
12048 KB |
Output is correct |
13 |
Correct |
18 ms |
11988 KB |
Output is correct |
14 |
Correct |
11 ms |
11988 KB |
Output is correct |
15 |
Correct |
77 ms |
12032 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
364 ms |
3476 KB |
Output is correct |
18 |
Correct |
343 ms |
7868 KB |
Output is correct |
19 |
Correct |
343 ms |
3412 KB |
Output is correct |
20 |
Correct |
321 ms |
3020 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
60 ms |
11988 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
383 ms |
1672 KB |
Output is correct |
25 |
Correct |
324 ms |
3796 KB |
Output is correct |
26 |
Correct |
318 ms |
1448 KB |
Output is correct |
27 |
Correct |
368 ms |
1452 KB |
Output is correct |
28 |
Correct |
46 ms |
12028 KB |
Output is correct |
29 |
Correct |
67 ms |
11988 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
82 ms |
12028 KB |
Output is correct |
2 |
Correct |
370 ms |
11732 KB |
Output is correct |
3 |
Correct |
110 ms |
12032 KB |
Output is correct |
4 |
Correct |
343 ms |
10948 KB |
Output is correct |
5 |
Correct |
345 ms |
10332 KB |
Output is correct |
6 |
Correct |
358 ms |
11860 KB |
Output is correct |
7 |
Correct |
46 ms |
11988 KB |
Output is correct |
8 |
Correct |
55 ms |
11988 KB |
Output is correct |
9 |
Correct |
215 ms |
12028 KB |
Output is correct |
10 |
Correct |
263 ms |
12028 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
82 ms |
12028 KB |
Output is correct |
2 |
Correct |
370 ms |
11732 KB |
Output is correct |
3 |
Correct |
110 ms |
12032 KB |
Output is correct |
4 |
Correct |
343 ms |
10948 KB |
Output is correct |
5 |
Correct |
345 ms |
10332 KB |
Output is correct |
6 |
Correct |
358 ms |
11860 KB |
Output is correct |
7 |
Correct |
46 ms |
11988 KB |
Output is correct |
8 |
Correct |
55 ms |
11988 KB |
Output is correct |
9 |
Correct |
215 ms |
12028 KB |
Output is correct |
10 |
Correct |
263 ms |
12028 KB |
Output is correct |
11 |
Correct |
27 ms |
12032 KB |
Output is correct |
12 |
Correct |
19 ms |
12048 KB |
Output is correct |
13 |
Correct |
11 ms |
12052 KB |
Output is correct |
14 |
Correct |
84 ms |
12032 KB |
Output is correct |
15 |
Correct |
372 ms |
11720 KB |
Output is correct |
16 |
Correct |
110 ms |
12028 KB |
Output is correct |
17 |
Correct |
361 ms |
10944 KB |
Output is correct |
18 |
Correct |
359 ms |
10332 KB |
Output is correct |
19 |
Correct |
361 ms |
11896 KB |
Output is correct |
20 |
Correct |
44 ms |
12052 KB |
Output is correct |
21 |
Correct |
55 ms |
11988 KB |
Output is correct |
22 |
Correct |
187 ms |
12032 KB |
Output is correct |
23 |
Correct |
269 ms |
12032 KB |
Output is correct |
24 |
Correct |
409 ms |
6356 KB |
Output is correct |
25 |
Correct |
309 ms |
12028 KB |
Output is correct |
26 |
Correct |
358 ms |
5424 KB |
Output is correct |
27 |
Correct |
382 ms |
6148 KB |
Output is correct |
28 |
Correct |
333 ms |
6044 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
82 ms |
12028 KB |
Output is correct |
2 |
Correct |
370 ms |
11732 KB |
Output is correct |
3 |
Correct |
110 ms |
12032 KB |
Output is correct |
4 |
Correct |
343 ms |
10948 KB |
Output is correct |
5 |
Correct |
345 ms |
10332 KB |
Output is correct |
6 |
Correct |
358 ms |
11860 KB |
Output is correct |
7 |
Correct |
46 ms |
11988 KB |
Output is correct |
8 |
Correct |
55 ms |
11988 KB |
Output is correct |
9 |
Correct |
215 ms |
12028 KB |
Output is correct |
10 |
Correct |
263 ms |
12028 KB |
Output is correct |
11 |
Correct |
86 ms |
12024 KB |
Output is correct |
12 |
Correct |
352 ms |
11732 KB |
Output is correct |
13 |
Correct |
124 ms |
12028 KB |
Output is correct |
14 |
Correct |
349 ms |
10948 KB |
Output is correct |
15 |
Correct |
348 ms |
10336 KB |
Output is correct |
16 |
Correct |
379 ms |
11892 KB |
Output is correct |
17 |
Correct |
44 ms |
11988 KB |
Output is correct |
18 |
Correct |
57 ms |
12024 KB |
Output is correct |
19 |
Correct |
205 ms |
12028 KB |
Output is correct |
20 |
Correct |
275 ms |
12032 KB |
Output is correct |
21 |
Correct |
43 ms |
12028 KB |
Output is correct |
22 |
Correct |
63 ms |
12008 KB |
Output is correct |
23 |
Correct |
341 ms |
6196 KB |
Output is correct |
24 |
Correct |
317 ms |
12036 KB |
Output is correct |
25 |
Correct |
348 ms |
6376 KB |
Output is correct |
26 |
Correct |
342 ms |
5452 KB |
Output is correct |
27 |
Correct |
346 ms |
5940 KB |
Output is correct |
28 |
Correct |
350 ms |
7944 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
11988 KB |
Output is correct |
2 |
Correct |
19 ms |
12048 KB |
Output is correct |
3 |
Correct |
12 ms |
11984 KB |
Output is correct |
4 |
Correct |
82 ms |
12028 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
373 ms |
3480 KB |
Output is correct |
7 |
Correct |
326 ms |
7764 KB |
Output is correct |
8 |
Correct |
328 ms |
3512 KB |
Output is correct |
9 |
Correct |
372 ms |
2908 KB |
Output is correct |
10 |
Correct |
42 ms |
12024 KB |
Output is correct |
11 |
Correct |
59 ms |
12024 KB |
Output is correct |
12 |
Correct |
82 ms |
12028 KB |
Output is correct |
13 |
Correct |
370 ms |
11732 KB |
Output is correct |
14 |
Correct |
110 ms |
12032 KB |
Output is correct |
15 |
Correct |
343 ms |
10948 KB |
Output is correct |
16 |
Correct |
345 ms |
10332 KB |
Output is correct |
17 |
Correct |
358 ms |
11860 KB |
Output is correct |
18 |
Correct |
46 ms |
11988 KB |
Output is correct |
19 |
Correct |
55 ms |
11988 KB |
Output is correct |
20 |
Correct |
215 ms |
12028 KB |
Output is correct |
21 |
Correct |
263 ms |
12028 KB |
Output is correct |
22 |
Correct |
27 ms |
12032 KB |
Output is correct |
23 |
Correct |
19 ms |
12048 KB |
Output is correct |
24 |
Correct |
11 ms |
12052 KB |
Output is correct |
25 |
Correct |
84 ms |
12032 KB |
Output is correct |
26 |
Correct |
372 ms |
11720 KB |
Output is correct |
27 |
Correct |
110 ms |
12028 KB |
Output is correct |
28 |
Correct |
361 ms |
10944 KB |
Output is correct |
29 |
Correct |
359 ms |
10332 KB |
Output is correct |
30 |
Correct |
361 ms |
11896 KB |
Output is correct |
31 |
Correct |
44 ms |
12052 KB |
Output is correct |
32 |
Correct |
55 ms |
11988 KB |
Output is correct |
33 |
Correct |
187 ms |
12032 KB |
Output is correct |
34 |
Correct |
269 ms |
12032 KB |
Output is correct |
35 |
Correct |
409 ms |
6356 KB |
Output is correct |
36 |
Correct |
309 ms |
12028 KB |
Output is correct |
37 |
Correct |
358 ms |
5424 KB |
Output is correct |
38 |
Correct |
382 ms |
6148 KB |
Output is correct |
39 |
Correct |
333 ms |
6044 KB |
Output is correct |
40 |
Correct |
86 ms |
12024 KB |
Output is correct |
41 |
Correct |
352 ms |
11732 KB |
Output is correct |
42 |
Correct |
124 ms |
12028 KB |
Output is correct |
43 |
Correct |
349 ms |
10948 KB |
Output is correct |
44 |
Correct |
348 ms |
10336 KB |
Output is correct |
45 |
Correct |
379 ms |
11892 KB |
Output is correct |
46 |
Correct |
44 ms |
11988 KB |
Output is correct |
47 |
Correct |
57 ms |
12024 KB |
Output is correct |
48 |
Correct |
205 ms |
12028 KB |
Output is correct |
49 |
Correct |
275 ms |
12032 KB |
Output is correct |
50 |
Correct |
43 ms |
12028 KB |
Output is correct |
51 |
Correct |
63 ms |
12008 KB |
Output is correct |
52 |
Correct |
341 ms |
6196 KB |
Output is correct |
53 |
Correct |
317 ms |
12036 KB |
Output is correct |
54 |
Correct |
348 ms |
6376 KB |
Output is correct |
55 |
Correct |
342 ms |
5452 KB |
Output is correct |
56 |
Correct |
346 ms |
5940 KB |
Output is correct |
57 |
Correct |
350 ms |
7944 KB |
Output is correct |
58 |
Correct |
24 ms |
12040 KB |
Output is correct |
59 |
Correct |
20 ms |
11988 KB |
Output is correct |
60 |
Correct |
11 ms |
11988 KB |
Output is correct |
61 |
Correct |
98 ms |
12032 KB |
Output is correct |
62 |
Correct |
0 ms |
212 KB |
Output is correct |
63 |
Correct |
329 ms |
3480 KB |
Output is correct |
64 |
Correct |
329 ms |
7872 KB |
Output is correct |
65 |
Correct |
325 ms |
3412 KB |
Output is correct |
66 |
Correct |
330 ms |
2900 KB |
Output is correct |
67 |
Correct |
41 ms |
11988 KB |
Output is correct |
68 |
Correct |
59 ms |
11988 KB |
Output is correct |
69 |
Correct |
352 ms |
11724 KB |
Output is correct |
70 |
Correct |
126 ms |
12028 KB |
Output is correct |
71 |
Correct |
361 ms |
10964 KB |
Output is correct |
72 |
Correct |
347 ms |
10332 KB |
Output is correct |
73 |
Correct |
358 ms |
11892 KB |
Output is correct |
74 |
Correct |
50 ms |
12032 KB |
Output is correct |
75 |
Correct |
60 ms |
12024 KB |
Output is correct |
76 |
Correct |
199 ms |
12028 KB |
Output is correct |
77 |
Correct |
286 ms |
12040 KB |
Output is correct |
78 |
Correct |
342 ms |
6356 KB |
Output is correct |
79 |
Correct |
303 ms |
12036 KB |
Output is correct |
80 |
Correct |
330 ms |
5428 KB |
Output is correct |
81 |
Correct |
351 ms |
6152 KB |
Output is correct |
82 |
Correct |
338 ms |
5972 KB |
Output is correct |
83 |
Correct |
330 ms |
6100 KB |
Output is correct |
84 |
Correct |
317 ms |
11984 KB |
Output is correct |
85 |
Correct |
346 ms |
6380 KB |
Output is correct |
86 |
Correct |
345 ms |
5408 KB |
Output is correct |
87 |
Correct |
330 ms |
5948 KB |
Output is correct |
88 |
Correct |
345 ms |
7940 KB |
Output is correct |
89 |
Correct |
346 ms |
3412 KB |
Output is correct |
90 |
Correct |
361 ms |
2904 KB |
Output is correct |
91 |
Correct |
343 ms |
3392 KB |
Output is correct |
92 |
Correct |
332 ms |
3156 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
82 ms |
12028 KB |
Output is correct |
2 |
Correct |
370 ms |
11732 KB |
Output is correct |
3 |
Correct |
110 ms |
12032 KB |
Output is correct |
4 |
Correct |
343 ms |
10948 KB |
Output is correct |
5 |
Correct |
345 ms |
10332 KB |
Output is correct |
6 |
Correct |
358 ms |
11860 KB |
Output is correct |
7 |
Correct |
46 ms |
11988 KB |
Output is correct |
8 |
Correct |
55 ms |
11988 KB |
Output is correct |
9 |
Correct |
215 ms |
12028 KB |
Output is correct |
10 |
Correct |
263 ms |
12028 KB |
Output is correct |
11 |
Correct |
86 ms |
12024 KB |
Output is correct |
12 |
Correct |
352 ms |
11732 KB |
Output is correct |
13 |
Correct |
124 ms |
12028 KB |
Output is correct |
14 |
Correct |
349 ms |
10948 KB |
Output is correct |
15 |
Correct |
348 ms |
10336 KB |
Output is correct |
16 |
Correct |
379 ms |
11892 KB |
Output is correct |
17 |
Correct |
44 ms |
11988 KB |
Output is correct |
18 |
Correct |
57 ms |
12024 KB |
Output is correct |
19 |
Correct |
205 ms |
12028 KB |
Output is correct |
20 |
Correct |
275 ms |
12032 KB |
Output is correct |
21 |
Correct |
43 ms |
12028 KB |
Output is correct |
22 |
Correct |
63 ms |
12008 KB |
Output is correct |
23 |
Correct |
341 ms |
6196 KB |
Output is correct |
24 |
Correct |
317 ms |
12036 KB |
Output is correct |
25 |
Correct |
348 ms |
6376 KB |
Output is correct |
26 |
Correct |
342 ms |
5452 KB |
Output is correct |
27 |
Correct |
346 ms |
5940 KB |
Output is correct |
28 |
Correct |
350 ms |
7944 KB |
Output is correct |
29 |
Correct |
78 ms |
12032 KB |
Output is correct |
30 |
Correct |
368 ms |
11728 KB |
Output is correct |
31 |
Correct |
116 ms |
12032 KB |
Output is correct |
32 |
Correct |
341 ms |
10944 KB |
Output is correct |
33 |
Correct |
347 ms |
10340 KB |
Output is correct |
34 |
Correct |
360 ms |
11896 KB |
Output is correct |
35 |
Correct |
44 ms |
11988 KB |
Output is correct |
36 |
Correct |
52 ms |
12024 KB |
Output is correct |
37 |
Correct |
192 ms |
12032 KB |
Output is correct |
38 |
Correct |
265 ms |
12032 KB |
Output is correct |
39 |
Correct |
42 ms |
12032 KB |
Output is correct |
40 |
Correct |
61 ms |
12028 KB |
Output is correct |
41 |
Correct |
362 ms |
6192 KB |
Output is correct |
42 |
Correct |
315 ms |
12036 KB |
Output is correct |
43 |
Correct |
364 ms |
6356 KB |
Output is correct |
44 |
Correct |
320 ms |
5408 KB |
Output is correct |
45 |
Correct |
329 ms |
5940 KB |
Output is correct |
46 |
Correct |
328 ms |
7944 KB |
Output is correct |
47 |
Correct |
46 ms |
12028 KB |
Output is correct |
48 |
Correct |
80 ms |
11988 KB |
Output is correct |
49 |
Correct |
316 ms |
2936 KB |
Output is correct |
50 |
Correct |
331 ms |
6328 KB |
Output is correct |
51 |
Correct |
318 ms |
2772 KB |
Output is correct |
52 |
Correct |
325 ms |
2524 KB |
Output is correct |
53 |
Correct |
321 ms |
2896 KB |
Output is correct |
54 |
Correct |
337 ms |
3372 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
11988 KB |
Output is correct |
2 |
Correct |
19 ms |
12048 KB |
Output is correct |
3 |
Correct |
12 ms |
11984 KB |
Output is correct |
4 |
Correct |
82 ms |
12028 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
373 ms |
3480 KB |
Output is correct |
7 |
Correct |
326 ms |
7764 KB |
Output is correct |
8 |
Correct |
328 ms |
3512 KB |
Output is correct |
9 |
Correct |
372 ms |
2908 KB |
Output is correct |
10 |
Correct |
42 ms |
12024 KB |
Output is correct |
11 |
Correct |
59 ms |
12024 KB |
Output is correct |
12 |
Correct |
23 ms |
12048 KB |
Output is correct |
13 |
Correct |
18 ms |
11988 KB |
Output is correct |
14 |
Correct |
11 ms |
11988 KB |
Output is correct |
15 |
Correct |
77 ms |
12032 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
364 ms |
3476 KB |
Output is correct |
18 |
Correct |
343 ms |
7868 KB |
Output is correct |
19 |
Correct |
343 ms |
3412 KB |
Output is correct |
20 |
Correct |
321 ms |
3020 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
60 ms |
11988 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
383 ms |
1672 KB |
Output is correct |
25 |
Correct |
324 ms |
3796 KB |
Output is correct |
26 |
Correct |
318 ms |
1448 KB |
Output is correct |
27 |
Correct |
368 ms |
1452 KB |
Output is correct |
28 |
Correct |
46 ms |
12028 KB |
Output is correct |
29 |
Correct |
67 ms |
11988 KB |
Output is correct |
30 |
Correct |
82 ms |
12028 KB |
Output is correct |
31 |
Correct |
370 ms |
11732 KB |
Output is correct |
32 |
Correct |
110 ms |
12032 KB |
Output is correct |
33 |
Correct |
343 ms |
10948 KB |
Output is correct |
34 |
Correct |
345 ms |
10332 KB |
Output is correct |
35 |
Correct |
358 ms |
11860 KB |
Output is correct |
36 |
Correct |
46 ms |
11988 KB |
Output is correct |
37 |
Correct |
55 ms |
11988 KB |
Output is correct |
38 |
Correct |
215 ms |
12028 KB |
Output is correct |
39 |
Correct |
263 ms |
12028 KB |
Output is correct |
40 |
Correct |
27 ms |
12032 KB |
Output is correct |
41 |
Correct |
19 ms |
12048 KB |
Output is correct |
42 |
Correct |
11 ms |
12052 KB |
Output is correct |
43 |
Correct |
84 ms |
12032 KB |
Output is correct |
44 |
Correct |
372 ms |
11720 KB |
Output is correct |
45 |
Correct |
110 ms |
12028 KB |
Output is correct |
46 |
Correct |
361 ms |
10944 KB |
Output is correct |
47 |
Correct |
359 ms |
10332 KB |
Output is correct |
48 |
Correct |
361 ms |
11896 KB |
Output is correct |
49 |
Correct |
44 ms |
12052 KB |
Output is correct |
50 |
Correct |
55 ms |
11988 KB |
Output is correct |
51 |
Correct |
187 ms |
12032 KB |
Output is correct |
52 |
Correct |
269 ms |
12032 KB |
Output is correct |
53 |
Correct |
409 ms |
6356 KB |
Output is correct |
54 |
Correct |
309 ms |
12028 KB |
Output is correct |
55 |
Correct |
358 ms |
5424 KB |
Output is correct |
56 |
Correct |
382 ms |
6148 KB |
Output is correct |
57 |
Correct |
333 ms |
6044 KB |
Output is correct |
58 |
Correct |
86 ms |
12024 KB |
Output is correct |
59 |
Correct |
352 ms |
11732 KB |
Output is correct |
60 |
Correct |
124 ms |
12028 KB |
Output is correct |
61 |
Correct |
349 ms |
10948 KB |
Output is correct |
62 |
Correct |
348 ms |
10336 KB |
Output is correct |
63 |
Correct |
379 ms |
11892 KB |
Output is correct |
64 |
Correct |
44 ms |
11988 KB |
Output is correct |
65 |
Correct |
57 ms |
12024 KB |
Output is correct |
66 |
Correct |
205 ms |
12028 KB |
Output is correct |
67 |
Correct |
275 ms |
12032 KB |
Output is correct |
68 |
Correct |
43 ms |
12028 KB |
Output is correct |
69 |
Correct |
63 ms |
12008 KB |
Output is correct |
70 |
Correct |
341 ms |
6196 KB |
Output is correct |
71 |
Correct |
317 ms |
12036 KB |
Output is correct |
72 |
Correct |
348 ms |
6376 KB |
Output is correct |
73 |
Correct |
342 ms |
5452 KB |
Output is correct |
74 |
Correct |
346 ms |
5940 KB |
Output is correct |
75 |
Correct |
350 ms |
7944 KB |
Output is correct |
76 |
Correct |
24 ms |
12040 KB |
Output is correct |
77 |
Correct |
20 ms |
11988 KB |
Output is correct |
78 |
Correct |
11 ms |
11988 KB |
Output is correct |
79 |
Correct |
98 ms |
12032 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
329 ms |
3480 KB |
Output is correct |
82 |
Correct |
329 ms |
7872 KB |
Output is correct |
83 |
Correct |
325 ms |
3412 KB |
Output is correct |
84 |
Correct |
330 ms |
2900 KB |
Output is correct |
85 |
Correct |
41 ms |
11988 KB |
Output is correct |
86 |
Correct |
59 ms |
11988 KB |
Output is correct |
87 |
Correct |
352 ms |
11724 KB |
Output is correct |
88 |
Correct |
126 ms |
12028 KB |
Output is correct |
89 |
Correct |
361 ms |
10964 KB |
Output is correct |
90 |
Correct |
347 ms |
10332 KB |
Output is correct |
91 |
Correct |
358 ms |
11892 KB |
Output is correct |
92 |
Correct |
50 ms |
12032 KB |
Output is correct |
93 |
Correct |
60 ms |
12024 KB |
Output is correct |
94 |
Correct |
199 ms |
12028 KB |
Output is correct |
95 |
Correct |
286 ms |
12040 KB |
Output is correct |
96 |
Correct |
342 ms |
6356 KB |
Output is correct |
97 |
Correct |
303 ms |
12036 KB |
Output is correct |
98 |
Correct |
330 ms |
5428 KB |
Output is correct |
99 |
Correct |
351 ms |
6152 KB |
Output is correct |
100 |
Correct |
338 ms |
5972 KB |
Output is correct |
101 |
Correct |
330 ms |
6100 KB |
Output is correct |
102 |
Correct |
317 ms |
11984 KB |
Output is correct |
103 |
Correct |
346 ms |
6380 KB |
Output is correct |
104 |
Correct |
345 ms |
5408 KB |
Output is correct |
105 |
Correct |
330 ms |
5948 KB |
Output is correct |
106 |
Correct |
345 ms |
7940 KB |
Output is correct |
107 |
Correct |
346 ms |
3412 KB |
Output is correct |
108 |
Correct |
361 ms |
2904 KB |
Output is correct |
109 |
Correct |
343 ms |
3392 KB |
Output is correct |
110 |
Correct |
332 ms |
3156 KB |
Output is correct |
111 |
Correct |
78 ms |
12032 KB |
Output is correct |
112 |
Correct |
368 ms |
11728 KB |
Output is correct |
113 |
Correct |
116 ms |
12032 KB |
Output is correct |
114 |
Correct |
341 ms |
10944 KB |
Output is correct |
115 |
Correct |
347 ms |
10340 KB |
Output is correct |
116 |
Correct |
360 ms |
11896 KB |
Output is correct |
117 |
Correct |
44 ms |
11988 KB |
Output is correct |
118 |
Correct |
52 ms |
12024 KB |
Output is correct |
119 |
Correct |
192 ms |
12032 KB |
Output is correct |
120 |
Correct |
265 ms |
12032 KB |
Output is correct |
121 |
Correct |
42 ms |
12032 KB |
Output is correct |
122 |
Correct |
61 ms |
12028 KB |
Output is correct |
123 |
Correct |
362 ms |
6192 KB |
Output is correct |
124 |
Correct |
315 ms |
12036 KB |
Output is correct |
125 |
Correct |
364 ms |
6356 KB |
Output is correct |
126 |
Correct |
320 ms |
5408 KB |
Output is correct |
127 |
Correct |
329 ms |
5940 KB |
Output is correct |
128 |
Correct |
328 ms |
7944 KB |
Output is correct |
129 |
Correct |
46 ms |
12028 KB |
Output is correct |
130 |
Correct |
80 ms |
11988 KB |
Output is correct |
131 |
Correct |
316 ms |
2936 KB |
Output is correct |
132 |
Correct |
331 ms |
6328 KB |
Output is correct |
133 |
Correct |
318 ms |
2772 KB |
Output is correct |
134 |
Correct |
325 ms |
2524 KB |
Output is correct |
135 |
Correct |
321 ms |
2896 KB |
Output is correct |
136 |
Correct |
337 ms |
3372 KB |
Output is correct |
137 |
Correct |
25 ms |
11988 KB |
Output is correct |
138 |
Correct |
19 ms |
12056 KB |
Output is correct |
139 |
Correct |
10 ms |
11988 KB |
Output is correct |
140 |
Correct |
79 ms |
12032 KB |
Output is correct |
141 |
Correct |
1 ms |
212 KB |
Output is correct |
142 |
Correct |
325 ms |
3480 KB |
Output is correct |
143 |
Correct |
358 ms |
7872 KB |
Output is correct |
144 |
Correct |
320 ms |
3516 KB |
Output is correct |
145 |
Correct |
345 ms |
3024 KB |
Output is correct |
146 |
Correct |
41 ms |
12032 KB |
Output is correct |
147 |
Correct |
59 ms |
11988 KB |
Output is correct |
148 |
Correct |
0 ms |
212 KB |
Output is correct |
149 |
Correct |
320 ms |
1676 KB |
Output is correct |
150 |
Correct |
315 ms |
3884 KB |
Output is correct |
151 |
Correct |
350 ms |
1452 KB |
Output is correct |
152 |
Correct |
326 ms |
1364 KB |
Output is correct |
153 |
Correct |
46 ms |
12032 KB |
Output is correct |
154 |
Correct |
80 ms |
12032 KB |
Output is correct |
155 |
Correct |
339 ms |
11732 KB |
Output is correct |
156 |
Correct |
109 ms |
12036 KB |
Output is correct |
157 |
Correct |
349 ms |
10964 KB |
Output is correct |
158 |
Correct |
339 ms |
10340 KB |
Output is correct |
159 |
Correct |
350 ms |
11892 KB |
Output is correct |
160 |
Correct |
43 ms |
11988 KB |
Output is correct |
161 |
Correct |
51 ms |
12028 KB |
Output is correct |
162 |
Correct |
197 ms |
12036 KB |
Output is correct |
163 |
Correct |
268 ms |
12028 KB |
Output is correct |
164 |
Correct |
323 ms |
6200 KB |
Output is correct |
165 |
Correct |
300 ms |
12032 KB |
Output is correct |
166 |
Correct |
331 ms |
6380 KB |
Output is correct |
167 |
Correct |
315 ms |
5408 KB |
Output is correct |
168 |
Correct |
324 ms |
5844 KB |
Output is correct |
169 |
Correct |
330 ms |
7948 KB |
Output is correct |
170 |
Correct |
327 ms |
6356 KB |
Output is correct |
171 |
Correct |
304 ms |
12048 KB |
Output is correct |
172 |
Correct |
317 ms |
5332 KB |
Output is correct |
173 |
Correct |
323 ms |
6180 KB |
Output is correct |
174 |
Correct |
317 ms |
5972 KB |
Output is correct |
175 |
Correct |
335 ms |
3312 KB |
Output is correct |
176 |
Correct |
325 ms |
2900 KB |
Output is correct |
177 |
Correct |
377 ms |
3392 KB |
Output is correct |
178 |
Correct |
321 ms |
3248 KB |
Output is correct |
179 |
Correct |
315 ms |
2936 KB |
Output is correct |
180 |
Correct |
342 ms |
6332 KB |
Output is correct |
181 |
Correct |
324 ms |
2848 KB |
Output is correct |
182 |
Correct |
333 ms |
2528 KB |
Output is correct |
183 |
Correct |
324 ms |
2900 KB |
Output is correct |
184 |
Correct |
330 ms |
3368 KB |
Output is correct |
185 |
Correct |
353 ms |
1644 KB |
Output is correct |
186 |
Correct |
322 ms |
1444 KB |
Output is correct |
187 |
Incorrect |
318 ms |
1612 KB |
Output isn't correct |
188 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
82 ms |
12028 KB |
Output is correct |
2 |
Correct |
370 ms |
11732 KB |
Output is correct |
3 |
Correct |
110 ms |
12032 KB |
Output is correct |
4 |
Correct |
343 ms |
10948 KB |
Output is correct |
5 |
Correct |
345 ms |
10332 KB |
Output is correct |
6 |
Correct |
358 ms |
11860 KB |
Output is correct |
7 |
Correct |
46 ms |
11988 KB |
Output is correct |
8 |
Correct |
55 ms |
11988 KB |
Output is correct |
9 |
Correct |
215 ms |
12028 KB |
Output is correct |
10 |
Correct |
263 ms |
12028 KB |
Output is correct |
11 |
Correct |
86 ms |
12024 KB |
Output is correct |
12 |
Correct |
352 ms |
11732 KB |
Output is correct |
13 |
Correct |
124 ms |
12028 KB |
Output is correct |
14 |
Correct |
349 ms |
10948 KB |
Output is correct |
15 |
Correct |
348 ms |
10336 KB |
Output is correct |
16 |
Correct |
379 ms |
11892 KB |
Output is correct |
17 |
Correct |
44 ms |
11988 KB |
Output is correct |
18 |
Correct |
57 ms |
12024 KB |
Output is correct |
19 |
Correct |
205 ms |
12028 KB |
Output is correct |
20 |
Correct |
275 ms |
12032 KB |
Output is correct |
21 |
Correct |
43 ms |
12028 KB |
Output is correct |
22 |
Correct |
63 ms |
12008 KB |
Output is correct |
23 |
Correct |
341 ms |
6196 KB |
Output is correct |
24 |
Correct |
317 ms |
12036 KB |
Output is correct |
25 |
Correct |
348 ms |
6376 KB |
Output is correct |
26 |
Correct |
342 ms |
5452 KB |
Output is correct |
27 |
Correct |
346 ms |
5940 KB |
Output is correct |
28 |
Correct |
350 ms |
7944 KB |
Output is correct |
29 |
Correct |
78 ms |
12032 KB |
Output is correct |
30 |
Correct |
368 ms |
11728 KB |
Output is correct |
31 |
Correct |
116 ms |
12032 KB |
Output is correct |
32 |
Correct |
341 ms |
10944 KB |
Output is correct |
33 |
Correct |
347 ms |
10340 KB |
Output is correct |
34 |
Correct |
360 ms |
11896 KB |
Output is correct |
35 |
Correct |
44 ms |
11988 KB |
Output is correct |
36 |
Correct |
52 ms |
12024 KB |
Output is correct |
37 |
Correct |
192 ms |
12032 KB |
Output is correct |
38 |
Correct |
265 ms |
12032 KB |
Output is correct |
39 |
Correct |
42 ms |
12032 KB |
Output is correct |
40 |
Correct |
61 ms |
12028 KB |
Output is correct |
41 |
Correct |
362 ms |
6192 KB |
Output is correct |
42 |
Correct |
315 ms |
12036 KB |
Output is correct |
43 |
Correct |
364 ms |
6356 KB |
Output is correct |
44 |
Correct |
320 ms |
5408 KB |
Output is correct |
45 |
Correct |
329 ms |
5940 KB |
Output is correct |
46 |
Correct |
328 ms |
7944 KB |
Output is correct |
47 |
Correct |
46 ms |
12028 KB |
Output is correct |
48 |
Correct |
80 ms |
11988 KB |
Output is correct |
49 |
Correct |
316 ms |
2936 KB |
Output is correct |
50 |
Correct |
331 ms |
6328 KB |
Output is correct |
51 |
Correct |
318 ms |
2772 KB |
Output is correct |
52 |
Correct |
325 ms |
2524 KB |
Output is correct |
53 |
Correct |
321 ms |
2896 KB |
Output is correct |
54 |
Correct |
337 ms |
3372 KB |
Output is correct |
55 |
Correct |
78 ms |
11988 KB |
Output is correct |
56 |
Correct |
355 ms |
11732 KB |
Output is correct |
57 |
Correct |
116 ms |
11988 KB |
Output is correct |
58 |
Correct |
338 ms |
10964 KB |
Output is correct |
59 |
Correct |
378 ms |
10336 KB |
Output is correct |
60 |
Correct |
352 ms |
11860 KB |
Output is correct |
61 |
Correct |
44 ms |
12028 KB |
Output is correct |
62 |
Correct |
60 ms |
11988 KB |
Output is correct |
63 |
Correct |
193 ms |
12036 KB |
Output is correct |
64 |
Correct |
257 ms |
12032 KB |
Output is correct |
65 |
Correct |
42 ms |
12036 KB |
Output is correct |
66 |
Correct |
59 ms |
12008 KB |
Output is correct |
67 |
Correct |
333 ms |
6200 KB |
Output is correct |
68 |
Correct |
298 ms |
12032 KB |
Output is correct |
69 |
Correct |
365 ms |
6392 KB |
Output is correct |
70 |
Correct |
321 ms |
5416 KB |
Output is correct |
71 |
Correct |
331 ms |
5956 KB |
Output is correct |
72 |
Correct |
337 ms |
7944 KB |
Output is correct |
73 |
Correct |
47 ms |
11988 KB |
Output is correct |
74 |
Correct |
69 ms |
11956 KB |
Output is correct |
75 |
Correct |
322 ms |
2940 KB |
Output is correct |
76 |
Correct |
329 ms |
6228 KB |
Output is correct |
77 |
Correct |
328 ms |
2772 KB |
Output is correct |
78 |
Correct |
320 ms |
2532 KB |
Output is correct |
79 |
Correct |
321 ms |
2900 KB |
Output is correct |
80 |
Correct |
325 ms |
3360 KB |
Output is correct |
81 |
Correct |
303 ms |
1020 KB |
Output is correct |
82 |
Incorrect |
318 ms |
1852 KB |
Output isn't correct |
83 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
25 ms |
11988 KB |
Output is correct |
2 |
Correct |
19 ms |
12048 KB |
Output is correct |
3 |
Correct |
12 ms |
11984 KB |
Output is correct |
4 |
Correct |
82 ms |
12028 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
373 ms |
3480 KB |
Output is correct |
7 |
Correct |
326 ms |
7764 KB |
Output is correct |
8 |
Correct |
328 ms |
3512 KB |
Output is correct |
9 |
Correct |
372 ms |
2908 KB |
Output is correct |
10 |
Correct |
42 ms |
12024 KB |
Output is correct |
11 |
Correct |
59 ms |
12024 KB |
Output is correct |
12 |
Correct |
23 ms |
12048 KB |
Output is correct |
13 |
Correct |
18 ms |
11988 KB |
Output is correct |
14 |
Correct |
11 ms |
11988 KB |
Output is correct |
15 |
Correct |
77 ms |
12032 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
364 ms |
3476 KB |
Output is correct |
18 |
Correct |
343 ms |
7868 KB |
Output is correct |
19 |
Correct |
343 ms |
3412 KB |
Output is correct |
20 |
Correct |
321 ms |
3020 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
60 ms |
11988 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
383 ms |
1672 KB |
Output is correct |
25 |
Correct |
324 ms |
3796 KB |
Output is correct |
26 |
Correct |
318 ms |
1448 KB |
Output is correct |
27 |
Correct |
368 ms |
1452 KB |
Output is correct |
28 |
Correct |
46 ms |
12028 KB |
Output is correct |
29 |
Correct |
67 ms |
11988 KB |
Output is correct |
30 |
Correct |
82 ms |
12028 KB |
Output is correct |
31 |
Correct |
370 ms |
11732 KB |
Output is correct |
32 |
Correct |
110 ms |
12032 KB |
Output is correct |
33 |
Correct |
343 ms |
10948 KB |
Output is correct |
34 |
Correct |
345 ms |
10332 KB |
Output is correct |
35 |
Correct |
358 ms |
11860 KB |
Output is correct |
36 |
Correct |
46 ms |
11988 KB |
Output is correct |
37 |
Correct |
55 ms |
11988 KB |
Output is correct |
38 |
Correct |
215 ms |
12028 KB |
Output is correct |
39 |
Correct |
263 ms |
12028 KB |
Output is correct |
40 |
Correct |
27 ms |
12032 KB |
Output is correct |
41 |
Correct |
19 ms |
12048 KB |
Output is correct |
42 |
Correct |
11 ms |
12052 KB |
Output is correct |
43 |
Correct |
84 ms |
12032 KB |
Output is correct |
44 |
Correct |
372 ms |
11720 KB |
Output is correct |
45 |
Correct |
110 ms |
12028 KB |
Output is correct |
46 |
Correct |
361 ms |
10944 KB |
Output is correct |
47 |
Correct |
359 ms |
10332 KB |
Output is correct |
48 |
Correct |
361 ms |
11896 KB |
Output is correct |
49 |
Correct |
44 ms |
12052 KB |
Output is correct |
50 |
Correct |
55 ms |
11988 KB |
Output is correct |
51 |
Correct |
187 ms |
12032 KB |
Output is correct |
52 |
Correct |
269 ms |
12032 KB |
Output is correct |
53 |
Correct |
409 ms |
6356 KB |
Output is correct |
54 |
Correct |
309 ms |
12028 KB |
Output is correct |
55 |
Correct |
358 ms |
5424 KB |
Output is correct |
56 |
Correct |
382 ms |
6148 KB |
Output is correct |
57 |
Correct |
333 ms |
6044 KB |
Output is correct |
58 |
Correct |
86 ms |
12024 KB |
Output is correct |
59 |
Correct |
352 ms |
11732 KB |
Output is correct |
60 |
Correct |
124 ms |
12028 KB |
Output is correct |
61 |
Correct |
349 ms |
10948 KB |
Output is correct |
62 |
Correct |
348 ms |
10336 KB |
Output is correct |
63 |
Correct |
379 ms |
11892 KB |
Output is correct |
64 |
Correct |
44 ms |
11988 KB |
Output is correct |
65 |
Correct |
57 ms |
12024 KB |
Output is correct |
66 |
Correct |
205 ms |
12028 KB |
Output is correct |
67 |
Correct |
275 ms |
12032 KB |
Output is correct |
68 |
Correct |
43 ms |
12028 KB |
Output is correct |
69 |
Correct |
63 ms |
12008 KB |
Output is correct |
70 |
Correct |
341 ms |
6196 KB |
Output is correct |
71 |
Correct |
317 ms |
12036 KB |
Output is correct |
72 |
Correct |
348 ms |
6376 KB |
Output is correct |
73 |
Correct |
342 ms |
5452 KB |
Output is correct |
74 |
Correct |
346 ms |
5940 KB |
Output is correct |
75 |
Correct |
350 ms |
7944 KB |
Output is correct |
76 |
Correct |
24 ms |
12040 KB |
Output is correct |
77 |
Correct |
20 ms |
11988 KB |
Output is correct |
78 |
Correct |
11 ms |
11988 KB |
Output is correct |
79 |
Correct |
98 ms |
12032 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
329 ms |
3480 KB |
Output is correct |
82 |
Correct |
329 ms |
7872 KB |
Output is correct |
83 |
Correct |
325 ms |
3412 KB |
Output is correct |
84 |
Correct |
330 ms |
2900 KB |
Output is correct |
85 |
Correct |
41 ms |
11988 KB |
Output is correct |
86 |
Correct |
59 ms |
11988 KB |
Output is correct |
87 |
Correct |
352 ms |
11724 KB |
Output is correct |
88 |
Correct |
126 ms |
12028 KB |
Output is correct |
89 |
Correct |
361 ms |
10964 KB |
Output is correct |
90 |
Correct |
347 ms |
10332 KB |
Output is correct |
91 |
Correct |
358 ms |
11892 KB |
Output is correct |
92 |
Correct |
50 ms |
12032 KB |
Output is correct |
93 |
Correct |
60 ms |
12024 KB |
Output is correct |
94 |
Correct |
199 ms |
12028 KB |
Output is correct |
95 |
Correct |
286 ms |
12040 KB |
Output is correct |
96 |
Correct |
342 ms |
6356 KB |
Output is correct |
97 |
Correct |
303 ms |
12036 KB |
Output is correct |
98 |
Correct |
330 ms |
5428 KB |
Output is correct |
99 |
Correct |
351 ms |
6152 KB |
Output is correct |
100 |
Correct |
338 ms |
5972 KB |
Output is correct |
101 |
Correct |
330 ms |
6100 KB |
Output is correct |
102 |
Correct |
317 ms |
11984 KB |
Output is correct |
103 |
Correct |
346 ms |
6380 KB |
Output is correct |
104 |
Correct |
345 ms |
5408 KB |
Output is correct |
105 |
Correct |
330 ms |
5948 KB |
Output is correct |
106 |
Correct |
345 ms |
7940 KB |
Output is correct |
107 |
Correct |
346 ms |
3412 KB |
Output is correct |
108 |
Correct |
361 ms |
2904 KB |
Output is correct |
109 |
Correct |
343 ms |
3392 KB |
Output is correct |
110 |
Correct |
332 ms |
3156 KB |
Output is correct |
111 |
Correct |
78 ms |
12032 KB |
Output is correct |
112 |
Correct |
368 ms |
11728 KB |
Output is correct |
113 |
Correct |
116 ms |
12032 KB |
Output is correct |
114 |
Correct |
341 ms |
10944 KB |
Output is correct |
115 |
Correct |
347 ms |
10340 KB |
Output is correct |
116 |
Correct |
360 ms |
11896 KB |
Output is correct |
117 |
Correct |
44 ms |
11988 KB |
Output is correct |
118 |
Correct |
52 ms |
12024 KB |
Output is correct |
119 |
Correct |
192 ms |
12032 KB |
Output is correct |
120 |
Correct |
265 ms |
12032 KB |
Output is correct |
121 |
Correct |
42 ms |
12032 KB |
Output is correct |
122 |
Correct |
61 ms |
12028 KB |
Output is correct |
123 |
Correct |
362 ms |
6192 KB |
Output is correct |
124 |
Correct |
315 ms |
12036 KB |
Output is correct |
125 |
Correct |
364 ms |
6356 KB |
Output is correct |
126 |
Correct |
320 ms |
5408 KB |
Output is correct |
127 |
Correct |
329 ms |
5940 KB |
Output is correct |
128 |
Correct |
328 ms |
7944 KB |
Output is correct |
129 |
Correct |
46 ms |
12028 KB |
Output is correct |
130 |
Correct |
80 ms |
11988 KB |
Output is correct |
131 |
Correct |
316 ms |
2936 KB |
Output is correct |
132 |
Correct |
331 ms |
6328 KB |
Output is correct |
133 |
Correct |
318 ms |
2772 KB |
Output is correct |
134 |
Correct |
325 ms |
2524 KB |
Output is correct |
135 |
Correct |
321 ms |
2896 KB |
Output is correct |
136 |
Correct |
337 ms |
3372 KB |
Output is correct |
137 |
Correct |
25 ms |
11988 KB |
Output is correct |
138 |
Correct |
19 ms |
12056 KB |
Output is correct |
139 |
Correct |
10 ms |
11988 KB |
Output is correct |
140 |
Correct |
79 ms |
12032 KB |
Output is correct |
141 |
Correct |
1 ms |
212 KB |
Output is correct |
142 |
Correct |
325 ms |
3480 KB |
Output is correct |
143 |
Correct |
358 ms |
7872 KB |
Output is correct |
144 |
Correct |
320 ms |
3516 KB |
Output is correct |
145 |
Correct |
345 ms |
3024 KB |
Output is correct |
146 |
Correct |
41 ms |
12032 KB |
Output is correct |
147 |
Correct |
59 ms |
11988 KB |
Output is correct |
148 |
Correct |
0 ms |
212 KB |
Output is correct |
149 |
Correct |
320 ms |
1676 KB |
Output is correct |
150 |
Correct |
315 ms |
3884 KB |
Output is correct |
151 |
Correct |
350 ms |
1452 KB |
Output is correct |
152 |
Correct |
326 ms |
1364 KB |
Output is correct |
153 |
Correct |
46 ms |
12032 KB |
Output is correct |
154 |
Correct |
80 ms |
12032 KB |
Output is correct |
155 |
Correct |
339 ms |
11732 KB |
Output is correct |
156 |
Correct |
109 ms |
12036 KB |
Output is correct |
157 |
Correct |
349 ms |
10964 KB |
Output is correct |
158 |
Correct |
339 ms |
10340 KB |
Output is correct |
159 |
Correct |
350 ms |
11892 KB |
Output is correct |
160 |
Correct |
43 ms |
11988 KB |
Output is correct |
161 |
Correct |
51 ms |
12028 KB |
Output is correct |
162 |
Correct |
197 ms |
12036 KB |
Output is correct |
163 |
Correct |
268 ms |
12028 KB |
Output is correct |
164 |
Correct |
323 ms |
6200 KB |
Output is correct |
165 |
Correct |
300 ms |
12032 KB |
Output is correct |
166 |
Correct |
331 ms |
6380 KB |
Output is correct |
167 |
Correct |
315 ms |
5408 KB |
Output is correct |
168 |
Correct |
324 ms |
5844 KB |
Output is correct |
169 |
Correct |
330 ms |
7948 KB |
Output is correct |
170 |
Correct |
327 ms |
6356 KB |
Output is correct |
171 |
Correct |
304 ms |
12048 KB |
Output is correct |
172 |
Correct |
317 ms |
5332 KB |
Output is correct |
173 |
Correct |
323 ms |
6180 KB |
Output is correct |
174 |
Correct |
317 ms |
5972 KB |
Output is correct |
175 |
Correct |
335 ms |
3312 KB |
Output is correct |
176 |
Correct |
325 ms |
2900 KB |
Output is correct |
177 |
Correct |
377 ms |
3392 KB |
Output is correct |
178 |
Correct |
321 ms |
3248 KB |
Output is correct |
179 |
Correct |
315 ms |
2936 KB |
Output is correct |
180 |
Correct |
342 ms |
6332 KB |
Output is correct |
181 |
Correct |
324 ms |
2848 KB |
Output is correct |
182 |
Correct |
333 ms |
2528 KB |
Output is correct |
183 |
Correct |
324 ms |
2900 KB |
Output is correct |
184 |
Correct |
330 ms |
3368 KB |
Output is correct |
185 |
Correct |
353 ms |
1644 KB |
Output is correct |
186 |
Correct |
322 ms |
1444 KB |
Output is correct |
187 |
Incorrect |
318 ms |
1612 KB |
Output isn't correct |
188 |
Halted |
0 ms |
0 KB |
- |