QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#226510 | #2500. Collecting Stamps 3 | Camillus | 15 | 27ms | 214800kb | C++20 | 2.7kb | 2023-10-26 01:36:53 | 2023-10-26 01:36:53 |
Judging History
answer
/// @author Camillus
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int dp[300][300][300][2];
int min_equal(int &first, int second) {
return first = min(first, second);
}
signed main() {
#ifndef LOCAL
ios::sync_with_stdio(false);
cin.tie(nullptr);
#else
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
for (auto &a : dp) {
for (auto &b : a) {
for (auto &c : b) {
for (auto &d : c) {
d = INT32_MAX;
}
}
}
}
dp[0][0][0][0] = 0;
int n, l;
cin >> n >> l;
vector<int> x(n);
for (int i = 0; i < n; i++) {
cin >> x[i];
}
vector<int> t(n);
for (int i = 0; i < n; i++) {
cin >> t[i];
}
auto get_pos = [&](int i, int j) -> int {
if (i == 0) {
return 0;
}
if (j == 0) {
return x[i - 1];
} else {
return x[n - i];
}
};
auto get_time = [&](int i, int j) -> int {
if (i == 0) {
return INT32_MAX;
}
if (j == 0) {
return t[i - 1];
} else {
return t[n - i];
}
};
int ans = 0;
auto dist = [&l](int x, int y) {
return min(abs(x - y), l - abs(x - y));
};
for (int c = 0; c <= n; c++) {
for (int l = 0; l <= n; l++) {
for (int r = 0; r <= n; r++) {
for (int tA : {0, 1}) {
if (dp[c][l][r][tA] == INT32_MAX) {
continue;
} else {
ans = max(ans, c);
}
if (l + r >= n) {
continue;
}
int posA = (tA == 0 ? get_pos(l, 0) : get_pos(r, 1));
for (int tB : {0, 1}) {
if (l + (tB == 0) > n || r + (tB == 1) > n) {
continue;
}
int posB = (tB == 0 ? get_pos(l + 1, 0) : get_pos(r + 1, 1));
int timeB = (tB == 0 ? get_time(l + 1, 0) : get_time(r + 1, 1));
int cur = dp[c][l][r][tA] + dist(posA, posB);
if (cur <= timeB) {
min_equal(dp[c + 1][l + (tB == 0)][r + (tB == 1)][tB], cur);
} else {
min_equal(dp[c][l + (tB == 0)][r + (tB == 1)][tB], cur);
}
}
}
}
}
}
cout << ans << '\n';
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 0ms
memory: 214492kb
input:
5 180 137 149 164 167 171 18 76 14 55 116
output:
3
result:
ok single line: '3'
Test #2:
score: 0
Accepted
time: 4ms
memory: 214556kb
input:
5 198 5 12 18 190 192 16 43 200 33 0
output:
4
result:
ok single line: '4'
Test #3:
score: 0
Accepted
time: 3ms
memory: 214560kb
input:
9 198 3 17 22 33 43 44 48 54 65 0 17 29 32 38 46 45 54 66
output:
5
result:
ok single line: '5'
Test #4:
score: 0
Accepted
time: 11ms
memory: 214556kb
input:
6 171 22 30 46 85 96 149 18 179 19 69 87 96
output:
3
result:
ok single line: '3'
Test #5:
score: 0
Accepted
time: 8ms
memory: 214528kb
input:
7 198 5 8 14 188 191 194 197 7 18 50 69 80 35 8
output:
7
result:
ok single line: '7'
Test #6:
score: 0
Accepted
time: 8ms
memory: 214492kb
input:
12 198 71 72 83 94 108 112 119 140 142 143 166 174 124 119 124 111 91 94 85 48 60 63 40 32
output:
9
result:
ok single line: '9'
Test #7:
score: 0
Accepted
time: 0ms
memory: 214528kb
input:
8 178 32 55 69 99 115 134 152 156 61 109 37 65 76 31 103 0
output:
2
result:
ok single line: '2'
Test #8:
score: 0
Accepted
time: 19ms
memory: 214556kb
input:
10 198 1 2 3 10 14 182 183 190 192 196 0 3 17 46 115 142 79 44 8 1
output:
7
result:
ok single line: '7'
Test #9:
score: 0
Accepted
time: 8ms
memory: 214552kb
input:
12 198 18 23 45 53 54 70 101 103 105 110 118 152 21 24 49 45 61 78 108 111 97 107 122 144
output:
8
result:
ok single line: '8'
Test #10:
score: 0
Accepted
time: 7ms
memory: 214528kb
input:
1 2 1 0
output:
0
result:
ok single line: '0'
Test #11:
score: 0
Accepted
time: 11ms
memory: 214496kb
input:
1 2 1 1
output:
1
result:
ok single line: '1'
Test #12:
score: 0
Accepted
time: 8ms
memory: 214556kb
input:
12 170 1 4 7 28 32 63 84 85 90 94 96 107 116 77 30 93 134 99 190 103 96 189 173 191
output:
12
result:
ok single line: '12'
Test #13:
score: 0
Accepted
time: 7ms
memory: 214496kb
input:
12 200 14 25 35 57 113 120 141 143 146 153 173 179 126 137 127 141 135 134 122 100 164 185 163 188
output:
9
result:
ok single line: '9'
Test #14:
score: 0
Accepted
time: 11ms
memory: 214784kb
input:
7 171 4 31 65 82 125 128 150 1 24 51 55 8 23 18
output:
0
result:
ok single line: '0'
Test #15:
score: 0
Accepted
time: 4ms
memory: 214552kb
input:
8 175 28 41 67 77 89 104 106 138 16 9 0 56 25 39 42 14
output:
0
result:
ok single line: '0'
Test #16:
score: 0
Accepted
time: 11ms
memory: 214528kb
input:
12 13 1 2 3 4 5 6 7 8 9 10 11 12 0 200 200 200 200 200 200 200 200 200 200 200
output:
11
result:
ok single line: '11'
Test #17:
score: 0
Accepted
time: 7ms
memory: 214532kb
input:
12 13 1 2 3 4 5 6 7 8 9 10 11 12 200 200 200 200 200 200 200 200 200 200 200 200
output:
12
result:
ok single line: '12'
Subtask #2:
score: 0
Wrong Answer
Dependency #1:
100%
Accepted
Test #18:
score: 10
Accepted
time: 11ms
memory: 214548kb
input:
14 995216877 1547993 21872568 117017367 130195631 172395048 303811509 316432767 467657618 489836809 577455025 608824907 616559666 696830761 987994277 177587234 629350557 411262955 841625784 194076652 479115452 408683201 364268603 109991323 631975956 373092938 104263243 949468174 778758041
output:
10
result:
ok single line: '10'
Test #19:
score: 0
Accepted
time: 12ms
memory: 214720kb
input:
10 957307325 40526371 60810082 60820390 94278571 207413180 330699274 360357075 397321615 518571948 925010264 9046488 10048815 913320939 270546395 356388769 269607042 444929100 365070745 244210838 525063997
output:
5
result:
ok single line: '5'
Test #20:
score: 0
Accepted
time: 3ms
memory: 214596kb
input:
12 883313120 21829204 37314859 81878430 327591142 441913998 457602296 638182996 701569600 703036538 746679793 749878957 787945504 174062762 824574750 328610501 218823308 285317760 395266065 777626897 143435091 963710877 291722991 400725598 526884305
output:
7
result:
ok single line: '7'
Test #21:
score: 0
Accepted
time: 4ms
memory: 214548kb
input:
14 998374538 55005020 136253295 167840188 209817987 226142739 229002260 261542168 348671858 402488752 403736667 438697153 557394603 610401423 811914415 797134194 197645577 250510705 394957044 463870699 942748546 425910619 172208631 705492158 840453618 74694920 400759184 258764540 940515505
output:
10
result:
ok single line: '10'
Test #22:
score: 0
Accepted
time: 7ms
memory: 214492kb
input:
9 762152627 111917773 134919116 155422008 328301493 333796036 373204294 480675107 546940509 730594645 821492438 709486524 476358560 184207693 334323157 867541572 215296124 311813854 959010325
output:
6
result:
ok single line: '6'
Test #23:
score: 0
Accepted
time: 12ms
memory: 214724kb
input:
15 999999998 1924124 2952838 5239098 18421969 37271499 37853044 47082651 99300521 908208854 922862249 934908176 942743269 944533396 960738196 965737420 70449273 153849854 272974989 411149518 597026615 826426654 1000000000 1000000000 956070845 711435863 494663293 335470813 212269294 111635214 34262569
output:
14
result:
ok single line: '14'
Test #24:
score: -10
Wrong Answer
time: 11ms
memory: 214552kb
input:
13 999999998 428180064 453825926 496177951 542265409 564354140 623999424 733991584 735577512 795234730 808832729 820421093 895605891 931423865 571819925 546174077 503822037 457734599 435645856 376000580 266008406 264422493 204765262 191167259 179578899 104394103 68576140
output:
10
result:
wrong answer 1st lines differ - expected: '5', found: '10'
Subtask #3:
score: 10
Accepted
Dependency #1:
100%
Accepted
Test #36:
score: 10
Accepted
time: 27ms
memory: 214784kb
input:
179 183 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101...
output:
89
result:
ok single line: '89'
Test #37:
score: 0
Accepted
time: 3ms
memory: 214548kb
input:
139 170 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 29 30 31 32 33 35 36 37 38 39 40 42 45 46 48 49 50 52 53 54 55 56 58 60 61 62 64 65 66 67 68 70 71 72 74 76 79 80 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 107 109 110 111 112 113 114 115 116 117 119...
output:
88
result:
ok single line: '88'
Test #38:
score: 0
Accepted
time: 12ms
memory: 214720kb
input:
101 183 1 2 3 4 6 7 8 9 10 15 18 20 22 28 29 30 31 32 34 35 38 39 40 41 42 43 45 46 51 52 55 56 60 62 63 65 66 67 68 73 76 78 79 81 82 83 84 85 86 87 88 89 91 92 96 97 99 107 108 112 113 116 117 118 124 125 126 128 130 131 132 136 137 138 139 140 141 144 145 146 147 149 150 151 152 158 159 162 163 1...
output:
59
result:
ok single line: '59'
Test #39:
score: 0
Accepted
time: 16ms
memory: 214556kb
input:
135 176 1 2 3 4 5 6 7 8 9 10 11 12 14 15 16 17 18 20 21 22 23 25 26 27 30 31 32 34 35 37 38 39 40 41 42 43 44 46 47 48 50 51 52 53 54 55 56 57 58 59 61 62 63 65 66 68 69 71 72 73 74 75 76 78 80 81 82 83 84 85 86 87 88 90 91 92 93 95 97 99 101 102 103 104 105 106 108 110 111 112 114 116 117 121 122 1...
output:
80
result:
ok single line: '80'
Test #40:
score: 0
Accepted
time: 19ms
memory: 214784kb
input:
154 188 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 20 21 23 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 52 53 54 58 60 61 62 63 64 65 66 67 68 69 70 72 74 75 76 77 78 80 81 82 83 84 85 88 89 90 91 92 94 95 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 116 117 ...
output:
97
result:
ok single line: '97'
Test #41:
score: 0
Accepted
time: 12ms
memory: 214556kb
input:
93 198 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 ...
output:
91
result:
ok single line: '91'
Test #42:
score: 0
Accepted
time: 4ms
memory: 214780kb
input:
82 198 109 110 112 113 114 115 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 134 135 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 181 182 183 184 185 186 1...
output:
40
result:
ok single line: '40'
Test #43:
score: 0
Accepted
time: 16ms
memory: 214552kb
input:
92 198 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 181 182 183 184 185 186 187 188 189 190 191 192 ...
output:
91
result:
ok single line: '91'
Test #44:
score: 0
Accepted
time: 15ms
memory: 214540kb
input:
56 198 75 76 77 80 84 85 86 89 90 92 94 99 102 108 109 110 113 115 117 119 120 123 124 128 130 131 134 136 138 145 147 149 151 152 160 162 163 165 166 167 168 169 173 174 179 180 181 182 183 185 186 189 192 194 195 197 132 121 126 108 108 112 109 99 110 105 96 106 92 91 98 97 80 84 82 81 82 76 78 76...
output:
30
result:
ok single line: '30'
Test #45:
score: 0
Accepted
time: 12ms
memory: 214496kb
input:
94 198 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 178 179 180 181 182 183 184 185 186 187 188 189 190 1...
output:
93
result:
ok single line: '93'
Test #46:
score: 0
Accepted
time: 16ms
memory: 214484kb
input:
79 198 1 2 3 4 6 8 9 10 11 13 14 15 16 17 18 19 20 21 22 24 25 27 28 29 31 32 33 34 35 39 40 41 42 44 45 46 47 49 50 52 53 54 55 56 58 59 60 61 63 64 65 68 69 70 71 72 73 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 3 4 0 10 12 8 16 7 2 8 11 17 8 12 22 22 19 29 31 19 16 31 25 29...
output:
44
result:
ok single line: '44'
Test #47:
score: 0
Accepted
time: 3ms
memory: 214492kb
input:
95 198 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 150 151 152 153 154 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 19...
output:
64
result:
ok single line: '64'
Test #48:
score: 0
Accepted
time: 13ms
memory: 214500kb
input:
84 198 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 131 132 133 134 135 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 1...
output:
42
result:
ok single line: '42'
Test #49:
score: 0
Accepted
time: 14ms
memory: 214784kb
input:
92 198 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 189 190 191 192 ...
output:
61
result:
ok single line: '61'
Test #50:
score: 0
Accepted
time: 0ms
memory: 214492kb
input:
66 198 25 26 29 31 34 35 37 39 40 42 44 48 55 60 63 65 66 68 71 74 75 76 80 83 84 86 87 88 89 97 99 100 102 103 104 105 114 116 117 119 122 124 125 127 128 129 131 134 135 141 143 149 152 172 173 174 176 184 185 187 189 190 193 195 196 197 170 168 168 162 172 159 155 152 157 165 149 141 142 130 131 ...
output:
32
result:
ok single line: '32'
Test #51:
score: 0
Accepted
time: 12ms
memory: 214752kb
input:
92 198 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 151 152 153 154 155 156 157 158 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192...
output:
62
result:
ok single line: '62'
Test #52:
score: 0
Accepted
time: 3ms
memory: 214784kb
input:
54 198 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 169 170 171 172 173 174 176 177 178 179 180 181 182 183 184 185 186 187 188 189 191 192 194 195 196 68 48 62 53 57 57 59 47 51 53 48 57 50 38 40 42 51 46 37 44 41 44 34 26 43 38...
output:
34
result:
ok single line: '34'
Test #53:
score: 0
Accepted
time: 7ms
memory: 214552kb
input:
91 198 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 ...
output:
17
result:
ok single line: '17'
Test #54:
score: 0
Accepted
time: 3ms
memory: 214560kb
input:
62 198 131 132 133 134 135 136 137 138 139 140 141 142 143 144 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 168 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 197 71 64 66 72 66 57 60 62 61 52 67 46 55 45 43 ...
output:
34
result:
ok single line: '34'
Test #55:
score: 0
Accepted
time: 14ms
memory: 214492kb
input:
94 198 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 1...
output:
19
result:
ok single line: '19'
Test #56:
score: 0
Accepted
time: 4ms
memory: 214796kb
input:
69 198 3 5 6 9 12 16 18 22 23 28 29 32 35 40 41 43 46 47 48 50 56 57 58 66 67 71 72 77 78 79 80 95 96 97 102 107 109 111 115 119 121 122 124 125 130 137 138 139 140 143 148 153 154 157 160 162 164 165 169 170 175 179 181 186 187 190 191 192 193 3 3 11 2 4 18 8 18 24 38 28 30 27 45 46 35 41 42 46 41 ...
output:
36
result:
ok single line: '36'
Test #57:
score: 0
Accepted
time: 7ms
memory: 214784kb
input:
96 198 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 18...
output:
20
result:
ok single line: '20'
Test #58:
score: 0
Accepted
time: 7ms
memory: 214496kb
input:
73 198 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 147 148 149 150 151 152 153 154 155 156 157 159 160 161 162 163 164 165 166 167 169 170 171 172 173 175 176 177 178 179 180 181 182 183 184 185 186 187 189 190 191 192 193 194 195 196 197 8...
output:
35
result:
ok single line: '35'
Test #59:
score: 0
Accepted
time: 20ms
memory: 214552kb
input:
199 200 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...
output:
153
result:
ok single line: '153'
Test #60:
score: 0
Accepted
time: 20ms
memory: 214800kb
input:
163 173 1 2 3 4 5 6 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 1...
output:
0
result:
ok single line: '0'
Test #61:
score: 0
Accepted
time: 20ms
memory: 214756kb
input:
199 200 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...
output:
155
result:
ok single line: '155'
Test #62:
score: 0
Accepted
time: 15ms
memory: 214548kb
input:
162 192 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 54 55 56 57 58 59 61 63 64 65 66 67 68 69 70 71 72 73 75 76 78 82 84 86 87 88 90 91 92 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 114 ...
output:
0
result:
ok single line: '0'
Test #63:
score: 0
Accepted
time: 24ms
memory: 214560kb
input:
199 200 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...
output:
156
result:
ok single line: '156'
Test #64:
score: 0
Accepted
time: 8ms
memory: 214556kb
input:
163 175 1 2 3 4 5 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 24 25 26 27 28 29 30 31 32 33 35 36 37 38 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 103 104 105 106...
output:
0
result:
ok single line: '0'
Subtask #4:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
0%