#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) 1e9/((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]);
| ~~~~~^~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
11932 KB |
Output is correct |
2 |
Correct |
19 ms |
11988 KB |
Output is correct |
3 |
Correct |
12 ms |
12052 KB |
Output is correct |
4 |
Correct |
77 ms |
11988 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1294 ms |
12036 KB |
Output is correct |
7 |
Correct |
566 ms |
12028 KB |
Output is correct |
8 |
Correct |
1330 ms |
12032 KB |
Output is correct |
9 |
Correct |
1553 ms |
12040 KB |
Output is correct |
10 |
Correct |
41 ms |
11988 KB |
Output is correct |
11 |
Correct |
58 ms |
11988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
11932 KB |
Output is correct |
2 |
Correct |
19 ms |
11988 KB |
Output is correct |
3 |
Correct |
12 ms |
12052 KB |
Output is correct |
4 |
Correct |
77 ms |
11988 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1294 ms |
12036 KB |
Output is correct |
7 |
Correct |
566 ms |
12028 KB |
Output is correct |
8 |
Correct |
1330 ms |
12032 KB |
Output is correct |
9 |
Correct |
1553 ms |
12040 KB |
Output is correct |
10 |
Correct |
41 ms |
11988 KB |
Output is correct |
11 |
Correct |
58 ms |
11988 KB |
Output is correct |
12 |
Correct |
25 ms |
12044 KB |
Output is correct |
13 |
Correct |
19 ms |
12144 KB |
Output is correct |
14 |
Correct |
11 ms |
11988 KB |
Output is correct |
15 |
Correct |
79 ms |
12108 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
1246 ms |
12036 KB |
Output is correct |
18 |
Correct |
591 ms |
11988 KB |
Output is correct |
19 |
Correct |
1256 ms |
12040 KB |
Output is correct |
20 |
Correct |
1538 ms |
12044 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
59 ms |
12028 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
1577 ms |
7076 KB |
Output is correct |
25 |
Correct |
1104 ms |
12036 KB |
Output is correct |
26 |
Correct |
1609 ms |
5900 KB |
Output is correct |
27 |
Correct |
1606 ms |
5908 KB |
Output is correct |
28 |
Correct |
46 ms |
11988 KB |
Output is correct |
29 |
Correct |
67 ms |
11988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
77 ms |
11988 KB |
Output is correct |
2 |
Correct |
356 ms |
12028 KB |
Output is correct |
3 |
Correct |
108 ms |
11988 KB |
Output is correct |
4 |
Correct |
369 ms |
12044 KB |
Output is correct |
5 |
Correct |
402 ms |
12028 KB |
Output is correct |
6 |
Correct |
348 ms |
12108 KB |
Output is correct |
7 |
Correct |
44 ms |
12028 KB |
Output is correct |
8 |
Correct |
52 ms |
12108 KB |
Output is correct |
9 |
Correct |
190 ms |
12032 KB |
Output is correct |
10 |
Correct |
250 ms |
12028 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
77 ms |
11988 KB |
Output is correct |
2 |
Correct |
356 ms |
12028 KB |
Output is correct |
3 |
Correct |
108 ms |
11988 KB |
Output is correct |
4 |
Correct |
369 ms |
12044 KB |
Output is correct |
5 |
Correct |
402 ms |
12028 KB |
Output is correct |
6 |
Correct |
348 ms |
12108 KB |
Output is correct |
7 |
Correct |
44 ms |
12028 KB |
Output is correct |
8 |
Correct |
52 ms |
12108 KB |
Output is correct |
9 |
Correct |
190 ms |
12032 KB |
Output is correct |
10 |
Correct |
250 ms |
12028 KB |
Output is correct |
11 |
Correct |
23 ms |
11988 KB |
Output is correct |
12 |
Correct |
18 ms |
12044 KB |
Output is correct |
13 |
Correct |
11 ms |
11988 KB |
Output is correct |
14 |
Correct |
80 ms |
12036 KB |
Output is correct |
15 |
Correct |
349 ms |
12032 KB |
Output is correct |
16 |
Correct |
108 ms |
12032 KB |
Output is correct |
17 |
Correct |
374 ms |
12028 KB |
Output is correct |
18 |
Correct |
395 ms |
11988 KB |
Output is correct |
19 |
Correct |
344 ms |
12108 KB |
Output is correct |
20 |
Correct |
45 ms |
11988 KB |
Output is correct |
21 |
Correct |
52 ms |
11988 KB |
Output is correct |
22 |
Correct |
193 ms |
12028 KB |
Output is correct |
23 |
Correct |
259 ms |
12028 KB |
Output is correct |
24 |
Correct |
652 ms |
12056 KB |
Output is correct |
25 |
Correct |
286 ms |
12036 KB |
Output is correct |
26 |
Correct |
774 ms |
12032 KB |
Output is correct |
27 |
Correct |
670 ms |
12036 KB |
Output is correct |
28 |
Correct |
685 ms |
11988 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
77 ms |
11988 KB |
Output is correct |
2 |
Correct |
356 ms |
12028 KB |
Output is correct |
3 |
Correct |
108 ms |
11988 KB |
Output is correct |
4 |
Correct |
369 ms |
12044 KB |
Output is correct |
5 |
Correct |
402 ms |
12028 KB |
Output is correct |
6 |
Correct |
348 ms |
12108 KB |
Output is correct |
7 |
Correct |
44 ms |
12028 KB |
Output is correct |
8 |
Correct |
52 ms |
12108 KB |
Output is correct |
9 |
Correct |
190 ms |
12032 KB |
Output is correct |
10 |
Correct |
250 ms |
12028 KB |
Output is correct |
11 |
Correct |
80 ms |
12036 KB |
Output is correct |
12 |
Correct |
354 ms |
12032 KB |
Output is correct |
13 |
Correct |
108 ms |
11988 KB |
Output is correct |
14 |
Correct |
369 ms |
12028 KB |
Output is correct |
15 |
Correct |
471 ms |
12032 KB |
Output is correct |
16 |
Correct |
358 ms |
12032 KB |
Output is correct |
17 |
Correct |
45 ms |
12032 KB |
Output is correct |
18 |
Correct |
52 ms |
12028 KB |
Output is correct |
19 |
Correct |
190 ms |
12032 KB |
Output is correct |
20 |
Correct |
259 ms |
12032 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
64 ms |
11988 KB |
Output is correct |
23 |
Correct |
710 ms |
12048 KB |
Output is correct |
24 |
Correct |
322 ms |
12036 KB |
Output is correct |
25 |
Correct |
670 ms |
12040 KB |
Output is correct |
26 |
Correct |
836 ms |
12052 KB |
Output is correct |
27 |
Correct |
792 ms |
12036 KB |
Output is correct |
28 |
Correct |
517 ms |
12036 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
11932 KB |
Output is correct |
2 |
Correct |
19 ms |
11988 KB |
Output is correct |
3 |
Correct |
12 ms |
12052 KB |
Output is correct |
4 |
Correct |
77 ms |
11988 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1294 ms |
12036 KB |
Output is correct |
7 |
Correct |
566 ms |
12028 KB |
Output is correct |
8 |
Correct |
1330 ms |
12032 KB |
Output is correct |
9 |
Correct |
1553 ms |
12040 KB |
Output is correct |
10 |
Correct |
41 ms |
11988 KB |
Output is correct |
11 |
Correct |
58 ms |
11988 KB |
Output is correct |
12 |
Correct |
77 ms |
11988 KB |
Output is correct |
13 |
Correct |
356 ms |
12028 KB |
Output is correct |
14 |
Correct |
108 ms |
11988 KB |
Output is correct |
15 |
Correct |
369 ms |
12044 KB |
Output is correct |
16 |
Correct |
402 ms |
12028 KB |
Output is correct |
17 |
Correct |
348 ms |
12108 KB |
Output is correct |
18 |
Correct |
44 ms |
12028 KB |
Output is correct |
19 |
Correct |
52 ms |
12108 KB |
Output is correct |
20 |
Correct |
190 ms |
12032 KB |
Output is correct |
21 |
Correct |
250 ms |
12028 KB |
Output is correct |
22 |
Correct |
23 ms |
11988 KB |
Output is correct |
23 |
Correct |
18 ms |
12044 KB |
Output is correct |
24 |
Correct |
11 ms |
11988 KB |
Output is correct |
25 |
Correct |
80 ms |
12036 KB |
Output is correct |
26 |
Correct |
349 ms |
12032 KB |
Output is correct |
27 |
Correct |
108 ms |
12032 KB |
Output is correct |
28 |
Correct |
374 ms |
12028 KB |
Output is correct |
29 |
Correct |
395 ms |
11988 KB |
Output is correct |
30 |
Correct |
344 ms |
12108 KB |
Output is correct |
31 |
Correct |
45 ms |
11988 KB |
Output is correct |
32 |
Correct |
52 ms |
11988 KB |
Output is correct |
33 |
Correct |
193 ms |
12028 KB |
Output is correct |
34 |
Correct |
259 ms |
12028 KB |
Output is correct |
35 |
Correct |
652 ms |
12056 KB |
Output is correct |
36 |
Correct |
286 ms |
12036 KB |
Output is correct |
37 |
Correct |
774 ms |
12032 KB |
Output is correct |
38 |
Correct |
670 ms |
12036 KB |
Output is correct |
39 |
Correct |
685 ms |
11988 KB |
Output is correct |
40 |
Correct |
80 ms |
12036 KB |
Output is correct |
41 |
Correct |
354 ms |
12032 KB |
Output is correct |
42 |
Correct |
108 ms |
11988 KB |
Output is correct |
43 |
Correct |
369 ms |
12028 KB |
Output is correct |
44 |
Correct |
471 ms |
12032 KB |
Output is correct |
45 |
Correct |
358 ms |
12032 KB |
Output is correct |
46 |
Correct |
45 ms |
12032 KB |
Output is correct |
47 |
Correct |
52 ms |
12028 KB |
Output is correct |
48 |
Correct |
190 ms |
12032 KB |
Output is correct |
49 |
Correct |
259 ms |
12032 KB |
Output is correct |
50 |
Correct |
41 ms |
11988 KB |
Output is correct |
51 |
Correct |
64 ms |
11988 KB |
Output is correct |
52 |
Correct |
710 ms |
12048 KB |
Output is correct |
53 |
Correct |
322 ms |
12036 KB |
Output is correct |
54 |
Correct |
670 ms |
12040 KB |
Output is correct |
55 |
Correct |
836 ms |
12052 KB |
Output is correct |
56 |
Correct |
792 ms |
12036 KB |
Output is correct |
57 |
Correct |
517 ms |
12036 KB |
Output is correct |
58 |
Correct |
24 ms |
11988 KB |
Output is correct |
59 |
Correct |
19 ms |
12044 KB |
Output is correct |
60 |
Correct |
11 ms |
11988 KB |
Output is correct |
61 |
Correct |
78 ms |
12024 KB |
Output is correct |
62 |
Correct |
0 ms |
212 KB |
Output is correct |
63 |
Correct |
1301 ms |
12036 KB |
Output is correct |
64 |
Correct |
554 ms |
12028 KB |
Output is correct |
65 |
Correct |
1287 ms |
12036 KB |
Output is correct |
66 |
Correct |
1562 ms |
12044 KB |
Output is correct |
67 |
Correct |
42 ms |
12028 KB |
Output is correct |
68 |
Correct |
71 ms |
11988 KB |
Output is correct |
69 |
Correct |
378 ms |
12028 KB |
Output is correct |
70 |
Correct |
105 ms |
12024 KB |
Output is correct |
71 |
Correct |
376 ms |
12040 KB |
Output is correct |
72 |
Correct |
399 ms |
12036 KB |
Output is correct |
73 |
Correct |
345 ms |
12044 KB |
Output is correct |
74 |
Correct |
46 ms |
12072 KB |
Output is correct |
75 |
Correct |
52 ms |
11988 KB |
Output is correct |
76 |
Correct |
187 ms |
12028 KB |
Output is correct |
77 |
Correct |
254 ms |
12032 KB |
Output is correct |
78 |
Correct |
657 ms |
12044 KB |
Output is correct |
79 |
Correct |
289 ms |
11988 KB |
Output is correct |
80 |
Correct |
774 ms |
12052 KB |
Output is correct |
81 |
Correct |
675 ms |
12032 KB |
Output is correct |
82 |
Correct |
692 ms |
12108 KB |
Output is correct |
83 |
Correct |
676 ms |
12108 KB |
Output is correct |
84 |
Correct |
311 ms |
12036 KB |
Output is correct |
85 |
Correct |
652 ms |
11988 KB |
Output is correct |
86 |
Correct |
769 ms |
12036 KB |
Output is correct |
87 |
Correct |
717 ms |
12048 KB |
Output is correct |
88 |
Correct |
534 ms |
12032 KB |
Output is correct |
89 |
Correct |
1311 ms |
12044 KB |
Output is correct |
90 |
Correct |
1541 ms |
12048 KB |
Output is correct |
91 |
Correct |
1317 ms |
12032 KB |
Output is correct |
92 |
Correct |
1377 ms |
12044 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
77 ms |
11988 KB |
Output is correct |
2 |
Correct |
356 ms |
12028 KB |
Output is correct |
3 |
Correct |
108 ms |
11988 KB |
Output is correct |
4 |
Correct |
369 ms |
12044 KB |
Output is correct |
5 |
Correct |
402 ms |
12028 KB |
Output is correct |
6 |
Correct |
348 ms |
12108 KB |
Output is correct |
7 |
Correct |
44 ms |
12028 KB |
Output is correct |
8 |
Correct |
52 ms |
12108 KB |
Output is correct |
9 |
Correct |
190 ms |
12032 KB |
Output is correct |
10 |
Correct |
250 ms |
12028 KB |
Output is correct |
11 |
Correct |
80 ms |
12036 KB |
Output is correct |
12 |
Correct |
354 ms |
12032 KB |
Output is correct |
13 |
Correct |
108 ms |
11988 KB |
Output is correct |
14 |
Correct |
369 ms |
12028 KB |
Output is correct |
15 |
Correct |
471 ms |
12032 KB |
Output is correct |
16 |
Correct |
358 ms |
12032 KB |
Output is correct |
17 |
Correct |
45 ms |
12032 KB |
Output is correct |
18 |
Correct |
52 ms |
12028 KB |
Output is correct |
19 |
Correct |
190 ms |
12032 KB |
Output is correct |
20 |
Correct |
259 ms |
12032 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
64 ms |
11988 KB |
Output is correct |
23 |
Correct |
710 ms |
12048 KB |
Output is correct |
24 |
Correct |
322 ms |
12036 KB |
Output is correct |
25 |
Correct |
670 ms |
12040 KB |
Output is correct |
26 |
Correct |
836 ms |
12052 KB |
Output is correct |
27 |
Correct |
792 ms |
12036 KB |
Output is correct |
28 |
Correct |
517 ms |
12036 KB |
Output is correct |
29 |
Correct |
87 ms |
12028 KB |
Output is correct |
30 |
Correct |
369 ms |
12028 KB |
Output is correct |
31 |
Correct |
111 ms |
12028 KB |
Output is correct |
32 |
Correct |
446 ms |
12036 KB |
Output is correct |
33 |
Correct |
447 ms |
12032 KB |
Output is correct |
34 |
Correct |
366 ms |
12028 KB |
Output is correct |
35 |
Correct |
58 ms |
11988 KB |
Output is correct |
36 |
Correct |
54 ms |
12024 KB |
Output is correct |
37 |
Correct |
210 ms |
12044 KB |
Output is correct |
38 |
Correct |
267 ms |
12032 KB |
Output is correct |
39 |
Correct |
44 ms |
11988 KB |
Output is correct |
40 |
Correct |
62 ms |
11988 KB |
Output is correct |
41 |
Correct |
726 ms |
12048 KB |
Output is correct |
42 |
Correct |
306 ms |
12032 KB |
Output is correct |
43 |
Correct |
683 ms |
11944 KB |
Output is correct |
44 |
Correct |
839 ms |
12032 KB |
Output is correct |
45 |
Correct |
717 ms |
12036 KB |
Output is correct |
46 |
Correct |
547 ms |
12108 KB |
Output is correct |
47 |
Correct |
45 ms |
11988 KB |
Output is correct |
48 |
Correct |
74 ms |
12032 KB |
Output is correct |
49 |
Correct |
1563 ms |
12044 KB |
Output is correct |
50 |
Correct |
660 ms |
12036 KB |
Output is correct |
51 |
Correct |
1669 ms |
12048 KB |
Output is correct |
52 |
Correct |
1680 ms |
11368 KB |
Output is correct |
53 |
Correct |
1557 ms |
12044 KB |
Output is correct |
54 |
Correct |
1307 ms |
12036 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
11932 KB |
Output is correct |
2 |
Correct |
19 ms |
11988 KB |
Output is correct |
3 |
Correct |
12 ms |
12052 KB |
Output is correct |
4 |
Correct |
77 ms |
11988 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1294 ms |
12036 KB |
Output is correct |
7 |
Correct |
566 ms |
12028 KB |
Output is correct |
8 |
Correct |
1330 ms |
12032 KB |
Output is correct |
9 |
Correct |
1553 ms |
12040 KB |
Output is correct |
10 |
Correct |
41 ms |
11988 KB |
Output is correct |
11 |
Correct |
58 ms |
11988 KB |
Output is correct |
12 |
Correct |
25 ms |
12044 KB |
Output is correct |
13 |
Correct |
19 ms |
12144 KB |
Output is correct |
14 |
Correct |
11 ms |
11988 KB |
Output is correct |
15 |
Correct |
79 ms |
12108 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
1246 ms |
12036 KB |
Output is correct |
18 |
Correct |
591 ms |
11988 KB |
Output is correct |
19 |
Correct |
1256 ms |
12040 KB |
Output is correct |
20 |
Correct |
1538 ms |
12044 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
59 ms |
12028 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
1577 ms |
7076 KB |
Output is correct |
25 |
Correct |
1104 ms |
12036 KB |
Output is correct |
26 |
Correct |
1609 ms |
5900 KB |
Output is correct |
27 |
Correct |
1606 ms |
5908 KB |
Output is correct |
28 |
Correct |
46 ms |
11988 KB |
Output is correct |
29 |
Correct |
67 ms |
11988 KB |
Output is correct |
30 |
Correct |
77 ms |
11988 KB |
Output is correct |
31 |
Correct |
356 ms |
12028 KB |
Output is correct |
32 |
Correct |
108 ms |
11988 KB |
Output is correct |
33 |
Correct |
369 ms |
12044 KB |
Output is correct |
34 |
Correct |
402 ms |
12028 KB |
Output is correct |
35 |
Correct |
348 ms |
12108 KB |
Output is correct |
36 |
Correct |
44 ms |
12028 KB |
Output is correct |
37 |
Correct |
52 ms |
12108 KB |
Output is correct |
38 |
Correct |
190 ms |
12032 KB |
Output is correct |
39 |
Correct |
250 ms |
12028 KB |
Output is correct |
40 |
Correct |
23 ms |
11988 KB |
Output is correct |
41 |
Correct |
18 ms |
12044 KB |
Output is correct |
42 |
Correct |
11 ms |
11988 KB |
Output is correct |
43 |
Correct |
80 ms |
12036 KB |
Output is correct |
44 |
Correct |
349 ms |
12032 KB |
Output is correct |
45 |
Correct |
108 ms |
12032 KB |
Output is correct |
46 |
Correct |
374 ms |
12028 KB |
Output is correct |
47 |
Correct |
395 ms |
11988 KB |
Output is correct |
48 |
Correct |
344 ms |
12108 KB |
Output is correct |
49 |
Correct |
45 ms |
11988 KB |
Output is correct |
50 |
Correct |
52 ms |
11988 KB |
Output is correct |
51 |
Correct |
193 ms |
12028 KB |
Output is correct |
52 |
Correct |
259 ms |
12028 KB |
Output is correct |
53 |
Correct |
652 ms |
12056 KB |
Output is correct |
54 |
Correct |
286 ms |
12036 KB |
Output is correct |
55 |
Correct |
774 ms |
12032 KB |
Output is correct |
56 |
Correct |
670 ms |
12036 KB |
Output is correct |
57 |
Correct |
685 ms |
11988 KB |
Output is correct |
58 |
Correct |
80 ms |
12036 KB |
Output is correct |
59 |
Correct |
354 ms |
12032 KB |
Output is correct |
60 |
Correct |
108 ms |
11988 KB |
Output is correct |
61 |
Correct |
369 ms |
12028 KB |
Output is correct |
62 |
Correct |
471 ms |
12032 KB |
Output is correct |
63 |
Correct |
358 ms |
12032 KB |
Output is correct |
64 |
Correct |
45 ms |
12032 KB |
Output is correct |
65 |
Correct |
52 ms |
12028 KB |
Output is correct |
66 |
Correct |
190 ms |
12032 KB |
Output is correct |
67 |
Correct |
259 ms |
12032 KB |
Output is correct |
68 |
Correct |
41 ms |
11988 KB |
Output is correct |
69 |
Correct |
64 ms |
11988 KB |
Output is correct |
70 |
Correct |
710 ms |
12048 KB |
Output is correct |
71 |
Correct |
322 ms |
12036 KB |
Output is correct |
72 |
Correct |
670 ms |
12040 KB |
Output is correct |
73 |
Correct |
836 ms |
12052 KB |
Output is correct |
74 |
Correct |
792 ms |
12036 KB |
Output is correct |
75 |
Correct |
517 ms |
12036 KB |
Output is correct |
76 |
Correct |
24 ms |
11988 KB |
Output is correct |
77 |
Correct |
19 ms |
12044 KB |
Output is correct |
78 |
Correct |
11 ms |
11988 KB |
Output is correct |
79 |
Correct |
78 ms |
12024 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
1301 ms |
12036 KB |
Output is correct |
82 |
Correct |
554 ms |
12028 KB |
Output is correct |
83 |
Correct |
1287 ms |
12036 KB |
Output is correct |
84 |
Correct |
1562 ms |
12044 KB |
Output is correct |
85 |
Correct |
42 ms |
12028 KB |
Output is correct |
86 |
Correct |
71 ms |
11988 KB |
Output is correct |
87 |
Correct |
378 ms |
12028 KB |
Output is correct |
88 |
Correct |
105 ms |
12024 KB |
Output is correct |
89 |
Correct |
376 ms |
12040 KB |
Output is correct |
90 |
Correct |
399 ms |
12036 KB |
Output is correct |
91 |
Correct |
345 ms |
12044 KB |
Output is correct |
92 |
Correct |
46 ms |
12072 KB |
Output is correct |
93 |
Correct |
52 ms |
11988 KB |
Output is correct |
94 |
Correct |
187 ms |
12028 KB |
Output is correct |
95 |
Correct |
254 ms |
12032 KB |
Output is correct |
96 |
Correct |
657 ms |
12044 KB |
Output is correct |
97 |
Correct |
289 ms |
11988 KB |
Output is correct |
98 |
Correct |
774 ms |
12052 KB |
Output is correct |
99 |
Correct |
675 ms |
12032 KB |
Output is correct |
100 |
Correct |
692 ms |
12108 KB |
Output is correct |
101 |
Correct |
676 ms |
12108 KB |
Output is correct |
102 |
Correct |
311 ms |
12036 KB |
Output is correct |
103 |
Correct |
652 ms |
11988 KB |
Output is correct |
104 |
Correct |
769 ms |
12036 KB |
Output is correct |
105 |
Correct |
717 ms |
12048 KB |
Output is correct |
106 |
Correct |
534 ms |
12032 KB |
Output is correct |
107 |
Correct |
1311 ms |
12044 KB |
Output is correct |
108 |
Correct |
1541 ms |
12048 KB |
Output is correct |
109 |
Correct |
1317 ms |
12032 KB |
Output is correct |
110 |
Correct |
1377 ms |
12044 KB |
Output is correct |
111 |
Correct |
87 ms |
12028 KB |
Output is correct |
112 |
Correct |
369 ms |
12028 KB |
Output is correct |
113 |
Correct |
111 ms |
12028 KB |
Output is correct |
114 |
Correct |
446 ms |
12036 KB |
Output is correct |
115 |
Correct |
447 ms |
12032 KB |
Output is correct |
116 |
Correct |
366 ms |
12028 KB |
Output is correct |
117 |
Correct |
58 ms |
11988 KB |
Output is correct |
118 |
Correct |
54 ms |
12024 KB |
Output is correct |
119 |
Correct |
210 ms |
12044 KB |
Output is correct |
120 |
Correct |
267 ms |
12032 KB |
Output is correct |
121 |
Correct |
44 ms |
11988 KB |
Output is correct |
122 |
Correct |
62 ms |
11988 KB |
Output is correct |
123 |
Correct |
726 ms |
12048 KB |
Output is correct |
124 |
Correct |
306 ms |
12032 KB |
Output is correct |
125 |
Correct |
683 ms |
11944 KB |
Output is correct |
126 |
Correct |
839 ms |
12032 KB |
Output is correct |
127 |
Correct |
717 ms |
12036 KB |
Output is correct |
128 |
Correct |
547 ms |
12108 KB |
Output is correct |
129 |
Correct |
45 ms |
11988 KB |
Output is correct |
130 |
Correct |
74 ms |
12032 KB |
Output is correct |
131 |
Correct |
1563 ms |
12044 KB |
Output is correct |
132 |
Correct |
660 ms |
12036 KB |
Output is correct |
133 |
Correct |
1669 ms |
12048 KB |
Output is correct |
134 |
Correct |
1680 ms |
11368 KB |
Output is correct |
135 |
Correct |
1557 ms |
12044 KB |
Output is correct |
136 |
Correct |
1307 ms |
12036 KB |
Output is correct |
137 |
Correct |
24 ms |
12044 KB |
Output is correct |
138 |
Correct |
18 ms |
11968 KB |
Output is correct |
139 |
Correct |
11 ms |
11988 KB |
Output is correct |
140 |
Correct |
78 ms |
12028 KB |
Output is correct |
141 |
Correct |
0 ms |
212 KB |
Output is correct |
142 |
Correct |
1296 ms |
12036 KB |
Output is correct |
143 |
Correct |
556 ms |
12032 KB |
Output is correct |
144 |
Correct |
1288 ms |
12108 KB |
Output is correct |
145 |
Correct |
1553 ms |
12048 KB |
Output is correct |
146 |
Correct |
43 ms |
11972 KB |
Output is correct |
147 |
Correct |
76 ms |
11988 KB |
Output is correct |
148 |
Correct |
0 ms |
212 KB |
Output is correct |
149 |
Correct |
1680 ms |
7072 KB |
Output is correct |
150 |
Correct |
1182 ms |
12032 KB |
Output is correct |
151 |
Correct |
1646 ms |
5900 KB |
Output is correct |
152 |
Correct |
1686 ms |
5908 KB |
Output is correct |
153 |
Correct |
45 ms |
11988 KB |
Output is correct |
154 |
Correct |
68 ms |
12024 KB |
Output is correct |
155 |
Correct |
372 ms |
12028 KB |
Output is correct |
156 |
Correct |
111 ms |
12108 KB |
Output is correct |
157 |
Correct |
371 ms |
11988 KB |
Output is correct |
158 |
Correct |
419 ms |
12028 KB |
Output is correct |
159 |
Correct |
359 ms |
12028 KB |
Output is correct |
160 |
Correct |
45 ms |
12028 KB |
Output is correct |
161 |
Correct |
53 ms |
12032 KB |
Output is correct |
162 |
Correct |
200 ms |
11988 KB |
Output is correct |
163 |
Correct |
261 ms |
11988 KB |
Output is correct |
164 |
Correct |
686 ms |
12032 KB |
Output is correct |
165 |
Correct |
316 ms |
12028 KB |
Output is correct |
166 |
Correct |
691 ms |
12036 KB |
Output is correct |
167 |
Correct |
805 ms |
12036 KB |
Output is correct |
168 |
Correct |
712 ms |
12032 KB |
Output is correct |
169 |
Correct |
546 ms |
12032 KB |
Output is correct |
170 |
Correct |
748 ms |
12040 KB |
Output is correct |
171 |
Correct |
306 ms |
12032 KB |
Output is correct |
172 |
Correct |
816 ms |
12036 KB |
Output is correct |
173 |
Correct |
700 ms |
12036 KB |
Output is correct |
174 |
Correct |
759 ms |
12032 KB |
Output is correct |
175 |
Correct |
1600 ms |
12044 KB |
Output is correct |
176 |
Correct |
1761 ms |
12048 KB |
Output is correct |
177 |
Correct |
1480 ms |
12032 KB |
Output is correct |
178 |
Correct |
1548 ms |
12044 KB |
Output is correct |
179 |
Correct |
1735 ms |
12044 KB |
Output is correct |
180 |
Correct |
846 ms |
12040 KB |
Output is correct |
181 |
Correct |
1958 ms |
12052 KB |
Output is correct |
182 |
Correct |
1878 ms |
11456 KB |
Output is correct |
183 |
Correct |
1751 ms |
12044 KB |
Output is correct |
184 |
Correct |
1387 ms |
12036 KB |
Output is correct |
185 |
Correct |
1631 ms |
6868 KB |
Output is correct |
186 |
Correct |
1680 ms |
5892 KB |
Output is correct |
187 |
Incorrect |
1638 ms |
6704 KB |
Output isn't correct |
188 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
77 ms |
11988 KB |
Output is correct |
2 |
Correct |
356 ms |
12028 KB |
Output is correct |
3 |
Correct |
108 ms |
11988 KB |
Output is correct |
4 |
Correct |
369 ms |
12044 KB |
Output is correct |
5 |
Correct |
402 ms |
12028 KB |
Output is correct |
6 |
Correct |
348 ms |
12108 KB |
Output is correct |
7 |
Correct |
44 ms |
12028 KB |
Output is correct |
8 |
Correct |
52 ms |
12108 KB |
Output is correct |
9 |
Correct |
190 ms |
12032 KB |
Output is correct |
10 |
Correct |
250 ms |
12028 KB |
Output is correct |
11 |
Correct |
80 ms |
12036 KB |
Output is correct |
12 |
Correct |
354 ms |
12032 KB |
Output is correct |
13 |
Correct |
108 ms |
11988 KB |
Output is correct |
14 |
Correct |
369 ms |
12028 KB |
Output is correct |
15 |
Correct |
471 ms |
12032 KB |
Output is correct |
16 |
Correct |
358 ms |
12032 KB |
Output is correct |
17 |
Correct |
45 ms |
12032 KB |
Output is correct |
18 |
Correct |
52 ms |
12028 KB |
Output is correct |
19 |
Correct |
190 ms |
12032 KB |
Output is correct |
20 |
Correct |
259 ms |
12032 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
64 ms |
11988 KB |
Output is correct |
23 |
Correct |
710 ms |
12048 KB |
Output is correct |
24 |
Correct |
322 ms |
12036 KB |
Output is correct |
25 |
Correct |
670 ms |
12040 KB |
Output is correct |
26 |
Correct |
836 ms |
12052 KB |
Output is correct |
27 |
Correct |
792 ms |
12036 KB |
Output is correct |
28 |
Correct |
517 ms |
12036 KB |
Output is correct |
29 |
Correct |
87 ms |
12028 KB |
Output is correct |
30 |
Correct |
369 ms |
12028 KB |
Output is correct |
31 |
Correct |
111 ms |
12028 KB |
Output is correct |
32 |
Correct |
446 ms |
12036 KB |
Output is correct |
33 |
Correct |
447 ms |
12032 KB |
Output is correct |
34 |
Correct |
366 ms |
12028 KB |
Output is correct |
35 |
Correct |
58 ms |
11988 KB |
Output is correct |
36 |
Correct |
54 ms |
12024 KB |
Output is correct |
37 |
Correct |
210 ms |
12044 KB |
Output is correct |
38 |
Correct |
267 ms |
12032 KB |
Output is correct |
39 |
Correct |
44 ms |
11988 KB |
Output is correct |
40 |
Correct |
62 ms |
11988 KB |
Output is correct |
41 |
Correct |
726 ms |
12048 KB |
Output is correct |
42 |
Correct |
306 ms |
12032 KB |
Output is correct |
43 |
Correct |
683 ms |
11944 KB |
Output is correct |
44 |
Correct |
839 ms |
12032 KB |
Output is correct |
45 |
Correct |
717 ms |
12036 KB |
Output is correct |
46 |
Correct |
547 ms |
12108 KB |
Output is correct |
47 |
Correct |
45 ms |
11988 KB |
Output is correct |
48 |
Correct |
74 ms |
12032 KB |
Output is correct |
49 |
Correct |
1563 ms |
12044 KB |
Output is correct |
50 |
Correct |
660 ms |
12036 KB |
Output is correct |
51 |
Correct |
1669 ms |
12048 KB |
Output is correct |
52 |
Correct |
1680 ms |
11368 KB |
Output is correct |
53 |
Correct |
1557 ms |
12044 KB |
Output is correct |
54 |
Correct |
1307 ms |
12036 KB |
Output is correct |
55 |
Correct |
80 ms |
11988 KB |
Output is correct |
56 |
Correct |
399 ms |
12028 KB |
Output is correct |
57 |
Correct |
108 ms |
11988 KB |
Output is correct |
58 |
Correct |
404 ms |
11988 KB |
Output is correct |
59 |
Correct |
422 ms |
11988 KB |
Output is correct |
60 |
Correct |
359 ms |
12044 KB |
Output is correct |
61 |
Correct |
47 ms |
12024 KB |
Output is correct |
62 |
Correct |
58 ms |
12024 KB |
Output is correct |
63 |
Correct |
198 ms |
12032 KB |
Output is correct |
64 |
Correct |
256 ms |
12032 KB |
Output is correct |
65 |
Correct |
47 ms |
12088 KB |
Output is correct |
66 |
Correct |
66 ms |
12024 KB |
Output is correct |
67 |
Correct |
739 ms |
12040 KB |
Output is correct |
68 |
Correct |
331 ms |
12032 KB |
Output is correct |
69 |
Correct |
711 ms |
12032 KB |
Output is correct |
70 |
Correct |
812 ms |
12032 KB |
Output is correct |
71 |
Correct |
751 ms |
12032 KB |
Output is correct |
72 |
Correct |
612 ms |
12028 KB |
Output is correct |
73 |
Correct |
49 ms |
11988 KB |
Output is correct |
74 |
Correct |
72 ms |
12044 KB |
Output is correct |
75 |
Correct |
1636 ms |
12048 KB |
Output is correct |
76 |
Correct |
701 ms |
12032 KB |
Output is correct |
77 |
Correct |
1670 ms |
12040 KB |
Output is correct |
78 |
Correct |
1725 ms |
11364 KB |
Output is correct |
79 |
Correct |
1573 ms |
12044 KB |
Output is correct |
80 |
Correct |
1358 ms |
11988 KB |
Output is correct |
81 |
Correct |
1758 ms |
3668 KB |
Output is correct |
82 |
Incorrect |
1731 ms |
7916 KB |
Output isn't correct |
83 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
11932 KB |
Output is correct |
2 |
Correct |
19 ms |
11988 KB |
Output is correct |
3 |
Correct |
12 ms |
12052 KB |
Output is correct |
4 |
Correct |
77 ms |
11988 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1294 ms |
12036 KB |
Output is correct |
7 |
Correct |
566 ms |
12028 KB |
Output is correct |
8 |
Correct |
1330 ms |
12032 KB |
Output is correct |
9 |
Correct |
1553 ms |
12040 KB |
Output is correct |
10 |
Correct |
41 ms |
11988 KB |
Output is correct |
11 |
Correct |
58 ms |
11988 KB |
Output is correct |
12 |
Correct |
25 ms |
12044 KB |
Output is correct |
13 |
Correct |
19 ms |
12144 KB |
Output is correct |
14 |
Correct |
11 ms |
11988 KB |
Output is correct |
15 |
Correct |
79 ms |
12108 KB |
Output is correct |
16 |
Correct |
0 ms |
212 KB |
Output is correct |
17 |
Correct |
1246 ms |
12036 KB |
Output is correct |
18 |
Correct |
591 ms |
11988 KB |
Output is correct |
19 |
Correct |
1256 ms |
12040 KB |
Output is correct |
20 |
Correct |
1538 ms |
12044 KB |
Output is correct |
21 |
Correct |
41 ms |
11988 KB |
Output is correct |
22 |
Correct |
59 ms |
12028 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
1577 ms |
7076 KB |
Output is correct |
25 |
Correct |
1104 ms |
12036 KB |
Output is correct |
26 |
Correct |
1609 ms |
5900 KB |
Output is correct |
27 |
Correct |
1606 ms |
5908 KB |
Output is correct |
28 |
Correct |
46 ms |
11988 KB |
Output is correct |
29 |
Correct |
67 ms |
11988 KB |
Output is correct |
30 |
Correct |
77 ms |
11988 KB |
Output is correct |
31 |
Correct |
356 ms |
12028 KB |
Output is correct |
32 |
Correct |
108 ms |
11988 KB |
Output is correct |
33 |
Correct |
369 ms |
12044 KB |
Output is correct |
34 |
Correct |
402 ms |
12028 KB |
Output is correct |
35 |
Correct |
348 ms |
12108 KB |
Output is correct |
36 |
Correct |
44 ms |
12028 KB |
Output is correct |
37 |
Correct |
52 ms |
12108 KB |
Output is correct |
38 |
Correct |
190 ms |
12032 KB |
Output is correct |
39 |
Correct |
250 ms |
12028 KB |
Output is correct |
40 |
Correct |
23 ms |
11988 KB |
Output is correct |
41 |
Correct |
18 ms |
12044 KB |
Output is correct |
42 |
Correct |
11 ms |
11988 KB |
Output is correct |
43 |
Correct |
80 ms |
12036 KB |
Output is correct |
44 |
Correct |
349 ms |
12032 KB |
Output is correct |
45 |
Correct |
108 ms |
12032 KB |
Output is correct |
46 |
Correct |
374 ms |
12028 KB |
Output is correct |
47 |
Correct |
395 ms |
11988 KB |
Output is correct |
48 |
Correct |
344 ms |
12108 KB |
Output is correct |
49 |
Correct |
45 ms |
11988 KB |
Output is correct |
50 |
Correct |
52 ms |
11988 KB |
Output is correct |
51 |
Correct |
193 ms |
12028 KB |
Output is correct |
52 |
Correct |
259 ms |
12028 KB |
Output is correct |
53 |
Correct |
652 ms |
12056 KB |
Output is correct |
54 |
Correct |
286 ms |
12036 KB |
Output is correct |
55 |
Correct |
774 ms |
12032 KB |
Output is correct |
56 |
Correct |
670 ms |
12036 KB |
Output is correct |
57 |
Correct |
685 ms |
11988 KB |
Output is correct |
58 |
Correct |
80 ms |
12036 KB |
Output is correct |
59 |
Correct |
354 ms |
12032 KB |
Output is correct |
60 |
Correct |
108 ms |
11988 KB |
Output is correct |
61 |
Correct |
369 ms |
12028 KB |
Output is correct |
62 |
Correct |
471 ms |
12032 KB |
Output is correct |
63 |
Correct |
358 ms |
12032 KB |
Output is correct |
64 |
Correct |
45 ms |
12032 KB |
Output is correct |
65 |
Correct |
52 ms |
12028 KB |
Output is correct |
66 |
Correct |
190 ms |
12032 KB |
Output is correct |
67 |
Correct |
259 ms |
12032 KB |
Output is correct |
68 |
Correct |
41 ms |
11988 KB |
Output is correct |
69 |
Correct |
64 ms |
11988 KB |
Output is correct |
70 |
Correct |
710 ms |
12048 KB |
Output is correct |
71 |
Correct |
322 ms |
12036 KB |
Output is correct |
72 |
Correct |
670 ms |
12040 KB |
Output is correct |
73 |
Correct |
836 ms |
12052 KB |
Output is correct |
74 |
Correct |
792 ms |
12036 KB |
Output is correct |
75 |
Correct |
517 ms |
12036 KB |
Output is correct |
76 |
Correct |
24 ms |
11988 KB |
Output is correct |
77 |
Correct |
19 ms |
12044 KB |
Output is correct |
78 |
Correct |
11 ms |
11988 KB |
Output is correct |
79 |
Correct |
78 ms |
12024 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
1301 ms |
12036 KB |
Output is correct |
82 |
Correct |
554 ms |
12028 KB |
Output is correct |
83 |
Correct |
1287 ms |
12036 KB |
Output is correct |
84 |
Correct |
1562 ms |
12044 KB |
Output is correct |
85 |
Correct |
42 ms |
12028 KB |
Output is correct |
86 |
Correct |
71 ms |
11988 KB |
Output is correct |
87 |
Correct |
378 ms |
12028 KB |
Output is correct |
88 |
Correct |
105 ms |
12024 KB |
Output is correct |
89 |
Correct |
376 ms |
12040 KB |
Output is correct |
90 |
Correct |
399 ms |
12036 KB |
Output is correct |
91 |
Correct |
345 ms |
12044 KB |
Output is correct |
92 |
Correct |
46 ms |
12072 KB |
Output is correct |
93 |
Correct |
52 ms |
11988 KB |
Output is correct |
94 |
Correct |
187 ms |
12028 KB |
Output is correct |
95 |
Correct |
254 ms |
12032 KB |
Output is correct |
96 |
Correct |
657 ms |
12044 KB |
Output is correct |
97 |
Correct |
289 ms |
11988 KB |
Output is correct |
98 |
Correct |
774 ms |
12052 KB |
Output is correct |
99 |
Correct |
675 ms |
12032 KB |
Output is correct |
100 |
Correct |
692 ms |
12108 KB |
Output is correct |
101 |
Correct |
676 ms |
12108 KB |
Output is correct |
102 |
Correct |
311 ms |
12036 KB |
Output is correct |
103 |
Correct |
652 ms |
11988 KB |
Output is correct |
104 |
Correct |
769 ms |
12036 KB |
Output is correct |
105 |
Correct |
717 ms |
12048 KB |
Output is correct |
106 |
Correct |
534 ms |
12032 KB |
Output is correct |
107 |
Correct |
1311 ms |
12044 KB |
Output is correct |
108 |
Correct |
1541 ms |
12048 KB |
Output is correct |
109 |
Correct |
1317 ms |
12032 KB |
Output is correct |
110 |
Correct |
1377 ms |
12044 KB |
Output is correct |
111 |
Correct |
87 ms |
12028 KB |
Output is correct |
112 |
Correct |
369 ms |
12028 KB |
Output is correct |
113 |
Correct |
111 ms |
12028 KB |
Output is correct |
114 |
Correct |
446 ms |
12036 KB |
Output is correct |
115 |
Correct |
447 ms |
12032 KB |
Output is correct |
116 |
Correct |
366 ms |
12028 KB |
Output is correct |
117 |
Correct |
58 ms |
11988 KB |
Output is correct |
118 |
Correct |
54 ms |
12024 KB |
Output is correct |
119 |
Correct |
210 ms |
12044 KB |
Output is correct |
120 |
Correct |
267 ms |
12032 KB |
Output is correct |
121 |
Correct |
44 ms |
11988 KB |
Output is correct |
122 |
Correct |
62 ms |
11988 KB |
Output is correct |
123 |
Correct |
726 ms |
12048 KB |
Output is correct |
124 |
Correct |
306 ms |
12032 KB |
Output is correct |
125 |
Correct |
683 ms |
11944 KB |
Output is correct |
126 |
Correct |
839 ms |
12032 KB |
Output is correct |
127 |
Correct |
717 ms |
12036 KB |
Output is correct |
128 |
Correct |
547 ms |
12108 KB |
Output is correct |
129 |
Correct |
45 ms |
11988 KB |
Output is correct |
130 |
Correct |
74 ms |
12032 KB |
Output is correct |
131 |
Correct |
1563 ms |
12044 KB |
Output is correct |
132 |
Correct |
660 ms |
12036 KB |
Output is correct |
133 |
Correct |
1669 ms |
12048 KB |
Output is correct |
134 |
Correct |
1680 ms |
11368 KB |
Output is correct |
135 |
Correct |
1557 ms |
12044 KB |
Output is correct |
136 |
Correct |
1307 ms |
12036 KB |
Output is correct |
137 |
Correct |
24 ms |
12044 KB |
Output is correct |
138 |
Correct |
18 ms |
11968 KB |
Output is correct |
139 |
Correct |
11 ms |
11988 KB |
Output is correct |
140 |
Correct |
78 ms |
12028 KB |
Output is correct |
141 |
Correct |
0 ms |
212 KB |
Output is correct |
142 |
Correct |
1296 ms |
12036 KB |
Output is correct |
143 |
Correct |
556 ms |
12032 KB |
Output is correct |
144 |
Correct |
1288 ms |
12108 KB |
Output is correct |
145 |
Correct |
1553 ms |
12048 KB |
Output is correct |
146 |
Correct |
43 ms |
11972 KB |
Output is correct |
147 |
Correct |
76 ms |
11988 KB |
Output is correct |
148 |
Correct |
0 ms |
212 KB |
Output is correct |
149 |
Correct |
1680 ms |
7072 KB |
Output is correct |
150 |
Correct |
1182 ms |
12032 KB |
Output is correct |
151 |
Correct |
1646 ms |
5900 KB |
Output is correct |
152 |
Correct |
1686 ms |
5908 KB |
Output is correct |
153 |
Correct |
45 ms |
11988 KB |
Output is correct |
154 |
Correct |
68 ms |
12024 KB |
Output is correct |
155 |
Correct |
372 ms |
12028 KB |
Output is correct |
156 |
Correct |
111 ms |
12108 KB |
Output is correct |
157 |
Correct |
371 ms |
11988 KB |
Output is correct |
158 |
Correct |
419 ms |
12028 KB |
Output is correct |
159 |
Correct |
359 ms |
12028 KB |
Output is correct |
160 |
Correct |
45 ms |
12028 KB |
Output is correct |
161 |
Correct |
53 ms |
12032 KB |
Output is correct |
162 |
Correct |
200 ms |
11988 KB |
Output is correct |
163 |
Correct |
261 ms |
11988 KB |
Output is correct |
164 |
Correct |
686 ms |
12032 KB |
Output is correct |
165 |
Correct |
316 ms |
12028 KB |
Output is correct |
166 |
Correct |
691 ms |
12036 KB |
Output is correct |
167 |
Correct |
805 ms |
12036 KB |
Output is correct |
168 |
Correct |
712 ms |
12032 KB |
Output is correct |
169 |
Correct |
546 ms |
12032 KB |
Output is correct |
170 |
Correct |
748 ms |
12040 KB |
Output is correct |
171 |
Correct |
306 ms |
12032 KB |
Output is correct |
172 |
Correct |
816 ms |
12036 KB |
Output is correct |
173 |
Correct |
700 ms |
12036 KB |
Output is correct |
174 |
Correct |
759 ms |
12032 KB |
Output is correct |
175 |
Correct |
1600 ms |
12044 KB |
Output is correct |
176 |
Correct |
1761 ms |
12048 KB |
Output is correct |
177 |
Correct |
1480 ms |
12032 KB |
Output is correct |
178 |
Correct |
1548 ms |
12044 KB |
Output is correct |
179 |
Correct |
1735 ms |
12044 KB |
Output is correct |
180 |
Correct |
846 ms |
12040 KB |
Output is correct |
181 |
Correct |
1958 ms |
12052 KB |
Output is correct |
182 |
Correct |
1878 ms |
11456 KB |
Output is correct |
183 |
Correct |
1751 ms |
12044 KB |
Output is correct |
184 |
Correct |
1387 ms |
12036 KB |
Output is correct |
185 |
Correct |
1631 ms |
6868 KB |
Output is correct |
186 |
Correct |
1680 ms |
5892 KB |
Output is correct |
187 |
Incorrect |
1638 ms |
6704 KB |
Output isn't correct |
188 |
Halted |
0 ms |
0 KB |
- |