#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const int mx = 105;
const int mx2 = mx*mx;
const ll inf = 1e18;
const ll ninf = -1e18;
ll m, l;
ll cnt_neg[mx];
ll cnt_pos[mx];
ll cnt_zero;
ll dp[mx2*2];
ll cnt_pos_good[mx];
ll cnt_pos_bad[mx];
ll cnt_neg_good[mx];
ll cnt_neg_bad[mx];
void solve(ll target, ll cur_cnt_sum) {
if(target >= mx2 || target < -mx2) {
cout << "impossible" << endl;
return;
}
dp[mx2 + target] = cur_cnt_sum;
for(int i = 1; i <= m; i++) {
/* positive good */
if(cnt_pos_good[i]) {
for(int residue = 0; residue < i; residue++) {
map<ll, ll> vals;
vector<ll> history;
ll t = 0;
for(int cur_pos = residue; cur_pos < mx2*2; cur_pos += i) {
ll tmp_val = dp[cur_pos] - t;
if(vals.size())
dp[cur_pos] = max(dp[cur_pos], vals.rbegin()->first + t);
vals[tmp_val]++;
history.push_back(tmp_val);
if(t >= cnt_pos_good[i]) {
ll tmp = history[t - cnt_pos_good[i]];
vals[tmp]--;
if(vals[tmp] == 0) vals.erase(tmp);
}
t++;
}
}
}
/* positive bad */
if(cnt_pos_bad[i]) {
for(int residue = 0; residue < i; residue++) {
map<ll, ll> vals;
vector<ll> history;
ll t = 0;
for(int cur_pos = residue; cur_pos < mx2*2; cur_pos += i) {
ll tmp_val = dp[cur_pos] + t;
if(vals.size())
dp[cur_pos] = max(dp[cur_pos], vals.rbegin()->first - t);
vals[tmp_val]++;
history.push_back(tmp_val);
if(t >= cnt_pos_bad[i]) {
ll tmp = history[t - cnt_pos_bad[i]];
vals[tmp]--;
if(vals[tmp] == 0) vals.erase(tmp);
}
t++;
}
}
}
/* negitive good */
if(cnt_neg_good[i]) {
for(int residue = 0; residue < i; residue++) {
map<ll, ll> vals;
vector<ll> history;
ll t = 0;
for(int cur_neg = mx2*2 - 1 - residue; cur_neg >= 0; cur_neg -= i) {
ll tmp_val = dp[cur_neg] - t;
if(vals.size())
dp[cur_neg] = max(dp[cur_neg], vals.rbegin()->first + t);
vals[tmp_val]++;
history.push_back(tmp_val);
if(t >= cnt_neg_good[i]) {
ll tmp = history[t - cnt_neg_good[i]];
vals[tmp]--;
if(vals[tmp] == 0) vals.erase(tmp);
}
t++;
}
}
}
/* negitive bad */
if(cnt_neg_bad[i]) {
for(int residue = 0; residue < i; residue++) {
map<ll, ll> vals;
vector<ll> history;
ll t = 0;
for(int cur_neg = mx2*2 - 1 - residue; cur_neg >= 0; cur_neg -= i) {
ll tmp_val = dp[cur_neg] + t;
if(vals.size())
dp[cur_neg] = max(dp[cur_neg], vals.rbegin()->first - t);
vals[tmp_val]++;
history.push_back(tmp_val);
if(t >= cnt_neg_bad[i]) {
ll tmp = history[t - cnt_neg_bad[i]];
vals[tmp]--;
if(vals[tmp] == 0) vals.erase(tmp);
}
t++;
}
}
}
}
if(dp[mx2] < 0) cout << "impossible" << endl;
else cout << dp[mx2] << endl;
}
void eq() {
ll total_cnt = cnt_zero;
for(int i = 1; i <= m; i++) {
total_cnt += cnt_neg[i] + cnt_pos[i];
}
cout << total_cnt << endl;
exit(0);
}
void more_pos() {
ll sum_neg = l;
for(int i = 1; i <= m; i++) {
sum_neg += cnt_neg[i] * i;
}
/* binary search: */
ll cnt_pos_used = 0;
for(ll delta = (1ll<<60); delta >= 1; delta >>= 1) {
ll test_value = cnt_pos_used + delta;
ll cur_sum = 0;
ll remaining = test_value;
for(int i = 1; i <= m; i++) {
if(cnt_pos[i] >= remaining) {
cur_sum += remaining * i;
remaining = 0;
break;
} else {
cur_sum += cnt_pos[i] * i;
remaining -= cnt_pos[i];
}
}
if(remaining > 0) continue;
if(cur_sum < sum_neg) cnt_pos_used = test_value;
}
cnt_pos_used++;
ll target = -sum_neg;
ll remaining = cnt_pos_used;
ll ans = cnt_pos_used + cnt_zero;
for(int i = 1; i <= m; i++) {
if(remaining <= cnt_pos[i]) {
cnt_pos_good[i] = cnt_pos[i] - remaining;
cnt_neg_bad[i] = remaining;
target += remaining * i;
remaining = 0;
} else {
cnt_neg_bad[i] = cnt_pos[i];
target += cnt_pos[i] * i;
remaining -= cnt_pos[i];
}
cnt_pos_bad[i] = cnt_neg[i];
ans += cnt_neg[i];
}
solve(target, ans);
}
void more_neg() {
for(int i = 1; i <= m; i++) {
swap(cnt_pos[i], cnt_neg[i]);
}
l *= -1;
more_pos();
}
main() {
for(int i = 0; i < mx2*2; i++) dp[i] = ninf;
cin >> m >> l;
ll sum_pos = 0;
ll sum_neg = 0;
for(int i = m; i >= 1; i--) {
cin >> cnt_neg[i];
sum_neg += cnt_neg[i] * i;
}
cin >> cnt_zero;
for(int i = 1; i <= m; i++) {
cin >> cnt_pos[i];
sum_pos += cnt_pos[i] * i;
}
if(sum_pos < l) {
cout << "impossible" << endl;
return 0;
}
if(sum_pos - sum_neg == l) eq();
if(sum_pos - sum_neg > l) more_pos();
if(sum_pos - sum_neg < l) more_neg();
}
Compilation message
vault.cpp:171:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
171 | main() {
| ^~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
9 ms |
852 KB |
Output is correct |
2 |
Correct |
5 ms |
636 KB |
Output is correct |
3 |
Correct |
6 ms |
852 KB |
Output is correct |
4 |
Correct |
16 ms |
852 KB |
Output is correct |
5 |
Correct |
0 ms |
468 KB |
Output is correct |
6 |
Correct |
185 ms |
928 KB |
Output is correct |
7 |
Correct |
91 ms |
636 KB |
Output is correct |
8 |
Correct |
202 ms |
852 KB |
Output is correct |
9 |
Correct |
221 ms |
852 KB |
Output is correct |
10 |
Correct |
6 ms |
468 KB |
Output is correct |
11 |
Correct |
12 ms |
492 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
9 ms |
852 KB |
Output is correct |
2 |
Correct |
5 ms |
636 KB |
Output is correct |
3 |
Correct |
6 ms |
852 KB |
Output is correct |
4 |
Correct |
16 ms |
852 KB |
Output is correct |
5 |
Correct |
0 ms |
468 KB |
Output is correct |
6 |
Correct |
185 ms |
928 KB |
Output is correct |
7 |
Correct |
91 ms |
636 KB |
Output is correct |
8 |
Correct |
202 ms |
852 KB |
Output is correct |
9 |
Correct |
221 ms |
852 KB |
Output is correct |
10 |
Correct |
6 ms |
468 KB |
Output is correct |
11 |
Correct |
12 ms |
492 KB |
Output is correct |
12 |
Correct |
8 ms |
872 KB |
Output is correct |
13 |
Correct |
6 ms |
636 KB |
Output is correct |
14 |
Correct |
4 ms |
852 KB |
Output is correct |
15 |
Correct |
15 ms |
920 KB |
Output is correct |
16 |
Correct |
1 ms |
468 KB |
Output is correct |
17 |
Correct |
214 ms |
852 KB |
Output is correct |
18 |
Correct |
90 ms |
636 KB |
Output is correct |
19 |
Correct |
208 ms |
852 KB |
Output is correct |
20 |
Correct |
220 ms |
884 KB |
Output is correct |
21 |
Correct |
8 ms |
512 KB |
Output is correct |
22 |
Correct |
14 ms |
496 KB |
Output is correct |
23 |
Correct |
0 ms |
468 KB |
Output is correct |
24 |
Correct |
338 ms |
852 KB |
Output is correct |
25 |
Correct |
164 ms |
468 KB |
Output is correct |
26 |
Correct |
379 ms |
928 KB |
Output is correct |
27 |
Correct |
404 ms |
928 KB |
Output is correct |
28 |
Correct |
8 ms |
468 KB |
Output is correct |
29 |
Correct |
13 ms |
488 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
852 KB |
Output is correct |
2 |
Correct |
47 ms |
964 KB |
Output is correct |
3 |
Correct |
17 ms |
592 KB |
Output is correct |
4 |
Correct |
51 ms |
1244 KB |
Output is correct |
5 |
Correct |
65 ms |
852 KB |
Output is correct |
6 |
Correct |
63 ms |
2000 KB |
Output is correct |
7 |
Correct |
3 ms |
468 KB |
Output is correct |
8 |
Correct |
10 ms |
468 KB |
Output is correct |
9 |
Correct |
37 ms |
2000 KB |
Output is correct |
10 |
Correct |
38 ms |
852 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
852 KB |
Output is correct |
2 |
Correct |
47 ms |
964 KB |
Output is correct |
3 |
Correct |
17 ms |
592 KB |
Output is correct |
4 |
Correct |
51 ms |
1244 KB |
Output is correct |
5 |
Correct |
65 ms |
852 KB |
Output is correct |
6 |
Correct |
63 ms |
2000 KB |
Output is correct |
7 |
Correct |
3 ms |
468 KB |
Output is correct |
8 |
Correct |
10 ms |
468 KB |
Output is correct |
9 |
Correct |
37 ms |
2000 KB |
Output is correct |
10 |
Correct |
38 ms |
852 KB |
Output is correct |
11 |
Correct |
8 ms |
852 KB |
Output is correct |
12 |
Correct |
5 ms |
636 KB |
Output is correct |
13 |
Correct |
6 ms |
852 KB |
Output is correct |
14 |
Correct |
15 ms |
852 KB |
Output is correct |
15 |
Correct |
46 ms |
928 KB |
Output is correct |
16 |
Correct |
16 ms |
532 KB |
Output is correct |
17 |
Correct |
51 ms |
1184 KB |
Output is correct |
18 |
Correct |
49 ms |
852 KB |
Output is correct |
19 |
Correct |
64 ms |
2000 KB |
Output is correct |
20 |
Correct |
3 ms |
468 KB |
Output is correct |
21 |
Correct |
9 ms |
492 KB |
Output is correct |
22 |
Correct |
35 ms |
2000 KB |
Output is correct |
23 |
Correct |
39 ms |
852 KB |
Output is correct |
24 |
Correct |
102 ms |
988 KB |
Output is correct |
25 |
Correct |
48 ms |
632 KB |
Output is correct |
26 |
Correct |
159 ms |
868 KB |
Output is correct |
27 |
Correct |
95 ms |
928 KB |
Output is correct |
28 |
Correct |
117 ms |
1952 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
852 KB |
Output is correct |
2 |
Correct |
47 ms |
964 KB |
Output is correct |
3 |
Correct |
17 ms |
592 KB |
Output is correct |
4 |
Correct |
51 ms |
1244 KB |
Output is correct |
5 |
Correct |
65 ms |
852 KB |
Output is correct |
6 |
Correct |
63 ms |
2000 KB |
Output is correct |
7 |
Correct |
3 ms |
468 KB |
Output is correct |
8 |
Correct |
10 ms |
468 KB |
Output is correct |
9 |
Correct |
37 ms |
2000 KB |
Output is correct |
10 |
Correct |
38 ms |
852 KB |
Output is correct |
11 |
Correct |
15 ms |
852 KB |
Output is correct |
12 |
Correct |
57 ms |
928 KB |
Output is correct |
13 |
Correct |
16 ms |
604 KB |
Output is correct |
14 |
Correct |
54 ms |
1240 KB |
Output is correct |
15 |
Correct |
56 ms |
852 KB |
Output is correct |
16 |
Correct |
65 ms |
2000 KB |
Output is correct |
17 |
Correct |
3 ms |
468 KB |
Output is correct |
18 |
Correct |
9 ms |
468 KB |
Output is correct |
19 |
Correct |
35 ms |
2000 KB |
Output is correct |
20 |
Correct |
39 ms |
852 KB |
Output is correct |
21 |
Correct |
10 ms |
484 KB |
Output is correct |
22 |
Correct |
11 ms |
468 KB |
Output is correct |
23 |
Correct |
77 ms |
852 KB |
Output is correct |
24 |
Correct |
38 ms |
596 KB |
Output is correct |
25 |
Correct |
77 ms |
2000 KB |
Output is correct |
26 |
Correct |
120 ms |
1244 KB |
Output is correct |
27 |
Correct |
108 ms |
2000 KB |
Output is correct |
28 |
Correct |
64 ms |
860 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
9 ms |
852 KB |
Output is correct |
2 |
Correct |
5 ms |
636 KB |
Output is correct |
3 |
Correct |
6 ms |
852 KB |
Output is correct |
4 |
Correct |
16 ms |
852 KB |
Output is correct |
5 |
Correct |
0 ms |
468 KB |
Output is correct |
6 |
Correct |
185 ms |
928 KB |
Output is correct |
7 |
Correct |
91 ms |
636 KB |
Output is correct |
8 |
Correct |
202 ms |
852 KB |
Output is correct |
9 |
Correct |
221 ms |
852 KB |
Output is correct |
10 |
Correct |
6 ms |
468 KB |
Output is correct |
11 |
Correct |
12 ms |
492 KB |
Output is correct |
12 |
Correct |
15 ms |
852 KB |
Output is correct |
13 |
Correct |
47 ms |
964 KB |
Output is correct |
14 |
Correct |
17 ms |
592 KB |
Output is correct |
15 |
Correct |
51 ms |
1244 KB |
Output is correct |
16 |
Correct |
65 ms |
852 KB |
Output is correct |
17 |
Correct |
63 ms |
2000 KB |
Output is correct |
18 |
Correct |
3 ms |
468 KB |
Output is correct |
19 |
Correct |
10 ms |
468 KB |
Output is correct |
20 |
Correct |
37 ms |
2000 KB |
Output is correct |
21 |
Correct |
38 ms |
852 KB |
Output is correct |
22 |
Correct |
8 ms |
852 KB |
Output is correct |
23 |
Correct |
5 ms |
636 KB |
Output is correct |
24 |
Correct |
6 ms |
852 KB |
Output is correct |
25 |
Correct |
15 ms |
852 KB |
Output is correct |
26 |
Correct |
46 ms |
928 KB |
Output is correct |
27 |
Correct |
16 ms |
532 KB |
Output is correct |
28 |
Correct |
51 ms |
1184 KB |
Output is correct |
29 |
Correct |
49 ms |
852 KB |
Output is correct |
30 |
Correct |
64 ms |
2000 KB |
Output is correct |
31 |
Correct |
3 ms |
468 KB |
Output is correct |
32 |
Correct |
9 ms |
492 KB |
Output is correct |
33 |
Correct |
35 ms |
2000 KB |
Output is correct |
34 |
Correct |
39 ms |
852 KB |
Output is correct |
35 |
Correct |
102 ms |
988 KB |
Output is correct |
36 |
Correct |
48 ms |
632 KB |
Output is correct |
37 |
Correct |
159 ms |
868 KB |
Output is correct |
38 |
Correct |
95 ms |
928 KB |
Output is correct |
39 |
Correct |
117 ms |
1952 KB |
Output is correct |
40 |
Correct |
15 ms |
852 KB |
Output is correct |
41 |
Correct |
57 ms |
928 KB |
Output is correct |
42 |
Correct |
16 ms |
604 KB |
Output is correct |
43 |
Correct |
54 ms |
1240 KB |
Output is correct |
44 |
Correct |
56 ms |
852 KB |
Output is correct |
45 |
Correct |
65 ms |
2000 KB |
Output is correct |
46 |
Correct |
3 ms |
468 KB |
Output is correct |
47 |
Correct |
9 ms |
468 KB |
Output is correct |
48 |
Correct |
35 ms |
2000 KB |
Output is correct |
49 |
Correct |
39 ms |
852 KB |
Output is correct |
50 |
Correct |
10 ms |
484 KB |
Output is correct |
51 |
Correct |
11 ms |
468 KB |
Output is correct |
52 |
Correct |
77 ms |
852 KB |
Output is correct |
53 |
Correct |
38 ms |
596 KB |
Output is correct |
54 |
Correct |
77 ms |
2000 KB |
Output is correct |
55 |
Correct |
120 ms |
1244 KB |
Output is correct |
56 |
Correct |
108 ms |
2000 KB |
Output is correct |
57 |
Correct |
64 ms |
860 KB |
Output is correct |
58 |
Correct |
8 ms |
852 KB |
Output is correct |
59 |
Correct |
5 ms |
636 KB |
Output is correct |
60 |
Correct |
6 ms |
912 KB |
Output is correct |
61 |
Correct |
15 ms |
852 KB |
Output is correct |
62 |
Correct |
1 ms |
468 KB |
Output is correct |
63 |
Correct |
191 ms |
916 KB |
Output is correct |
64 |
Correct |
85 ms |
636 KB |
Output is correct |
65 |
Correct |
197 ms |
928 KB |
Output is correct |
66 |
Correct |
221 ms |
928 KB |
Output is correct |
67 |
Correct |
7 ms |
468 KB |
Output is correct |
68 |
Correct |
12 ms |
484 KB |
Output is correct |
69 |
Correct |
48 ms |
996 KB |
Output is correct |
70 |
Correct |
16 ms |
596 KB |
Output is correct |
71 |
Correct |
52 ms |
1140 KB |
Output is correct |
72 |
Correct |
53 ms |
852 KB |
Output is correct |
73 |
Correct |
61 ms |
2000 KB |
Output is correct |
74 |
Correct |
4 ms |
468 KB |
Output is correct |
75 |
Correct |
12 ms |
488 KB |
Output is correct |
76 |
Correct |
33 ms |
2000 KB |
Output is correct |
77 |
Correct |
39 ms |
852 KB |
Output is correct |
78 |
Correct |
87 ms |
1008 KB |
Output is correct |
79 |
Correct |
45 ms |
624 KB |
Output is correct |
80 |
Correct |
137 ms |
852 KB |
Output is correct |
81 |
Correct |
93 ms |
884 KB |
Output is correct |
82 |
Correct |
119 ms |
1968 KB |
Output is correct |
83 |
Correct |
78 ms |
852 KB |
Output is correct |
84 |
Correct |
34 ms |
596 KB |
Output is correct |
85 |
Correct |
75 ms |
2000 KB |
Output is correct |
86 |
Correct |
78 ms |
1204 KB |
Output is correct |
87 |
Correct |
103 ms |
2016 KB |
Output is correct |
88 |
Correct |
64 ms |
872 KB |
Output is correct |
89 |
Correct |
157 ms |
1268 KB |
Output is correct |
90 |
Correct |
165 ms |
2000 KB |
Output is correct |
91 |
Correct |
167 ms |
1968 KB |
Output is correct |
92 |
Correct |
206 ms |
2000 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
852 KB |
Output is correct |
2 |
Correct |
47 ms |
964 KB |
Output is correct |
3 |
Correct |
17 ms |
592 KB |
Output is correct |
4 |
Correct |
51 ms |
1244 KB |
Output is correct |
5 |
Correct |
65 ms |
852 KB |
Output is correct |
6 |
Correct |
63 ms |
2000 KB |
Output is correct |
7 |
Correct |
3 ms |
468 KB |
Output is correct |
8 |
Correct |
10 ms |
468 KB |
Output is correct |
9 |
Correct |
37 ms |
2000 KB |
Output is correct |
10 |
Correct |
38 ms |
852 KB |
Output is correct |
11 |
Correct |
15 ms |
852 KB |
Output is correct |
12 |
Correct |
57 ms |
928 KB |
Output is correct |
13 |
Correct |
16 ms |
604 KB |
Output is correct |
14 |
Correct |
54 ms |
1240 KB |
Output is correct |
15 |
Correct |
56 ms |
852 KB |
Output is correct |
16 |
Correct |
65 ms |
2000 KB |
Output is correct |
17 |
Correct |
3 ms |
468 KB |
Output is correct |
18 |
Correct |
9 ms |
468 KB |
Output is correct |
19 |
Correct |
35 ms |
2000 KB |
Output is correct |
20 |
Correct |
39 ms |
852 KB |
Output is correct |
21 |
Correct |
10 ms |
484 KB |
Output is correct |
22 |
Correct |
11 ms |
468 KB |
Output is correct |
23 |
Correct |
77 ms |
852 KB |
Output is correct |
24 |
Correct |
38 ms |
596 KB |
Output is correct |
25 |
Correct |
77 ms |
2000 KB |
Output is correct |
26 |
Correct |
120 ms |
1244 KB |
Output is correct |
27 |
Correct |
108 ms |
2000 KB |
Output is correct |
28 |
Correct |
64 ms |
860 KB |
Output is correct |
29 |
Correct |
23 ms |
852 KB |
Output is correct |
30 |
Correct |
46 ms |
984 KB |
Output is correct |
31 |
Correct |
16 ms |
596 KB |
Output is correct |
32 |
Correct |
51 ms |
1184 KB |
Output is correct |
33 |
Correct |
49 ms |
852 KB |
Output is correct |
34 |
Correct |
61 ms |
2000 KB |
Output is correct |
35 |
Correct |
5 ms |
468 KB |
Output is correct |
36 |
Correct |
10 ms |
468 KB |
Output is correct |
37 |
Correct |
36 ms |
2012 KB |
Output is correct |
38 |
Correct |
39 ms |
852 KB |
Output is correct |
39 |
Correct |
7 ms |
492 KB |
Output is correct |
40 |
Correct |
12 ms |
492 KB |
Output is correct |
41 |
Correct |
78 ms |
852 KB |
Output is correct |
42 |
Correct |
35 ms |
596 KB |
Output is correct |
43 |
Correct |
78 ms |
2000 KB |
Output is correct |
44 |
Correct |
85 ms |
1244 KB |
Output is correct |
45 |
Correct |
121 ms |
2000 KB |
Output is correct |
46 |
Correct |
61 ms |
892 KB |
Output is correct |
47 |
Correct |
6 ms |
468 KB |
Output is correct |
48 |
Correct |
11 ms |
488 KB |
Output is correct |
49 |
Correct |
161 ms |
2000 KB |
Output is correct |
50 |
Correct |
102 ms |
524 KB |
Output is correct |
51 |
Correct |
142 ms |
2000 KB |
Output is correct |
52 |
Correct |
149 ms |
1244 KB |
Output is correct |
53 |
Correct |
237 ms |
2032 KB |
Output is correct |
54 |
Correct |
141 ms |
1252 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
9 ms |
852 KB |
Output is correct |
2 |
Correct |
5 ms |
636 KB |
Output is correct |
3 |
Correct |
6 ms |
852 KB |
Output is correct |
4 |
Correct |
16 ms |
852 KB |
Output is correct |
5 |
Correct |
0 ms |
468 KB |
Output is correct |
6 |
Correct |
185 ms |
928 KB |
Output is correct |
7 |
Correct |
91 ms |
636 KB |
Output is correct |
8 |
Correct |
202 ms |
852 KB |
Output is correct |
9 |
Correct |
221 ms |
852 KB |
Output is correct |
10 |
Correct |
6 ms |
468 KB |
Output is correct |
11 |
Correct |
12 ms |
492 KB |
Output is correct |
12 |
Correct |
8 ms |
872 KB |
Output is correct |
13 |
Correct |
6 ms |
636 KB |
Output is correct |
14 |
Correct |
4 ms |
852 KB |
Output is correct |
15 |
Correct |
15 ms |
920 KB |
Output is correct |
16 |
Correct |
1 ms |
468 KB |
Output is correct |
17 |
Correct |
214 ms |
852 KB |
Output is correct |
18 |
Correct |
90 ms |
636 KB |
Output is correct |
19 |
Correct |
208 ms |
852 KB |
Output is correct |
20 |
Correct |
220 ms |
884 KB |
Output is correct |
21 |
Correct |
8 ms |
512 KB |
Output is correct |
22 |
Correct |
14 ms |
496 KB |
Output is correct |
23 |
Correct |
0 ms |
468 KB |
Output is correct |
24 |
Correct |
338 ms |
852 KB |
Output is correct |
25 |
Correct |
164 ms |
468 KB |
Output is correct |
26 |
Correct |
379 ms |
928 KB |
Output is correct |
27 |
Correct |
404 ms |
928 KB |
Output is correct |
28 |
Correct |
8 ms |
468 KB |
Output is correct |
29 |
Correct |
13 ms |
488 KB |
Output is correct |
30 |
Correct |
15 ms |
852 KB |
Output is correct |
31 |
Correct |
47 ms |
964 KB |
Output is correct |
32 |
Correct |
17 ms |
592 KB |
Output is correct |
33 |
Correct |
51 ms |
1244 KB |
Output is correct |
34 |
Correct |
65 ms |
852 KB |
Output is correct |
35 |
Correct |
63 ms |
2000 KB |
Output is correct |
36 |
Correct |
3 ms |
468 KB |
Output is correct |
37 |
Correct |
10 ms |
468 KB |
Output is correct |
38 |
Correct |
37 ms |
2000 KB |
Output is correct |
39 |
Correct |
38 ms |
852 KB |
Output is correct |
40 |
Correct |
8 ms |
852 KB |
Output is correct |
41 |
Correct |
5 ms |
636 KB |
Output is correct |
42 |
Correct |
6 ms |
852 KB |
Output is correct |
43 |
Correct |
15 ms |
852 KB |
Output is correct |
44 |
Correct |
46 ms |
928 KB |
Output is correct |
45 |
Correct |
16 ms |
532 KB |
Output is correct |
46 |
Correct |
51 ms |
1184 KB |
Output is correct |
47 |
Correct |
49 ms |
852 KB |
Output is correct |
48 |
Correct |
64 ms |
2000 KB |
Output is correct |
49 |
Correct |
3 ms |
468 KB |
Output is correct |
50 |
Correct |
9 ms |
492 KB |
Output is correct |
51 |
Correct |
35 ms |
2000 KB |
Output is correct |
52 |
Correct |
39 ms |
852 KB |
Output is correct |
53 |
Correct |
102 ms |
988 KB |
Output is correct |
54 |
Correct |
48 ms |
632 KB |
Output is correct |
55 |
Correct |
159 ms |
868 KB |
Output is correct |
56 |
Correct |
95 ms |
928 KB |
Output is correct |
57 |
Correct |
117 ms |
1952 KB |
Output is correct |
58 |
Correct |
15 ms |
852 KB |
Output is correct |
59 |
Correct |
57 ms |
928 KB |
Output is correct |
60 |
Correct |
16 ms |
604 KB |
Output is correct |
61 |
Correct |
54 ms |
1240 KB |
Output is correct |
62 |
Correct |
56 ms |
852 KB |
Output is correct |
63 |
Correct |
65 ms |
2000 KB |
Output is correct |
64 |
Correct |
3 ms |
468 KB |
Output is correct |
65 |
Correct |
9 ms |
468 KB |
Output is correct |
66 |
Correct |
35 ms |
2000 KB |
Output is correct |
67 |
Correct |
39 ms |
852 KB |
Output is correct |
68 |
Correct |
10 ms |
484 KB |
Output is correct |
69 |
Correct |
11 ms |
468 KB |
Output is correct |
70 |
Correct |
77 ms |
852 KB |
Output is correct |
71 |
Correct |
38 ms |
596 KB |
Output is correct |
72 |
Correct |
77 ms |
2000 KB |
Output is correct |
73 |
Correct |
120 ms |
1244 KB |
Output is correct |
74 |
Correct |
108 ms |
2000 KB |
Output is correct |
75 |
Correct |
64 ms |
860 KB |
Output is correct |
76 |
Correct |
8 ms |
852 KB |
Output is correct |
77 |
Correct |
5 ms |
636 KB |
Output is correct |
78 |
Correct |
6 ms |
912 KB |
Output is correct |
79 |
Correct |
15 ms |
852 KB |
Output is correct |
80 |
Correct |
1 ms |
468 KB |
Output is correct |
81 |
Correct |
191 ms |
916 KB |
Output is correct |
82 |
Correct |
85 ms |
636 KB |
Output is correct |
83 |
Correct |
197 ms |
928 KB |
Output is correct |
84 |
Correct |
221 ms |
928 KB |
Output is correct |
85 |
Correct |
7 ms |
468 KB |
Output is correct |
86 |
Correct |
12 ms |
484 KB |
Output is correct |
87 |
Correct |
48 ms |
996 KB |
Output is correct |
88 |
Correct |
16 ms |
596 KB |
Output is correct |
89 |
Correct |
52 ms |
1140 KB |
Output is correct |
90 |
Correct |
53 ms |
852 KB |
Output is correct |
91 |
Correct |
61 ms |
2000 KB |
Output is correct |
92 |
Correct |
4 ms |
468 KB |
Output is correct |
93 |
Correct |
12 ms |
488 KB |
Output is correct |
94 |
Correct |
33 ms |
2000 KB |
Output is correct |
95 |
Correct |
39 ms |
852 KB |
Output is correct |
96 |
Correct |
87 ms |
1008 KB |
Output is correct |
97 |
Correct |
45 ms |
624 KB |
Output is correct |
98 |
Correct |
137 ms |
852 KB |
Output is correct |
99 |
Correct |
93 ms |
884 KB |
Output is correct |
100 |
Correct |
119 ms |
1968 KB |
Output is correct |
101 |
Correct |
78 ms |
852 KB |
Output is correct |
102 |
Correct |
34 ms |
596 KB |
Output is correct |
103 |
Correct |
75 ms |
2000 KB |
Output is correct |
104 |
Correct |
78 ms |
1204 KB |
Output is correct |
105 |
Correct |
103 ms |
2016 KB |
Output is correct |
106 |
Correct |
64 ms |
872 KB |
Output is correct |
107 |
Correct |
157 ms |
1268 KB |
Output is correct |
108 |
Correct |
165 ms |
2000 KB |
Output is correct |
109 |
Correct |
167 ms |
1968 KB |
Output is correct |
110 |
Correct |
206 ms |
2000 KB |
Output is correct |
111 |
Correct |
23 ms |
852 KB |
Output is correct |
112 |
Correct |
46 ms |
984 KB |
Output is correct |
113 |
Correct |
16 ms |
596 KB |
Output is correct |
114 |
Correct |
51 ms |
1184 KB |
Output is correct |
115 |
Correct |
49 ms |
852 KB |
Output is correct |
116 |
Correct |
61 ms |
2000 KB |
Output is correct |
117 |
Correct |
5 ms |
468 KB |
Output is correct |
118 |
Correct |
10 ms |
468 KB |
Output is correct |
119 |
Correct |
36 ms |
2012 KB |
Output is correct |
120 |
Correct |
39 ms |
852 KB |
Output is correct |
121 |
Correct |
7 ms |
492 KB |
Output is correct |
122 |
Correct |
12 ms |
492 KB |
Output is correct |
123 |
Correct |
78 ms |
852 KB |
Output is correct |
124 |
Correct |
35 ms |
596 KB |
Output is correct |
125 |
Correct |
78 ms |
2000 KB |
Output is correct |
126 |
Correct |
85 ms |
1244 KB |
Output is correct |
127 |
Correct |
121 ms |
2000 KB |
Output is correct |
128 |
Correct |
61 ms |
892 KB |
Output is correct |
129 |
Correct |
6 ms |
468 KB |
Output is correct |
130 |
Correct |
11 ms |
488 KB |
Output is correct |
131 |
Correct |
161 ms |
2000 KB |
Output is correct |
132 |
Correct |
102 ms |
524 KB |
Output is correct |
133 |
Correct |
142 ms |
2000 KB |
Output is correct |
134 |
Correct |
149 ms |
1244 KB |
Output is correct |
135 |
Correct |
237 ms |
2032 KB |
Output is correct |
136 |
Correct |
141 ms |
1252 KB |
Output is correct |
137 |
Correct |
8 ms |
980 KB |
Output is correct |
138 |
Correct |
5 ms |
636 KB |
Output is correct |
139 |
Correct |
6 ms |
864 KB |
Output is correct |
140 |
Correct |
24 ms |
868 KB |
Output is correct |
141 |
Correct |
1 ms |
468 KB |
Output is correct |
142 |
Correct |
237 ms |
928 KB |
Output is correct |
143 |
Correct |
96 ms |
652 KB |
Output is correct |
144 |
Correct |
218 ms |
924 KB |
Output is correct |
145 |
Correct |
220 ms |
852 KB |
Output is correct |
146 |
Correct |
6 ms |
468 KB |
Output is correct |
147 |
Correct |
12 ms |
468 KB |
Output is correct |
148 |
Correct |
1 ms |
468 KB |
Output is correct |
149 |
Correct |
342 ms |
852 KB |
Output is correct |
150 |
Correct |
164 ms |
496 KB |
Output is correct |
151 |
Correct |
379 ms |
928 KB |
Output is correct |
152 |
Correct |
406 ms |
928 KB |
Output is correct |
153 |
Correct |
6 ms |
468 KB |
Output is correct |
154 |
Correct |
13 ms |
488 KB |
Output is correct |
155 |
Correct |
47 ms |
976 KB |
Output is correct |
156 |
Correct |
27 ms |
604 KB |
Output is correct |
157 |
Correct |
51 ms |
1244 KB |
Output is correct |
158 |
Correct |
49 ms |
852 KB |
Output is correct |
159 |
Correct |
92 ms |
2000 KB |
Output is correct |
160 |
Correct |
4 ms |
468 KB |
Output is correct |
161 |
Correct |
9 ms |
504 KB |
Output is correct |
162 |
Correct |
37 ms |
2000 KB |
Output is correct |
163 |
Correct |
56 ms |
852 KB |
Output is correct |
164 |
Correct |
87 ms |
864 KB |
Output is correct |
165 |
Correct |
34 ms |
596 KB |
Output is correct |
166 |
Correct |
75 ms |
2000 KB |
Output is correct |
167 |
Correct |
80 ms |
1244 KB |
Output is correct |
168 |
Correct |
118 ms |
2000 KB |
Output is correct |
169 |
Correct |
62 ms |
856 KB |
Output is correct |
170 |
Correct |
88 ms |
996 KB |
Output is correct |
171 |
Correct |
46 ms |
596 KB |
Output is correct |
172 |
Correct |
128 ms |
928 KB |
Output is correct |
173 |
Correct |
95 ms |
928 KB |
Output is correct |
174 |
Correct |
128 ms |
2032 KB |
Output is correct |
175 |
Correct |
159 ms |
1268 KB |
Output is correct |
176 |
Correct |
163 ms |
2000 KB |
Output is correct |
177 |
Correct |
162 ms |
1952 KB |
Output is correct |
178 |
Correct |
211 ms |
2000 KB |
Output is correct |
179 |
Correct |
147 ms |
2000 KB |
Output is correct |
180 |
Correct |
63 ms |
528 KB |
Output is correct |
181 |
Correct |
128 ms |
2000 KB |
Output is correct |
182 |
Correct |
147 ms |
1248 KB |
Output is correct |
183 |
Correct |
211 ms |
1972 KB |
Output is correct |
184 |
Correct |
151 ms |
1240 KB |
Output is correct |
185 |
Correct |
298 ms |
1176 KB |
Output is correct |
186 |
Correct |
342 ms |
1264 KB |
Output is correct |
187 |
Correct |
418 ms |
1252 KB |
Output is correct |
188 |
Correct |
437 ms |
2040 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
15 ms |
852 KB |
Output is correct |
2 |
Correct |
47 ms |
964 KB |
Output is correct |
3 |
Correct |
17 ms |
592 KB |
Output is correct |
4 |
Correct |
51 ms |
1244 KB |
Output is correct |
5 |
Correct |
65 ms |
852 KB |
Output is correct |
6 |
Correct |
63 ms |
2000 KB |
Output is correct |
7 |
Correct |
3 ms |
468 KB |
Output is correct |
8 |
Correct |
10 ms |
468 KB |
Output is correct |
9 |
Correct |
37 ms |
2000 KB |
Output is correct |
10 |
Correct |
38 ms |
852 KB |
Output is correct |
11 |
Correct |
15 ms |
852 KB |
Output is correct |
12 |
Correct |
57 ms |
928 KB |
Output is correct |
13 |
Correct |
16 ms |
604 KB |
Output is correct |
14 |
Correct |
54 ms |
1240 KB |
Output is correct |
15 |
Correct |
56 ms |
852 KB |
Output is correct |
16 |
Correct |
65 ms |
2000 KB |
Output is correct |
17 |
Correct |
3 ms |
468 KB |
Output is correct |
18 |
Correct |
9 ms |
468 KB |
Output is correct |
19 |
Correct |
35 ms |
2000 KB |
Output is correct |
20 |
Correct |
39 ms |
852 KB |
Output is correct |
21 |
Correct |
10 ms |
484 KB |
Output is correct |
22 |
Correct |
11 ms |
468 KB |
Output is correct |
23 |
Correct |
77 ms |
852 KB |
Output is correct |
24 |
Correct |
38 ms |
596 KB |
Output is correct |
25 |
Correct |
77 ms |
2000 KB |
Output is correct |
26 |
Correct |
120 ms |
1244 KB |
Output is correct |
27 |
Correct |
108 ms |
2000 KB |
Output is correct |
28 |
Correct |
64 ms |
860 KB |
Output is correct |
29 |
Correct |
23 ms |
852 KB |
Output is correct |
30 |
Correct |
46 ms |
984 KB |
Output is correct |
31 |
Correct |
16 ms |
596 KB |
Output is correct |
32 |
Correct |
51 ms |
1184 KB |
Output is correct |
33 |
Correct |
49 ms |
852 KB |
Output is correct |
34 |
Correct |
61 ms |
2000 KB |
Output is correct |
35 |
Correct |
5 ms |
468 KB |
Output is correct |
36 |
Correct |
10 ms |
468 KB |
Output is correct |
37 |
Correct |
36 ms |
2012 KB |
Output is correct |
38 |
Correct |
39 ms |
852 KB |
Output is correct |
39 |
Correct |
7 ms |
492 KB |
Output is correct |
40 |
Correct |
12 ms |
492 KB |
Output is correct |
41 |
Correct |
78 ms |
852 KB |
Output is correct |
42 |
Correct |
35 ms |
596 KB |
Output is correct |
43 |
Correct |
78 ms |
2000 KB |
Output is correct |
44 |
Correct |
85 ms |
1244 KB |
Output is correct |
45 |
Correct |
121 ms |
2000 KB |
Output is correct |
46 |
Correct |
61 ms |
892 KB |
Output is correct |
47 |
Correct |
6 ms |
468 KB |
Output is correct |
48 |
Correct |
11 ms |
488 KB |
Output is correct |
49 |
Correct |
161 ms |
2000 KB |
Output is correct |
50 |
Correct |
102 ms |
524 KB |
Output is correct |
51 |
Correct |
142 ms |
2000 KB |
Output is correct |
52 |
Correct |
149 ms |
1244 KB |
Output is correct |
53 |
Correct |
237 ms |
2032 KB |
Output is correct |
54 |
Correct |
141 ms |
1252 KB |
Output is correct |
55 |
Correct |
16 ms |
852 KB |
Output is correct |
56 |
Correct |
49 ms |
944 KB |
Output is correct |
57 |
Correct |
21 ms |
616 KB |
Output is correct |
58 |
Correct |
52 ms |
1244 KB |
Output is correct |
59 |
Correct |
59 ms |
864 KB |
Output is correct |
60 |
Correct |
65 ms |
2020 KB |
Output is correct |
61 |
Correct |
5 ms |
468 KB |
Output is correct |
62 |
Correct |
10 ms |
468 KB |
Output is correct |
63 |
Correct |
36 ms |
2000 KB |
Output is correct |
64 |
Correct |
54 ms |
852 KB |
Output is correct |
65 |
Correct |
7 ms |
484 KB |
Output is correct |
66 |
Correct |
12 ms |
496 KB |
Output is correct |
67 |
Correct |
83 ms |
852 KB |
Output is correct |
68 |
Correct |
38 ms |
596 KB |
Output is correct |
69 |
Correct |
85 ms |
2000 KB |
Output is correct |
70 |
Correct |
94 ms |
1264 KB |
Output is correct |
71 |
Correct |
130 ms |
2000 KB |
Output is correct |
72 |
Correct |
87 ms |
864 KB |
Output is correct |
73 |
Correct |
6 ms |
496 KB |
Output is correct |
74 |
Correct |
15 ms |
480 KB |
Output is correct |
75 |
Correct |
177 ms |
2000 KB |
Output is correct |
76 |
Correct |
79 ms |
532 KB |
Output is correct |
77 |
Correct |
147 ms |
2000 KB |
Output is correct |
78 |
Correct |
145 ms |
1240 KB |
Output is correct |
79 |
Correct |
233 ms |
2000 KB |
Output is correct |
80 |
Correct |
134 ms |
1240 KB |
Output is correct |
81 |
Runtime error |
1 ms |
724 KB |
Execution killed with signal 11 |
82 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
9 ms |
852 KB |
Output is correct |
2 |
Correct |
5 ms |
636 KB |
Output is correct |
3 |
Correct |
6 ms |
852 KB |
Output is correct |
4 |
Correct |
16 ms |
852 KB |
Output is correct |
5 |
Correct |
0 ms |
468 KB |
Output is correct |
6 |
Correct |
185 ms |
928 KB |
Output is correct |
7 |
Correct |
91 ms |
636 KB |
Output is correct |
8 |
Correct |
202 ms |
852 KB |
Output is correct |
9 |
Correct |
221 ms |
852 KB |
Output is correct |
10 |
Correct |
6 ms |
468 KB |
Output is correct |
11 |
Correct |
12 ms |
492 KB |
Output is correct |
12 |
Correct |
8 ms |
872 KB |
Output is correct |
13 |
Correct |
6 ms |
636 KB |
Output is correct |
14 |
Correct |
4 ms |
852 KB |
Output is correct |
15 |
Correct |
15 ms |
920 KB |
Output is correct |
16 |
Correct |
1 ms |
468 KB |
Output is correct |
17 |
Correct |
214 ms |
852 KB |
Output is correct |
18 |
Correct |
90 ms |
636 KB |
Output is correct |
19 |
Correct |
208 ms |
852 KB |
Output is correct |
20 |
Correct |
220 ms |
884 KB |
Output is correct |
21 |
Correct |
8 ms |
512 KB |
Output is correct |
22 |
Correct |
14 ms |
496 KB |
Output is correct |
23 |
Correct |
0 ms |
468 KB |
Output is correct |
24 |
Correct |
338 ms |
852 KB |
Output is correct |
25 |
Correct |
164 ms |
468 KB |
Output is correct |
26 |
Correct |
379 ms |
928 KB |
Output is correct |
27 |
Correct |
404 ms |
928 KB |
Output is correct |
28 |
Correct |
8 ms |
468 KB |
Output is correct |
29 |
Correct |
13 ms |
488 KB |
Output is correct |
30 |
Correct |
15 ms |
852 KB |
Output is correct |
31 |
Correct |
47 ms |
964 KB |
Output is correct |
32 |
Correct |
17 ms |
592 KB |
Output is correct |
33 |
Correct |
51 ms |
1244 KB |
Output is correct |
34 |
Correct |
65 ms |
852 KB |
Output is correct |
35 |
Correct |
63 ms |
2000 KB |
Output is correct |
36 |
Correct |
3 ms |
468 KB |
Output is correct |
37 |
Correct |
10 ms |
468 KB |
Output is correct |
38 |
Correct |
37 ms |
2000 KB |
Output is correct |
39 |
Correct |
38 ms |
852 KB |
Output is correct |
40 |
Correct |
8 ms |
852 KB |
Output is correct |
41 |
Correct |
5 ms |
636 KB |
Output is correct |
42 |
Correct |
6 ms |
852 KB |
Output is correct |
43 |
Correct |
15 ms |
852 KB |
Output is correct |
44 |
Correct |
46 ms |
928 KB |
Output is correct |
45 |
Correct |
16 ms |
532 KB |
Output is correct |
46 |
Correct |
51 ms |
1184 KB |
Output is correct |
47 |
Correct |
49 ms |
852 KB |
Output is correct |
48 |
Correct |
64 ms |
2000 KB |
Output is correct |
49 |
Correct |
3 ms |
468 KB |
Output is correct |
50 |
Correct |
9 ms |
492 KB |
Output is correct |
51 |
Correct |
35 ms |
2000 KB |
Output is correct |
52 |
Correct |
39 ms |
852 KB |
Output is correct |
53 |
Correct |
102 ms |
988 KB |
Output is correct |
54 |
Correct |
48 ms |
632 KB |
Output is correct |
55 |
Correct |
159 ms |
868 KB |
Output is correct |
56 |
Correct |
95 ms |
928 KB |
Output is correct |
57 |
Correct |
117 ms |
1952 KB |
Output is correct |
58 |
Correct |
15 ms |
852 KB |
Output is correct |
59 |
Correct |
57 ms |
928 KB |
Output is correct |
60 |
Correct |
16 ms |
604 KB |
Output is correct |
61 |
Correct |
54 ms |
1240 KB |
Output is correct |
62 |
Correct |
56 ms |
852 KB |
Output is correct |
63 |
Correct |
65 ms |
2000 KB |
Output is correct |
64 |
Correct |
3 ms |
468 KB |
Output is correct |
65 |
Correct |
9 ms |
468 KB |
Output is correct |
66 |
Correct |
35 ms |
2000 KB |
Output is correct |
67 |
Correct |
39 ms |
852 KB |
Output is correct |
68 |
Correct |
10 ms |
484 KB |
Output is correct |
69 |
Correct |
11 ms |
468 KB |
Output is correct |
70 |
Correct |
77 ms |
852 KB |
Output is correct |
71 |
Correct |
38 ms |
596 KB |
Output is correct |
72 |
Correct |
77 ms |
2000 KB |
Output is correct |
73 |
Correct |
120 ms |
1244 KB |
Output is correct |
74 |
Correct |
108 ms |
2000 KB |
Output is correct |
75 |
Correct |
64 ms |
860 KB |
Output is correct |
76 |
Correct |
8 ms |
852 KB |
Output is correct |
77 |
Correct |
5 ms |
636 KB |
Output is correct |
78 |
Correct |
6 ms |
912 KB |
Output is correct |
79 |
Correct |
15 ms |
852 KB |
Output is correct |
80 |
Correct |
1 ms |
468 KB |
Output is correct |
81 |
Correct |
191 ms |
916 KB |
Output is correct |
82 |
Correct |
85 ms |
636 KB |
Output is correct |
83 |
Correct |
197 ms |
928 KB |
Output is correct |
84 |
Correct |
221 ms |
928 KB |
Output is correct |
85 |
Correct |
7 ms |
468 KB |
Output is correct |
86 |
Correct |
12 ms |
484 KB |
Output is correct |
87 |
Correct |
48 ms |
996 KB |
Output is correct |
88 |
Correct |
16 ms |
596 KB |
Output is correct |
89 |
Correct |
52 ms |
1140 KB |
Output is correct |
90 |
Correct |
53 ms |
852 KB |
Output is correct |
91 |
Correct |
61 ms |
2000 KB |
Output is correct |
92 |
Correct |
4 ms |
468 KB |
Output is correct |
93 |
Correct |
12 ms |
488 KB |
Output is correct |
94 |
Correct |
33 ms |
2000 KB |
Output is correct |
95 |
Correct |
39 ms |
852 KB |
Output is correct |
96 |
Correct |
87 ms |
1008 KB |
Output is correct |
97 |
Correct |
45 ms |
624 KB |
Output is correct |
98 |
Correct |
137 ms |
852 KB |
Output is correct |
99 |
Correct |
93 ms |
884 KB |
Output is correct |
100 |
Correct |
119 ms |
1968 KB |
Output is correct |
101 |
Correct |
78 ms |
852 KB |
Output is correct |
102 |
Correct |
34 ms |
596 KB |
Output is correct |
103 |
Correct |
75 ms |
2000 KB |
Output is correct |
104 |
Correct |
78 ms |
1204 KB |
Output is correct |
105 |
Correct |
103 ms |
2016 KB |
Output is correct |
106 |
Correct |
64 ms |
872 KB |
Output is correct |
107 |
Correct |
157 ms |
1268 KB |
Output is correct |
108 |
Correct |
165 ms |
2000 KB |
Output is correct |
109 |
Correct |
167 ms |
1968 KB |
Output is correct |
110 |
Correct |
206 ms |
2000 KB |
Output is correct |
111 |
Correct |
23 ms |
852 KB |
Output is correct |
112 |
Correct |
46 ms |
984 KB |
Output is correct |
113 |
Correct |
16 ms |
596 KB |
Output is correct |
114 |
Correct |
51 ms |
1184 KB |
Output is correct |
115 |
Correct |
49 ms |
852 KB |
Output is correct |
116 |
Correct |
61 ms |
2000 KB |
Output is correct |
117 |
Correct |
5 ms |
468 KB |
Output is correct |
118 |
Correct |
10 ms |
468 KB |
Output is correct |
119 |
Correct |
36 ms |
2012 KB |
Output is correct |
120 |
Correct |
39 ms |
852 KB |
Output is correct |
121 |
Correct |
7 ms |
492 KB |
Output is correct |
122 |
Correct |
12 ms |
492 KB |
Output is correct |
123 |
Correct |
78 ms |
852 KB |
Output is correct |
124 |
Correct |
35 ms |
596 KB |
Output is correct |
125 |
Correct |
78 ms |
2000 KB |
Output is correct |
126 |
Correct |
85 ms |
1244 KB |
Output is correct |
127 |
Correct |
121 ms |
2000 KB |
Output is correct |
128 |
Correct |
61 ms |
892 KB |
Output is correct |
129 |
Correct |
6 ms |
468 KB |
Output is correct |
130 |
Correct |
11 ms |
488 KB |
Output is correct |
131 |
Correct |
161 ms |
2000 KB |
Output is correct |
132 |
Correct |
102 ms |
524 KB |
Output is correct |
133 |
Correct |
142 ms |
2000 KB |
Output is correct |
134 |
Correct |
149 ms |
1244 KB |
Output is correct |
135 |
Correct |
237 ms |
2032 KB |
Output is correct |
136 |
Correct |
141 ms |
1252 KB |
Output is correct |
137 |
Correct |
8 ms |
980 KB |
Output is correct |
138 |
Correct |
5 ms |
636 KB |
Output is correct |
139 |
Correct |
6 ms |
864 KB |
Output is correct |
140 |
Correct |
24 ms |
868 KB |
Output is correct |
141 |
Correct |
1 ms |
468 KB |
Output is correct |
142 |
Correct |
237 ms |
928 KB |
Output is correct |
143 |
Correct |
96 ms |
652 KB |
Output is correct |
144 |
Correct |
218 ms |
924 KB |
Output is correct |
145 |
Correct |
220 ms |
852 KB |
Output is correct |
146 |
Correct |
6 ms |
468 KB |
Output is correct |
147 |
Correct |
12 ms |
468 KB |
Output is correct |
148 |
Correct |
1 ms |
468 KB |
Output is correct |
149 |
Correct |
342 ms |
852 KB |
Output is correct |
150 |
Correct |
164 ms |
496 KB |
Output is correct |
151 |
Correct |
379 ms |
928 KB |
Output is correct |
152 |
Correct |
406 ms |
928 KB |
Output is correct |
153 |
Correct |
6 ms |
468 KB |
Output is correct |
154 |
Correct |
13 ms |
488 KB |
Output is correct |
155 |
Correct |
47 ms |
976 KB |
Output is correct |
156 |
Correct |
27 ms |
604 KB |
Output is correct |
157 |
Correct |
51 ms |
1244 KB |
Output is correct |
158 |
Correct |
49 ms |
852 KB |
Output is correct |
159 |
Correct |
92 ms |
2000 KB |
Output is correct |
160 |
Correct |
4 ms |
468 KB |
Output is correct |
161 |
Correct |
9 ms |
504 KB |
Output is correct |
162 |
Correct |
37 ms |
2000 KB |
Output is correct |
163 |
Correct |
56 ms |
852 KB |
Output is correct |
164 |
Correct |
87 ms |
864 KB |
Output is correct |
165 |
Correct |
34 ms |
596 KB |
Output is correct |
166 |
Correct |
75 ms |
2000 KB |
Output is correct |
167 |
Correct |
80 ms |
1244 KB |
Output is correct |
168 |
Correct |
118 ms |
2000 KB |
Output is correct |
169 |
Correct |
62 ms |
856 KB |
Output is correct |
170 |
Correct |
88 ms |
996 KB |
Output is correct |
171 |
Correct |
46 ms |
596 KB |
Output is correct |
172 |
Correct |
128 ms |
928 KB |
Output is correct |
173 |
Correct |
95 ms |
928 KB |
Output is correct |
174 |
Correct |
128 ms |
2032 KB |
Output is correct |
175 |
Correct |
159 ms |
1268 KB |
Output is correct |
176 |
Correct |
163 ms |
2000 KB |
Output is correct |
177 |
Correct |
162 ms |
1952 KB |
Output is correct |
178 |
Correct |
211 ms |
2000 KB |
Output is correct |
179 |
Correct |
147 ms |
2000 KB |
Output is correct |
180 |
Correct |
63 ms |
528 KB |
Output is correct |
181 |
Correct |
128 ms |
2000 KB |
Output is correct |
182 |
Correct |
147 ms |
1248 KB |
Output is correct |
183 |
Correct |
211 ms |
1972 KB |
Output is correct |
184 |
Correct |
151 ms |
1240 KB |
Output is correct |
185 |
Correct |
298 ms |
1176 KB |
Output is correct |
186 |
Correct |
342 ms |
1264 KB |
Output is correct |
187 |
Correct |
418 ms |
1252 KB |
Output is correct |
188 |
Correct |
437 ms |
2040 KB |
Output is correct |
189 |
Correct |
16 ms |
852 KB |
Output is correct |
190 |
Correct |
49 ms |
944 KB |
Output is correct |
191 |
Correct |
21 ms |
616 KB |
Output is correct |
192 |
Correct |
52 ms |
1244 KB |
Output is correct |
193 |
Correct |
59 ms |
864 KB |
Output is correct |
194 |
Correct |
65 ms |
2020 KB |
Output is correct |
195 |
Correct |
5 ms |
468 KB |
Output is correct |
196 |
Correct |
10 ms |
468 KB |
Output is correct |
197 |
Correct |
36 ms |
2000 KB |
Output is correct |
198 |
Correct |
54 ms |
852 KB |
Output is correct |
199 |
Correct |
7 ms |
484 KB |
Output is correct |
200 |
Correct |
12 ms |
496 KB |
Output is correct |
201 |
Correct |
83 ms |
852 KB |
Output is correct |
202 |
Correct |
38 ms |
596 KB |
Output is correct |
203 |
Correct |
85 ms |
2000 KB |
Output is correct |
204 |
Correct |
94 ms |
1264 KB |
Output is correct |
205 |
Correct |
130 ms |
2000 KB |
Output is correct |
206 |
Correct |
87 ms |
864 KB |
Output is correct |
207 |
Correct |
6 ms |
496 KB |
Output is correct |
208 |
Correct |
15 ms |
480 KB |
Output is correct |
209 |
Correct |
177 ms |
2000 KB |
Output is correct |
210 |
Correct |
79 ms |
532 KB |
Output is correct |
211 |
Correct |
147 ms |
2000 KB |
Output is correct |
212 |
Correct |
145 ms |
1240 KB |
Output is correct |
213 |
Correct |
233 ms |
2000 KB |
Output is correct |
214 |
Correct |
134 ms |
1240 KB |
Output is correct |
215 |
Runtime error |
1 ms |
724 KB |
Execution killed with signal 11 |
216 |
Halted |
0 ms |
0 KB |
- |