# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
745188 |
2023-05-19T14:22:15 Z |
박상훈(#9964) |
Uplifting Excursion (BOI22_vault) |
C++17 |
|
5000 ms |
3284 KB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
constexpr int SFT = 10010;
int n;
ll L, a[1010], b[1010];
bitset<20020> dp[2][606];
// struct BITSET{
// unsigned long long bt[MX+1]; //bt[sz] should be 0
// int sz; //size < MX
// }dp[2][606];
// void _bit_on(BITSET &B, int pos){
// if ((pos>>6) >= sz){
// for (int i=sz+1;i<=(pos>>6)+1;i++) bt[i] = 0;
// sz = (pos>>6)+1;
// }
// B.bt[pos>>6] |= 1LL<<(pos&63);
// }
// bool _chk_on(BITSET &B, int pos){
// return ((pos>>6) < sz) && (B.bt[pos>>6] & (1LL<<(pos&63)));
// }
// void _shift_or(BITSET &prv, BITSET &now, int sft){
// now.sz = prv.sz;
// for (int i=0;i<=sz;i++) now.bt[i] = prv.bt[i];
// }
ll getmin(ll v, bool flag = 0){
ll ret = 0;
for (int i=-n;i<=n;i++){
ret += (ll)i * min(v, a[i+n]);
if (flag) b[i+n] = min(v, a[i+n]);
v -= min(v, a[i+n]);
}
return ret;
}
ll getmax(ll v, bool flag = 0){
ll ret = 0;
for (int i=n;i>=-n;i--){
ret += (ll)i * min(v, a[i+n]);
if (flag) b[i+n] = min(v, a[i+n]);
v -= min(v, a[i+n]);
}
return ret;
}
void NO(){
printf("impossible\n");
exit(0);
}
void solve(ll v){
ll mn = getmin(v), mx = getmax(v);
if (abs(mn-L) > n && abs(mx-L) > n) assert(0);
if (abs(mn-L) <= n){
reverse(a, a+n*2+1);
L = -L;
mn = getmin(v), mx = getmax(v);
if (abs(mn-L) > n && abs(mx-L) > n) assert(0);
}
getmax(v, 1);
int z = 0;
ll r = n*2+2;
//init
// _bit_on(dp[0][0], 0);
dp[0][0][0+SFT] = 1;
for (int i=n;i>=-n;i--){
if (b[i+n] > 0){
for (int j=1;j<=min(b[i+n], r);j++){
z ^= 1;
dp[z][0] = dp[z^1][0];
for (int p=0;p<r;p++){
// _shift_or(dp[z^1][p], dp[z][p+1], i);
if (i>=0) dp[z][p+1] = dp[z^1][p+1] | (dp[z^1][p] << i);
else dp[z][p+1] = dp[z^1][p+1] | (dp[z^1][p] >> (-i));
// printf("i = %d, j = %d, p+1 = %d -> ", i, j, p+1);
// for (int x=-20;x<20;x++){
// if (x==0) printf(" ");
// printf("%d", (int)dp[z][p+1][x+SFT]);
// }
// printf("\n");
}
}
}
if (b[i+n] < a[i+n]){
for (int j=1;j<=min(a[i+n]-b[i+n], r);j++){
z ^= 1;
dp[z][r] = dp[z^1][r];
for (int p=1;p<=r;p++){
// _shift_or(dp[z^1][p], dp[z][p-1], -i);
if (i>=0) dp[z][p-1] = dp[z^1][p-1] | (dp[z^1][p] >> i);
else dp[z][p-1] = dp[z^1][p-1] | (dp[z^1][p] << (-i));
// printf("i = %d, j = %d, p-1 = %d -> ", i, j, p-1);
// for (int x=-20;x<20;x++){
// if (x==0) printf(" ");
// printf("%d", (int)dp[z][p-1][x+SFT]);
// }
// printf("\n");
}
}
}
}
ll need = mx - L;
for (int i=0;i<=r;i++) if (dp[z][i][need+SFT]){
printf("%lld\n", v-i);
return;
}
NO();
}
int main(){
scanf("%d %lld", &n, &L);
ll mS = 0, pS = 0, S = 0;
for (int i=0;i<=n*2;i++){
scanf("%lld", a+i);
S += a[i];
if (i-n < 0) mS += a[i];
else if (i-n > 0) pS += a[i];
}
// printf("%lld %lld %lld %lld\n", mS, pS, getmin(mS), getmax(pS));
if (L < getmin(mS)) NO();
if (L > getmax(pS)) NO();
ll l = mS, r = S, vmn = mS;
while(l<=r){
ll mid = (l+r)/2;
if (getmin(mid) <= L) vmn = mid, l = mid+1;
else r = mid-1;
}
l = pS, r = S;
ll vmx = pS;
while(l<=r){
ll mid = (l+r)/2;
if (getmax(mid) >= L) vmx = mid, l = mid+1;
else r = mid-1;
}
ll v = min(vmn, vmx); // [v+1, S]는 불가능
// printf("%lld(%lld, %lld) -> %lld %lld\n", v, vmn, vmx, getmin(v), getmax(v));
if (!(getmin(v) <= L) || !(getmax(v) >= L)) NO();
solve(v);
}
Compilation message
vault.cpp: In function 'int main()':
vault.cpp:124:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
124 | scanf("%d %lld", &n, &L);
| ~~~~~^~~~~~~~~~~~~~~~~~~
vault.cpp:128:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
128 | scanf("%lld", a+i);
| ~~~~~^~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
340 KB |
Output is correct |
4 |
Correct |
2 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
234 ms |
812 KB |
Output is correct |
7 |
Correct |
106 ms |
724 KB |
Output is correct |
8 |
Correct |
223 ms |
724 KB |
Output is correct |
9 |
Correct |
415 ms |
816 KB |
Output is correct |
10 |
Correct |
10 ms |
724 KB |
Output is correct |
11 |
Correct |
8 ms |
724 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
340 KB |
Output is correct |
4 |
Correct |
2 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
234 ms |
812 KB |
Output is correct |
7 |
Correct |
106 ms |
724 KB |
Output is correct |
8 |
Correct |
223 ms |
724 KB |
Output is correct |
9 |
Correct |
415 ms |
816 KB |
Output is correct |
10 |
Correct |
10 ms |
724 KB |
Output is correct |
11 |
Correct |
8 ms |
724 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
2 ms |
440 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
241 ms |
812 KB |
Output is correct |
18 |
Correct |
98 ms |
828 KB |
Output is correct |
19 |
Correct |
250 ms |
816 KB |
Output is correct |
20 |
Correct |
447 ms |
724 KB |
Output is correct |
21 |
Correct |
10 ms |
724 KB |
Output is correct |
22 |
Correct |
8 ms |
832 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1796 ms |
1308 KB |
Output is correct |
25 |
Correct |
656 ms |
1304 KB |
Output is correct |
26 |
Correct |
3531 ms |
1304 KB |
Output is correct |
27 |
Correct |
3453 ms |
1304 KB |
Output is correct |
28 |
Correct |
46 ms |
1236 KB |
Output is correct |
29 |
Correct |
41 ms |
1316 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
340 KB |
Output is correct |
2 |
Correct |
49 ms |
596 KB |
Output is correct |
3 |
Correct |
16 ms |
560 KB |
Output is correct |
4 |
Correct |
60 ms |
596 KB |
Output is correct |
5 |
Correct |
64 ms |
596 KB |
Output is correct |
6 |
Correct |
36 ms |
620 KB |
Output is correct |
7 |
Correct |
10 ms |
640 KB |
Output is correct |
8 |
Correct |
8 ms |
644 KB |
Output is correct |
9 |
Correct |
20 ms |
620 KB |
Output is correct |
10 |
Correct |
37 ms |
620 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
340 KB |
Output is correct |
2 |
Correct |
49 ms |
596 KB |
Output is correct |
3 |
Correct |
16 ms |
560 KB |
Output is correct |
4 |
Correct |
60 ms |
596 KB |
Output is correct |
5 |
Correct |
64 ms |
596 KB |
Output is correct |
6 |
Correct |
36 ms |
620 KB |
Output is correct |
7 |
Correct |
10 ms |
640 KB |
Output is correct |
8 |
Correct |
8 ms |
644 KB |
Output is correct |
9 |
Correct |
20 ms |
620 KB |
Output is correct |
10 |
Correct |
37 ms |
620 KB |
Output is correct |
11 |
Correct |
1 ms |
304 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
308 KB |
Output is correct |
14 |
Correct |
2 ms |
432 KB |
Output is correct |
15 |
Correct |
51 ms |
564 KB |
Output is correct |
16 |
Correct |
16 ms |
596 KB |
Output is correct |
17 |
Correct |
62 ms |
616 KB |
Output is correct |
18 |
Correct |
63 ms |
596 KB |
Output is correct |
19 |
Correct |
38 ms |
624 KB |
Output is correct |
20 |
Correct |
11 ms |
596 KB |
Output is correct |
21 |
Correct |
7 ms |
596 KB |
Output is correct |
22 |
Correct |
21 ms |
640 KB |
Output is correct |
23 |
Correct |
36 ms |
596 KB |
Output is correct |
24 |
Correct |
118 ms |
616 KB |
Output is correct |
25 |
Correct |
39 ms |
596 KB |
Output is correct |
26 |
Correct |
129 ms |
596 KB |
Output is correct |
27 |
Correct |
93 ms |
620 KB |
Output is correct |
28 |
Correct |
109 ms |
596 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
340 KB |
Output is correct |
2 |
Correct |
49 ms |
596 KB |
Output is correct |
3 |
Correct |
16 ms |
560 KB |
Output is correct |
4 |
Correct |
60 ms |
596 KB |
Output is correct |
5 |
Correct |
64 ms |
596 KB |
Output is correct |
6 |
Correct |
36 ms |
620 KB |
Output is correct |
7 |
Correct |
10 ms |
640 KB |
Output is correct |
8 |
Correct |
8 ms |
644 KB |
Output is correct |
9 |
Correct |
20 ms |
620 KB |
Output is correct |
10 |
Correct |
37 ms |
620 KB |
Output is correct |
11 |
Correct |
2 ms |
436 KB |
Output is correct |
12 |
Correct |
52 ms |
716 KB |
Output is correct |
13 |
Correct |
16 ms |
636 KB |
Output is correct |
14 |
Correct |
59 ms |
620 KB |
Output is correct |
15 |
Correct |
63 ms |
620 KB |
Output is correct |
16 |
Correct |
35 ms |
596 KB |
Output is correct |
17 |
Correct |
10 ms |
644 KB |
Output is correct |
18 |
Correct |
7 ms |
596 KB |
Output is correct |
19 |
Correct |
21 ms |
636 KB |
Output is correct |
20 |
Correct |
38 ms |
596 KB |
Output is correct |
21 |
Correct |
13 ms |
820 KB |
Output is correct |
22 |
Correct |
8 ms |
724 KB |
Output is correct |
23 |
Correct |
229 ms |
812 KB |
Output is correct |
24 |
Correct |
120 ms |
812 KB |
Output is correct |
25 |
Correct |
208 ms |
812 KB |
Output is correct |
26 |
Correct |
305 ms |
820 KB |
Output is correct |
27 |
Correct |
227 ms |
812 KB |
Output is correct |
28 |
Correct |
227 ms |
824 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
340 KB |
Output is correct |
4 |
Correct |
2 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
234 ms |
812 KB |
Output is correct |
7 |
Correct |
106 ms |
724 KB |
Output is correct |
8 |
Correct |
223 ms |
724 KB |
Output is correct |
9 |
Correct |
415 ms |
816 KB |
Output is correct |
10 |
Correct |
10 ms |
724 KB |
Output is correct |
11 |
Correct |
8 ms |
724 KB |
Output is correct |
12 |
Correct |
3 ms |
340 KB |
Output is correct |
13 |
Correct |
49 ms |
596 KB |
Output is correct |
14 |
Correct |
16 ms |
560 KB |
Output is correct |
15 |
Correct |
60 ms |
596 KB |
Output is correct |
16 |
Correct |
64 ms |
596 KB |
Output is correct |
17 |
Correct |
36 ms |
620 KB |
Output is correct |
18 |
Correct |
10 ms |
640 KB |
Output is correct |
19 |
Correct |
8 ms |
644 KB |
Output is correct |
20 |
Correct |
20 ms |
620 KB |
Output is correct |
21 |
Correct |
37 ms |
620 KB |
Output is correct |
22 |
Correct |
1 ms |
304 KB |
Output is correct |
23 |
Correct |
1 ms |
340 KB |
Output is correct |
24 |
Correct |
1 ms |
308 KB |
Output is correct |
25 |
Correct |
2 ms |
432 KB |
Output is correct |
26 |
Correct |
51 ms |
564 KB |
Output is correct |
27 |
Correct |
16 ms |
596 KB |
Output is correct |
28 |
Correct |
62 ms |
616 KB |
Output is correct |
29 |
Correct |
63 ms |
596 KB |
Output is correct |
30 |
Correct |
38 ms |
624 KB |
Output is correct |
31 |
Correct |
11 ms |
596 KB |
Output is correct |
32 |
Correct |
7 ms |
596 KB |
Output is correct |
33 |
Correct |
21 ms |
640 KB |
Output is correct |
34 |
Correct |
36 ms |
596 KB |
Output is correct |
35 |
Correct |
118 ms |
616 KB |
Output is correct |
36 |
Correct |
39 ms |
596 KB |
Output is correct |
37 |
Correct |
129 ms |
596 KB |
Output is correct |
38 |
Correct |
93 ms |
620 KB |
Output is correct |
39 |
Correct |
109 ms |
596 KB |
Output is correct |
40 |
Correct |
2 ms |
436 KB |
Output is correct |
41 |
Correct |
52 ms |
716 KB |
Output is correct |
42 |
Correct |
16 ms |
636 KB |
Output is correct |
43 |
Correct |
59 ms |
620 KB |
Output is correct |
44 |
Correct |
63 ms |
620 KB |
Output is correct |
45 |
Correct |
35 ms |
596 KB |
Output is correct |
46 |
Correct |
10 ms |
644 KB |
Output is correct |
47 |
Correct |
7 ms |
596 KB |
Output is correct |
48 |
Correct |
21 ms |
636 KB |
Output is correct |
49 |
Correct |
38 ms |
596 KB |
Output is correct |
50 |
Correct |
13 ms |
820 KB |
Output is correct |
51 |
Correct |
8 ms |
724 KB |
Output is correct |
52 |
Correct |
229 ms |
812 KB |
Output is correct |
53 |
Correct |
120 ms |
812 KB |
Output is correct |
54 |
Correct |
208 ms |
812 KB |
Output is correct |
55 |
Correct |
305 ms |
820 KB |
Output is correct |
56 |
Correct |
227 ms |
812 KB |
Output is correct |
57 |
Correct |
227 ms |
824 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
1 ms |
340 KB |
Output is correct |
60 |
Correct |
1 ms |
304 KB |
Output is correct |
61 |
Correct |
2 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
212 KB |
Output is correct |
63 |
Correct |
236 ms |
820 KB |
Output is correct |
64 |
Correct |
91 ms |
724 KB |
Output is correct |
65 |
Correct |
230 ms |
724 KB |
Output is correct |
66 |
Correct |
433 ms |
816 KB |
Output is correct |
67 |
Correct |
11 ms |
852 KB |
Output is correct |
68 |
Correct |
9 ms |
832 KB |
Output is correct |
69 |
Correct |
51 ms |
620 KB |
Output is correct |
70 |
Correct |
16 ms |
596 KB |
Output is correct |
71 |
Correct |
61 ms |
620 KB |
Output is correct |
72 |
Correct |
66 ms |
620 KB |
Output is correct |
73 |
Correct |
36 ms |
596 KB |
Output is correct |
74 |
Correct |
10 ms |
596 KB |
Output is correct |
75 |
Correct |
7 ms |
596 KB |
Output is correct |
76 |
Correct |
20 ms |
560 KB |
Output is correct |
77 |
Correct |
36 ms |
616 KB |
Output is correct |
78 |
Correct |
111 ms |
616 KB |
Output is correct |
79 |
Correct |
40 ms |
620 KB |
Output is correct |
80 |
Correct |
124 ms |
612 KB |
Output is correct |
81 |
Correct |
94 ms |
616 KB |
Output is correct |
82 |
Correct |
112 ms |
596 KB |
Output is correct |
83 |
Correct |
204 ms |
816 KB |
Output is correct |
84 |
Correct |
115 ms |
812 KB |
Output is correct |
85 |
Correct |
221 ms |
820 KB |
Output is correct |
86 |
Correct |
313 ms |
844 KB |
Output is correct |
87 |
Correct |
242 ms |
820 KB |
Output is correct |
88 |
Correct |
209 ms |
724 KB |
Output is correct |
89 |
Correct |
414 ms |
812 KB |
Output is correct |
90 |
Correct |
617 ms |
816 KB |
Output is correct |
91 |
Correct |
458 ms |
844 KB |
Output is correct |
92 |
Correct |
515 ms |
820 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
340 KB |
Output is correct |
2 |
Correct |
49 ms |
596 KB |
Output is correct |
3 |
Correct |
16 ms |
560 KB |
Output is correct |
4 |
Correct |
60 ms |
596 KB |
Output is correct |
5 |
Correct |
64 ms |
596 KB |
Output is correct |
6 |
Correct |
36 ms |
620 KB |
Output is correct |
7 |
Correct |
10 ms |
640 KB |
Output is correct |
8 |
Correct |
8 ms |
644 KB |
Output is correct |
9 |
Correct |
20 ms |
620 KB |
Output is correct |
10 |
Correct |
37 ms |
620 KB |
Output is correct |
11 |
Correct |
2 ms |
436 KB |
Output is correct |
12 |
Correct |
52 ms |
716 KB |
Output is correct |
13 |
Correct |
16 ms |
636 KB |
Output is correct |
14 |
Correct |
59 ms |
620 KB |
Output is correct |
15 |
Correct |
63 ms |
620 KB |
Output is correct |
16 |
Correct |
35 ms |
596 KB |
Output is correct |
17 |
Correct |
10 ms |
644 KB |
Output is correct |
18 |
Correct |
7 ms |
596 KB |
Output is correct |
19 |
Correct |
21 ms |
636 KB |
Output is correct |
20 |
Correct |
38 ms |
596 KB |
Output is correct |
21 |
Correct |
13 ms |
820 KB |
Output is correct |
22 |
Correct |
8 ms |
724 KB |
Output is correct |
23 |
Correct |
229 ms |
812 KB |
Output is correct |
24 |
Correct |
120 ms |
812 KB |
Output is correct |
25 |
Correct |
208 ms |
812 KB |
Output is correct |
26 |
Correct |
305 ms |
820 KB |
Output is correct |
27 |
Correct |
227 ms |
812 KB |
Output is correct |
28 |
Correct |
227 ms |
824 KB |
Output is correct |
29 |
Correct |
2 ms |
432 KB |
Output is correct |
30 |
Correct |
57 ms |
596 KB |
Output is correct |
31 |
Correct |
15 ms |
632 KB |
Output is correct |
32 |
Correct |
61 ms |
620 KB |
Output is correct |
33 |
Correct |
63 ms |
560 KB |
Output is correct |
34 |
Correct |
36 ms |
596 KB |
Output is correct |
35 |
Correct |
10 ms |
640 KB |
Output is correct |
36 |
Correct |
7 ms |
596 KB |
Output is correct |
37 |
Correct |
19 ms |
636 KB |
Output is correct |
38 |
Correct |
35 ms |
616 KB |
Output is correct |
39 |
Correct |
10 ms |
724 KB |
Output is correct |
40 |
Correct |
8 ms |
816 KB |
Output is correct |
41 |
Correct |
199 ms |
724 KB |
Output is correct |
42 |
Correct |
118 ms |
812 KB |
Output is correct |
43 |
Correct |
204 ms |
820 KB |
Output is correct |
44 |
Correct |
305 ms |
816 KB |
Output is correct |
45 |
Correct |
238 ms |
816 KB |
Output is correct |
46 |
Correct |
218 ms |
816 KB |
Output is correct |
47 |
Correct |
46 ms |
1300 KB |
Output is correct |
48 |
Correct |
37 ms |
1236 KB |
Output is correct |
49 |
Correct |
1698 ms |
1300 KB |
Output is correct |
50 |
Correct |
724 ms |
1300 KB |
Output is correct |
51 |
Correct |
1956 ms |
1300 KB |
Output is correct |
52 |
Correct |
2426 ms |
1304 KB |
Output is correct |
53 |
Correct |
1705 ms |
1356 KB |
Output is correct |
54 |
Correct |
1361 ms |
1304 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
340 KB |
Output is correct |
4 |
Correct |
2 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
234 ms |
812 KB |
Output is correct |
7 |
Correct |
106 ms |
724 KB |
Output is correct |
8 |
Correct |
223 ms |
724 KB |
Output is correct |
9 |
Correct |
415 ms |
816 KB |
Output is correct |
10 |
Correct |
10 ms |
724 KB |
Output is correct |
11 |
Correct |
8 ms |
724 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
2 ms |
440 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
241 ms |
812 KB |
Output is correct |
18 |
Correct |
98 ms |
828 KB |
Output is correct |
19 |
Correct |
250 ms |
816 KB |
Output is correct |
20 |
Correct |
447 ms |
724 KB |
Output is correct |
21 |
Correct |
10 ms |
724 KB |
Output is correct |
22 |
Correct |
8 ms |
832 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1796 ms |
1308 KB |
Output is correct |
25 |
Correct |
656 ms |
1304 KB |
Output is correct |
26 |
Correct |
3531 ms |
1304 KB |
Output is correct |
27 |
Correct |
3453 ms |
1304 KB |
Output is correct |
28 |
Correct |
46 ms |
1236 KB |
Output is correct |
29 |
Correct |
41 ms |
1316 KB |
Output is correct |
30 |
Correct |
3 ms |
340 KB |
Output is correct |
31 |
Correct |
49 ms |
596 KB |
Output is correct |
32 |
Correct |
16 ms |
560 KB |
Output is correct |
33 |
Correct |
60 ms |
596 KB |
Output is correct |
34 |
Correct |
64 ms |
596 KB |
Output is correct |
35 |
Correct |
36 ms |
620 KB |
Output is correct |
36 |
Correct |
10 ms |
640 KB |
Output is correct |
37 |
Correct |
8 ms |
644 KB |
Output is correct |
38 |
Correct |
20 ms |
620 KB |
Output is correct |
39 |
Correct |
37 ms |
620 KB |
Output is correct |
40 |
Correct |
1 ms |
304 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
308 KB |
Output is correct |
43 |
Correct |
2 ms |
432 KB |
Output is correct |
44 |
Correct |
51 ms |
564 KB |
Output is correct |
45 |
Correct |
16 ms |
596 KB |
Output is correct |
46 |
Correct |
62 ms |
616 KB |
Output is correct |
47 |
Correct |
63 ms |
596 KB |
Output is correct |
48 |
Correct |
38 ms |
624 KB |
Output is correct |
49 |
Correct |
11 ms |
596 KB |
Output is correct |
50 |
Correct |
7 ms |
596 KB |
Output is correct |
51 |
Correct |
21 ms |
640 KB |
Output is correct |
52 |
Correct |
36 ms |
596 KB |
Output is correct |
53 |
Correct |
118 ms |
616 KB |
Output is correct |
54 |
Correct |
39 ms |
596 KB |
Output is correct |
55 |
Correct |
129 ms |
596 KB |
Output is correct |
56 |
Correct |
93 ms |
620 KB |
Output is correct |
57 |
Correct |
109 ms |
596 KB |
Output is correct |
58 |
Correct |
2 ms |
436 KB |
Output is correct |
59 |
Correct |
52 ms |
716 KB |
Output is correct |
60 |
Correct |
16 ms |
636 KB |
Output is correct |
61 |
Correct |
59 ms |
620 KB |
Output is correct |
62 |
Correct |
63 ms |
620 KB |
Output is correct |
63 |
Correct |
35 ms |
596 KB |
Output is correct |
64 |
Correct |
10 ms |
644 KB |
Output is correct |
65 |
Correct |
7 ms |
596 KB |
Output is correct |
66 |
Correct |
21 ms |
636 KB |
Output is correct |
67 |
Correct |
38 ms |
596 KB |
Output is correct |
68 |
Correct |
13 ms |
820 KB |
Output is correct |
69 |
Correct |
8 ms |
724 KB |
Output is correct |
70 |
Correct |
229 ms |
812 KB |
Output is correct |
71 |
Correct |
120 ms |
812 KB |
Output is correct |
72 |
Correct |
208 ms |
812 KB |
Output is correct |
73 |
Correct |
305 ms |
820 KB |
Output is correct |
74 |
Correct |
227 ms |
812 KB |
Output is correct |
75 |
Correct |
227 ms |
824 KB |
Output is correct |
76 |
Correct |
1 ms |
340 KB |
Output is correct |
77 |
Correct |
1 ms |
340 KB |
Output is correct |
78 |
Correct |
1 ms |
304 KB |
Output is correct |
79 |
Correct |
2 ms |
340 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
236 ms |
820 KB |
Output is correct |
82 |
Correct |
91 ms |
724 KB |
Output is correct |
83 |
Correct |
230 ms |
724 KB |
Output is correct |
84 |
Correct |
433 ms |
816 KB |
Output is correct |
85 |
Correct |
11 ms |
852 KB |
Output is correct |
86 |
Correct |
9 ms |
832 KB |
Output is correct |
87 |
Correct |
51 ms |
620 KB |
Output is correct |
88 |
Correct |
16 ms |
596 KB |
Output is correct |
89 |
Correct |
61 ms |
620 KB |
Output is correct |
90 |
Correct |
66 ms |
620 KB |
Output is correct |
91 |
Correct |
36 ms |
596 KB |
Output is correct |
92 |
Correct |
10 ms |
596 KB |
Output is correct |
93 |
Correct |
7 ms |
596 KB |
Output is correct |
94 |
Correct |
20 ms |
560 KB |
Output is correct |
95 |
Correct |
36 ms |
616 KB |
Output is correct |
96 |
Correct |
111 ms |
616 KB |
Output is correct |
97 |
Correct |
40 ms |
620 KB |
Output is correct |
98 |
Correct |
124 ms |
612 KB |
Output is correct |
99 |
Correct |
94 ms |
616 KB |
Output is correct |
100 |
Correct |
112 ms |
596 KB |
Output is correct |
101 |
Correct |
204 ms |
816 KB |
Output is correct |
102 |
Correct |
115 ms |
812 KB |
Output is correct |
103 |
Correct |
221 ms |
820 KB |
Output is correct |
104 |
Correct |
313 ms |
844 KB |
Output is correct |
105 |
Correct |
242 ms |
820 KB |
Output is correct |
106 |
Correct |
209 ms |
724 KB |
Output is correct |
107 |
Correct |
414 ms |
812 KB |
Output is correct |
108 |
Correct |
617 ms |
816 KB |
Output is correct |
109 |
Correct |
458 ms |
844 KB |
Output is correct |
110 |
Correct |
515 ms |
820 KB |
Output is correct |
111 |
Correct |
2 ms |
432 KB |
Output is correct |
112 |
Correct |
57 ms |
596 KB |
Output is correct |
113 |
Correct |
15 ms |
632 KB |
Output is correct |
114 |
Correct |
61 ms |
620 KB |
Output is correct |
115 |
Correct |
63 ms |
560 KB |
Output is correct |
116 |
Correct |
36 ms |
596 KB |
Output is correct |
117 |
Correct |
10 ms |
640 KB |
Output is correct |
118 |
Correct |
7 ms |
596 KB |
Output is correct |
119 |
Correct |
19 ms |
636 KB |
Output is correct |
120 |
Correct |
35 ms |
616 KB |
Output is correct |
121 |
Correct |
10 ms |
724 KB |
Output is correct |
122 |
Correct |
8 ms |
816 KB |
Output is correct |
123 |
Correct |
199 ms |
724 KB |
Output is correct |
124 |
Correct |
118 ms |
812 KB |
Output is correct |
125 |
Correct |
204 ms |
820 KB |
Output is correct |
126 |
Correct |
305 ms |
816 KB |
Output is correct |
127 |
Correct |
238 ms |
816 KB |
Output is correct |
128 |
Correct |
218 ms |
816 KB |
Output is correct |
129 |
Correct |
46 ms |
1300 KB |
Output is correct |
130 |
Correct |
37 ms |
1236 KB |
Output is correct |
131 |
Correct |
1698 ms |
1300 KB |
Output is correct |
132 |
Correct |
724 ms |
1300 KB |
Output is correct |
133 |
Correct |
1956 ms |
1300 KB |
Output is correct |
134 |
Correct |
2426 ms |
1304 KB |
Output is correct |
135 |
Correct |
1705 ms |
1356 KB |
Output is correct |
136 |
Correct |
1361 ms |
1304 KB |
Output is correct |
137 |
Correct |
1 ms |
340 KB |
Output is correct |
138 |
Correct |
1 ms |
340 KB |
Output is correct |
139 |
Correct |
1 ms |
340 KB |
Output is correct |
140 |
Correct |
2 ms |
340 KB |
Output is correct |
141 |
Correct |
1 ms |
308 KB |
Output is correct |
142 |
Correct |
238 ms |
724 KB |
Output is correct |
143 |
Correct |
93 ms |
824 KB |
Output is correct |
144 |
Correct |
223 ms |
812 KB |
Output is correct |
145 |
Correct |
413 ms |
816 KB |
Output is correct |
146 |
Correct |
11 ms |
820 KB |
Output is correct |
147 |
Correct |
7 ms |
724 KB |
Output is correct |
148 |
Correct |
0 ms |
212 KB |
Output is correct |
149 |
Correct |
1811 ms |
1300 KB |
Output is correct |
150 |
Correct |
644 ms |
1236 KB |
Output is correct |
151 |
Correct |
3512 ms |
1304 KB |
Output is correct |
152 |
Correct |
3416 ms |
1312 KB |
Output is correct |
153 |
Correct |
42 ms |
1236 KB |
Output is correct |
154 |
Correct |
37 ms |
1236 KB |
Output is correct |
155 |
Correct |
51 ms |
596 KB |
Output is correct |
156 |
Correct |
16 ms |
640 KB |
Output is correct |
157 |
Correct |
63 ms |
620 KB |
Output is correct |
158 |
Correct |
62 ms |
596 KB |
Output is correct |
159 |
Correct |
36 ms |
620 KB |
Output is correct |
160 |
Correct |
10 ms |
560 KB |
Output is correct |
161 |
Correct |
8 ms |
688 KB |
Output is correct |
162 |
Correct |
20 ms |
636 KB |
Output is correct |
163 |
Correct |
39 ms |
620 KB |
Output is correct |
164 |
Correct |
201 ms |
724 KB |
Output is correct |
165 |
Correct |
130 ms |
812 KB |
Output is correct |
166 |
Correct |
219 ms |
844 KB |
Output is correct |
167 |
Correct |
314 ms |
724 KB |
Output is correct |
168 |
Correct |
232 ms |
724 KB |
Output is correct |
169 |
Correct |
215 ms |
828 KB |
Output is correct |
170 |
Correct |
117 ms |
596 KB |
Output is correct |
171 |
Correct |
41 ms |
632 KB |
Output is correct |
172 |
Correct |
125 ms |
620 KB |
Output is correct |
173 |
Correct |
86 ms |
596 KB |
Output is correct |
174 |
Correct |
109 ms |
620 KB |
Output is correct |
175 |
Correct |
405 ms |
832 KB |
Output is correct |
176 |
Correct |
614 ms |
812 KB |
Output is correct |
177 |
Correct |
426 ms |
816 KB |
Output is correct |
178 |
Correct |
505 ms |
820 KB |
Output is correct |
179 |
Correct |
1658 ms |
1304 KB |
Output is correct |
180 |
Correct |
694 ms |
1304 KB |
Output is correct |
181 |
Correct |
1960 ms |
1304 KB |
Output is correct |
182 |
Correct |
2450 ms |
1300 KB |
Output is correct |
183 |
Correct |
1694 ms |
1300 KB |
Output is correct |
184 |
Correct |
1345 ms |
1308 KB |
Output is correct |
185 |
Correct |
3512 ms |
1316 KB |
Output is correct |
186 |
Correct |
4742 ms |
1308 KB |
Output is correct |
187 |
Correct |
3416 ms |
1308 KB |
Output is correct |
188 |
Correct |
3319 ms |
1300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
340 KB |
Output is correct |
2 |
Correct |
49 ms |
596 KB |
Output is correct |
3 |
Correct |
16 ms |
560 KB |
Output is correct |
4 |
Correct |
60 ms |
596 KB |
Output is correct |
5 |
Correct |
64 ms |
596 KB |
Output is correct |
6 |
Correct |
36 ms |
620 KB |
Output is correct |
7 |
Correct |
10 ms |
640 KB |
Output is correct |
8 |
Correct |
8 ms |
644 KB |
Output is correct |
9 |
Correct |
20 ms |
620 KB |
Output is correct |
10 |
Correct |
37 ms |
620 KB |
Output is correct |
11 |
Correct |
2 ms |
436 KB |
Output is correct |
12 |
Correct |
52 ms |
716 KB |
Output is correct |
13 |
Correct |
16 ms |
636 KB |
Output is correct |
14 |
Correct |
59 ms |
620 KB |
Output is correct |
15 |
Correct |
63 ms |
620 KB |
Output is correct |
16 |
Correct |
35 ms |
596 KB |
Output is correct |
17 |
Correct |
10 ms |
644 KB |
Output is correct |
18 |
Correct |
7 ms |
596 KB |
Output is correct |
19 |
Correct |
21 ms |
636 KB |
Output is correct |
20 |
Correct |
38 ms |
596 KB |
Output is correct |
21 |
Correct |
13 ms |
820 KB |
Output is correct |
22 |
Correct |
8 ms |
724 KB |
Output is correct |
23 |
Correct |
229 ms |
812 KB |
Output is correct |
24 |
Correct |
120 ms |
812 KB |
Output is correct |
25 |
Correct |
208 ms |
812 KB |
Output is correct |
26 |
Correct |
305 ms |
820 KB |
Output is correct |
27 |
Correct |
227 ms |
812 KB |
Output is correct |
28 |
Correct |
227 ms |
824 KB |
Output is correct |
29 |
Correct |
2 ms |
432 KB |
Output is correct |
30 |
Correct |
57 ms |
596 KB |
Output is correct |
31 |
Correct |
15 ms |
632 KB |
Output is correct |
32 |
Correct |
61 ms |
620 KB |
Output is correct |
33 |
Correct |
63 ms |
560 KB |
Output is correct |
34 |
Correct |
36 ms |
596 KB |
Output is correct |
35 |
Correct |
10 ms |
640 KB |
Output is correct |
36 |
Correct |
7 ms |
596 KB |
Output is correct |
37 |
Correct |
19 ms |
636 KB |
Output is correct |
38 |
Correct |
35 ms |
616 KB |
Output is correct |
39 |
Correct |
10 ms |
724 KB |
Output is correct |
40 |
Correct |
8 ms |
816 KB |
Output is correct |
41 |
Correct |
199 ms |
724 KB |
Output is correct |
42 |
Correct |
118 ms |
812 KB |
Output is correct |
43 |
Correct |
204 ms |
820 KB |
Output is correct |
44 |
Correct |
305 ms |
816 KB |
Output is correct |
45 |
Correct |
238 ms |
816 KB |
Output is correct |
46 |
Correct |
218 ms |
816 KB |
Output is correct |
47 |
Correct |
46 ms |
1300 KB |
Output is correct |
48 |
Correct |
37 ms |
1236 KB |
Output is correct |
49 |
Correct |
1698 ms |
1300 KB |
Output is correct |
50 |
Correct |
724 ms |
1300 KB |
Output is correct |
51 |
Correct |
1956 ms |
1300 KB |
Output is correct |
52 |
Correct |
2426 ms |
1304 KB |
Output is correct |
53 |
Correct |
1705 ms |
1356 KB |
Output is correct |
54 |
Correct |
1361 ms |
1304 KB |
Output is correct |
55 |
Correct |
2 ms |
340 KB |
Output is correct |
56 |
Correct |
54 ms |
632 KB |
Output is correct |
57 |
Correct |
16 ms |
596 KB |
Output is correct |
58 |
Correct |
62 ms |
596 KB |
Output is correct |
59 |
Correct |
68 ms |
620 KB |
Output is correct |
60 |
Correct |
35 ms |
596 KB |
Output is correct |
61 |
Correct |
10 ms |
644 KB |
Output is correct |
62 |
Correct |
8 ms |
644 KB |
Output is correct |
63 |
Correct |
22 ms |
640 KB |
Output is correct |
64 |
Correct |
36 ms |
620 KB |
Output is correct |
65 |
Correct |
10 ms |
820 KB |
Output is correct |
66 |
Correct |
8 ms |
724 KB |
Output is correct |
67 |
Correct |
201 ms |
844 KB |
Output is correct |
68 |
Correct |
115 ms |
724 KB |
Output is correct |
69 |
Correct |
208 ms |
820 KB |
Output is correct |
70 |
Correct |
308 ms |
816 KB |
Output is correct |
71 |
Correct |
234 ms |
816 KB |
Output is correct |
72 |
Correct |
221 ms |
724 KB |
Output is correct |
73 |
Correct |
43 ms |
1236 KB |
Output is correct |
74 |
Correct |
38 ms |
1208 KB |
Output is correct |
75 |
Correct |
1689 ms |
1300 KB |
Output is correct |
76 |
Correct |
691 ms |
1304 KB |
Output is correct |
77 |
Correct |
1920 ms |
1308 KB |
Output is correct |
78 |
Correct |
2362 ms |
1304 KB |
Output is correct |
79 |
Correct |
1668 ms |
1356 KB |
Output is correct |
80 |
Correct |
1374 ms |
1300 KB |
Output is correct |
81 |
Execution timed out |
5030 ms |
3284 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
340 KB |
Output is correct |
4 |
Correct |
2 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
234 ms |
812 KB |
Output is correct |
7 |
Correct |
106 ms |
724 KB |
Output is correct |
8 |
Correct |
223 ms |
724 KB |
Output is correct |
9 |
Correct |
415 ms |
816 KB |
Output is correct |
10 |
Correct |
10 ms |
724 KB |
Output is correct |
11 |
Correct |
8 ms |
724 KB |
Output is correct |
12 |
Correct |
1 ms |
340 KB |
Output is correct |
13 |
Correct |
1 ms |
340 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
2 ms |
440 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
241 ms |
812 KB |
Output is correct |
18 |
Correct |
98 ms |
828 KB |
Output is correct |
19 |
Correct |
250 ms |
816 KB |
Output is correct |
20 |
Correct |
447 ms |
724 KB |
Output is correct |
21 |
Correct |
10 ms |
724 KB |
Output is correct |
22 |
Correct |
8 ms |
832 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
1796 ms |
1308 KB |
Output is correct |
25 |
Correct |
656 ms |
1304 KB |
Output is correct |
26 |
Correct |
3531 ms |
1304 KB |
Output is correct |
27 |
Correct |
3453 ms |
1304 KB |
Output is correct |
28 |
Correct |
46 ms |
1236 KB |
Output is correct |
29 |
Correct |
41 ms |
1316 KB |
Output is correct |
30 |
Correct |
3 ms |
340 KB |
Output is correct |
31 |
Correct |
49 ms |
596 KB |
Output is correct |
32 |
Correct |
16 ms |
560 KB |
Output is correct |
33 |
Correct |
60 ms |
596 KB |
Output is correct |
34 |
Correct |
64 ms |
596 KB |
Output is correct |
35 |
Correct |
36 ms |
620 KB |
Output is correct |
36 |
Correct |
10 ms |
640 KB |
Output is correct |
37 |
Correct |
8 ms |
644 KB |
Output is correct |
38 |
Correct |
20 ms |
620 KB |
Output is correct |
39 |
Correct |
37 ms |
620 KB |
Output is correct |
40 |
Correct |
1 ms |
304 KB |
Output is correct |
41 |
Correct |
1 ms |
340 KB |
Output is correct |
42 |
Correct |
1 ms |
308 KB |
Output is correct |
43 |
Correct |
2 ms |
432 KB |
Output is correct |
44 |
Correct |
51 ms |
564 KB |
Output is correct |
45 |
Correct |
16 ms |
596 KB |
Output is correct |
46 |
Correct |
62 ms |
616 KB |
Output is correct |
47 |
Correct |
63 ms |
596 KB |
Output is correct |
48 |
Correct |
38 ms |
624 KB |
Output is correct |
49 |
Correct |
11 ms |
596 KB |
Output is correct |
50 |
Correct |
7 ms |
596 KB |
Output is correct |
51 |
Correct |
21 ms |
640 KB |
Output is correct |
52 |
Correct |
36 ms |
596 KB |
Output is correct |
53 |
Correct |
118 ms |
616 KB |
Output is correct |
54 |
Correct |
39 ms |
596 KB |
Output is correct |
55 |
Correct |
129 ms |
596 KB |
Output is correct |
56 |
Correct |
93 ms |
620 KB |
Output is correct |
57 |
Correct |
109 ms |
596 KB |
Output is correct |
58 |
Correct |
2 ms |
436 KB |
Output is correct |
59 |
Correct |
52 ms |
716 KB |
Output is correct |
60 |
Correct |
16 ms |
636 KB |
Output is correct |
61 |
Correct |
59 ms |
620 KB |
Output is correct |
62 |
Correct |
63 ms |
620 KB |
Output is correct |
63 |
Correct |
35 ms |
596 KB |
Output is correct |
64 |
Correct |
10 ms |
644 KB |
Output is correct |
65 |
Correct |
7 ms |
596 KB |
Output is correct |
66 |
Correct |
21 ms |
636 KB |
Output is correct |
67 |
Correct |
38 ms |
596 KB |
Output is correct |
68 |
Correct |
13 ms |
820 KB |
Output is correct |
69 |
Correct |
8 ms |
724 KB |
Output is correct |
70 |
Correct |
229 ms |
812 KB |
Output is correct |
71 |
Correct |
120 ms |
812 KB |
Output is correct |
72 |
Correct |
208 ms |
812 KB |
Output is correct |
73 |
Correct |
305 ms |
820 KB |
Output is correct |
74 |
Correct |
227 ms |
812 KB |
Output is correct |
75 |
Correct |
227 ms |
824 KB |
Output is correct |
76 |
Correct |
1 ms |
340 KB |
Output is correct |
77 |
Correct |
1 ms |
340 KB |
Output is correct |
78 |
Correct |
1 ms |
304 KB |
Output is correct |
79 |
Correct |
2 ms |
340 KB |
Output is correct |
80 |
Correct |
1 ms |
212 KB |
Output is correct |
81 |
Correct |
236 ms |
820 KB |
Output is correct |
82 |
Correct |
91 ms |
724 KB |
Output is correct |
83 |
Correct |
230 ms |
724 KB |
Output is correct |
84 |
Correct |
433 ms |
816 KB |
Output is correct |
85 |
Correct |
11 ms |
852 KB |
Output is correct |
86 |
Correct |
9 ms |
832 KB |
Output is correct |
87 |
Correct |
51 ms |
620 KB |
Output is correct |
88 |
Correct |
16 ms |
596 KB |
Output is correct |
89 |
Correct |
61 ms |
620 KB |
Output is correct |
90 |
Correct |
66 ms |
620 KB |
Output is correct |
91 |
Correct |
36 ms |
596 KB |
Output is correct |
92 |
Correct |
10 ms |
596 KB |
Output is correct |
93 |
Correct |
7 ms |
596 KB |
Output is correct |
94 |
Correct |
20 ms |
560 KB |
Output is correct |
95 |
Correct |
36 ms |
616 KB |
Output is correct |
96 |
Correct |
111 ms |
616 KB |
Output is correct |
97 |
Correct |
40 ms |
620 KB |
Output is correct |
98 |
Correct |
124 ms |
612 KB |
Output is correct |
99 |
Correct |
94 ms |
616 KB |
Output is correct |
100 |
Correct |
112 ms |
596 KB |
Output is correct |
101 |
Correct |
204 ms |
816 KB |
Output is correct |
102 |
Correct |
115 ms |
812 KB |
Output is correct |
103 |
Correct |
221 ms |
820 KB |
Output is correct |
104 |
Correct |
313 ms |
844 KB |
Output is correct |
105 |
Correct |
242 ms |
820 KB |
Output is correct |
106 |
Correct |
209 ms |
724 KB |
Output is correct |
107 |
Correct |
414 ms |
812 KB |
Output is correct |
108 |
Correct |
617 ms |
816 KB |
Output is correct |
109 |
Correct |
458 ms |
844 KB |
Output is correct |
110 |
Correct |
515 ms |
820 KB |
Output is correct |
111 |
Correct |
2 ms |
432 KB |
Output is correct |
112 |
Correct |
57 ms |
596 KB |
Output is correct |
113 |
Correct |
15 ms |
632 KB |
Output is correct |
114 |
Correct |
61 ms |
620 KB |
Output is correct |
115 |
Correct |
63 ms |
560 KB |
Output is correct |
116 |
Correct |
36 ms |
596 KB |
Output is correct |
117 |
Correct |
10 ms |
640 KB |
Output is correct |
118 |
Correct |
7 ms |
596 KB |
Output is correct |
119 |
Correct |
19 ms |
636 KB |
Output is correct |
120 |
Correct |
35 ms |
616 KB |
Output is correct |
121 |
Correct |
10 ms |
724 KB |
Output is correct |
122 |
Correct |
8 ms |
816 KB |
Output is correct |
123 |
Correct |
199 ms |
724 KB |
Output is correct |
124 |
Correct |
118 ms |
812 KB |
Output is correct |
125 |
Correct |
204 ms |
820 KB |
Output is correct |
126 |
Correct |
305 ms |
816 KB |
Output is correct |
127 |
Correct |
238 ms |
816 KB |
Output is correct |
128 |
Correct |
218 ms |
816 KB |
Output is correct |
129 |
Correct |
46 ms |
1300 KB |
Output is correct |
130 |
Correct |
37 ms |
1236 KB |
Output is correct |
131 |
Correct |
1698 ms |
1300 KB |
Output is correct |
132 |
Correct |
724 ms |
1300 KB |
Output is correct |
133 |
Correct |
1956 ms |
1300 KB |
Output is correct |
134 |
Correct |
2426 ms |
1304 KB |
Output is correct |
135 |
Correct |
1705 ms |
1356 KB |
Output is correct |
136 |
Correct |
1361 ms |
1304 KB |
Output is correct |
137 |
Correct |
1 ms |
340 KB |
Output is correct |
138 |
Correct |
1 ms |
340 KB |
Output is correct |
139 |
Correct |
1 ms |
340 KB |
Output is correct |
140 |
Correct |
2 ms |
340 KB |
Output is correct |
141 |
Correct |
1 ms |
308 KB |
Output is correct |
142 |
Correct |
238 ms |
724 KB |
Output is correct |
143 |
Correct |
93 ms |
824 KB |
Output is correct |
144 |
Correct |
223 ms |
812 KB |
Output is correct |
145 |
Correct |
413 ms |
816 KB |
Output is correct |
146 |
Correct |
11 ms |
820 KB |
Output is correct |
147 |
Correct |
7 ms |
724 KB |
Output is correct |
148 |
Correct |
0 ms |
212 KB |
Output is correct |
149 |
Correct |
1811 ms |
1300 KB |
Output is correct |
150 |
Correct |
644 ms |
1236 KB |
Output is correct |
151 |
Correct |
3512 ms |
1304 KB |
Output is correct |
152 |
Correct |
3416 ms |
1312 KB |
Output is correct |
153 |
Correct |
42 ms |
1236 KB |
Output is correct |
154 |
Correct |
37 ms |
1236 KB |
Output is correct |
155 |
Correct |
51 ms |
596 KB |
Output is correct |
156 |
Correct |
16 ms |
640 KB |
Output is correct |
157 |
Correct |
63 ms |
620 KB |
Output is correct |
158 |
Correct |
62 ms |
596 KB |
Output is correct |
159 |
Correct |
36 ms |
620 KB |
Output is correct |
160 |
Correct |
10 ms |
560 KB |
Output is correct |
161 |
Correct |
8 ms |
688 KB |
Output is correct |
162 |
Correct |
20 ms |
636 KB |
Output is correct |
163 |
Correct |
39 ms |
620 KB |
Output is correct |
164 |
Correct |
201 ms |
724 KB |
Output is correct |
165 |
Correct |
130 ms |
812 KB |
Output is correct |
166 |
Correct |
219 ms |
844 KB |
Output is correct |
167 |
Correct |
314 ms |
724 KB |
Output is correct |
168 |
Correct |
232 ms |
724 KB |
Output is correct |
169 |
Correct |
215 ms |
828 KB |
Output is correct |
170 |
Correct |
117 ms |
596 KB |
Output is correct |
171 |
Correct |
41 ms |
632 KB |
Output is correct |
172 |
Correct |
125 ms |
620 KB |
Output is correct |
173 |
Correct |
86 ms |
596 KB |
Output is correct |
174 |
Correct |
109 ms |
620 KB |
Output is correct |
175 |
Correct |
405 ms |
832 KB |
Output is correct |
176 |
Correct |
614 ms |
812 KB |
Output is correct |
177 |
Correct |
426 ms |
816 KB |
Output is correct |
178 |
Correct |
505 ms |
820 KB |
Output is correct |
179 |
Correct |
1658 ms |
1304 KB |
Output is correct |
180 |
Correct |
694 ms |
1304 KB |
Output is correct |
181 |
Correct |
1960 ms |
1304 KB |
Output is correct |
182 |
Correct |
2450 ms |
1300 KB |
Output is correct |
183 |
Correct |
1694 ms |
1300 KB |
Output is correct |
184 |
Correct |
1345 ms |
1308 KB |
Output is correct |
185 |
Correct |
3512 ms |
1316 KB |
Output is correct |
186 |
Correct |
4742 ms |
1308 KB |
Output is correct |
187 |
Correct |
3416 ms |
1308 KB |
Output is correct |
188 |
Correct |
3319 ms |
1300 KB |
Output is correct |
189 |
Correct |
2 ms |
340 KB |
Output is correct |
190 |
Correct |
54 ms |
632 KB |
Output is correct |
191 |
Correct |
16 ms |
596 KB |
Output is correct |
192 |
Correct |
62 ms |
596 KB |
Output is correct |
193 |
Correct |
68 ms |
620 KB |
Output is correct |
194 |
Correct |
35 ms |
596 KB |
Output is correct |
195 |
Correct |
10 ms |
644 KB |
Output is correct |
196 |
Correct |
8 ms |
644 KB |
Output is correct |
197 |
Correct |
22 ms |
640 KB |
Output is correct |
198 |
Correct |
36 ms |
620 KB |
Output is correct |
199 |
Correct |
10 ms |
820 KB |
Output is correct |
200 |
Correct |
8 ms |
724 KB |
Output is correct |
201 |
Correct |
201 ms |
844 KB |
Output is correct |
202 |
Correct |
115 ms |
724 KB |
Output is correct |
203 |
Correct |
208 ms |
820 KB |
Output is correct |
204 |
Correct |
308 ms |
816 KB |
Output is correct |
205 |
Correct |
234 ms |
816 KB |
Output is correct |
206 |
Correct |
221 ms |
724 KB |
Output is correct |
207 |
Correct |
43 ms |
1236 KB |
Output is correct |
208 |
Correct |
38 ms |
1208 KB |
Output is correct |
209 |
Correct |
1689 ms |
1300 KB |
Output is correct |
210 |
Correct |
691 ms |
1304 KB |
Output is correct |
211 |
Correct |
1920 ms |
1308 KB |
Output is correct |
212 |
Correct |
2362 ms |
1304 KB |
Output is correct |
213 |
Correct |
1668 ms |
1356 KB |
Output is correct |
214 |
Correct |
1374 ms |
1300 KB |
Output is correct |
215 |
Execution timed out |
5030 ms |
3284 KB |
Time limit exceeded |
216 |
Halted |
0 ms |
0 KB |
- |