QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#253702 | #7791. 通道建设 Passage Construction | hos_lyric# | 44.151067 | 33ms | 5832kb | C++14 | 3.5kb | 2023-11-17 12:05:11 | 2024-07-04 02:51:51 |
Judging History
answer
#include "passageconstruction.h"
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
using Int = long long;
template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }
#define COLOR(s) ("\x1b[" s "m")
mt19937_64 rng(61);
int N, Subtask;
vector<vector<int>> graph;
vector<pair<int, int>> ans;
int dfs(int u) {
int ret = -1;
for (const int v : graph[u]) {
const int res = dfs(v);
if (~res) {
if (~ret) {
ans.emplace_back(ret, res);
ret = -1;
} else {
ret = res;
}
}
}
if (~ret) {
ans.emplace_back(ret, u);
return -1;
} else {
return u;
}
}
vector<pair<int, int>> ConstructPassages(int N_, const vector<pair<int, int>> &E) {
N = N_;
Subtask = getSubtaskID();
const int rt = (Subtask == 4 || Subtask == 6) ? (N + 1 + rng() % N) : (1 + rng() % (2 * N));
vector<int> dep(2 * N + 1, -1), dep1(2 * N + 1, -1);
int rt1 = rt;
for (int u = 1; u <= 2 * N; ++u) {
dep[u] = GetDistance(rt, u);
if (dep[rt1] < dep[u]) {
rt1 = u;
}
}
for (int u = 1; u <= 2 * N; ++u) {
dep1[u] = GetDistance(rt1, u);
}
vector<int> par(2 * N + 1, -1);
if (Subtask == 4 || Subtask == 6) {
for (const auto &e : E) {
int u = e.first, v = e.second;
if (dep[u] > dep[v]) {
swap(u, v);
}
assert(dep[u] + 1 == dep[v]);
par[v] = u;
}
}
vector<int> path(dep[rt1] + 1, -1);
for (int u = 1; u <= 2 * N; ++u) if (dep[rt1] == dep[u] + dep1[u]) {
path[dep[u]] = u;
}
for (int d = 1; d <= dep[rt1]; ++d) {
par[path[d]] = path[d - 1];
}
vector<vector<int>> layers(2 * N);
for (int u = 1; u <= 2 * N; ++u) {
layers[dep[u]].push_back(u);
}
for (int d = 1; d < 2 * N; ++d) {
for (const int v : layers[d]) if (!~par[v]) {
vector<int> us;
for (int u = 1; u <= 2 * N; ++u) if (dep[u] + 1 == dep[v] && dep1[u] + 1 == dep1[v]) {
us.push_back(u);
}
const int usLen = us.size();
assert(usLen);
shuffle(us.begin(), us.end(), rng);
for (int j = 0; j < usLen; ++j) {
const int u = us[j];
if (j == usLen - 1 || QueryLCA({rt}, {u, v}, u)[0]) {
par[v] = u;
break;
}
}
}
}
graph.assign(2 * N + 1, {});
for (int u = 1; u <= 2 * N; ++u) if (~par[u]) {
graph[par[u]].push_back(u);
}
dfs(rt);
return ans;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 3
Accepted
Test #1:
score: 3
Accepted
time: 1ms
memory: 4156kb
input:
1 1872884041 100 100 10000 10000 1 2294931821 2294931820
output:
Succeeded 0 4 0 0 2 1
result:
ok Accepted with 0+4 operations,sum of size(s)=0+0
Test #2:
score: 3
Accepted
time: 1ms
memory: 3940kb
input:
1 1977600624 100 100 10000 10000 5 621522394 621522399 2231003352 2231003338 464307841 464307837 1851407771 1851407768 2780336863 2780336849 314073909 314073902 1173467454 1173467430 4215033871 4215033843 2620057116 2620057098
output:
Succeeded 2 20 2 4 9 5 10 1 2 6 4 8 3 7
result:
ok Accepted with 2+20 operations,sum of size(s)=2+4
Test #3:
score: 3
Accepted
time: 1ms
memory: 3896kb
input:
1 1314992723 100 100 10000 10000 2 1174248192 1174248188 4206147071 4206147069 2894997654 2894997645
output:
Succeeded 0 8 0 0 4 2 3 1
result:
ok Accepted with 0+8 operations,sum of size(s)=0+0
Test #4:
score: 3
Accepted
time: 0ms
memory: 4048kb
input:
1 1466488642 100 100 10000 10000 3 1959342134 1959342129 3976386946 3976386946 1293201451 1293201449 4016912388 4016912383 46728190 46728181
output:
Succeeded 0 12 0 0 1 4 3 2 6 5
result:
ok Accepted with 0+12 operations,sum of size(s)=0+0
Test #5:
score: 3
Accepted
time: 1ms
memory: 4156kb
input:
1 1733551538 100 100 10000 10000 4 4255320958 4255320951 1233889267 1233889267 2022156010 2022156014 1746602236 1746602223 1796304111 1796304099 154520793 154520786 799267407 799267389
output:
Succeeded 0 16 0 0 1 6 7 3 8 4 2 5
result:
ok Accepted with 0+16 operations,sum of size(s)=0+0
Test #6:
score: 3
Accepted
time: 0ms
memory: 3936kb
input:
1 1103590331 100 100 10000 10000 4 3735090189 3735090176 179620503 179620501 1550955883 1550955882 3533004575 3533004552 2159969243 2159969227 2549716219 2549716202 1755562372 1755562356
output:
Succeeded 0 16 0 0 3 1 7 8 4 2 6 5
result:
ok Accepted with 0+16 operations,sum of size(s)=0+0
Test #7:
score: 3
Accepted
time: 1ms
memory: 3960kb
input:
1 1007922703 100 100 10000 10000 5 3347355425 3347355424 924935451 924935434 3554593528 3554593525 2830078883 2830078872 3185621515 3185621508 32902500 32902483 1057526055 1057526035 3737430162 3737430144 106424402 106424399
output:
Succeeded 0 20 0 0 2 3 8 5 9 6 4 10 1 7
result:
ok Accepted with 0+20 operations,sum of size(s)=0+0
Test #8:
score: 3
Accepted
time: 1ms
memory: 4124kb
input:
1 1401446296 100 100 10000 10000 5 4125806477 4125806476 1224445301 1224445291 1474144594 1474144597 2898586557 2898586536 879608888 879608877 3110900945 3110900930 2490037068 2490037051 422424582 422424570 1017432306 1017432295
output:
Succeeded 0 20 0 0 2 6 1 3 8 9 4 10 5 7
result:
ok Accepted with 0+20 operations,sum of size(s)=0+0
Test #9:
score: 3
Accepted
time: 1ms
memory: 3944kb
input:
1 1756894897 100 100 10000 10000 5 2081532117 2081532115 4275738287 4275738273 632146529 632146534 2424607270 2424607263 2157363450 2157363443 2463928559 2463928550 3381117807 3381117785 4186361975 4186361960 3382018566 3382018532
output:
Succeeded 0 20 0 0 4 1 8 5 10 6 2 9 3 7
result:
ok Accepted with 0+20 operations,sum of size(s)=0+0
Test #10:
score: 3
Accepted
time: 1ms
memory: 4128kb
input:
1 1465320926 100 100 10000 10000 5 2695813796 2695813789 3049323317 3049323309 231883125 231883119 3073242409 3073242392 1388430756 1388430755 183732731 183732729 1423324287 1423324267 3470698806 3470698795 354321542 354321525
output:
Succeeded 0 20 0 0 9 3 6 2 1 8 5 4 10 7
result:
ok Accepted with 0+20 operations,sum of size(s)=0+0
Subtask #2:
score: 6
Accepted
Test #11:
score: 6
Accepted
time: 1ms
memory: 3936kb
input:
2 755640766 20000 10000 200000 200000 100 4287951944 4287951892 218593589 218593610 2907028702 2907028595 100123056 100122959 3149201405 3149201229 3454414687 3454414608 1901257489 1901257490 1532337798 1532337686 836222214 836222227 187381584 187381446 1847826999 1847827071 2868544732 2868544653 41...
output:
Succeeded 898 400 898 1796 38 72 73 167 16 2 127 174 9 60 28 45 88 58 133 17 29 82 27 59 64 122 41 47 71 13 76 20 57 163 170 18 137 23 30 68 63 149 144 165 1 31 70 97 79 65 138 173 6 145 53 121 198 33 10 183 35 55 21 80 83 175 135 75 67 107 156 7 36 111 11 161 39 96 92 94 192 151 184 109 106 154 43 ...
result:
ok Accepted with 898+400 operations,sum of size(s)=898+1796
Test #12:
score: 6
Accepted
time: 1ms
memory: 3980kb
input:
2 587237803 20000 10000 200000 200000 98 217447661 217447616 2463641363 2463641406 3373538248 3373538212 3950835015 3950834997 2221322822 2221322872 146298284 146298141 531452967 531453049 3941453926 3941454046 3084946195 3084946149 1270490559 1270490368 1019372524 1019372347 2754251578 2754251434 5...
output:
Succeeded 730 392 730 1460 10 56 57 48 71 47 22 51 131 127 93 182 161 104 85 19 18 62 30 73 40 187 81 121 2 98 111 169 145 176 82 122 13 136 113 91 72 130 96 101 148 49 65 159 120 151 90 192 112 108 44 64 29 117 31 116 80 147 26 194 163 32 4 171 1 12 14 61 17 33 191 78 55 128 28 150 141 39 23 36 5 9...
result:
ok Accepted with 730+392 operations,sum of size(s)=730+1460
Test #13:
score: 6
Accepted
time: 1ms
memory: 3920kb
input:
2 184226984 20000 10000 200000 200000 99 547000384 547000355 872110096 872110116 1289538184 1289538247 3616724666 3616724569 636341527 636341600 2563522202 2563522274 2177548205 2177548137 3089489449 3089489506 3156380759 3156380856 944465184 944465231 823584265 823584499 333051247 333051023 1754238...
output:
Succeeded 660 396 660 1320 50 60 14 20 34 72 68 82 41 63 5 38 100 163 131 77 13 31 140 32 99 185 47 69 132 96 164 147 186 9 84 188 1 192 36 27 18 7 73 121 74 17 180 48 35 49 195 116 148 161 51 168 16 92 26 98 56 136 190 21 43 94 6 54 153 152 112 107 111 162 101 125 193 196 123 173 104 149 81 71 103 ...
result:
ok Accepted with 660+396 operations,sum of size(s)=660+1320
Test #14:
score: 6
Accepted
time: 1ms
memory: 3980kb
input:
2 1727138930 20000 10000 200000 200000 99 3247483138 3247483162 4084597375 4084597429 2636905019 2636904971 946660642 946660700 902149328 902149350 2382255766 2382255865 839303047 839303137 1923325547 1923325538 653690681 653690724 4175318562 4175318731 3824454449 3824454478 2650316775 2650316587 58...
output:
Succeeded 1158 396 1158 2316 59 72 32 80 184 5 17 177 27 196 101 102 161 120 111 182 133 134 117 112 105 118 132 140 109 119 125 145 178 30 194 22 92 108 153 77 6 36 1 56 103 33 123 41 93 168 167 173 193 66 141 174 40 64 46 150 85 197 7 37 69 81 45 25 191 76 31 164 19 187 163 115 10 55 73 78 35 15 2...
result:
ok Accepted with 1158+396 operations,sum of size(s)=1158+2316
Test #15:
score: 6
Accepted
time: 1ms
memory: 3936kb
input:
2 1220143324 20000 10000 200000 200000 100 693596313 693596332 62576744 62576808 1955936424 1955936264 3872655610 3872655531 1013531683 1013531829 2985331208 2985331369 2406362516 2406362582 1657349556 1657349602 1003910904 1003910721 1096398841 1096398795 1778724026 1778723842 713692268 713692342 2...
output:
Succeeded 1175 400 1175 2350 189 91 185 137 22 155 126 158 183 187 115 146 125 166 103 198 105 143 191 18 113 118 153 168 181 119 116 129 190 147 173 130 106 121 160 200 144 138 101 120 175 136 140 164 19 59 102 186 52 157 127 162 182 194 193 63 9 51 124 184 1 34 58 39 37 69 142 79 42 54 40 49 11 76...
result:
ok Accepted with 1175+400 operations,sum of size(s)=1175+2350
Test #16:
score: 6
Accepted
time: 1ms
memory: 4044kb
input:
2 442130601 20000 10000 200000 200000 100 3144169521 3144169542 3602466736 3602466791 26223369 26223537 866636824 866636802 1192888944 1192888905 2768179340 2768179316 992350648 992350588 1606144049 1606144118 2825460299 2825460268 2783910130 2783910118 403964521 403964517 445570315 445570360 126026...
output:
Succeeded 805 400 805 1610 147 52 132 149 156 17 45 82 200 11 183 115 41 100 18 54 133 194 56 158 168 26 198 107 199 159 145 127 114 167 150 182 195 10 179 110 174 120 124 184 42 88 58 68 137 95 74 22 3 29 196 87 27 104 39 62 176 57 19 31 192 154 64 49 190 163 60 80 186 53 102 16 23 5 101 25 66 86 5...
result:
ok Accepted with 805+400 operations,sum of size(s)=805+1610
Test #17:
score: 6
Accepted
time: 1ms
memory: 3980kb
input:
2 949343282 20000 10000 200000 200000 97 1170242583 1170242801 4247921283 4247921322 1529679099 1529679065 1051858814 1051858774 3893889966 3893889994 3958531511 3958531352 2502650796 2502650862 813064156 813064047 1048780624 1048780414 3993902928 3993902731 803344004 803343802 3547336751 3547336794...
output:
Succeeded 583 388 583 1166 14 26 151 154 12 34 170 169 175 134 106 167 180 190 35 104 37 168 122 31 10 176 30 39 98 54 40 135 72 43 182 28 63 75 29 117 97 115 183 142 85 179 16 144 101 73 148 76 112 138 79 189 77 87 17 127 21 18 99 32 94 145 109 36 9 96 132 136 141 46 100 155 118 165 160 193 174 45 ...
result:
ok Accepted with 583+388 operations,sum of size(s)=583+1166
Test #18:
score: 6
Accepted
time: 1ms
memory: 3944kb
input:
2 734508634 20000 10000 200000 200000 98 213911368 213911499 2488548419 2488548499 516780967 516780705 3349442602 3349442765 857297035 857297029 1348690665 1348690579 1548954171 1548954133 3605026599 3605026727 182470368 182470292 1455323224 1455323364 2179991017 2179991001 3209649930 3209649949 145...
output:
Succeeded 765 392 765 1530 23 83 112 64 5 33 158 144 9 77 16 93 184 152 194 12 63 171 172 26 159 4 2 31 20 136 146 10 102 135 60 117 30 147 76 111 141 142 7 148 97 17 103 129 19 11 25 28 121 84 1 24 130 44 49 15 126 42 34 107 32 43 69 105 59 188 122 189 74 68 37 114 98 73 96 82 195 124 52 85 86 163 ...
result:
ok Accepted with 765+392 operations,sum of size(s)=765+1530
Subtask #3:
score: 8
Accepted
Test #19:
score: 8
Accepted
time: 2ms
memory: 4724kb
input:
3 397960972 100000 4000 200000 200000 1000 3136131587 3136131078 3887641427 3887642253 280951546 280951198 124187343 124186744 3948118891 3948118785 2174920490 2174920140 3041102338 3041103477 489656932 489656480 3093689453 3093690199 3027233105 3027233261 967551350 967551424 215138938 215138436 251...
output:
Succeeded 0 4000 0 0 1855 1366 1563 1773 1275 1969 1313 1368 1409 1107 1727 1643 1837 1134 1600 1844 1114 1677 1937 1610 1588 1122 1298 1630 1755 1829 1178 1561 1357 1852 1394 1347 1054 1751 1887 1806 1266 1164 1579 1868 1609 1824 1276 1613 1078 1697 1866 1272 1554 1009 1223 1477 1214 1462 1465 1259...
result:
ok Accepted with 0+4000 operations,sum of size(s)=0+0
Test #20:
score: 8
Accepted
time: 0ms
memory: 4868kb
input:
3 755523510 100000 4000 200000 200000 999 837610461 837610217 209552123 209552158 2202987134 2202987346 3933843218 3933843131 2783546817 2783547323 415275024 415276142 13876082 13876176 448702939 448703028 1294393612 1294394136 3910397405 3910397094 3416630484 3416630700 3215888394 3215888948 124509...
output:
Succeeded 0 3996 0 0 198 827 112 795 703 616 809 427 584 743 818 611 649 805 42 438 1863 330 1562 251 922 322 1460 130 723 928 868 579 606 701 641 761 711 339 60 786 581 237 759 256 502 651 634 368 1878 340 491 118 1638 924 6 411 437 224 529 484 1 171 617 435 828 876 893 549 160 62 364 94 765 942 50...
result:
ok Accepted with 0+3996 operations,sum of size(s)=0+0
Test #21:
score: 8
Accepted
time: 2ms
memory: 4628kb
input:
3 2042812129 100000 4000 200000 200000 998 3075748308 3075748844 1569673104 1569672823 3968525693 3968524672 2108387096 2108386924 3356390455 3356391094 3372812724 3372813320 3904961007 3904958854 4029621824 4029621345 4114486509 4114486281 1387138301 1387138067 124292409 124292880 3935517019 393551...
output:
Succeeded 0 3992 0 0 1325 1749 1702 1332 1114 1225 1984 1397 1723 1307 1737 1658 1495 1813 1051 1838 1316 1067 1922 1696 1402 1946 1355 1363 1886 1208 1247 1539 1072 1505 1700 1624 1499 1436 1498 1268 1759 1326 1659 1857 1293 1920 1651 1242 1523 1311 1751 1687 1336 1347 1810 1021 1366 1147 1006 1784...
result:
ok Accepted with 0+3992 operations,sum of size(s)=0+0
Test #22:
score: 8
Accepted
time: 2ms
memory: 4684kb
input:
3 1597029305 100000 4000 200000 200000 998 2980500284 2980500361 2247716226 2247714887 988714926 988714253 1734063960 1734064121 2359409219 2359409008 411968449 411968499 155449826 155451318 555582797 555582911 45071917 45071590 1460631113 1460629818 3059213925 3059213709 2094519932 2094519250 38721...
output:
Succeeded 0 3992 0 0 1767 345 262 528 580 38 1719 910 1612 226 1391 1016 1557 719 431 130 1537 941 1894 322 1572 1024 1713 1082 1539 697 846 1712 1100 1898 293 1595 1970 1512 119 685 748 1521 282 245 551 419 1301 1688 857 774 488 1177 1854 1558 1950 1579 1136 576 1600 219 760 1643 167 887 1717 1762 ...
result:
ok Accepted with 0+3992 operations,sum of size(s)=0+0
Test #23:
score: 8
Accepted
time: 2ms
memory: 4656kb
input:
3 1564467111 100000 4000 200000 200000 1000 1236547222 1236547523 2135786902 2135787064 2523622442 2523622714 1532839693 1532838477 818219113 818220033 676117995 676118414 570037547 570036834 514220702 514220842 3399494183 3399495268 2654728241 2654729498 1495037081 1495037412 2062047312 2062048382 ...
output:
Succeeded 0 4000 0 0 1367 1276 340 489 1496 602 783 21 1597 1715 994 1344 298 11 1693 1003 1737 643 709 268 552 237 1974 1391 1055 878 852 796 1345 371 209 1289 813 164 1840 1499 1960 1936 357 1188 137 1491 1488 873 279 537 724 151 1950 696 291 521 424 1920 1798 260 1166 711 1429 1638 53 280 1944 15...
result:
ok Accepted with 0+4000 operations,sum of size(s)=0+0
Test #24:
score: 8
Accepted
time: 3ms
memory: 4512kb
input:
3 213138336 100000 4000 200000 200000 999 1130123143 1130122958 687694550 687694095 929485247 929484829 3680984473 3680983776 3074105335 3074104892 1342732123 1342731927 1364720805 1364720672 2077428724 2077428538 28510235 28511166 937776441 937776505 3414480885 3414480666 3148182306 3148181509 3485...
output:
Succeeded 0 3996 0 0 522 214 776 308 400 165 34 182 1509 433 107 292 599 474 257 675 568 53 306 20 216 901 415 238 589 740 583 337 664 12 317 132 1493 391 136 880 1095 156 484 1762 372 488 272 981 943 689 2 476 686 1117 651 1821 935 859 854 624 364 460 823 302 889 1189 407 980 1662 1080 1776 1578 19...
result:
ok Accepted with 0+3996 operations,sum of size(s)=0+0
Test #25:
score: 8
Accepted
time: 0ms
memory: 4604kb
input:
3 924980045 100000 4000 200000 200000 998 1666991999 1666991279 148686690 148685590 324531768 324531788 2043725358 2043725640 1133184972 1133184631 853139746 853139683 1770837584 1770837761 1481554510 1481554714 1372084869 1372084950 1756084441 1756085236 2107756067 2107756010 3377586774 3377586312 ...
output:
Succeeded 0 3992 0 0 949 582 825 1464 890 664 670 407 358 674 445 423 534 808 327 1963 549 360 878 219 851 860 623 665 419 533 1161 141 356 59 244 575 986 232 726 384 127 1373 915 364 806 353 654 463 785 333 75 1408 361 780 24 486 155 458 137 547 994 453 916 965 559 609 112 892 958 887 477 1733 61 4...
result:
ok Accepted with 0+3992 operations,sum of size(s)=0+0
Test #26:
score: 8
Accepted
time: 2ms
memory: 4584kb
input:
3 774146483 100000 4000 200000 200000 999 3478842381 3478843345 606332045 606332562 2701123033 2701123563 3216754910 3216755036 1217043418 1217043429 1501603802 1501603474 1778234551 1778234769 1444790432 1444791022 2502984240 2502984288 856947428 856947122 1363006586 1363006323 1995567044 199556642...
output:
Succeeded 0 3996 0 0 197 1477 890 865 54 698 89 88 313 915 831 464 948 67 411 98 610 337 402 359 195 862 677 110 85 671 1432 444 225 794 1884 952 425 883 930 192 815 903 859 7 430 101 347 828 477 437 187 1305 499 558 599 584 549 721 309 594 788 435 502 69 40 818 911 653 531 780 71 183 877 148 812 40...
result:
ok Accepted with 0+3996 operations,sum of size(s)=0+0
Test #27:
score: 8
Accepted
time: 2ms
memory: 4540kb
input:
3 82266506 100000 4000 200000 200000 999 3056998601 3056998876 1887811910 1887812134 1616045105 1616045172 1784967209 1784967615 650919784 650918837 4290024152 4290024396 154133667 154133653 754913686 754913998 3014551042 3014550770 3332698384 3332698431 304657473 304657856 1466514044 1466515029 313...
output:
Succeeded 0 3996 0 0 569 426 125 954 850 1700 743 692 195 417 668 1125 962 971 563 270 865 421 655 285 772 989 525 467 317 348 412 122 1665 59 73 633 527 62 709 671 157 558 402 156 910 918 707 886 225 799 410 613 737 738 472 115 321 795 777 159 134 263 963 362 1175 388 985 166 409 301 407 193 182 94...
result:
ok Accepted with 0+3996 operations,sum of size(s)=0+0
Test #28:
score: 8
Accepted
time: 3ms
memory: 4600kb
input:
3 1746021239 100000 4000 200000 200000 1000 3649747382 3649747015 3895797253 3895797184 4001365723 4001365122 564220364 564220085 362710516 362710456 2800243662 2800243024 2073687310 2073687797 145701776 145700951 492159209 492159366 3076148714 3076148148 1548738755 1548739322 3580263095 3580262700 ...
output:
Succeeded 0 4000 0 0 707 272 433 532 900 503 486 769 264 508 252 1196 108 696 656 874 924 755 1299 878 307 439 717 17 531 89 392 247 233 987 314 719 79 47 217 660 784 151 713 669 187 615 783 73 941 633 356 908 880 789 722 378 971 26 326 241 352 69 584 683 330 1202 1729 708 447 139 760 435 860 538 86...
result:
ok Accepted with 0+4000 operations,sum of size(s)=0+0
Subtask #4:
score: 9
Accepted
Test #29:
score: 9
Accepted
time: 5ms
memory: 4432kb
input:
4 1084797752 100000 4000 200000 200000 1000 3456536122 3456534568 249115651 249115791 3576312078 3576312237 1880897416 1880895547 1944688480 1944688327 248846397 248847256 3567405828 3567405196 1084965392 1084965206 1435956247 1435955729 3887033767 3887032464 307260230 307260472 1476733874 147673312...
output:
Succeeded 12827 4000 12827 25654 1190 1249 1448 966 845 462 1682 1836 1213 1558 1410 1106 284 9 585 744 1433 1663 275 704 409 437 1082 1407 873 868 490 351 1111 1553 1326 1833 1527 1694 1630 460 1124 1173 1329 1624 1046 1425 794 33 1847 1080 1246 360 800 700 591 362 1167 1479 1248 361 124 231 1688 3...
result:
ok Accepted with 12827+4000 operations,sum of size(s)=12827+25654
Test #30:
score: 9
Accepted
time: 3ms
memory: 4504kb
input:
4 583125216 100000 4000 200000 200000 1000 1729488108 1729488695 2234303914 2234304325 546617298 546616102 842050918 842051470 1951502077 1951501331 4271815110 4271815116 761587681 761586756 2172224244 2172223957 2934428060 2934428507 1919912734 1919912263 1067575137 1067574604 3411448089 3411447166...
output:
Succeeded 3149 4000 3149 6298 1981 1097 1743 1453 1616 1862 1947 1969 1176 1747 1625 1208 1286 1379 1526 1005 1493 1168 1381 1531 1895 1757 1610 1575 1124 1214 1131 1207 1457 1788 1323 1750 1303 1338 1018 352 200 562 206 930 592 614 286 630 465 647 427 907 170 93 599 260 776 159 972 713 581 550 84 4...
result:
ok Accepted with 3149+4000 operations,sum of size(s)=3149+6298
Test #31:
score: 9
Accepted
time: 2ms
memory: 4568kb
input:
4 1854731567 100000 4000 200000 200000 998 946750857 946749479 898868556 898868101 2271278746 2271277916 1796596168 1796596321 161487283 161486866 1033814116 1033814195 2395521961 2395522326 1468519383 1468519080 2816096970 2816096367 1556209002 1556208501 3292442187 3292440851 1135140030 1135140110...
output:
Succeeded 11352 3992 11352 22704 1151 270 1433 48 1712 1043 1183 1618 1262 1977 1759 1488 397 166 1253 1308 1239 1312 1525 1621 184 732 1238 1786 1192 119 328 318 1875 1829 650 870 216 881 229 57 1914 1595 1284 1315 1610 58 1125 361 936 172 1550 1945 1455 155 1272 1476 1474 165 1058 1370 1527 1380 1...
result:
ok Accepted with 11352+3992 operations,sum of size(s)=11352+22704
Test #32:
score: 9
Accepted
time: 6ms
memory: 4428kb
input:
4 2073988041 100000 4000 200000 200000 998 3168161931 3168162584 641363905 641362895 3784715137 3784714618 3548409026 3548409673 2737710699 2737710016 3324804481 3324803425 60841104 60840338 2010919705 2010919496 2362840315 2362840326 369236350 369237998 3600238093 3600237006 75182169 75182747 23418...
output:
Succeeded 30594 3992 30594 61188 1257 1153 904 1400 1212 1878 1001 854 603 80 519 199 1723 977 990 71 1610 838 1483 813 1561 848 120 928 200 384 1515 563 109 597 1876 706 1468 1697 1500 1819 1983 335 1647 971 1038 1488 1098 1410 1175 1244 1807 1800 124 1513 350 1958 1552 602 26 336 1713 476 1365 759...
result:
ok Accepted with 30594+3992 operations,sum of size(s)=30594+61188
Test #33:
score: 9
Accepted
time: 5ms
memory: 4304kb
input:
4 1770340944 100000 4000 200000 200000 998 619870796 619870703 3121053787 3121054050 4195183636 4195182734 3139119614 3139119172 3634777517 3634777854 3433281440 3433281395 1485638549 1485638667 1231357421 1231357552 1705009906 1705010057 3514693637 3514694012 4265358236 4265358262 964902776 9649023...
output:
Succeeded 15352 3992 15352 30704 588 1939 816 1277 627 1905 1672 184 1368 1567 766 895 1217 1364 1112 1873 1114 1976 902 518 794 1276 1548 52 1554 1654 1158 1652 1243 543 1982 1963 1444 1634 1798 1588 1857 1985 674 740 1181 1862 1065 1752 1872 779 700 196 1958 175 922 1448 574 1410 1555 1772 1182 14...
result:
ok Accepted with 15352+3992 operations,sum of size(s)=15352+30704
Test #34:
score: 9
Accepted
time: 7ms
memory: 4564kb
input:
4 402901589 100000 4000 200000 200000 1000 1228378193 1228378597 1873458243 1873458214 2590411172 2590411391 3596693908 3596693672 442343415 442341879 1371534355 1371535333 1713867379 1713867258 2725534246 2725534433 3960722519 3960721503 1846001052 1846001387 2925453274 2925452776 1709191822 170919...
output:
Succeeded 37803 4000 37803 75606 1275 1426 1238 123 1191 1412 1624 623 91 74 1964 302 1293 982 724 558 1228 1124 1971 815 126 639 1304 253 1300 1915 1041 1867 1815 392 813 658 1212 1529 1416 1480 1017 1951 529 879 1743 196 1025 1237 949 864 191 600 1757 422 439 120 1756 1879 1814 1063 1724 1361 1963...
result:
ok Accepted with 37803+4000 operations,sum of size(s)=37803+75606
Test #35:
score: 9
Accepted
time: 7ms
memory: 4344kb
input:
4 816997292 100000 4000 200000 200000 1000 3528745308 3528745448 2554369604 2554370028 2428697713 2428697760 2283123422 2283123636 2317970372 2317971439 3486243575 3486243354 914803066 914803223 3870938133 3870937913 833775363 833775109 133819724 133819108 4164722879 4164723079 4283955483 4283956051...
output:
Succeeded 36100 4000 36100 72200 1874 1988 1160 818 725 187 1292 1752 48 504 1712 1276 676 719 768 843 705 965 1218 1777 1113 1141 1965 1017 1770 1311 1027 1334 1851 39 1522 1638 885 766 296 206 1331 894 787 139 1425 1647 1743 1408 1031 1301 1178 23 1490 1723 159 827 723 538 644 815 1005 1373 1649 5...
result:
ok Accepted with 36100+4000 operations,sum of size(s)=36100+72200
Test #36:
score: 9
Accepted
time: 6ms
memory: 4408kb
input:
4 448483706 100000 4000 200000 200000 1000 3294405857 3294406138 1334269388 1334268750 3218236158 3218236229 1172020015 1172020961 4267095542 4267095785 884218942 884218794 2727697704 2727696787 4040088499 4040088016 3925649252 3925648708 3602778930 3602778977 25062275 25062940 782102904 782103485 4...
output:
Succeeded 62378 4000 62378 124756 1009 1378 1265 1936 1607 5 1696 309 1240 1029 1713 1398 924 417 1216 1490 772 912 468 431 1885 1365 1203 607 78 77 1349 1988 1617 934 574 96 1185 1956 1521 884 1497 919 1552 1590 1859 1218 1315 1596 1695 1261 214 600 29 613 576 987 1051 1158 1296 1855 1876 1249 1399...
result:
ok Accepted with 62378+4000 operations,sum of size(s)=62378+124756
Test #37:
score: 9
Accepted
time: 3ms
memory: 4508kb
input:
4 1345753551 100000 4000 200000 200000 1000 2505101245 2505099844 1064732384 1064732096 3514288208 3514289196 4285598713 4285598588 289512304 289512216 961277738 961276571 270988037 270987782 351038556 351038779 2313748299 2313748400 3024327557 3024327268 1007549868 1007549449 3171882049 3171882337 ...
output:
Succeeded 213 4000 213 426 1700 1736 1549 167 1589 184 1436 1344 1100 1284 1295 1903 1237 1098 1481 108 28 6 1785 231 1491 1173 140 465 1150 1854 669 1747 1649 1429 113 290 1527 1541 989 1132 280 1290 661 1048 217 264 1688 142 1424 1029 959 999 1334 650 1025 175 1725 1052 331 549 468 1246 1803 325 4...
result:
ok Accepted with 213+4000 operations,sum of size(s)=213+426
Test #38:
score: 9
Accepted
time: 3ms
memory: 4524kb
input:
4 163480472 100000 4000 200000 200000 998 2002085756 2002085748 2640607139 2640605823 836452341 836452238 179712028 179712352 1546416317 1546416341 3648734029 3648733547 4142213872 4142214412 711606286 711606592 1732581221 1732580465 2405962256 2405961750 1644716795 1644717277 589785362 589783494 12...
output:
Succeeded 252 3992 252 504 1105 1616 1410 586 1254 650 1885 150 1028 494 1717 1273 1192 1416 67 1408 602 1100 162 496 1005 607 894 539 1107 486 1730 44 1866 273 365 1425 984 759 1908 448 1184 1304 94 1200 1554 1087 725 298 1287 621 205 469 1952 1290 1392 489 805 569 1722 576 104 121 246 385 1029 175...
result:
ok Accepted with 252+3992 operations,sum of size(s)=252+504
Subtask #5:
score: 11
Accepted
Test #39:
score: 11
Accepted
time: 9ms
memory: 4300kb
input:
5 1720909858 50000 4000 200000 100000 998 195378529 195378218 2138942224 2138942028 2421726252 2421725316 2614111628 2614111784 3778296551 3778295886 3346314089 3346313971 701234060 701233448 279201944 279202119 69826850 69826766 2173156660 2173157126 2982274003 2982273048 2306106121 2306107345 2808...
output:
Succeeded 39452 3992 39452 78904 1599 1686 1009 1183 1080 1596 486 970 1446 569 260 644 1547 1619 439 654 48 91 616 1078 1367 1482 89 1672 1287 298 222 1273 994 470 991 858 1005 234 530 1679 1660 1582 1691 965 499 1491 160 793 553 721 382 412 678 729 1195 820 1966 283 1665 1801 919 1938 1474 1515 10...
result:
ok Accepted with 39452+3992 operations,sum of size(s)=39452+78904
Test #40:
score: 11
Accepted
time: 4ms
memory: 4392kb
input:
5 1942257410 50000 4000 200000 100000 999 164109252 164108690 821766476 821766590 800182177 800180581 3645999838 3646000976 4086503876 4086505410 2171679381 2171678745 2952329225 2952330453 1354218636 1354219071 1174819694 1174820521 2253012620 2253012650 1329779110 1329779087 2814346065 2814346500 ...
output:
Succeeded 2188 3996 2188 4376 1145 319 1668 1902 1651 1587 332 806 1928 163 1728 796 1495 1077 982 451 1431 1551 724 1086 1407 802 1311 310 258 1899 450 216 1864 564 1290 1758 717 768 927 1732 478 828 1243 486 1878 1531 1110 205 1578 1826 645 237 1402 63 1227 1524 389 892 861 671 1119 1573 1084 307 ...
result:
ok Accepted with 2188+3996 operations,sum of size(s)=2188+4376
Test #41:
score: 11
Accepted
time: 3ms
memory: 4680kb
input:
5 161065852 50000 4000 200000 100000 1000 2966551129 2966552287 2856618787 2856618848 3795294524 3795295808 2757765097 2757764165 676105640 676105847 570204851 570205160 511088706 511090077 3497329264 3497329269 3725322378 3725322886 527017111 527016211 4071607765 4071607337 2817593784 2817593642 15...
output:
Succeeded 227 4000 227 454 1755 1085 1682 219 1690 1335 1341 1724 1365 415 1048 1028 722 1188 1387 1898 1362 432 98 1697 1779 1719 1073 203 1646 1274 666 1359 1914 1959 1328 1351 1812 220 1695 1307 1875 410 1058 1198 664 660 544 265 1358 768 1809 1651 1574 1587 39 105 1290 814 1747 108 1834 1320 131...
result:
ok Accepted with 227+4000 operations,sum of size(s)=227+454
Test #42:
score: 11
Accepted
time: 8ms
memory: 4644kb
input:
5 777230405 50000 4000 200000 100000 999 3830467265 3830466694 1849159126 1849158949 2825053043 2825052212 2761591040 2761591070 939276197 939275664 3367167096 3367167288 3727731406 3727730932 406701926 406701618 530187802 530186715 3962995171 3962996546 1787609584 1787609620 993000803 993000542 158...
output:
Succeeded 29997 3996 29997 59994 721 160 921 1457 1818 600 775 1190 1191 563 1097 268 898 1972 1294 1844 1724 1984 30 1021 760 817 1080 1965 496 1148 1081 420 837 305 1742 1028 1111 771 1927 231 858 1411 1438 1358 655 1612 814 1823 509 102 483 1492 708 1778 21 1829 1330 670 827 199 225 37 989 1147 2...
result:
ok Accepted with 29997+3996 operations,sum of size(s)=29997+59994
Test #43:
score: 11
Accepted
time: 8ms
memory: 4416kb
input:
5 97972513 50000 4000 200000 100000 999 654921388 654921281 3336987454 3336987177 439399097 439398662 1551555981 1551555288 3555879532 3555880729 2903638861 2903639277 257794283 257794433 3826111358 3826111966 1708274143 1708274017 3746235685 3746236123 907908447 907908765 4116365217 4116364822 1582...
output:
Succeeded 33571 3996 33571 67142 1270 167 1 1572 479 441 116 935 41 1452 1816 1442 1174 1028 171 155 785 1440 11 1173 1196 126 1135 395 1247 1842 875 958 763 1069 1215 1961 440 532 789 793 311 758 1493 1690 665 659 64 1224 1387 1258 287 842 416 455 24 1640 173 1630 378 912 429 1605 316 179 168 1200 ...
result:
ok Accepted with 33571+3996 operations,sum of size(s)=33571+67142
Test #44:
score: 11
Accepted
time: 8ms
memory: 4348kb
input:
5 397162223 50000 4000 200000 100000 1000 2103775764 2103775539 3507938589 3507938863 4080657108 4080657210 2492592687 2492593001 111756474 111755329 3545417212 3545415789 3115563885 3115563458 2404092040 2404092248 1717324095 1717323827 2910355772 2910355898 40550063 40549395 1332934233 1332933830 ...
output:
Succeeded 30284 4000 30284 60568 967 882 1121 530 1731 1975 846 1996 751 561 1919 63 1548 1405 1105 473 1815 933 684 15 1108 124 1496 970 241 187 1311 1498 1649 1948 677 1359 814 1927 11 1987 891 614 41 376 1006 527 1513 1751 1216 427 1271 1394 550 791 647 726 981 189 101 521 154 1353 100 1727 232 2...
result:
ok Accepted with 30284+4000 operations,sum of size(s)=30284+60568
Test #45:
score: 11
Accepted
time: 2ms
memory: 4600kb
input:
5 1695502059 50000 4000 200000 100000 1000 700852541 700853138 286392703 286393228 862046288 862047179 1594299681 1594299408 3210366802 3210366961 1413959809 1413960445 3698437765 3698437869 1377184122 1377184197 281217513 281217619 145372596 145373148 502398350 502398463 2741843047 2741843594 34564...
output:
Succeeded 0 4000 0 0 1574 1095 1512 1281 1214 1140 1889 1248 1398 1695 1680 1976 1346 1564 1867 1874 1429 1712 1317 1578 1632 1623 1276 1501 1463 1032 1179 1903 1156 1542 1684 1866 1906 1122 1348 1831 1390 1663 1322 1561 1028 1777 1174 1170 1892 1981 1094 1059 1702 1407 1745 1188 1557 1533 1275 1483...
result:
ok Accepted with 0+4000 operations,sum of size(s)=0+0
Test #46:
score: 11
Accepted
time: 2ms
memory: 4712kb
input:
5 1256148136 50000 4000 200000 100000 999 2016310630 2016310917 2107471344 2107470258 3472709132 3472709188 289824693 289824187 968116627 968117102 254957789 254959335 3918543752 3918543310 3679196968 3679195694 2994473794 2994473552 4244660702 4244660526 1565613257 1565613765 4153244320 4153244472 ...
output:
Succeeded 0 3996 0 0 1083 91 1061 1097 770 36 1756 727 263 1594 1413 1941 790 1335 1014 1585 754 299 518 1988 1712 611 726 1017 1508 1330 372 987 1141 903 586 1885 1071 1533 1823 23 1672 111 334 967 1305 693 1476 936 1446 1750 612 1293 167 864 1130 759 856 465 1324 1110 1644 1603 69 1657 1591 659 28...
result:
ok Accepted with 0+3996 operations,sum of size(s)=0+0
Test #47:
score: 11
Accepted
time: 3ms
memory: 4584kb
input:
5 174080677 50000 4000 200000 100000 1000 3686639308 3686638800 2896535064 2896534994 942582287 942582342 1036404485 1036404700 2240524876 2240525002 885623407 885623800 2908065975 2908066813 132144926 132144327 4212166510 4212165968 2576925241 2576925211 2854923688 2854924082 4019207120 4019206802 ...
output:
Succeeded 0 4000 0 0 826 15 722 1642 700 588 170 383 827 63 622 480 245 87 894 392 777 893 1295 354 364 682 365 729 519 471 780 1905 528 586 806 306 246 937 410 872 96 264 183 548 376 786 229 317 19 415 860 982 986 116 598 808 418 745 212 862 214 201 581 854 730 497 422 393 458 483 635 571 1699 204 ...
result:
ok Accepted with 0+4000 operations,sum of size(s)=0+0
Test #48:
score: 11
Accepted
time: 8ms
memory: 4372kb
input:
5 1245824305 50000 4000 200000 100000 1000 3667004853 3667004169 2287697139 2287696730 2209822990 2209823892 4121239467 4121237803 1095196087 1095194911 1774546551 1774545134 1362722072 1362721338 1986032138 1986033160 3134483043 3134484458 3770232965 3770233774 4150800332 4150798469 444018341 44401...
output:
Succeeded 40803 4000 40803 81606 933 1408 965 1667 862 1008 262 1336 796 1897 950 1835 734 1048 179 1564 627 1705 464 1091 435 1058 682 1503 263 1136 318 1465 303 1068 588 1188 61 1422 562 1349 878 1799 452 1728 922 1240 689 1557 850 1857 467 1108 56 1676 910 1830 21 1219 520 1525 528 1080 211 1095 ...
result:
ok Accepted with 40803+4000 operations,sum of size(s)=40803+81606
Test #49:
score: 11
Accepted
time: 9ms
memory: 4416kb
input:
5 1416201142 50000 4000 200000 100000 999 2694326229 2694325190 3006267026 3006266271 3590771525 3590772511 382357401 382355920 3477874958 3477875914 653232151 653234151 4226125318 4226123972 2278771395 2278772384 2110222591 2110223909 3320640593 3320639898 2013976833 2013977782 2032673776 203267476...
output:
Succeeded 43371 3996 43371 86742 616 1370 996 1704 406 1093 428 1422 977 1468 274 1171 659 1240 281 1271 485 1607 453 1174 927 1052 985 1487 892 1244 755 1262 321 1144 731 1157 469 1072 844 1412 114 1698 837 1484 347 1965 19 1012 824 1215 268 1877 142 1556 492 1190 999 1670 872 1803 670 1154 952 193...
result:
ok Accepted with 43371+3996 operations,sum of size(s)=43371+86742
Subtask #6:
score: 7.15107
Acceptable Answer
Test #50:
score: 12
Accepted
time: 5ms
memory: 4628kb
input:
6 889180297 25000 4000 200000 100000 998 3680334935 3680334330 2957217208 2957215867 3096097757 3096097331 2843029536 2843030717 2270437916 2270437982 1841161075 1841160444 3671823118 3671823208 2166904224 2166903071 2760262295 2760263328 880472976 880472564 3147819342 3147820514 3366602035 33666019...
output:
Succeeded 14822 3992 14822 29644 1613 1777 1534 1828 1721 367 46 418 1242 1366 1861 930 1198 1701 220 129 54 340 1536 1267 1933 1892 1393 770 443 997 1539 184 153 244 1774 1107 1297 752 1090 644 374 852 1466 869 630 375 1098 38 52 548 1414 746 1614 158 1838 881 314 1528 1698 1136 1629 1203 647 736 1...
result:
ok Accepted with 14822+3992 operations,sum of size(s)=14822+29644
Test #51:
score: 7.15107
Acceptable Answer
time: 6ms
memory: 4648kb
input:
6 1393953829 25000 4000 200000 100000 999 945306191 945306676 862749063 862750710 1587703663 1587703760 2321904837 2321905131 3322741249 3322741330 128629140 128628755 4061072808 4061073316 3009230812 3009229891 3626184675 3626183179 3701144497 3701145089 1334455826 1334454368 3195102134 3195101407 ...
output:
Succeeded 31402 3996 31402 62804 1358 205 686 173 1599 1754 420 268 1351 616 30 155 1298 129 1667 414 1258 647 1270 1389 1978 175 1837 939 1011 1348 8 701 1477 1127 1474 1756 6 890 547 1789 1288 1694 790 653 122 741 494 1382 269 393 1981 163 276 396 1196 350 1203 529 775 415 1246 1429 1179 644 56 18...
result:
points 0.59592224160 Accepted with 31402+3996 operations,sum of size(s)=31402+62804
Test #52:
score: 12
Accepted
time: 4ms
memory: 4424kb
input:
6 2137907583 25000 4000 200000 100000 1000 99249012 99249101 3089074242 3089075163 3142929261 3142928885 3509452069 3509452074 4100326210 4100325388 2027856240 2027856707 1667832698 1667832002 239393593 239393607 3323558397 3323558267 87270863 87271227 2749644672 2749644377 3753692402 3753692989 671...
output:
Succeeded 7130 4000 7130 14260 34 104 146 156 168 227 250 267 299 310 64 147 154 241 251 272 343 425 1 57 75 171 200 202 322 413 292 334 872 316 361 545 559 581 640 667 694 709 731 922 1473 1317 1129 1216 1585 1062 1790 1955 1278 1746 1788 991 956 471 789 145 112 163 177 333 356 374 445 473 1614 567...
result:
ok Accepted with 7130+4000 operations,sum of size(s)=7130+14260
Test #53:
score: 12
Accepted
time: 4ms
memory: 4380kb
input:
6 620581501 25000 4000 200000 100000 999 2430495051 2430494760 2342044260 2342044349 4168624383 4168624716 4153034330 4153033041 113541062 113539588 3734354027 3734355235 204355212 204355044 2304848470 2304848423 2783072361 2783073753 431065913 431066151 800004122 800004842 3667276533 3667275783 229...
output:
Succeeded 10174 3996 10174 20348 14 26 369 370 400 560 72 105 122 154 1002 1014 1096 1138 1215 1301 1515 1517 1837 1990 182 208 241 252 269 311 861 846 283 464 619 761 771 399 323 404 432 440 565 597 623 648 680 681 754 810 816 830 842 843 844 883 959 985 732 957 374 636 800 265 366 319 747 152 839 ...
result:
ok Accepted with 10174+3996 operations,sum of size(s)=10174+20348
Test #54:
score: 12
Accepted
time: 2ms
memory: 4440kb
input:
6 1540179210 25000 4000 200000 100000 998 908025469 908025772 4110515646 4110516139 1434161137 1434160239 4210047633 4210047681 2756906765 2756906979 773613891 773613906 3984390566 3984390788 1117864605 1117864853 379534092 379533510 3317517762 3317518164 1919343058 1919344136 1048781877 1048782644 ...
output:
Succeeded 17673 3992 17673 35346 1089 1019 1177 1576 1535 1047 1899 1501 1642 1744 1597 1825 1093 1094 1777 1966 87 172 203 256 320 425 428 590 613 791 17 27 199 534 119 128 258 262 264 278 9 16 48 51 99 152 170 215 251 255 284 286 345 353 387 403 413 435 81 156 312 360 445 521 639 644 742 744 755 7...
result:
ok Accepted with 17673+3992 operations,sum of size(s)=17673+35346
Test #55:
score: 12
Accepted
time: 2ms
memory: 4664kb
input:
6 218843024 25000 4000 200000 100000 1000 4003665165 4003664581 989541263 989541162 1710766055 1710765338 3659822362 3659822800 2654208269 2654208393 1491873748 1491873450 1160537498 1160536441 3762298781 3762298020 3903551469 3903551390 4248337091 4248336400 1517118005 1517118186 399918797 39991852...
output:
Succeeded 14505 4000 14505 29010 511 556 741 501 10 72 457 227 946 843 21 657 889 834 936 892 472 821 623 68 614 559 83 168 124 81 74 159 208 310 325 584 594 708 714 748 891 895 599 686 427 711 152 661 646 547 96 636 214 901 204 531 329 805 113 446 128 675 989 320 123 662 682 610 918 516 933 963 32 ...
result:
ok Accepted with 14505+4000 operations,sum of size(s)=14505+29010
Test #56:
score: 12
Accepted
time: 5ms
memory: 4616kb
input:
6 846170590 25000 4000 200000 100000 998 1218684893 1218683879 1552665572 1552664853 3443478269 3443477570 1790763876 1790763016 1025362073 1025360149 2654707482 2654705839 1494316579 1494316380 2068116991 2068116277 331974024 331973737 1788075132 1788074334 953158534 953158009 586401169 586400597 2...
output:
Succeeded 16983 3992 16983 33966 695 1269 1370 1717 86 661 804 216 771 126 29 809 753 965 624 585 592 898 971 173 653 629 7 19 22 51 636 645 806 385 1032 1079 1083 1086 1089 1098 1102 1104 1114 1123 1124 1154 1156 1157 1159 1161 1169 1177 1243 1287 1290 1301 1308 1334 1349 1350 1352 1360 1386 1390 1...
result:
ok Accepted with 16983+3992 operations,sum of size(s)=16983+33966
Test #57:
score: 12
Accepted
time: 4ms
memory: 4392kb
input:
6 681304959 25000 4000 200000 100000 999 2726760615 2726761129 4070002268 4070002314 2698967410 2698967313 3149535258 3149536218 3426049564 3426049397 1255425746 1255425945 273472210 273471617 432940843 432940957 539629098 539628555 625817515 625817025 2355613233 2355613594 10360141 10360443 3239718...
output:
Succeeded 13149 3996 13149 26298 1167 1322 1834 1209 1872 1356 1549 1860 1748 1832 1169 1029 1030 1258 1691 1289 1666 1766 1993 1827 1090 1451 1082 1998 1414 1563 1228 1274 1552 1226 1647 1859 1467 1369 1389 1938 1332 1214 1866 1456 1655 1050 1873 1770 1381 1863 1945 1292 1105 1623 1934 1362 1675 14...
result:
ok Accepted with 13149+3996 operations,sum of size(s)=13149+26298
Test #58:
score: 8.65328
Acceptable Answer
time: 6ms
memory: 4396kb
input:
6 1240372772 25000 4000 200000 100000 1000 1759289079 1759288926 1933352834 1933352077 347838835 347839028 2202749992 2202750871 3939036060 3939035178 3009870817 3009869983 3748040393 3748040424 864310002 864310105 1129152802 1129153119 718780908 718780600 1884330497 1884330296 2050569859 2050569350...
output:
Succeeded 27541 4000 27541 55082 1487 1313 1321 1193 1433 1523 1809 1304 1903 1963 1825 1546 1205 1647 1043 1332 1480 1792 1707 1981 1496 1980 1225 1541 1585 1803 1807 1835 1320 1781 1012 1684 1616 1040 1174 1187 1685 1016 1364 1474 1435 1555 1912 1005 1794 1183 1018 1528 1085 1096 1436 1956 1198 12...
result:
points 0.72110667240 Accepted with 27541+4000 operations,sum of size(s)=27541+55082
Subtask #7:
score: 0
Wrong Answer
Test #59:
score: 0
Wrong Answer
time: 6ms
memory: 4244kb
input:
7 1561772597 25000 4000 200000 100000 1000 834919143 834919090 162625904 162627303 1067517190 1067517712 3410644901 3410644677 2728503196 2728502622 4133685425 4133685598 976760503 976760426 2101358026 2101358499 3583017242 3583017016 1743218912 1743220527 2609984627 2609985177 3915259025 3915259188...
output:
Failed Limit of C1 exceeded
result:
wrong answer Limit of C1 exceeded
Subtask #8:
score: 0
Wrong Answer
Test #70:
score: 0
Wrong Answer
time: 33ms
memory: 5808kb
input:
8 1311447458 50000 100000 500000 200000 4999 173190562 173182163 1078196947 1078197142 1215565665 1215571165 1186082670 1186081354 2422459084 2422459806 2626070241 2626074599 207492448 207494582 2266700305 2266695214 1679673055 1679672568 3879988278 3879982030 254940475 254941572 3919251618 39192495...
output:
Failed Limit of C1 exceeded
result:
wrong answer Limit of C1 exceeded
Subtask #9:
score: 0
Wrong Answer
Test #81:
score: 0
Wrong Answer
time: 17ms
memory: 5832kb
input:
9 574951428 15000 10000 200000 50000 5000 1781472251 1781466624 803445324 803444785 3544280892 3544283003 3151400420 3151403948 3250864128 3250871501 4189507543 4189510374 3483519516 3483520446 1003612935 1003617460 1101934749 1101931586 1948046579 1948042301 4151407804 4151401951 424123439 42412196...
output:
Failed Limit of C1 exceeded
result:
wrong answer Limit of C1 exceeded