QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#500453 | #7463. y-fast trie | Xiaohuba | 100 ✓ | 773ms | 34272kb | C++23 | 3.6kb | 2024-08-01 12:11:09 | 2024-08-01 12:11:10 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
// #define LOCK_GETCHAR
// #define USE_INT_128
#if __cplusplus < 201400
#warning "Please use c++14 or higher."
#define CONSTEXPR_FUNC
#define ENABLE_IF_INT
#else
#define CONSTEXPR_FUNC constexpr
#define ENABLE_IF_INT , enable_if_t<_is_integer<T>, int> = 0
template <class T> constexpr bool _is_integer = numeric_limits<T>::is_integer;
template <> constexpr bool _is_integer<bool> = false;
template <> constexpr bool _is_integer<char> = false;
#ifdef USE_INT_128
template <> constexpr bool _is_integer<__int128> = true;
template <> constexpr bool _is_integer<__uint128_t> = true;
#endif
#endif
#if !defined(_WIN32) && !defined(LOCK_GETCHAR)
#define getchar getchar_unlocked
#endif
#define il inline
#define mkp make_pair
#define fi first
#define se second
#define _loop_i_t(j, k) make_signed_t<decltype((j) - (k))>
#define For(i, j, k) for (_loop_i_t(j, k) i = (j); i <= (k); ++i) // NOLINT
#define ForDown(i, j, k) \
for (_loop_i_t(j, k) i = (j); i >= decltype(i)(k); --i) // NOLINT
#define eb emplace_back
#ifndef ONLINE_JUDGE
#define FileIO(filename) \
freopen(filename ".in", "r", stdin); \
freopen(filename ".out", "w", stdout)
#else
#define FileIO(filename) void(0)
#endif
using ll = long long;
using uint = unsigned int;
using ull = unsigned long long;
using db = double;
using ldb = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#ifdef USE_INT_128
using lll = __int128_t;
using ulll = __uint128_t;
#endif
// clang-format off
CONSTEXPR_FUNC il ll qpow(ll x, ull y, ll mod){ ll ans = 1; x %= mod; while (y) { if (y & 1) (ans *= x) %= mod; (x *= x) %= mod; y >>= 1; } return ans; }
template<typename T> CONSTEXPR_FUNC il void cmin(T & x, const T &y){ x = min(x, y); }
template<typename T> CONSTEXPR_FUNC il void cmax(T & x, const T &y){ x = max(x, y); }
template<typename T ENABLE_IF_INT> il void read(T &x){ x = 0; int f = 1; int c = getchar(); while (!isdigit(c)) { if (c == '-') f = -1; c = getchar(); } while (isdigit(c)) { x = x * 10 + c - '0'; c = getchar(); } x *= f; }
template<typename T, typename ... Args> il void read(T &x, Args &... y){ read(x), read(y...); }
// clang-format on
// File head end
namespace {
constexpr ll MAXN = 5e5 + 5;
int n, C, lst = 0;
map<int, int> mp;
multiset<int> pool, match;
il void ins(int x) {
auto it = pool.upper_bound(C - x - 1);
if (it != pool.begin()) {
int y = *prev(it);
if (!mp.count(y)) {
mp[y] = x, mp[x] = y;
match.emplace(x + y);
} else if (mp[y] + y < x + y) {
match.erase(match.find(y + mp[y]));
mp.erase(mp[y]);
mp[y] = x, mp[x] = y;
match.emplace(x + y);
}
}
pool.emplace(x);
}
il void del(int x) {
pool.erase(pool.find(x));
if (mp.count(x)) {
int y = mp[x];
// assert(match.find(x + y) != match.end());
mp.erase(x), mp.erase(y), match.erase(match.find(x + y));
pool.erase(pool.find(y));
ins(y);
}
}
il void Main() {
read(n, C);
while (n--) {
int op, x;
read(op, x), x ^= lst;
x %= C;
if (op == 1)
ins(x);
else
del(x);
if (pool.size() < 2)
cout << "EE\n", lst = 0;
else {
auto it = --pool.end();
lst = (*prev(it) + *it) % C;
if (!match.empty())
cmax(lst, *--match.end());
cout << lst << '\n';
}
}
}
} // namespace
signed main() { return Main(), 0; }
详细
Subtask #1:
score: 1
Accepted
Test #1:
score: 1
Accepted
time: 0ms
memory: 3692kb
input:
7 9 1 2 1 3 1 0 1 14 2 14 2 13 1 1
output:
EE 5 8 8 8 5 7
result:
ok 7 lines
Subtask #2:
score: 9
Accepted
Test #2:
score: 9
Accepted
time: 0ms
memory: 3604kb
input:
1 14514 1 919810
output:
EE
result:
ok single line: 'EE'
Subtask #3:
score: 19
Accepted
Dependency #1:
100%
Accepted
Test #3:
score: 19
Accepted
time: 1ms
memory: 3716kb
input:
500 220272175 1 80468911 1 374715656 1 650827856 1 7251764 1 157269409 1 366819034 1 140735482 1 697504163 1 580976911 1 260541431 1 177420127 1 143366977 1 131630540 1 8608588 1 146296849 2 190433980 2 143366977 1 335589270 1 692591740 1 8739082 1 805227819 1 732996602 2 585274048 1 250142592 1 382...
output:
EE 14640217 132585557 206936848 211019282 211019282 211019282 211019282 211019282 211019282 214988253 214988253 214988253 214988253 214988253 214988253 214988253 214988253 214988253 214988253 214988253 214988253 206749809 206749809 212580526 212580526 212580526 219876774 219876774 219876774 21987677...
result:
ok 500 lines
Subtask #4:
score: 19
Accepted
Dependency #3:
100%
Accepted
Test #4:
score: 19
Accepted
time: 6ms
memory: 4084kb
input:
10000 320619261 1 19148600 1 5404005 1 42872366 1 392530922 1 376456357 1 280793177 1 519739815 1 235983774 1 322646443 1 337828334 2 264358321 1 447705822 1 261531578 1 311058152 2 306090609 1 497891166 1 342517224 1 9229184 1 348242492 1 42296612 1 1006385880 2 1006385880 1 326182120 1 457609069 1...
output:
EE 24552605 85768683 315336550 315336550 315336550 315336550 315336550 315336550 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497 320519497...
result:
ok 10000 lines
Test #5:
score: 19
Accepted
time: 4ms
memory: 3704kb
input:
10000 597975963 1 196881715 1 372412876 1 545320694 1 537231706 1 758591294 1 692296744 1 640065614 1 368409581 1 778009917 1 372239861 1 671975933 2 585867381 2 701124569 1 557302593 2 360491036 1 48154533 1 793234603 2 577687513 1 731821425 1 219718919 2 674880847 1 670235477 2 557302593 2 6719759...
output:
EE 569294591 569294591 569294591 587998093 587998093 587998093 587998093 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 595980412 550115787 550115787 550115787 550115787 571738330 5717383...
result:
ok 10000 lines
Test #6:
score: 19
Accepted
time: 7ms
memory: 4244kb
input:
10000 261309231 1 403105561 1 8420582 1 135313006 1 278798589 1 25109399 1 621690870 1 306290352 1 233352560 1 81500246 1 209986698 1 196643719 1 265876777 1 232576825 1 57291275 1 337864093 1 66383763 1 194431887 1 39426135 1 524424248 1 185665235 1 125050591 2 185665235 1 256748965 1 310067283 1 5...
output:
EE 150216912 156777128 186084836 189588785 189588785 189588785 253226027 253226027 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 257965342 259856410 259856410 2598564...
result:
ok 10000 lines
Test #7:
score: 19
Accepted
time: 7ms
memory: 4484kb
input:
10000 231582807 1 649603571 1 409994483 1 133220292 1 379916402 1 117653487 1 216499201 1 96493778 1 748091363 1 120874777 1 213689047 1 619301139 1 253627753 1 230247184 1 112094719 1 252338339 1 66566139 1 475050423 1 218950299 1 227812851 1 192768319 1 229719240 1 416601883 1 343443362 1 61262544...
output:
EE 133266826 186551187 222106744 222106744 222106744 222106744 222106744 222106744 222106744 222106744 222292566 222292566 229941434 229941434 229941434 229941434 229941434 229941434 229941434 229941434 229941434 229941434 230455598 230455598 230455598 231195999 231195999 231421734 231421734 2314217...
result:
ok 10000 lines
Subtask #5:
score: 19
Accepted
Dependency #1:
100%
Accepted
Test #8:
score: 19
Accepted
time: 67ms
memory: 9128kb
input:
100000 12857 1 414055374 1 152349753 1 1103688 1 145350958 1 27448470 1 19646236 1 45006304 1 683004750 1 528225274 1 29635645 1 532397907 1 112630487 1 512377610 1 687365005 1 28369804 1 4032175 1 58622664 1 102365588 1 121463552 1 639691984 1 226589268 1 416004496 1 22148247 1 101368844 1 42815922...
output:
EE 2849 7845 9645 9645 9645 9645 10747 12324 12324 12324 12455 12455 12455 12455 12455 12455 12455 12455 12777 12777 12777 12777 12777 12808 12808 12808 12843 12843 12843 12852 12852 12852 12852 12852 12852 12852 12852 12852 12852 12852 12853 12853 12853 12853 12853 12853 12853 12853 12853 12853 128...
result:
ok 100000 lines
Test #9:
score: 19
Accepted
time: 75ms
memory: 6688kb
input:
100000 3256 1 740810773 1 968676353 1 53739128 1 571957394 1 446452179 1 545471035 1 57549899 1 166575131 1 20445551 1 297214843 1 74831111 1 160891923 1 44348463 1 11032297 1 51468347 1 162145999 1 337957720 1 228487389 1 682661313 1 58715811 2 20445551 1 169095903 1 274045967 2 58715811 1 29499843...
output:
EE 2470 2811 2811 2811 3093 3093 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3214 3247 3247 3247 3247 3247 3247 3247 3247 3247 3247 3247 3247 3247 3247 3247 3247 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 3253 32...
result:
ok 100000 lines
Test #10:
score: 19
Accepted
time: 80ms
memory: 5156kb
input:
100000 13963 1 99706284 1 226352457 1 29325558 1 647085207 1 476670619 1 196381209 1 542814483 1 652934229 1 30448906 1 86551115 2 196381209 1 727865885 2 86551015 1 318149355 2 542814483 1 51397273 1 74800656 1 487125403 2 652935002 2 318149092 2 99701545 1 142537164 2 487125302 1 442984369 1 12871...
output:
EE 8728 8728 13706 13706 13706 13706 13706 13706 13706 13706 13862 13706 13706 13706 13706 13864 13957 13957 13957 13957 13957 13864 13864 13864 13864 13864 13837 13837 13837 13837 13837 13837 13837 13837 13837 12897 13029 13029 13029 13044 13667 13704 13741 13741 13741 13741 13770 13809 13809 13809...
result:
ok 100000 lines
Test #11:
score: 19
Accepted
time: 60ms
memory: 3912kb
input:
100000 11649 1 413281833 1 224778621 1 33610622 1 386744 1 6369734 1 355174042 1 165791062 1 187949934 1 12935769 1 76676458 1 649960031 1 66750367 1 1016709453 1 269066784 1 280554783 1 21806303 1 169468447 1 1870546 1 538145363 1 31195247 1 274338 1 509678119 1 30126540 1 8951807 1 80428285 1 5942...
output:
EE 9777 11431 11431 11431 11431 11431 11431 11590 11590 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 11646 1164...
result:
ok 100000 lines
Test #12:
score: 19
Accepted
time: 40ms
memory: 3664kb
input:
100000 3867 1 99423404 1 390297717 1 54422993 1 630886162 1 546226301 1 720631793 1 725134370 1 103273641 1 397167886 1 361343434 2 390297470 1 147731926 2 546226581 2 99425191 1 90326682 1 450211282 2 147731926 2 720631321 1 434999457 2 54420396 2 630886257 2 725134401 1 157778137 2 434999594 2 450...
output:
EE 374 3811 3811 3811 3811 3811 3811 3851 3851 3851 3851 3851 3851 3851 3851 3851 3851 3851 3712 3712 3712 3712 3712 3502 3502 3502 3502 3069 3069 3069 998 975 2316 3294 3294 3168 2968 3853 3853 3764 3764 1816 1816 1816 3793 3793 3793 3793 3689 1712 1712 2196 1592 1592 699 1766 699 3076 3866 3866 38...
result:
ok 100000 lines
Test #13:
score: 19
Accepted
time: 37ms
memory: 3660kb
input:
100000 89753 1 266557803 1 400908399 1 636105126 1 160851723 1 183825747 1 280764023 1 200016599 1 345093991 1 151647983 1 27994533 1 294900503 1 540918811 1 548665371 1 769661770 1 23909877 1 74236004 1 25295912 1 437599832 1 11197987 1 180182714 1 278459396 1 266990064 1 11963218 1 77742074 1 1492...
output:
EE 62894 62894 88598 88598 88598 88598 88598 88598 88598 88598 88598 89177 89177 89177 89177 89177 89431 89431 89431 89555 89555 89555 89555 89555 89555 89555 89555 89555 89645 89645 89645 89645 89645 89697 89697 89697 89697 89697 89697 89697 89697 89697 89697 89697 89697 89697 89697 89697 89697 896...
result:
ok 100000 lines
Test #14:
score: 19
Accepted
time: 51ms
memory: 4388kb
input:
100000 100000 1 92264501 1 351208237 1 120620481 1 246702399 1 142317943 1 265980357 1 991536273 1 6357027 1 144286401 1 17573144 1 87850883 1 15289873 1 2343708 1 134555473 1 87327757 1 403914091 1 203415993 1 641944753 1 197279805 1 9415589 1 71622453 1 143801157 1 60542037 1 138736725 1 127177891...
output:
EE 72738 99408 99408 99408 99408 99408 99408 99408 99408 99408 99408 99408 99408 99408 99408 99408 99408 99764 99764 99764 99764 99764 99764 99764 99764 99770 99770 99770 99770 99770 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 99855 998...
result:
ok 100000 lines
Test #15:
score: 19
Accepted
time: 46ms
memory: 4428kb
input:
100000 99999 1 238735817 1 417257601 1 156244071 1 223362977 1 221359950 1 66669062 1 71971624 1 478118129 1 25153620 1 499654622 1 122179492 1 13607707 1 18579782 1 143738157 1 488722202 1 805716500 1 25460676 1 126211812 1 273675325 1 145291797 1 32749904 1 143382830 1 104372424 1 62614698 1 10333...
output:
EE 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99977 99995 99995 99995 999...
result:
ok 100000 lines
Test #16:
score: 19
Accepted
time: 87ms
memory: 8696kb
input:
100000 61955 1 7742 1 5252 1 87053 1 58950 1 15027 1 36097 1 58255 1 122955 1 14698 2 15938 1 33898 1 2370 1 32292 1 115222 1 30953 2 39243 1 11409 1 102021 1 121517 1 51718 1 6258 2 2370 2 15236 1 25156 2 31150 2 27027 1 47304 1 20159 1 19826 1 102943 1 4165 1 58377 1 111799 1 116608 1 261 1 109829...
output:
EE 12994 37642 59928 61161 61161 61161 61161 61161 60423 60423 60423 60423 60423 60423 60423 60423 60423 60423 60423 60423 60423 59031 60736 60736 59031 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61570 61811 61811 618...
result:
ok 100000 lines
Test #17:
score: 19
Accepted
time: 58ms
memory: 4368kb
input:
100000 51760 1 61296 1 11592 1 81113 1 98430 1 59520 1 109748 1 2381 1 124055 1 11405 1 52156 1 98848 1 17443 1 9697 1 39792 1 120222 1 44447 1 13110 1 935 1 55334 1 125511 1 16664 1 21142 1 110027 1 29951 1 1973 1 8539 1 28712 1 110015 1 58421 1 19849 1 123592 1 56225 1 119179 1 5767 1 54199 1 1306...
output:
EE 21128 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51553 51603 51603 51603 51603 51603 51603 516...
result:
ok 100000 lines
Test #18:
score: 19
Accepted
time: 91ms
memory: 6124kb
input:
100000 41075 1 91496 1 96345 1 92386 1 52381 1 108542 1 130783 1 39189 1 112264 1 98472 1 7570 1 22587 1 27501 1 17649 1 27959 1 58021 1 54029 1 102574 1 128900 1 115387 1 126740 1 541 1 53 1 45266 1 4070 1 129847 1 59986 1 11237 1 36052 1 56489 1 53198 1 10274 1 58324 1 2235 1 64809 1 34706 1 30191...
output:
EE 23541 23541 35225 35225 35225 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 40576 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 41032 410...
result:
ok 100000 lines
Test #19:
score: 19
Accepted
time: 98ms
memory: 6768kb
input:
100000 48044 1 82767 1 66815 1 37421 1 65250 1 27858 1 2330 1 18678 1 12581 1 25443 1 37298 1 24548 1 38933 1 47089 1 120574 1 38181 1 23439 1 120870 1 53338 1 100999 1 44230 1 32302 1 18641 1 103415 1 20399 1 35165 1 52907 1 114413 1 29021 1 44181 1 113937 1 99949 1 19489 1 44270 1 122190 1 21201 1...
output:
EE 5450 21342 31155 40196 43391 47611 47611 47611 47611 47611 47611 47611 47611 47611 47846 47846 47846 47846 47846 47846 47846 47846 47846 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 47966 4796...
result:
ok 100000 lines
Test #20:
score: 19
Accepted
time: 69ms
memory: 4460kb
input:
98491 77795 1 10054 1 53834 1 5076 1 38862 1 18475 1 66859 1 93271 1 101449 1 76422 1 8877 1 9908 1 112543 1 88879 1 66234 1 92718 1 24277 1 95670 1 117747 1 69807 1 76293 1 70487 1 19424 1 81115 1 30629 1 108784 1 121373 1 120925 1 108759 1 74960 1 80674 1 85453 1 23296 1 77778 1 3533 1 83758 1 203...
output:
EE 63888 70026 75947 75947 75947 77632 77632 77632 77632 77632 77632 77632 77632 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 77746 777...
result:
ok 98491 lines
Test #21:
score: 19
Accepted
time: 81ms
memory: 4500kb
input:
100000 39905 1 23095 1 61936 1 73892 1 82411 1 17819 1 116702 1 56439 1 112912 1 72558 1 41221 1 111933 1 34262 1 48928 1 120444 1 102528 1 1374 1 11883 1 55400 1 2514 1 123926 1 28590 1 24461 1 100789 1 116561 1 32628 1 36785 1 111775 1 28311 1 22622 1 64536 1 104746 1 115669 1 46126 1 123801 1 122...
output:
EE 5221 22326 30715 35991 36483 36483 39089 39089 39089 39089 39089 39089 39089 39089 39662 39662 39662 39662 39662 39662 39662 39662 39662 39662 39662 39662 39710 39710 39710 39710 39710 39808 39808 39808 39808 39808 39808 39808 39845 39845 39845 39845 39845 39845 39845 39845 39845 39845 39845 3984...
result:
ok 100000 lines
Test #22:
score: 19
Accepted
time: 74ms
memory: 5312kb
input:
84429 89801 1 53858 1 92013 1 4746 1 55150 1 16238 1 50643 1 116041 1 95268 1 81026 1 25690 1 107225 1 97932 1 114402 1 13043 1 98742 1 79419 1 84405 1 66887 1 67457 1 11974 1 84354 1 98016 1 24529 1 29696 1 104678 1 78591 1 85465 1 25653 1 120761 1 5159 1 124009 1 100776 1 3767 1 20154 1 26176 1 21...
output:
EE 56070 56070 57034 60940 68995 68995 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 88907 89044 89044 89044 89607 89607 89614 89614 89614 89614 89614 89614 89614 89614 89614 89614 89614 89614 89614 89614 89614 89614 896...
result:
ok 84429 lines
Test #23:
score: 19
Accepted
time: 66ms
memory: 5264kb
input:
77617 49737 1 93642 1 55746 1 5164 1 52980 1 119402 1 53874 1 894 1 110667 1 3664 1 111084 1 10820 1 120361 1 108479 1 5699 1 101699 1 23070 1 122331 1 108904 1 3843 1 20453 1 56936 1 117216 1 126912 1 55953 1 62844 1 26537 1 44228 1 50523 1 53598 1 23194 1 13055 1 2576 1 115408 1 64436 1 53797 1 31...
output:
EE 177 49182 49182 49182 49182 49182 49272 49272 49591 49591 49591 49591 49591 49591 49591 49591 49591 49591 49591 49591 49591 49591 49596 49596 49596 49596 49596 49596 49596 49596 49596 49596 49596 49596 49596 49596 49596 49660 49660 49660 49660 49660 49660 49660 49660 49660 49660 49660 49660 49660...
result:
ok 77617 lines
Test #24:
score: 19
Accepted
time: 96ms
memory: 5360kb
input:
100000 90308 1 20519 1 93696 1 35606 1 91763 1 17513 1 68445 1 85207 1 99615 1 72923 1 83593 1 13324 1 15550 1 75789 1 8252 1 126517 1 105545 1 88795 1 3045 1 12923 1 23453 1 14070 1 66425 1 77137 1 124827 1 101542 1 95746 1 17953 1 10908 1 99205 1 90638 1 80177 1 23048 1 24441 1 98717 1 100934 1 21...
output:
EE 23907 75420 75420 75420 75420 82112 82112 82112 82112 82112 82112 82112 82112 82112 83668 83668 88685 88685 89611 89611 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 89954 90067 90067 90067 90067 90067 90202 902...
result:
ok 100000 lines
Test #25:
score: 19
Accepted
time: 84ms
memory: 7036kb
input:
90443 44206 1 39042 1 30211 1 80230 1 20873 1 9469 1 123196 1 115720 1 7421 1 109512 1 43903 1 11951 1 123022 1 48869 1 108995 1 58330 1 42235 1 49051 1 106501 1 127632 1 25372 1 53280 1 17871 1 123941 1 45130 1 18132 1 121213 1 128581 1 58533 1 106347 1 100474 1 100835 1 15612 1 9001 1 32193 1 1276...
output:
EE 25047 38871 38871 40702 40702 40702 43113 43113 43113 43113 43113 43113 44015 44015 44015 44015 44015 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44070 44186 44186 44186 44186 44186 44186 44186 44186 44186 44186 44186 44186 441...
result:
ok 90443 lines
Test #26:
score: 19
Accepted
time: 89ms
memory: 7540kb
input:
91694 24008 1 2294 1 71201 1 28057 1 35675 1 44214 1 14645 1 57606 1 37751 1 90888 1 60694 1 38702 1 10798 1 85836 1 9387 1 82101 1 8532 1 122312 1 84674 1 85897 1 39425 1 95970 1 49609 1 13805 1 11772 1 68561 1 122248 1 62966 1 58305 1 6051 1 80674 1 67232 1 70341 1 92880 1 50897 1 50678 1 76293 1 ...
output:
EE 1471 4948 17573 17573 23055 23055 23055 23055 23055 23055 23055 23055 23331 23759 23759 23759 23759 23759 23759 23759 23759 23759 23759 23961 23961 23961 23961 23973 23973 23973 23973 23973 23973 23973 24001 24001 24001 24001 24001 24001 24001 24001 24001 24001 24001 24001 24001 24001 24001 24001...
result:
ok 91694 lines
Test #27:
score: 19
Accepted
time: 86ms
memory: 5344kb
input:
100000 99721 1 33465 1 2148 1 124452 1 91426 1 79226 1 92354 1 84179 1 92539 1 114753 1 86633 1 113880 1 86035 1 52522 1 94623 1 77111 1 66633 1 80170 1 61117 1 107611 1 53295 1 74137 1 74334 1 58964 1 83283 1 718 1 76041 1 91422 1 45228 1 77190 1 70644 1 184 1 65989 1 98125 1 64779 1 83418 1 98933 ...
output:
EE 35613 95645 97784 97784 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98931 98937 98937 98937 98937 98937 98937 99705 99705 99705 99705 99705 99705 99705 99719 99719 99719 99719 99719 99719 99719 99719 99719 99719 99719 99719 99719 99719 997...
result:
ok 100000 lines
Test #28:
score: 19
Accepted
time: 72ms
memory: 6164kb
input:
83470 59650 1 8091 1 24728 1 124600 1 57068 1 106795 1 127468 1 60326 1 63102 1 53306 1 114998 1 122277 1 57804 1 39057 1 37772 1 55501 1 64485 1 53861 1 108345 1 123145 1 19762 1 54744 1 28685 1 54551 1 119407 1 24705 1 106679 1 20413 1 19417 1 35517 1 119959 1 31940 1 112690 1 55096 1 110009 1 569...
output:
EE 32819 56865 56865 56865 56865 56865 56865 56865 56865 56865 56865 56865 58293 58293 58293 58293 58293 58293 58524 58524 58524 58524 58524 58549 58549 59008 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 59601 596...
result:
ok 83470 lines
Test #29:
score: 19
Accepted
time: 75ms
memory: 6136kb
input:
81861 68704 1 75036 1 41271 1 40783 1 19429 1 21339 1 106501 1 14384 1 107299 1 115264 1 117940 1 672 1 12919 1 102377 1 112282 1 104898 1 19979 1 115946 1 115801 1 7311 1 24945 1 120697 1 24016 1 81738 1 82876 1 101963 1 109561 1 6000 1 27347 1 12458 1 107056 1 126927 1 68521 1 16238 1 27155 1 8557...
output:
EE 47603 51187 51187 51187 64717 64717 64717 64717 64717 64717 65767 65767 68107 68107 68107 68107 68107 68107 68107 68107 68107 68107 68107 68107 68107 68107 68341 68465 68465 68474 68474 68474 68486 68486 68486 68486 68486 68486 68486 68486 68486 68672 68672 68672 68672 68672 68672 68672 68672 686...
result:
ok 81861 lines
Test #30:
score: 19
Accepted
time: 100ms
memory: 7152kb
input:
100000 86811 1 91772 1 5484 1 21584 1 124274 1 127662 1 156 1 89907 1 119816 1 9527 1 118598 1 99375 1 23595 1 100406 1 90482 1 98608 1 17115 1 121586 1 118077 1 100827 1 113798 1 113131 1 121217 1 119931 1 7118 1 24527 1 99333 1 108505 1 95565 1 83531 1 13423 1 120635 1 27483 1 130316 1 88367 1 250...
output:
EE 10445 37385 41213 41213 72958 72958 83347 83347 83347 85137 85137 85884 85884 85884 86388 86388 86388 86388 86388 86388 86507 86507 86507 86513 86673 86673 86673 86673 86673 86673 86673 86673 86673 86673 86673 86673 86673 86796 86796 86796 86796 86796 86796 86796 86796 86796 86796 86796 86796 867...
result:
ok 100000 lines
Test #31:
score: 19
Accepted
time: 76ms
memory: 4088kb
input:
100000 48090 1 63663 1 7472 1 121708 1 12682 1 56442 1 103012 1 103789 1 124387 1 106776 1 46357 1 111036 1 4739 1 121969 1 38823 1 104991 1 44881 1 117648 1 117587 1 118934 1 27336 1 5180 1 124571 1 114581 1 122688 1 23214 1 29977 1 37063 1 57373 1 13845 1 80518 1 13716 1 125864 1 20468 1 122187 1 ...
output:
EE 23045 23045 43108 45299 45299 45299 46694 46694 46694 46991 46991 47577 47577 47577 48020 48020 48020 48020 48020 48020 48020 48020 48020 48020 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 48045 480...
result:
ok 100000 lines
Test #32:
score: 19
Accepted
time: 58ms
memory: 4260kb
input:
76163 26549 1 36632 1 42976 1 75402 1 76833 1 22242 1 93394 1 82584 1 59380 1 13796 1 38615 1 94391 1 8452 1 34800 1 30827 1 71671 1 73875 1 40284 1 54923 1 123860 1 123743 1 59336 1 23755 1 45208 1 210 1 68823 1 96959 1 32142 1 43854 1 53740 1 2551 1 100 1 3435 1 1311 1 53026 1 43229 1 15604 1 7835...
output:
EE 26510 26510 26510 26510 26510 26510 26510 26510 26510 26510 26510 26510 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 26548 265...
result:
ok 76163 lines
Test #33:
score: 19
Accepted
time: 71ms
memory: 4276kb
input:
100000 90843 1 37053 1 90823 1 12930 1 111844 1 101601 1 119484 1 66947 1 5174 1 116186 1 82095 1 18593 1 5590 1 73531 1 74995 1 77571 1 106406 1 67451 1 105953 1 65889 1 66232 1 79750 1 28899 1 83417 1 58857 1 67138 1 103747 1 108545 1 75041 1 99972 1 117785 1 77182 1 22737 1 128928 1 22975 1 16410...
output:
EE 37033 78568 78568 90164 90164 90164 90164 90164 90164 90164 90164 90164 90164 90164 90164 90164 90164 90343 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 90609 906...
result:
ok 100000 lines
Test #34:
score: 19
Accepted
time: 66ms
memory: 4180kb
input:
100000 99999 1 48605 1 62715 1 92346 1 36461 1 69151 1 71474 1 71671 1 119829 1 62693 1 39811 1 110837 1 55256 1 101288 1 37071 1 86747 1 53956 1 124358 1 124456 1 34885 1 98598 1 47516 1 122812 1 39877 1 115543 1 110401 1 56278 1 79651 1 39723 1 83326 1 109988 1 37856 1 120393 1 109271 1 90414 1 89...
output:
EE 11321 45791 98613 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99365 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99627 99910 99910 99910 99910 99910 99910 99910 99910 99910 99910 999...
result:
ok 100000 lines
Test #35:
score: 19
Accepted
time: 55ms
memory: 3940kb
input:
95577 100000 1 60253 1 67371 1 27545 1 80905 1 82121 1 125230 1 18103 1 83884 1 110047 1 72689 1 8807 1 92514 1 10610 1 25096 1 127930 1 88086 1 77531 1 127083 1 24534 1 92939 1 22198 1 50462 1 120529 1 47311 1 49315 1 49461 1 70691 1 45775 1 50672 1 130603 1 128634 1 81596 1 121246 1 63720 1 70162 ...
output:
EE 27624 67484 82624 82624 82624 82624 82624 82624 90204 97744 97744 97744 97744 97744 97744 97744 97744 97744 97744 99479 99479 99479 99479 99479 99479 99479 99479 99479 99479 99479 99479 99479 99479 99748 99995 99995 99995 99995 99995 99995 99995 99995 99999 99999 99999 99999 99999 99999 99999 999...
result:
ok 95577 lines
Test #36:
score: 19
Accepted
time: 57ms
memory: 3880kb
input:
100000 100000 1 44320 1 23891 1 89151 1 101292 1 24644 1 80651 1 97734 1 127449 1 26806 1 85156 1 90965 1 124840 1 35554 1 73584 1 105758 1 58465 1 62699 1 82166 1 123423 1 80122 1 89524 1 89833 1 52345 1 56117 1 55416 1 49198 1 115531 1 122636 1 35781 1 95493 1 105158 1 133 1 48406 1 1110 1 93076 1...
output:
EE 68211 68211 77567 77567 91311 92196 92196 98929 98929 98929 98929 98929 98929 98929 99711 99711 99711 99711 99711 99819 99819 99819 99819 99819 99819 99819 99819 99819 99819 99819 99819 99819 99819 99819 99898 99898 99898 99898 99898 99898 99898 99898 99898 99898 99898 99898 99898 99898 99898 998...
result:
ok 100000 lines
Test #37:
score: 19
Accepted
time: 18ms
memory: 4140kb
input:
100000 62619 1 18231 1 29684 1 59579 1 38202 1 53169 1 33658 1 56131 1 63968 1 42429 1 58975 1 63469 1 53749 1 63332 1 56004 1 52640 1 58201 1 42584 1 64788 1 53550 1 41349 1 41217 1 36388 1 46304 1 55930 1 48538 1 54637 1 53398 1 58845 1 62203 1 33877 1 33902 1 38161 1 52810 1 42927 1 38686 1 33525...
output:
EE 47915 51076 51076 51076 51076 51076 51076 54829 54829 54829 54829 54829 54829 54829 54829 58473 58473 58473 58473 58473 58473 58473 58473 58473 58473 58473 58473 58473 58473 58473 58732 58732 58732 58982 58982 58982 58982 58982 58982 58982 58982 58982 58982 58982 58982 58982 58982 58982 58982 589...
result:
ok 100000 lines
Test #38:
score: 19
Accepted
time: 16ms
memory: 4104kb
input:
100000 98407 1 76790 1 77044 1 116441 1 9625 1 120652 1 108068 1 13812 1 15796 1 22135 1 4297 1 99164 1 20565 1 112246 1 11403 1 21865 1 23561 1 15142 1 19499 1 101860 1 98690 1 10879 1 25851 1 113042 1 18172 1 109287 1 21916 1 5729 1 14641 1 8740 1 110161 1 104692 1 13790 1 3326 1 10191 1 3735 1 11...
output:
EE 55427 55427 55427 55427 76596 76596 76596 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97155 97516 97516 97516 97516 97516 97516 97516 97516 97516 975...
result:
ok 100000 lines
Test #39:
score: 19
Accepted
time: 18ms
memory: 4472kb
input:
100000 95395 1 48108 1 84537 1 122450 1 7485 1 10508 1 5513 1 19131 1 8000 1 108979 1 955 1 101877 1 22268 1 5257 1 9796 1 103016 1 2267 1 118923 1 22445 1 32661 1 102128 1 30399 1 9461 1 109566 1 108297 1 30305 1 32632 1 15344 1 10493 1 12133 1 15543 1 23931 1 6707 1 22391 1 26686 1 4001 1 107796 1...
output:
EE 37250 75110 75110 75110 75110 84746 85892 85892 85892 85892 85892 87623 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 92989 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 93294 932...
result:
ok 100000 lines
Subtask #6:
score: 33
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #5:
100%
Accepted
Test #40:
score: 33
Accepted
time: 97ms
memory: 8328kb
input:
500000 573539736 1 558179391 1 435545702 1 52091996 1 250334371 1 968294094 1 144021119 1 100117382 1 101578091 1 122613962 1 249765991 1 236593556 1 235930263 1 54756661 1 147154613 1 1069237987 1 1032269806 1 821337315 1 866572714 1 1013826511 1 903685580 1 884064565 1 1050194892 1 926723584 1 908...
output:
EE 420185357 421984248 421984248 530950109 530950109 530950109 530950109 530950109 530950109 530950109 530950109 530950109 530950109 530950109 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 557328090 5668912...
result:
ok 500000 lines
Test #41:
score: 33
Accepted
time: 110ms
memory: 8292kb
input:
500000 584575525 1 164440057 1 113093277 1 364203864 1 421485871 1 323603279 1 364081572 1 278722396 1 311658656 1 433492119 1 491678866 1 333609768 1 407086918 1 315846876 1 298846739 1 484098447 1 386767695 1 481956971 1 418507222 1 207387587 1 257416070 1 661184610 1 699109926 1 685359501 1 60020...
output:
EE 277533334 277533334 325236658 325236658 325236658 325236658 325236658 344018718 344148657 344148657 393549084 393549084 393549084 410043018 473843644 473843644 473843644 534746692 552241729 552241729 552241729 552241729 552241729 552241729 552241729 552241729 552241729 552241729 552241729 5522417...
result:
ok 500000 lines
Test #42:
score: 33
Accepted
time: 113ms
memory: 8292kb
input:
500000 588763033 1 70008935 1 83786824 1 83004162 1 270524781 1 393610189 1 318873417 1 292847001 1 467902125 1 344959790 1 124657654 1 365828840 1 416655700 1 408468170 1 450501349 1 271600603 1 410293994 1 335689280 1 355207101 1 497520415 1 485113499 1 247753151 1 623541070 1 561291203 1 62791844...
output:
EE 153795759 316060661 316060661 326690789 326690789 326690789 376680693 376680693 519431856 519431856 519431856 519431856 519431856 534994030 534994030 534994030 534994030 534994030 534994030 574940372 574940372 574940372 574940372 574940372 574940372 574940372 574940372 574940372 574940372 5749403...
result:
ok 500000 lines
Test #43:
score: 33
Accepted
time: 391ms
memory: 4852kb
input:
500000 1000000 1 318029744 1 11675602 1 454067797 1 71444134 1 541979062 1 380550108 1 405483599 1 379694643 1 325767527 1 700858855 1 7580650 1 256038135 1 936354442 1 517623784 1 253385463 1 30558667 1 491475810 1 398341789 1 686073191 1 298950539 1 681903968 1 23892174 1 358586228 1 543391011 1 1...
output:
EE 705346 736199 930257 986681 986681 986681 986681 986681 986681 986681 986681 986681 998952 998952 998952 998952 998952 998952 998952 998952 998952 998952 998952 998952 998952 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999192 999...
result:
ok 500000 lines
Test #44:
score: 33
Accepted
time: 422ms
memory: 5532kb
input:
500000 999999 1 331071993 1 486489471 1 886538245 1 630186032 1 52088421 1 862880044 1 862371870 1 50386806 1 160614904 1 504293041 1 473871078 1 151077059 1 256994198 1 877479155 1 473398993 1 143045550 1 348809084 1 410984700 1 315302452 1 351919842 1 587337651 1 604761065 1 530429723 1 443875841 ...
output:
EE 562281 562281 707090 871375 871375 871375 910811 916585 947091 993648 993648 993648 993648 993648 993648 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995703 995...
result:
ok 500000 lines
Test #45:
score: 33
Accepted
time: 259ms
memory: 5592kb
input:
473676 454995384 1 817557092 1 361395901 1 889991856 1 255141281 1 1030171941 1 317609235 1 380403066 1 571118057 1 285109165 1 749854742 1 708114271 1 156993038 1 743973032 1 1058416294 1 297744649 1 842176724 1 463616189 1 442195776 1 327395537 1 364652711 1 470159688 1 114516136 1 440510658 1 726...
output:
EE 268962225 268962225 431668996 431668996 431668996 443264149 443264149 443264149 443264149 443264149 443264149 443264149 443264149 451631130 451631130 451631130 451631130 451631130 451631130 451631130 451631130 451631130 451631130 451631130 451631130 452986720 452986720 452986720 452986720 4529867...
result:
ok 473676 lines
Test #46:
score: 33
Accepted
time: 737ms
memory: 16044kb
input:
500000 467088930 1 392719383 1 973028358 1 172528954 1 48179613 1 494935627 1 986898455 1 727070219 1 210768854 1 83936897 1 367782988 1 965830077 1 834514348 1 246506780 1 425075170 1 965187113 1 819497160 1 509113252 1 430045691 1 465970891 1 58977110 1 685602514 1 16190677 1 421079117 1 526298820...
output:
EE 431569881 431569881 431569881 463573417 463573417 463573417 463573417 463573417 463573417 463573417 463573417 463573417 463573417 463573417 463573417 463573417 463573417 466471334 466471334 466471334 466471334 466471334 466471334 466471334 466471334 466471334 466471334 466471334 466471334 4664713...
result:
ok 500000 lines
Test #47:
score: 33
Accepted
time: 628ms
memory: 18936kb
input:
500000 225072 1 148639 1 29366 1 417925 1 173355 1 324762 1 61905 1 498759 1 189215 1 293329 1 404938 1 129367 1 498443 1 36422 1 37715 1 345714 1 472907 1 188118 1 425051 1 39442 1 28912 1 64683 1 341006 1 160660 1 187623 1 398996 1 197508 1 12451 1 371650 1 173818 1 20192 1 497409 1 423299 1 34464...
output:
EE 178005 178005 178005 214869 214869 214869 214869 214869 223057 223057 223057 223057 223057 223057 223057 223057 223057 223057 223057 223057 223489 223489 223489 223489 223489 224288 224288 225060 225060 225060 225060 225060 225060 225060 225060 225060 225060 225060 225060 225060 225060 225060 225...
result:
ok 500000 lines
Test #48:
score: 33
Accepted
time: 462ms
memory: 7688kb
input:
500000 469079 1 66651 1 220529 1 424241 1 10151 1 469501 1 459555 1 501683 1 521452 1 97766 1 260971 1 10203 1 47672 1 504226 1 99301 1 102902 1 475714 1 426130 1 74491 1 9607 1 387617 1 521628 1 356618 1 165083 1 507591 1 288420 1 225214 1 308620 1 140650 1 177241 1 444795 1 152500 1 235031 1 35431...
output:
EE 287180 357998 415268 446882 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468042 468...
result:
ok 500000 lines
Test #49:
score: 33
Accepted
time: 422ms
memory: 7640kb
input:
500000 242402276 1 485854842 1 93950297 1 737567423 1 1014690754 1 214290933 1 361357865 1 483312585 1 307707037 1 562245106 1 134133425 1 1059061974 1 410601582 1 120558385 1 612598811 1 399030773 1 521321844 1 205356848 1 506439932 1 3100861 1 130269693 1 258469888 1 146215092 1 151987893 1 100257...
output:
EE 95000587 144785505 210441983 210441983 228057082 228057082 228057082 228057082 228057082 228057082 228057082 230685651 230685651 230685651 230685651 232357091 232357091 239399784 239399784 239399784 242202508 242202508 242202508 242202508 242202508 242202508 242202508 242202508 242202508 24220250...
result:
ok 500000 lines
Test #50:
score: 33
Accepted
time: 719ms
memory: 15640kb
input:
500000 282401444 1 108358509 1 656825544 1 680964210 1 728511012 1 852279454 1 528013597 1 254110744 1 133567075 1 1061969463 1 180367317 1 98434323 1 603806301 1 482664855 1 300414786 1 1025772195 1 2991045 1 655136335 1 958115223 1 817295003 1 57294462 1 164267054 1 838276598 1 654530858 1 5511062...
output:
EE 200381165 200381165 200381165 221474292 221474292 221474292 272738071 272738071 275411109 275411109 275411109 275411109 275411109 277264336 277264336 279910001 279910001 282224173 282224173 282224173 282224173 282224173 282224173 282224173 282224173 282224173 282224173 282224173 282224173 2822241...
result:
ok 500000 lines
Test #51:
score: 33
Accepted
time: 257ms
memory: 6060kb
input:
500000 319118291 1 56958296 1 205458097 1 50984058 1 536626060 1 142268308 1 246119092 1 312856461 1 328191582 1 510224604 1 653723214 1 834688803 1 109726661 1 1045738597 1 211186202 1 381030901 1 940078171 1 241831969 1 336580884 1 67738137 1 1037631082 1 440750489 1 191804933 1 975895780 1 288193...
output:
EE 262416393 269679051 269679051 303083263 303083263 303083263 303083263 303083263 306318947 306318947 306318947 314171091 314171091 317505585 317505585 317505585 317505585 317505585 317505585 317505585 318169220 318169220 318169220 318169220 318169220 318169220 318169220 318169220 318169220 3181692...
result:
ok 500000 lines
Test #52:
score: 33
Accepted
time: 484ms
memory: 9952kb
input:
474544 354853667 1 561422618 1 12030408 1 933564476 1 237055753 1 481363231 1 723248394 1 338486943 1 961920616 1 303328704 1 111030871 1 660925401 1 590244225 1 616220145 1 218347410 1 261421186 1 579814243 1 262282109 1 80701009 1 643743913 1 353925121 1 290293023 1 885849177 1 196949273 1 2124764...
output:
EE 218599359 286059269 286059269 286059269 286059269 350868835 350868835 350868835 350868835 350868835 350868835 350868835 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 353966347 3539663...
result:
ok 474544 lines
Test #53:
score: 33
Accepted
time: 687ms
memory: 16188kb
input:
500000 480271024 1 497776117 1 923178199 1 340497273 1 407667713 1 543023788 1 856574385 1 671981835 1 631132290 1 969791235 1 957873240 1 692030697 1 380943834 1 616466647 1 675040469 1 867523765 1 348518185 1 1068265379 1 801150245 1 951907332 1 164367746 1 473388542 1 1033079920 1 215486276 1 721...
output:
EE 460412268 460412268 460412268 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 475151495 4751514...
result:
ok 500000 lines
Test #54:
score: 33
Accepted
time: 731ms
memory: 18924kb
input:
500000 540302543 1 327152244 1 482128359 1 830828727 1 824130768 1 118035477 1 787158204 1 801474445 1 502999807 1 606913652 1 518408753 1 647508887 1 348922993 1 862237422 1 433037975 1 671325628 1 147924592 1 652914189 1 538940519 1 580785847 1 686092722 1 544599416 1 698006435 1 981317147 1 32989...
output:
EE 268978060 504728659 504728659 504728659 530616276 530616276 530616276 530616276 530616276 530616276 530616276 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 537907935 5379079...
result:
ok 500000 lines
Test #55:
score: 33
Accepted
time: 773ms
memory: 33512kb
input:
500000 614357785 1 604670106 1 294103128 1 13245352 1 985412429 1 821328286 1 833452055 1 1055155056 1 1007962826 1 24660432 1 580043998 1 662829960 1 14190841 1 134270208 1 618339769 1 77203126 1 286359219 1 112064726 1 1041253548 1 261695370 1 211687052 1 982209843 1 578008944 1 897562521 1 105320...
output:
EE 284415449 566326985 566326985 582793135 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 614037520 6140375...
result:
ok 500000 lines
Test #56:
score: 33
Accepted
time: 440ms
memory: 27336kb
input:
500000 728117805 1 736129207 1 728117804 1 723258530 1 0 1 3 1 1046341437 1 13 1 11 1 765421407 1 12 1 2 1 771299323 1 236908110 1 15 1 812296105 1 170211789 1 9 1 14 1 975592568 1 10 1 43509832 1 959381879 1 511796909 1 645428353 1 8 1 52 1 51 1 55 1 690301853 1 48 1 54 1 791404502 1 906841264 1 25...
output:
EE 8011401 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802 728117802...
result:
ok 500000 lines
Test #57:
score: 33
Accepted
time: 470ms
memory: 28212kb
input:
500000 47075412 1 853613850 1 398011558 1 856105166 1 540963535 1 5185198 1 603677902 1 56454863 1 841857382 1 745600830 1 873179990 1 835106 1 835136 1 14 1 20 1 997837311 1 10 1 108 1 8106 1 621791273 1 28 1 99 1 87 1 60985920 1 669145955 1 205419247 1 25 1 8067 1 974587006 1 283837681 1 8104 1 10...
output:
EE 27664696 27664696 27664696 38319816 46329457 46329457 46329457 46329457 46329457 46329457 47075376 47075389 47075389 47075389 47075389 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 47075408 ...
result:
ok 500000 lines
Test #58:
score: 33
Accepted
time: 438ms
memory: 28548kb
input:
500000 46440126 1 46440125 1 46439833 1 397430768 1 310 1 259 1 337201708 1 999 1 618531966 1 27143553 1 1426 1 103 1 1022 1 1372 1 119 1 91 1 641745748 1 320667241 1 347728512 1 543 1 51022304 1 1169 1 63468294 1 1182 1 853 1 83087681 1 704 1 653069086 1 936 1 466995646 1 66564265 1 902 1 1473 1 14...
output:
EE 46439832 46439832 46439832 46439832 46439832 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 46440062 ...
result:
ok 500000 lines
Test #59:
score: 33
Accepted
time: 725ms
memory: 34064kb
input:
500000 224277353 1 918335543 1 117337690 1 1002301427 1 977837459 1 578510318 1 799206616 1 883932561 1 1050342455 1 1068848414 1 712010366 1 648462822 1 34603107 1 1055557893 1 974087450 1 693704040 1 290593768 1 182434224 1 375050693 1 628523043 1 178424950 1 618809161 1 909310804 1 612718968 1 10...
output:
EE 138563821 220790646 220790646 220790646 220790646 220790646 220790646 220790646 220790646 220790646 220790646 220790646 223783168 223783168 223783168 223783168 223783168 223783168 223783168 223783168 223783168 223783168 223783168 223783168 223783168 223861386 223861386 223861386 223861386 2238613...
result:
ok 500000 lines
Test #60:
score: 33
Accepted
time: 699ms
memory: 34272kb
input:
500000 501120280 1 675633619 1 895607006 1 528065309 1 942460005 1 1037805590 1 420485674 1 455434095 1 823672001 1 1013090385 1 1072683028 1 384272638 1 1071785905 1 55480325 1 940366253 1 912705900 1 932153959 1 380208674 1 655496452 1 377355264 1 1026081882 1 517287994 1 223845644 1 324146979 1 2...
output:
EE 67879785 353847074 432270058 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 498936234 49893623...
result:
ok 500000 lines
Test #61:
score: 33
Accepted
time: 127ms
memory: 8324kb
input:
500000 556124641 1 371696767 1 426444419 1 274336959 1 185412884 1 198449308 1 199508432 1 5850314 1 982828896 1 32254004 1 188891971 1 191978300 1 203981223 1 150572370 1 51930068 1 21758193 1 18468471 1 245086301 1 118048108 1 106489470 1 252969699 1 73283069 1 156159280 1 95993221 1 186502632 1 2...
output:
EE 242016545 377236032 444738321 444738321 444738321 444738321 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 489164846 532988729 532988729 532988729 532988729 537358957 5373589...
result:
ok 500000 lines