QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#202384 | #63. Meetings | james1BadCreeper | 100 ✓ | 640ms | 4396kb | C++17 | 1.2kb | 2023-10-05 23:56:01 | 2023-10-05 23:56:03 |
Judging History
answer
#include <bits/stdc++.h>
#include "meetings.h"
using namespace std;
mt19937 Rand(time(0));
inline void answer(int x, int y) {
if (x > y) swap(x, y);
Bridge(x, y);
}
void dfs(vector<int> a, int x, int y) {
if (a.empty()) return answer(x, y);
if (a.size() == 1) return answer(x, a[0]), answer(a[0], y);
int mid = a[Rand() % a.size()];
vector<int> al, ar;
for (int i : a) if (i != mid) {
if (Query(x, mid, i) == i) al.emplace_back(i);
else ar.emplace_back(i);
}
dfs(al, x, mid); dfs(ar, mid, y);
}
void solve(vector<int> a) {
if (a.size() <= 1) return;
int n = a.size(), x = a[Rand() % n], y = a[Rand() % n];
while (x == y) y = a[Rand() % n];
map<int, vector<int>> mp;
mp[x].emplace_back(x); mp[y].emplace_back(y);
for (int i : a) if (i != x && i != y) mp[Query(x, y, i)].emplace_back(i);
vector<int> chain;
for (auto [p, q] : mp) if (p != x && p != y) chain.emplace_back(p);
dfs(chain, x, y);
for (auto [p, q] : mp) solve(q);
}
void Solve(int n) {
vector<int> a(n);
for (int i = 0; i < n; ++i) a[i] = i;
solve(a);
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 7
Accepted
Test #1:
score: 7
Accepted
time: 1ms
memory: 3796kb
input:
3 0 2 0 1
output:
Accepted: 1
result:
ok 1 move(s)
Test #2:
score: 0
Accepted
time: 1ms
memory: 3792kb
input:
4 1 2 0 2 0 3
output:
Accepted: 3
result:
ok 3 move(s)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
4 0 3 2 3 0 1
output:
Accepted: 2
result:
ok 2 move(s)
Test #4:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
5 2 4 2 3 0 2 1 3
output:
Accepted: 3
result:
ok 3 move(s)
Test #5:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
5 3 4 0 1 0 2 0 3
output:
Accepted: 4
result:
ok 4 move(s)
Test #6:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
6 1 5 2 4 0 4 1 3 3 4
output:
Accepted: 7
result:
ok 7 move(s)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
6 2 4 0 1 0 2 0 5 3 4
output:
Accepted: 6
result:
ok 6 move(s)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
7 1 4 0 6 0 5 1 2 0 3 0 4
output:
Accepted: 7
result:
ok 7 move(s)
Test #9:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
7 0 4 1 4 2 3 2 4 0 6 2 5
output:
Accepted: 8
result:
ok 8 move(s)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
7 3 5 4 5 0 2 2 6 1 2 1 5
output:
Accepted: 12
result:
ok 12 move(s)
Test #11:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
7 3 6 5 6 4 6 1 6 2 6 0 6
output:
Accepted: 9
result:
ok 9 move(s)
Test #12:
score: 0
Accepted
time: 1ms
memory: 3792kb
input:
7 2 3 0 5 4 6 1 6 0 2 3 4
output:
Accepted: 8
result:
ok 8 move(s)
Test #13:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
7 5 6 1 2 4 5 2 3 3 4 0 1
output:
Accepted: 10
result:
ok 10 move(s)
Subtask #2:
score: 10
Accepted
Dependency #1:
100%
Accepted
Test #14:
score: 10
Accepted
time: 1ms
memory: 3804kb
input:
50 25 32 16 48 36 46 13 48 18 27 18 30 9 29 19 47 30 35 2 36 1 49 33 34 41 47 11 13 7 10 17 38 2 18 1 15 1 33 4 23 8 11 36 47 14 20 25 39 5 7 12 48 2 45 21 47 0 21 1 23 19 43 32 33 4 14 22 36 38 46 5 28 1 29 2 31 3 4 40 47 34 44 34 42 24 43 33 36 11 26 6 11 7 47 37 38 1 6
output:
Accepted: 160
result:
ok 160 move(s)
Test #15:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
49 10 47 29 42 18 38 21 45 11 17 8 34 8 46 27 31 29 32 14 30 5 28 36 41 20 24 17 27 13 45 3 38 7 34 1 8 27 40 0 7 22 34 11 23 13 28 14 35 24 47 3 43 2 33 0 37 18 44 3 7 2 26 4 17 23 41 28 30 3 17 28 32 17 26 16 31 6 17 19 30 9 25 4 12 42 48 17 28 17 47 17 39 2 15 7 25
output:
Accepted: 223
result:
ok 223 move(s)
Test #16:
score: 0
Accepted
time: 1ms
memory: 3896kb
input:
48 6 19 1 33 34 44 29 30 27 35 8 40 17 39 8 47 11 46 14 40 17 32 8 23 26 40 9 27 4 8 11 39 33 38 8 15 21 40 2 41 7 11 20 26 12 28 16 24 31 41 18 24 34 46 0 40 34 38 5 15 10 34 18 45 26 29 40 43 35 47 6 21 28 34 8 41 8 42 14 18 22 30 3 14 34 37 13 46 14 36 17 25 8 46
output:
Accepted: 170
result:
ok 170 move(s)
Test #17:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
50 15 16 25 42 41 42 31 48 44 45 7 43 7 30 1 19 13 26 0 23 4 38 18 49 40 41 8 42 7 38 14 33 18 19 2 47 3 15 1 3 30 47 3 7 1 26 20 38 21 36 3 25 39 42 28 45 3 45 6 8 33 48 6 17 25 35 29 47 12 29 1 34 21 46 17 37 41 46 3 22 5 45 1 31 7 24 32 38 11 30 27 36 0 39 3 9 10 20
output:
Accepted: 199
result:
ok 199 move(s)
Test #18:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
50 29 46 2 21 3 16 22 31 11 49 2 43 36 40 7 17 1 46 30 32 42 49 5 15 7 44 6 12 20 46 23 30 21 23 26 27 28 34 7 10 6 20 38 42 39 45 2 8 8 33 20 39 19 43 30 35 14 38 3 12 17 47 13 26 12 21 25 49 0 40 27 40 28 47 5 47 16 17 22 24 37 38 16 42 22 23 39 48 6 27 18 26 8 9 4 43 5 41
output:
Accepted: 132
result:
ok 132 move(s)
Test #19:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
50 32 36 23 29 27 37 33 48 0 17 17 49 38 41 17 19 6 17 20 29 27 38 10 29 12 36 11 40 16 48 36 38 11 38 30 48 27 34 11 15 29 38 17 38 35 48 9 48 13 36 18 48 3 11 4 48 29 42 11 39 8 29 11 28 17 24 5 27 31 36 36 43 29 47 27 46 14 17 11 44 22 36 21 36 7 17 29 45 11 25 2 27 1 27 26 27 38 48
output:
Accepted: 171
result:
ok 171 move(s)
Test #20:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
49 24 42 4 21 2 21 12 48 16 24 24 45 6 21 21 46 21 23 20 24 22 24 21 38 14 24 12 25 24 30 21 24 12 39 31 32 0 31 11 21 12 37 12 36 9 31 18 24 24 47 24 35 7 24 12 27 13 21 12 33 12 21 5 12 21 41 3 12 21 31 24 26 12 29 10 12 24 28 24 44 1 21 17 21 8 12 12 15 24 34 19 21 12 40 12 43
output:
Accepted: 226
result:
ok 226 move(s)
Test #21:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
50 10 36 39 42 23 39 8 39 24 43 24 46 10 17 33 39 10 38 10 41 10 45 10 40 10 16 28 39 10 24 14 39 4 24 18 39 7 39 26 39 10 44 1 24 21 24 9 24 13 39 10 31 39 48 24 37 24 35 19 24 10 27 39 49 25 39 2 24 39 47 10 20 24 39 3 10 0 24 10 29 6 24 10 12 22 24 10 30 34 39 15 24 10 11 24 32 5 10
output:
Accepted: 345
result:
ok 345 move(s)
Test #22:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
50 14 29 13 43 13 37 13 40 5 14 1 13 22 34 13 24 13 23 3 14 2 13 34 41 14 36 18 34 31 34 34 45 13 39 14 21 14 19 13 33 14 20 34 46 13 32 15 34 0 14 34 35 14 42 14 25 13 49 11 13 34 44 13 28 7 34 14 34 4 34 13 47 14 38 9 14 6 34 26 34 8 13 13 14 27 34 14 16 13 17 10 13 14 48 12 14 30 34
output:
Accepted: 243
result:
ok 243 move(s)
Test #23:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
50 3 20 11 12 9 33 17 24 13 49 5 36 10 47 4 48 41 44 14 16 9 48 6 16 12 18 6 30 2 23 2 40 31 41 1 17 3 21 25 37 34 39 44 49 19 42 7 27 7 15 20 35 18 24 14 32 1 32 9 43 0 29 22 38 34 38 12 21 42 48 17 31 29 45 22 49 8 42 28 34 10 11 10 37 4 32 3 5 13 27 5 26 14 46 16 29 2 46
output:
Accepted: 146
result:
ok 146 move(s)
Test #24:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
50 20 46 25 39 4 22 8 17 10 47 1 23 41 48 14 20 15 39 4 21 45 49 13 45 33 42 34 35 36 41 29 31 30 44 29 32 3 32 16 49 27 38 27 47 0 10 8 37 9 18 9 43 0 44 11 25 12 31 37 46 5 19 28 43 13 17 6 21 28 40 23 26 2 24 33 48 2 18 5 40 7 30 6 16 1 19 24 34 14 42 7 26 15 22 11 12 3 35
output:
Accepted: 204
result:
ok 204 move(s)
Test #25:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
50 28 42 10 23 31 36 38 48 30 45 15 49 14 21 24 36 25 35 16 43 19 49 6 17 15 43 29 39 9 27 8 13 37 45 37 44 7 20 4 25 22 26 6 46 13 38 11 19 3 33 4 28 8 40 1 5 10 31 0 1 2 20 24 32 14 27 3 26 18 47 11 41 7 42 12 17 16 23 5 12 2 34 32 34 21 33 39 41 35 40 0 22 44 47 30 48 29 46
output:
Accepted: 205
result:
ok 205 move(s)
Test #26:
score: 0
Accepted
time: 1ms
memory: 3772kb
input:
50 43 44 16 17 32 33 9 10 15 16 26 27 24 25 18 19 45 46 37 38 28 29 44 45 36 37 27 28 0 1 10 11 8 9 5 6 46 47 34 35 39 40 40 41 38 39 19 20 1 2 7 8 35 36 33 34 48 49 17 18 3 4 47 48 22 23 4 5 14 15 6 7 42 43 2 3 31 32 13 14 25 26 23 24 30 31 20 21 11 12 29 30 21 22 12 13 41 42
output:
Accepted: 197
result:
ok 197 move(s)
Subtask #3:
score: 12
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Test #27:
score: 12
Accepted
time: 0ms
memory: 3820kb
input:
300 191 265 158 220 169 267 75 180 82 215 171 245 68 142 229 246 72 89 85 222 123 156 103 245 47 65 260 272 55 240 66 262 119 185 85 110 120 173 114 217 38 288 247 292 68 203 239 285 208 275 123 157 124 142 50 265 181 258 55 272 0 27 25 48 225 250 66 181 165 259 37 154 32 176 17 121 70 131 40 76 10 ...
output:
Accepted: 1712
result:
ok 1712 move(s)
Test #28:
score: 0
Accepted
time: 2ms
memory: 3760kb
input:
299 13 145 175 235 8 55 133 286 73 147 89 103 47 241 82 151 23 98 158 202 19 94 57 221 117 198 8 210 47 258 93 198 105 255 95 236 83 208 100 124 166 253 137 280 1 76 176 236 165 226 14 15 56 195 45 183 281 282 58 216 39 102 46 234 4 210 37 149 126 293 212 234 90 284 81 121 33 276 152 264 99 241 7 21...
output:
Accepted: 1323
result:
ok 1323 move(s)
Test #29:
score: 0
Accepted
time: 3ms
memory: 3812kb
input:
298 165 206 60 250 121 218 73 228 156 163 6 124 199 200 123 238 6 263 17 163 147 250 40 63 8 206 124 126 111 285 112 203 217 260 83 151 28 241 18 279 172 224 112 121 116 189 66 138 216 243 125 225 181 255 97 232 93 229 74 138 55 90 204 264 84 248 77 221 4 142 101 191 182 276 35 199 150 284 120 241 1...
output:
Accepted: 1368
result:
ok 1368 move(s)
Test #30:
score: 0
Accepted
time: 3ms
memory: 3896kb
input:
300 71 228 160 285 48 87 33 266 151 195 72 113 124 134 47 125 32 286 185 294 80 89 30 154 78 158 182 260 106 293 164 242 151 224 98 293 100 277 53 267 1 258 134 248 51 235 49 50 265 270 69 274 155 188 72 191 71 268 165 209 87 190 134 215 125 295 139 284 79 178 63 77 272 297 118 180 146 237 159 224 1...
output:
Accepted: 1555
result:
ok 1555 move(s)
Test #31:
score: 0
Accepted
time: 3ms
memory: 3884kb
input:
300 59 259 72 136 138 231 87 126 128 148 70 189 199 284 100 118 125 185 190 278 92 99 129 267 241 270 139 160 89 189 234 236 23 84 100 212 110 186 27 198 258 277 45 164 172 299 10 286 48 135 92 255 125 227 49 263 39 141 29 130 95 298 5 296 211 250 76 223 98 189 183 202 132 137 54 157 112 291 210 245...
output:
Accepted: 1277
result:
ok 1277 move(s)
Test #32:
score: 0
Accepted
time: 3ms
memory: 3776kb
input:
300 170 212 80 293 192 236 86 289 43 181 244 298 121 124 169 218 260 262 48 191 184 272 84 96 48 224 15 113 20 236 70 292 96 100 77 122 8 24 73 162 20 278 34 134 22 218 74 181 261 292 150 193 81 171 20 277 94 122 30 280 166 236 63 178 42 249 146 171 72 260 71 214 145 149 225 297 67 162 0 5 24 191 2 ...
output:
Accepted: 1700
result:
ok 1700 move(s)
Test #33:
score: 0
Accepted
time: 4ms
memory: 3836kb
input:
299 10 212 34 69 97 294 124 186 135 288 52 212 77 140 71 108 100 241 19 94 220 294 101 204 204 285 1 135 19 72 184 294 117 147 18 19 124 158 96 124 80 207 11 124 114 291 124 211 57 120 53 120 32 124 143 220 63 100 124 191 135 286 128 135 0 80 23 137 71 164 120 267 100 162 65 71 51 171 51 75 100 225 ...
output:
Accepted: 2224
result:
ok 2224 move(s)
Test #34:
score: 0
Accepted
time: 5ms
memory: 3840kb
input:
300 83 89 145 259 133 149 255 277 203 269 226 241 102 262 83 183 149 191 83 285 70 160 248 262 36 277 259 263 139 200 104 228 146 226 99 228 183 218 97 228 16 40 30 218 123 149 214 277 122 262 131 139 269 290 149 229 9 40 183 259 160 183 54 286 62 83 125 269 37 83 28 136 149 242 38 160 110 259 95 25...
output:
Accepted: 2758
result:
ok 2758 move(s)
Test #35:
score: 0
Accepted
time: 4ms
memory: 3832kb
input:
300 56 123 98 191 13 22 186 221 132 248 32 158 103 222 22 290 43 139 148 236 12 22 47 123 40 221 132 253 235 251 123 173 222 225 23 86 18 271 23 41 212 291 124 221 213 236 125 212 211 222 150 191 17 233 96 123 128 214 23 30 7 161 5 251 43 141 132 249 27 191 18 42 212 279 43 144 230 247 22 134 230 28...
output:
Accepted: 2615
result:
ok 2615 move(s)
Test #36:
score: 0
Accepted
time: 3ms
memory: 3820kb
input:
300 153 237 93 255 238 285 159 259 165 227 123 297 110 111 187 193 32 34 71 103 72 156 8 136 28 45 28 71 150 299 113 221 212 246 139 255 130 208 61 223 15 234 26 66 167 285 150 266 231 238 73 165 44 263 18 113 200 278 161 205 11 31 58 249 134 268 155 259 229 288 121 249 220 232 14 105 131 225 52 235...
output:
Accepted: 1083
result:
ok 1083 move(s)
Test #37:
score: 0
Accepted
time: 7ms
memory: 3856kb
input:
300 121 184 29 35 146 251 28 34 100 180 135 171 9 126 9 65 8 117 23 91 57 114 90 202 94 273 12 192 187 263 199 271 71 107 53 78 108 178 67 83 50 121 5 21 51 244 101 261 217 269 138 212 241 288 21 120 4 127 68 254 167 207 44 276 53 93 90 197 66 152 24 188 174 256 200 209 20 75 147 275 31 157 55 86 3 ...
output:
Accepted: 2265
result:
ok 2265 move(s)
Test #38:
score: 0
Accepted
time: 8ms
memory: 3788kb
input:
300 110 202 68 161 51 183 286 296 230 288 91 195 240 277 148 176 50 92 81 143 242 262 182 292 148 212 77 234 212 285 105 126 33 219 11 61 17 25 144 227 124 265 58 195 76 186 6 132 67 74 133 299 155 276 226 264 53 284 26 241 36 185 71 177 256 299 53 86 2 13 110 134 67 165 146 198 59 185 23 194 42 276...
output:
Accepted: 1926
result:
ok 1926 move(s)
Test #39:
score: 0
Accepted
time: 7ms
memory: 3856kb
input:
300 178 179 145 146 293 294 127 128 220 221 222 223 135 136 195 196 97 98 221 222 162 163 291 292 201 202 257 258 51 52 272 273 76 77 274 275 46 47 285 286 263 264 255 256 3 4 96 97 141 142 82 83 74 75 44 45 52 53 57 58 92 93 228 229 104 105 94 95 2 3 140 141 54 55 177 178 183 184 112 113 28 29 283 ...
output:
Accepted: 2099
result:
ok 2099 move(s)
Subtask #4:
score: 71
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Test #40:
score: 71
Accepted
time: 141ms
memory: 4088kb
input:
2000 58 503 623 1403 1004 1083 249 491 1524 1849 192 562 1261 1877 547 909 267 896 747 1986 381 1329 57 317 779 886 469 1652 628 1456 1732 1790 700 825 494 1799 1450 1733 103 1069 1114 1342 243 1496 930 1361 240 905 398 1737 1008 1765 357 954 1157 1898 1228 1344 1062 1731 160 1977 40 364 343 694 108...
output:
Accepted: 13422
result:
ok 13422 move(s)
Test #41:
score: 71
Accepted
time: 154ms
memory: 4128kb
input:
2000 708 1863 9 1590 217 1903 135 249 1413 1878 189 1114 697 1866 314 643 149 1872 816 1309 91 1784 73 1965 525 1062 390 947 121 929 242 1450 486 1229 688 736 759 1972 16 1778 458 983 1139 1168 78 1742 1386 1487 460 514 1704 1896 206 649 1325 1580 365 445 100 1325 51 324 1955 1983 820 1183 90 1264 3...
output:
Accepted: 12980
result:
ok 12980 move(s)
Test #42:
score: 71
Accepted
time: 150ms
memory: 4204kb
input:
2000 1229 1536 538 1216 151 1124 582 683 696 1744 665 1140 382 502 815 900 440 646 910 1376 688 1965 420 811 572 584 1089 1964 24 1832 1419 1925 1147 1690 1 1203 478 773 1879 1959 1274 1357 548 1533 1315 1339 560 1205 1747 1904 371 936 941 1119 563 941 393 1328 121 457 178 1352 361 992 1702 1999 438...
output:
Accepted: 12721
result:
ok 12721 move(s)
Test #43:
score: 71
Accepted
time: 143ms
memory: 4072kb
input:
2000 15 235 732 811 638 1702 136 884 1550 1921 261 1387 175 1330 828 1406 1102 1759 32 1880 550 854 118 352 987 1811 1630 1987 223 1071 21 1190 13 119 143 536 551 1269 350 1573 374 418 735 941 382 965 1157 1436 386 1986 811 1064 1155 1241 978 1530 776 1291 511 1415 974 1599 662 1580 338 803 676 976 ...
output:
Accepted: 12286
result:
ok 12286 move(s)
Test #44:
score: 71
Accepted
time: 174ms
memory: 4112kb
input:
1999 516 1751 760 1597 875 1120 209 1018 51 1603 1051 1773 766 1610 646 934 796 821 1059 1662 1094 1747 264 1052 1988 1992 1028 1393 1141 1781 842 855 543 940 304 1984 496 526 1279 1387 1484 1912 307 1465 1226 1983 442 1723 562 1114 672 1224 332 934 626 1699 381 1624 159 681 641 1994 1188 1732 1753 ...
output:
Accepted: 12086
result:
ok 12086 move(s)
Test #45:
score: 71
Accepted
time: 112ms
memory: 4180kb
input:
2000 1777 1981 86 1460 254 1019 381 1893 69 980 605 1734 1233 1877 252 1365 427 621 343 1610 1192 1225 549 1371 109 765 1128 1374 425 739 838 1000 425 1775 1185 1611 654 1812 701 1752 349 1031 99 1249 741 1831 742 1090 1255 1942 307 1635 305 1892 1074 1974 434 1219 1876 1885 1017 1244 1736 1942 98 1...
output:
Accepted: 10588
result:
ok 10588 move(s)
Test #46:
score: 71
Accepted
time: 183ms
memory: 4144kb
input:
2000 1015 1885 353 1472 383 467 705 1492 219 1927 68 1251 290 1215 9 629 331 524 421 1902 87 1901 1283 1982 264 1932 431 1041 746 772 457 822 1551 1901 546 666 290 462 1375 1378 1029 1527 1491 1775 663 1708 663 973 464 1165 834 1365 290 1572 66 1624 813 855 709 984 600 721 615 857 1271 1542 272 1758...
output:
Accepted: 18306
result:
ok 18306 move(s)
Test #47:
score: 71
Accepted
time: 186ms
memory: 4208kb
input:
2000 379 1057 726 1149 1407 1920 413 654 1217 1656 130 1130 192 873 255 1364 472 509 256 1447 7 542 700 1210 58 159 1008 1784 592 1357 680 1664 1809 1840 7 1042 232 1389 1228 1785 460 1585 1123 1570 652 1276 115 1276 543 1179 744 1361 481 788 599 1261 687 891 128 1217 257 1785 700 803 5 1161 407 105...
output:
Accepted: 19983
result:
ok 19983 move(s)
Test #48:
score: 71
Accepted
time: 187ms
memory: 4084kb
input:
2000 150 643 607 1264 914 1857 454 482 1110 1950 904 1383 740 1370 1029 1335 1678 1946 1469 1912 678 800 1239 1506 1065 1257 1011 1396 782 1416 711 1370 320 1167 1624 1847 1743 1804 783 1031 339 860 1630 1747 1233 1684 34 1285 105 1073 614 982 256 657 906 1408 247 657 1566 1950 34 648 439 1179 1179 ...
output:
Accepted: 21587
result:
ok 21587 move(s)
Test #49:
score: 71
Accepted
time: 184ms
memory: 4196kb
input:
2000 194 1562 1404 1637 1415 1436 79 1140 744 812 495 752 1331 1558 674 1608 822 969 34 982 913 1881 753 1228 812 920 541 892 540 1054 1458 1562 215 1211 208 1101 674 818 211 939 1332 1675 143 816 1466 1990 25 1314 1324 1833 526 902 670 1367 400 1129 161 632 228 1913 636 1037 827 1585 12 865 322 155...
output:
Accepted: 23220
result:
ok 23220 move(s)
Test #50:
score: 71
Accepted
time: 217ms
memory: 4160kb
input:
2000 154 300 248 962 613 729 40 1615 1408 1953 335 1587 1803 1815 610 785 112 959 616 1817 356 673 869 1168 1372 1941 1292 1460 118 1344 248 280 247 1899 848 1278 1611 1975 335 1004 34 848 613 798 673 1777 226 1707 1597 1683 1247 1439 541 556 703 1636 136 791 85 1354 1175 1571 133 1379 1292 1388 604...
output:
Accepted: 23278
result:
ok 23278 move(s)
Test #51:
score: 71
Accepted
time: 290ms
memory: 4212kb
input:
2000 340 1614 176 466 175 690 1617 1788 556 1224 223 1923 729 1421 1448 1740 1038 1260 452 1120 302 1387 1039 1256 1193 1523 644 1663 521 744 1291 1981 805 835 418 710 1159 1404 1388 1650 212 1530 1169 1571 533 1271 619 677 594 1898 1013 1343 1117 1957 1267 1655 509 551 824 980 933 1026 285 296 69 1...
output:
Accepted: 12602
result:
ok 12602 move(s)
Test #52:
score: 71
Accepted
time: 162ms
memory: 4184kb
input:
2000 902 1792 617 1004 271 636 1708 1804 744 1781 146 593 662 1960 1708 1867 785 1729 1522 1675 593 770 581 1755 304 932 305 401 1394 1893 72 1805 500 1790 711 1438 1108 1600 1465 1949 512 759 1423 1479 833 1675 1665 1821 630 769 1107 1399 125 696 1643 1815 519 1454 813 1325 155 701 460 1259 520 783...
output:
Accepted: 9923
result:
ok 9923 move(s)
Test #53:
score: 71
Accepted
time: 138ms
memory: 4184kb
input:
2000 648 1171 682 1204 212 374 129 481 129 1868 1444 1851 1025 1041 317 1913 167 1204 1142 1995 286 1062 1105 1995 820 1209 1158 1965 66 589 296 445 136 964 724 1597 1041 1121 324 1988 337 1949 1008 1114 923 1480 1445 1884 1384 1586 1776 1932 1263 1855 668 964 383 544 1305 1702 1355 1691 1113 1680 8...
output:
Accepted: 13944
result:
ok 13944 move(s)
Test #54:
score: 71
Accepted
time: 158ms
memory: 4204kb
input:
2000 1137 1935 1150 1829 92 1965 498 581 153 1475 600 1731 571 1372 258 1762 951 1475 1739 1819 362 1856 609 707 258 281 865 1756 347 1268 345 529 906 1695 352 1271 1047 1415 1263 1794 85 1254 396 1887 166 1068 414 704 1006 1243 347 519 609 830 1651 1849 536 1068 53 883 412 1849 1030 1607 95 1390 10...
output:
Accepted: 15192
result:
ok 15192 move(s)
Test #55:
score: 71
Accepted
time: 166ms
memory: 4124kb
input:
2000 322 1728 1196 1336 230 732 825 1253 488 742 761 1643 594 888 184 1278 784 1470 1232 1734 472 1855 1009 1861 1171 1893 883 1628 1030 1814 981 1590 340 1246 999 1922 651 901 1196 1248 307 693 1415 1622 1041 1416 659 1488 355 1195 677 1580 184 1126 565 740 309 1157 236 1622 34 1728 656 724 127 129...
output:
Accepted: 14373
result:
ok 14373 move(s)
Test #56:
score: 71
Accepted
time: 187ms
memory: 4172kb
input:
2000 68 1161 107 1830 103 1762 23 396 49 850 78 1333 45 770 70 1191 81 1386 62 1059 48 821 96 1644 107 1823 2 38 52 893 101 1731 45 769 63 1084 70 1198 65 1120 69 1184 20 341 99 1691 3 63 86 1467 117 1993 56 963 15 272 105 1800 89 1517 5 99 100 1704 62 1056 15 269 37 641 68 1170 9 163 4 79 93 1586 0...
output:
Accepted: 21652
result:
ok 21652 move(s)
Test #57:
score: 71
Accepted
time: 134ms
memory: 4180kb
input:
2000 1088 1096 102 111 170 175 833 836 1615 1628 1207 1223 1445 1461 476 478 816 817 340 356 816 821 221 233 442 444 1394 1406 459 465 391 401 1598 1611 952 956 340 355 867 871 1241 1252 1360 1373 1989 1992 952 955 1326 1328 510 522 1394 1410 119 134 34 36 816 829 1581 1583 1156 1169 1717 1727 476 4...
output:
Accepted: 14035
result:
ok 14035 move(s)
Test #58:
score: 71
Accepted
time: 149ms
memory: 4168kb
input:
2000 1836 1843 1038 1054 253 255 703 716 1739 1748 1705 1712 1102 1106 1529 1543 1418 1432 670 675 1102 1114 910 916 1465 1474 1918 1930 573 586 1418 1422 974 987 910 917 1755 1771 348 359 1836 1848 847 860 1852 1860 1529 1542 348 351 1054 1065 1004 1007 0 1 910 925 1869 1879 1085 1098 1918 1928 110...
output:
Accepted: 14185
result:
ok 14185 move(s)
Test #59:
score: 71
Accepted
time: 120ms
memory: 4116kb
input:
2000 237 1018 84 844 1011 1448 1067 1215 889 1824 762 1704 428 1583 1125 1977 272 1464 781 1653 1371 1749 726 1625 1605 1847 354 531 752 1815 848 877 168 709 1304 1575 320 441 737 943 586 1762 365 1554 878 1123 67 895 1225 1337 227 1815 28 1915 237 287 674 1464 330 1364 710 1814 56 1787 726 1979 157...
output:
Accepted: 11312
result:
ok 11312 move(s)
Test #60:
score: 71
Accepted
time: 137ms
memory: 4052kb
input:
2000 1305 1485 723 901 1190 1409 111 272 32 59 343 512 1057 1524 169 288 901 1319 1224 1577 981 1111 254 1864 321 428 169 1983 356 928 323 1135 195 1236 431 1236 465 1988 1097 1478 233 879 1087 1227 597 836 906 1835 182 1923 818 1487 108 1310 1355 1555 1209 1444 1827 1836 268 946 768 1576 1121 1630 ...
output:
Accepted: 12960
result:
ok 12960 move(s)
Test #61:
score: 71
Accepted
time: 137ms
memory: 4112kb
input:
2000 456 739 143 1394 501 699 594 1398 1091 1698 104 1298 242 1571 1364 1373 48 1038 3 1930 63 1343 1431 1780 663 1888 478 1176 461 1337 1321 1526 242 1062 531 860 419 934 176 1419 64 1781 1606 1826 602 1472 879 948 809 1418 154 213 575 1462 132 252 242 1366 17 522 613 1443 1910 1930 602 610 670 128...
output:
Accepted: 12898
result:
ok 12898 move(s)
Test #62:
score: 71
Accepted
time: 144ms
memory: 4100kb
input:
2000 835 1860 370 996 290 1386 116 832 213 789 91 267 297 1474 468 732 53 350 1075 1323 512 1611 1260 1629 1188 1512 1614 1722 170 388 170 1769 561 698 176 197 569 649 61 1499 575 1034 1455 1718 56 649 220 1371 297 493 297 1360 1609 1944 1253 1475 1398 1724 445 1790 949 1115 94 445 1110 1130 5 331 1...
output:
Accepted: 14570
result:
ok 14570 move(s)
Test #63:
score: 71
Accepted
time: 119ms
memory: 4076kb
input:
2000 4 1863 440 1564 313 951 1475 1761 656 1380 263 1111 1586 1689 569 1105 616 1109 213 1352 71 427 265 460 485 930 983 1564 1176 1993 1258 1595 35 1430 1444 1564 317 1926 130 1635 26 1554 925 1651 449 1457 1082 1449 569 1177 569 863 391 752 578 1866 618 621 115 1756 498 1012 564 1139 1152 1925 177...
output:
Accepted: 12439
result:
ok 12439 move(s)
Test #64:
score: 71
Accepted
time: 149ms
memory: 4108kb
input:
2000 1111 1115 371 387 448 455 1627 1640 1846 1857 234 246 1587 1594 120 134 1329 1332 1785 1799 1357 1370 429 436 1764 1775 509 517 687 697 37 50 548 555 1686 1695 613 624 1968 1981 1627 1629 1846 1852 1785 1801 1974 1985 253 260 76 85 19 37 1826 1829 1212 1215 399 408 1705 1711 1349 1361 1667 1675...
output:
Accepted: 14144
result:
ok 14144 move(s)
Test #65:
score: 71
Accepted
time: 149ms
memory: 4080kb
input:
2000 536 547 1674 1686 474 479 529 543 1790 1802 627 641 139 161 1712 1719 1517 1531 1322 1336 1017 1031 1227 1237 665 674 1883 1894 1208 1220 566 581 1148 1168 1712 1715 512 528 1921 1926 1414 1429 118 121 397 415 1359 1361 665 666 1883 1891 512 523 1494 1506 455 470 261 273 1396 1409 1980 1983 97 ...
output:
Accepted: 14492
result:
ok 14492 move(s)
Test #66:
score: 71
Accepted
time: 147ms
memory: 4084kb
input:
2000 1512 1523 1428 1438 727 729 1196 1200 1486 1490 1820 1836 1151 1156 252 267 1196 1212 608 622 461 470 587 589 1250 1258 117 123 1525 1534 1445 1455 1644 1659 412 414 351 363 1605 1611 782 786 798 802 1021 1033 1250 1259 1250 1255 1122 1136 333 347 252 254 1918 1931 391 398 1411 1427 1 17 1543 1...
output:
Accepted: 14537
result:
ok 14537 move(s)
Test #67:
score: 71
Accepted
time: 217ms
memory: 4168kb
input:
2000 1285 1339 410 860 792 841 498 1160 442 1249 324 810 651 972 1716 1810 30 1994 93 485 1282 1750 1795 1965 968 1674 666 1089 1575 1893 624 813 684 1291 1182 1266 990 1567 442 1372 556 1295 281 1810 541 1633 21 758 790 1497 113 1135 449 1604 515 636 656 1360 1192 1282 1265 1647 1318 1414 477 990 4...
output:
Accepted: 21945
result:
ok 21945 move(s)
Test #68:
score: 71
Accepted
time: 171ms
memory: 4164kb
input:
2000 744 1528 1272 1298 108 925 996 1839 1883 1965 924 1533 362 1377 108 1631 115 387 17 1180 666 1454 1162 1678 158 1439 1796 1834 884 1302 1368 1420 94 797 621 1321 434 561 1348 1553 365 1678 455 1646 287 412 1095 1461 702 1553 654 1450 354 927 420 1254 23 1401 504 1283 1429 1454 1014 1177 1464 15...
output:
Accepted: 21576
result:
ok 21576 move(s)
Test #69:
score: 71
Accepted
time: 183ms
memory: 4132kb
input:
2000 714 1010 523 677 869 1841 1232 1914 23 793 175 512 77 775 548 852 1339 1844 1557 1858 1125 1379 230 1941 1324 1957 1050 1843 275 1285 818 1986 1965 1966 53 1825 746 1733 1503 1702 889 1045 82 586 82 1277 1734 1920 287 1489 99 1957 139 824 810 1438 377 1414 538 1000 1810 1844 471 722 96 818 1158...
output:
Accepted: 22234
result:
ok 22234 move(s)
Test #70:
score: 71
Accepted
time: 204ms
memory: 4172kb
input:
2000 548 1966 700 1413 162 1567 1736 1817 110 328 423 1828 1025 1603 375 434 86 1834 334 1411 1047 1513 328 418 85 979 786 1386 468 1092 1475 1491 795 1754 1118 1162 1010 1593 773 1106 672 1386 1668 1686 979 1662 296 724 598 1848 1464 1595 1234 1786 295 1118 1194 1227 198 538 1184 1806 1277 1686 334...
output:
Accepted: 22331
result:
ok 22331 move(s)
Test #71:
score: 71
Accepted
time: 640ms
memory: 4396kb
input:
2000 1197 1541 996 1115 179 596 1325 1705 841 1892 1367 1461 1597 1651 0 80 469 801 310 909 777 1525 244 267 1276 1628 609 643 1230 1677 1150 1898 202 1713 2 1818 720 1328 1569 1947 1214 1629 249 301 833 998 319 429 1386 1612 1240 1324 724 860 1051 1295 116 877 95 287 1129 1604 121 1345 800 1535 438...
output:
Accepted: 21505
result:
ok 21505 move(s)
Test #72:
score: 71
Accepted
time: 578ms
memory: 4384kb
input:
2000 201 202 308 309 673 674 176 177 1327 1328 403 404 583 584 1269 1270 1501 1502 361 362 932 933 497 498 1013 1014 751 752 1835 1836 1038 1039 1517 1518 1257 1258 938 939 466 467 1053 1054 1406 1407 1179 1180 928 929 1632 1633 1010 1011 1389 1390 1385 1386 1552 1553 698 699 880 881 1044 1045 567 5...
output:
Accepted: 20113
result:
ok 20113 move(s)
Extra Test:
score: 0
Extra Test Passed