QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#580173 | #8959. Nasty Operations | fractal# | AC ✓ | 84ms | 5452kb | C++17 | 1.7kb | 2024-09-21 20:22:57 | 2024-09-21 20:23:03 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define sz(x) (int)x.size()
void solve() {
int n, q;
cin >> n >> q;
vector<int> a(n);
for (int &i : a) cin >> i;
vector<int> ops;
for (int i = 1; i <= q; ++i) {
int x;
cin >> x;
if (ops.size() > 0 && ops.back() == -x) {
ops.pop_back();
}
else {
ops.push_back(x);
}
}
if (ops.size() == 0) {
for (int i : a) cout << i << ' ';
cout << '\n';
return;
}
vector<int> ans(n, 0);
if (ops.front() == 2) {
reverse(all(a));
}
for (int b = 0; b < 30; ++b) {
vector<int> v(n);
for (int i = 0; i < n; ++i) {
v[i] = (a[i] >> b) & 1;
}
q = ops.size() / 2;
v.resize(n + q);
q = ops.size() / 2;
int all = 0;
for (int i = 0; i < n; ++i) {
all ^= v[i];
}
for (int i = 0; i < q; ++i) {
if (all == 0) {
v[i + n] = 0;
}
if (all == 1) {
v[i + n] = 1;
}
all ^= v[i] ^ v[i + n];
}
for (int i = q; i < n + q; ++i) {
ans[i - q] ^= (1<<b) * v[i];
}
}
if (ops.back() > 0) {
for (int i = 1; i < n; ++i)
ans[i] ^= ans[i - 1];
}
if (ops.front() == 2) {
reverse(all(ans));
}
for (int i : ans) cout << i << ' ';
cout << '\n';
}
int main() {
cin.tie(0)->sync_with_stdio(0);
int T;
cin >> T;
while (T--) solve();
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3744kb
input:
3 5 1 0 1 2 4 8 1 7 2 25 2 20 23 998 244 353 2 -2 9 9 9 9 8 2 4 4 3 5 3 2 -1 2 -1 2 -1 2 -1 2
output:
0 1 3 7 15 25 2 20 23 998 244 353 4 7 2 1 14 7 14 6 4
result:
ok 21 numbers
Test #2:
score: 0
Accepted
time: 28ms
memory: 5276kb
input:
1 100000 100000 625711486 448565595 480845266 647639160 467825612 449656269 160714711 336869678 545923679 61020590 573085537 816372580 626006012 389312924 135599877 547865075 511429216 605997004 561330066 539239436 921749002 650693494 63219754 786119025 849028504 632532642 655702582 285323416 611583...
output:
460447546 918893945 421361936 531662857 597683991 315717183 409297975 644010887 201284455 547786135 488093417 308607356 446887518 816451065 188575902 350045500 855150500 575381912 78502771 680138091 409301398 966386404 78248002 35156373 104053995 812484588 4193778 142541263 267644688 63943845 965052...
result:
ok 100000 numbers
Test #3:
score: 0
Accepted
time: 24ms
memory: 5436kb
input:
1 100000 100000 934404454 595716492 110179625 335042321 234777759 226344571 83293997 631827318 954392336 872848676 926311522 119800258 395540430 203497678 394674000 697095818 14028012 806765653 581255734 169934416 210281538 83547877 691554566 956080839 530955401 716573943 550190468 872168230 4968422...
output:
668399723 738713427 86378136 692575054 142440869 335434012 147504533 837045771 525501324 70225752 657601600 576020428 872606792 685514939 834013617 188287694 174433705 586052689 598575365 821530335 162378157 638001073 566353121 588220702 405661392 222183699 531581075 585045324 265274110 616484205 76...
result:
ok 100000 numbers
Test #4:
score: 0
Accepted
time: 16ms
memory: 5308kb
input:
1 100000 99999 543644765 368373462 296702869 537099723 4459000 378855472 849950199 551702993 726146679 317954809 283644230 732009460 388054370 234665563 501901748 16668945 64546521 13857430 461069255 263537142 954105613 957359519 892759697 280923579 196953247 37889183 611400433 675054248 16552330 31...
output:
697172468 508327109 796685232 111346660 1015492649 1065304773 329195715 169291680 596401045 799635479 783923958 526812399 11802628 667974802 321905932 440900461 678838020 799981847 28807908 711540354 435942154 212146119 896646949 872561047 389941472 79997861 1041681517 638553984 148028059 514283885 ...
result:
ok 100000 numbers
Test #5:
score: 0
Accepted
time: 24ms
memory: 5452kb
input:
1 100000 99999 965385294 849237450 636359940 751291208 923246293 727881009 384227898 25832407 784830773 670011005 842146583 15524534 157214338 536187942 164949348 294738515 211616219 596019481 578083451 981223631 38140669 169737596 209732575 670040771 58511653 751523558 145985563 255007872 661438426...
output:
482189725 984750181 929228833 406912434 933948231 931361708 829186943 690227185 896168358 614492643 532068508 263515197 893545034 953305395 878290656 859440479 317639912 407276708 341534415 13778968 175437287 5214942 345586579 937663054 565087143 726562160 1007234699 465945130 197472289 695950590 24...
result:
ok 100000 numbers
Test #6:
score: 0
Accepted
time: 28ms
memory: 5304kb
input:
1 100000 100000 985467755 139350084 106524920 699695032 766353247 996882322 604617246 312981308 452791267 727227821 418259725 316421609 360911803 229720489 84757042 276633853 413755500 905761440 492078250 558585031 982660399 873966781 650801564 45468591 741324538 162212235 7194472 351378814 80878346...
output:
937083030 691134608 797298169 107933626 873184778 572859249 882254905 374282697 128773903 399436312 430119692 766814461 794106332 315973581 42301153 631658596 441585497 68706763 141907771 793394034 50181118 338501876 632516925 579016391 730367043 282744078 665352929 530850088 761124663 26544030 4954...
result:
ok 100000 numbers
Test #7:
score: 0
Accepted
time: 21ms
memory: 5388kb
input:
1 100000 100000 715736475 396794800 877610809 836451172 660665122 892792345 590207452 259166178 892971009 872273445 468791416 407051492 168013529 880782787 783145709 584103874 927342595 992836087 528679094 57994814 730776300 288925780 142887671 360581861 163087659 310658115 215928886 698491342 76965...
output:
57432968 744507641 946310518 136612654 480228320 875585490 450280307 134863659 841274622 48552838 878293649 16459700 618209715 62833759 594134509 470121071 125793323 670330408 294018377 845800252 366840068 564796616 760079720 795277091 220669771 951363580 384406464 999329727 444382943 554975269 7066...
result:
ok 100000 numbers
Test #8:
score: 0
Accepted
time: 29ms
memory: 5320kb
input:
1 100000 99999 611136982 213763079 890888486 568233581 584171419 307766572 464080746 442667170 674006556 381505524 263845032 518900048 453947619 343094535 183514555 435720572 135698594 687303766 879826056 339198593 540909995 251221289 956073460 334627072 663332603 565959167 747980248 885271173 71093...
output:
263612577 20359448 751364255 773405141 1019921168 964112413 824416733 865092944 756611993 96166941 297777892 572659871 554392225 658261232 999334780 959375089 599497784 83179600 789428342 362562145 587937325 65009504 43393812 334053427 7497169 298558070 455994636 115523217 501382704 450164712 101457...
result:
ok 100000 numbers
Test #9:
score: 0
Accepted
time: 25ms
memory: 5380kb
input:
1 100000 99999 399493594 935046800 721390830 83256354 549181332 600507528 69313306 377435858 329885361 178750229 682765967 496851885 137595893 347706403 543358797 609343943 548855303 168288701 961914010 472151281 47443678 721932405 878815523 636745960 255468464 908632523 770622831 900457196 12151198...
output:
537316765 34067928 686914772 849451085 796819696 640004565 1008402830 1013643519 885366533 408043962 337572191 1053540520 407244465 896217388 675135284 773981066 185077517 30674577 997268654 867585138 387282265 431505529 749375436 404746665 341302388 615086397 860139886 321042444 979670726 468981551...
result:
ok 100000 numbers
Test #10:
score: 0
Accepted
time: 14ms
memory: 3576kb
input:
1 100000 100000 756726727 413040591 411154399 130243336 165640623 212779626 317974551 544195060 153054004 313236966 304924734 455942338 702224768 945466862 820087788 631742190 28588750 108386099 252316088 251943010 775024215 733084570 514647270 423159279 38320277 529597304 995352530 648891928 871246...
output:
756726727 413040591 411154399 130243336 165640623 212779626 317974551 544195060 153054004 313236966 304924734 455942338 702224768 945466862 820087788 631742190 28588750 108386099 252316088 251943010 775024215 733084570 514647270 423159279 38320277 529597304 995352530 648891928 871246611 515799642 30...
result:
ok 100000 numbers
Test #11:
score: 0
Accepted
time: 20ms
memory: 4492kb
input:
1 100000 99999 765510916 802906567 373450982 365298957 297622885 245133416 822151927 314599461 789788539 972387694 871372465 913537176 601661014 343964058 514220919 16348334 226195209 298815163 679443539 93396177 988598507 619665832 608097403 436015387 296490695 954225152 644893666 945795601 1009820...
output:
746328305 31249909 772256818 944102612 763615705 1010730172 849540308 61079075 291739142 1047568765 126211091 880132770 33995322 567944300 895114742 737951361 721766959 645807398 934392733 533647310 442487583 548602868 73161308 543329831 966762300 674466299 282319867 916688921 251404808 150535920 93...
result:
ok 100000 numbers
Test #12:
score: 0
Accepted
time: 14ms
memory: 3696kb
input:
1 100000 100000 517005704 417228559 448957865 375032740 884902759 735682206 538986353 590274162 865247473 696403561 457894113 847825534 971367810 215702514 887207318 543029700 571611244 614603846 966626477 156645113 94952274 312505702 190005959 670953542 937095166 763585268 5188875 390580985 7165080...
output:
517005704 417228559 448957865 375032740 884902759 735682206 538986353 590274162 865247473 696403561 457894113 847825534 971367810 215702514 887207318 543029700 571611244 614603846 966626477 156645113 94952274 312505702 190005959 670953542 937095166 763585268 5188875 390580985 716508000 794238846 107...
result:
ok 100000 numbers
Test #13:
score: 0
Accepted
time: 19ms
memory: 4476kb
input:
1 100000 99999 279367533 267417429 165171175 428339494 208959250 712032814 444088451 377691440 933133625 269026807 970161887 104407352 349798651 707119396 336383327 138861258 362870020 638280706 761425360 419630394 680041278 828005718 587849438 843453810 450859195 353675469 397258380 890454722 36759...
output:
279367533 525776952 378468319 252249849 58552811 688763845 863368006 636939894 308843343 39950008 1001580647 1032571231 693258660 58163328 393956831 524130069 178086417 748029459 32795587 418866937 813694407 19243153 573341263 275409725 179698566 530666315 135069127 1025490693 687255198 642658759 10...
result:
ok 100000 numbers
Test #14:
score: 0
Accepted
time: 18ms
memory: 4460kb
input:
9 8875 290 442018155 442110039 442141714 442162079 442110216 442124361 442111985 441976622 442119505 442014090 442036385 442076316 442147036 442103351 442122765 442151841 442126766 442113016 442033164 442094947 442151060 442095333 442030825 442032476 442073240 442015283 442139179 442027327 442116863...
output:
442136716 441969081 442169933 441995249 442085217 442084357 442110506 442101805 442111131 442057455 442114239 442016205 441983666 442120833 442106326 442102356 442148868 441989628 442048430 442060997 441999748 441973796 442049183 441996337 442115211 442158336 442128767 442135788 442115748 442149569 ...
result:
ok 83267 numbers
Test #15:
score: 0
Accepted
time: 3ms
memory: 4108kb
input:
2 36630 19 368784918 368860751 368784368 368799823 368826234 368835727 368798403 368871240 368802291 368872025 368789519 368840127 368870518 368806920 368822525 368845566 368809775 368857122 368829443 368877124 368841920 368856657 368840605 368827903 368825057 368867757 368859108 368875537 368874362...
output:
368862995 20279 368867050 13233 368820005 521935 368830567 48157 368795216 368882530 492916 368827195 59595 368810116 20478 368817009 55730 368860922 468745 368815440 58719 368896224 27798 368828574 10339 368839325 499122 368823696 10643 368883671 41751 368897350 58075 368787236 60869 368874600 5006...
result:
ok 36666 numbers
Test #16:
score: 0
Accepted
time: 15ms
memory: 3888kb
input:
14 630 1 409130548 409130549 409130549 409130546 409130549 409130549 409130547 409130549 409130546 409130549 409130547 409130546 409130547 409130546 409130547 409130549 409130549 409130547 409130549 409130546 409130548 409130548 409130549 409130548 409130546 409130548 409130548 409130546 409130547 4...
output:
6 409130546 7 409130546 0 409130549 0 409130547 6 409130548 1 409130546 0 409130547 1 409130546 7 409130546 1 409130548 6 409130546 6 409130547 7 409130549 1 409130549 7 409130548 0 409130547 6 409130549 7 409130549 1 409130547 0 409130546 1 409130546 7 409130547 6 409130547 1 409130546 0 409130549 ...
result:
ok 88626 numbers
Test #17:
score: 0
Accepted
time: 14ms
memory: 3984kb
input:
16 6 1 884550285 885395074 887595164 864318104 881580074 837216991 1 1458 1 672180025 672179842 672180012 672179802 672179752 672180001 672179914 672179957 672179987 672179861 672180000 672179979 672179884 672179856 672179829 672179878 672179982 672179908 672179907 672179927 672179746 672179938 6721...
output:
884550285 8332303 882410643 119338507 865545761 41010430 672180025 443 672179863 205 672179941 452 672179982 507 672179944 125 672180061 86 672179962 106 672179743 185 672180151 371 672180144 359 672180037 423 672179997 33 672179828 329 672179999 334 672179809 244 672179824 70 672179948 105 6721800...
result:
ok 93758 numbers
Test #18:
score: 0
Accepted
time: 7ms
memory: 3996kb
input:
3 160 5 719933932 719933934 719933935 719933936 719933931 719933929 719933937 719933932 719933932 719933936 719933930 719933935 719933933 719933929 719933934 719933937 719933935 719933935 719933937 719933936 719933934 719933937 719933927 719933930 719933927 719933929 719933928 719933937 719933937 71...
output:
719933935 31 719933940 29 719933932 0 719933932 28 719933942 25 719933940 29 719933939 2 719933933 2 719933939 3 719933933 28 719933947 17 719933942 31 719933943 6 719933943 24 719933938 24 719933949 17 719933921 8 719933927 12 719933920 7 719933942 25 719933951 25 719933943 18 719933943 29 71993393...
result:
ok 9335 numbers
Test #19:
score: 0
Accepted
time: 13ms
memory: 3668kb
input:
18 8 2 554616742 554616742 554616744 554616743 554616743 554616744 554616742 554616741 1 -2 7 877 362917552 362917552 362917551 362917551 362917551 362917551 362917552 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 ...
output:
554616742 554616744 554616743 554616743 554616744 554616742 554616741 3 362917552 31 362917552 31 362917552 0 362917552 406170436 636809826 441142793 776263132 398984768 560009565 570947390 628805995 484190129 508460416 654655032 489962591 623172817 120889734 663033705 788464255 578942771 59317632...
result:
ok 59226 numbers
Test #20:
score: 0
Accepted
time: 17ms
memory: 3888kb
input:
14 14103 6 55323779 43590245 48872712 44597635 46237008 46618863 49655752 67960710 51063540 58769071 66131939 75569007 42544868 48175163 44320248 55782606 46253576 72440444 75015193 48936071 54472317 45821233 39840716 75404882 44596692 38494699 71823117 74108090 40345616 49541263 53303370 54798303 7...
output:
44597635 46237008 46618863 49655752 67960710 51063540 58769071 66131939 75569007 42544868 48175163 44320248 55782606 46253576 72440444 75015193 48936071 54472317 45821233 39840716 75404882 44596692 38494699 71823117 74108090 40345616 49541263 53303370 54798303 75064236 41121559 69047781 41852020 488...
result:
ok 75413 numbers
Test #21:
score: 0
Accepted
time: 16ms
memory: 4040kb
input:
8 10447 209 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 959009507 95900950...
output:
959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 959009507 0 ...
result:
ok 99353 numbers
Test #22:
score: 0
Accepted
time: 74ms
memory: 3752kb
input:
50000 1 2 752940893 2 -1 1 2 499296377 2 -1 1 2 744365717 1 -2 1 2 258551358 1 -2 1 2 127952560 2 -1 1 2 455226658 2 -1 1 2 909856634 2 -1 1 2 826020391 1 -2 1 2 887297201 1 -2 1 2 264636753 2 -1 1 2 417331448 1 -2 1 2 943593948 1 -2 1 2 978629250 1 -2 1 2 377142322 2 -1 1 2 956537723 2 -1 1 2 30936...
output:
752940893 499296377 744365717 258551358 127952560 455226658 909856634 826020391 887297201 264636753 417331448 943593948 978629250 377142322 956537723 309363364 397136369 641597618 638139377 300320239 150550586 792628851 563885739 793268405 451366737 348543247 641386134 452...
result:
ok 50000 numbers
Test #23:
score: 0
Accepted
time: 72ms
memory: 3520kb
input:
100000 1 1 614912395 1 1 1 54850382 1 1 1 361349112 1 1 1 269165483 2 1 1 578830838 1 1 1 662098979 2 1 1 976368888 2 1 1 583228040 2 1 1 249695904 2 1 1 532479787 2 1 1 51464999 1 1 1 790305223 2 1 1 932376951 1 1 1 62264240 2 1 1 949352918 2 1 1 601732608 1 1 1 412244958 1 1 1 562403008 2 1 1 6443...
output:
614912395 54850382 361349112 269165483 578830838 662098979 976368888 583228040 249695904 532479787 51464999 790305223 932376951 62264240 949352918 601732608 412244958 562403008 644303719 599250030 719129488 635683801 450734414 29673377 716848400 950797466 670714559 2789334...
result:
ok 100000 numbers
Test #24:
score: 0
Accepted
time: 84ms
memory: 3548kb
input:
50000 2 2 184762432 184762399 2 -1 2 2 147158327 147157999 1 -2 2 2 911930245 911930253 2 -1 2 2 640470392 640515949 1 -2 2 2 403501390 403501391 1 -2 2 2 876126965 876126846 2 -1 2 2 601259171 599680377 2 -1 2 2 455504179 435749427 2 -1 2 2 704234123 704234389 2 -1 2 2 599447221 599414162 1 -2 2 2 ...
output:
95 184762432 147157999 1752 8 911930245 640515949 111125 403501391 1 139 876126965 6822362 601259171 48198400 455504179 286 704234123 599414162 33575 297619311 15915 12 147309867 751147418 1 3153 942574386 185441102 258585 4151000 194648539 877690 517526379 248794661 60 8780 726955...
result:
ok 100000 numbers
Test #25:
score: 0
Accepted
time: 47ms
memory: 3532kb
input:
50000 2 1 695188599 695164125 2 2 1 899463648 898579526 2 2 1 221463254 217452474 2 2 1 659858172 665207257 1 2 1 668349944 668149640 1 2 1 448094936 448096915 2 2 1 285608624 285788604 1 2 1 787135707 428129578 1 2 1 605877133 665510612 2 2 1 388461602 388007470 2 2 1 681174645 680394243 1 2 1 1265...
output:
57514 695164125 1279398 898579526 29707628 217452474 659858172 15917861 668349944 332400 2123 448096915 285608624 967436 787135707 929956337 62263641 665510612 520716 388007470 681174645 1316982 435 126595252 1235 106880258 364571394 15425 766767374 517905 514803122 784524 114792 563...
result:
ok 100000 numbers
Test #26:
score: 0
Accepted
time: 53ms
memory: 3544kb
input:
29053 3 4 487528558 487528757 487528115 1 -2 1 -2 2 2 639877264 639947030 1 -2 3 2 984643549 982748606 985864820 2 -1 3 1 68427210 69054755 69471902 2 2 1 730093979 730093979 1 6 2 975473729 975473710 975473652 975473707 975473773 975473694 1 -2 2 4 478563325 478687477 1 -2 1 -2 2 4 729072802 756429...
output:
487528115 487528424 487528558 639947030 463238 987815959 984643549 982748606 70099575 3784637 69471902 730093979 0 975473710 975473652 975473707 975473773 975473694 1987 949000 478563325 107148410 729072802 249947 948073219 948077476 948087241 948023368 948002125 328315964 1042175 326969896...
result:
ok 99998 numbers
Test #27:
score: 0
Accepted
time: 26ms
memory: 3628kb
input:
4780 35 5 867430992 867430951 867430905 867430888 867430978 867430963 867430974 867430951 867430932 867430872 867430918 867430884 867430956 867430966 867430897 867430887 867430931 867430928 867430883 867430960 867430904 867430907 867430893 867430883 867430915 867430886 867430973 867430945 867430974 ...
output:
867430961 999 867430870 902 867430817 88 867430832 1010 867430849 1023 867430872 972 867430932 18 867430902 986 867430892 29 867430906 1001 867430905 26 867430954 978 867430953 964 867430951 36 867430850 1023 867430878 992 867430901 25 867430961 340509919 219645137 28 219645146 18 219645100 27 219...
result:
ok 99997 numbers
Test #28:
score: 0
Accepted
time: 19ms
memory: 3740kb
input:
697 4 25 901629593 901774442 901853025 901926608 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 6 19 447356485 529228178 582161087 616129549 580890737 707328968 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 304 9 914828259 914828287 914827795 914828848 914827756 914828233 914827751 9...
output:
901853025 221617 146163 901774442 580890737 146230201 53152101 427890464 101349042 616129549 914827756 549 914828226 569 914829078 330 914828353 184 914828031 365 914828632 1990 914828353 148 914828625 1651 914828136 1672 914828786 373 914828466 1634 914828166 2037 914828037 424 914828580 1866 914...
result:
ok 96263 numbers
Test #29:
score: 0
Accepted
time: 19ms
memory: 3688kb
input:
99 77 12 268737080 303577179 258571488 312929790 308931550 271921125 264257502 315118981 306452125 269705412 315191548 286986659 297176046 267995351 250155358 278709122 246258537 284174990 267389909 250399363 263682413 274898412 249987940 305908391 314236682 302894804 273685752 313338412 274407974 2...
output:
264257502 315118981 306452125 269705412 315191548 286986659 297176046 267995351 250155358 278709122 246258537 284174990 267389909 250399363 263682413 274898412 249987940 305908391 314236682 302894804 273685752 313338412 274407974 285293235 258076666 248515175 267012176 258273356 258689311 276949448 ...
result:
ok 98500 numbers
Test #30:
score: 0
Accepted
time: 17ms
memory: 3932kb
input:
5 4615 700 808286975 785530767 793481192 786597645 787848896 810923068 776629282 811403205 802344766 811811113 784990741 803635538 809049799 796406252 779379146 803467956 811764501 807474216 801265699 793962239 797329044 811397363 776426297 802178813 791445886 802581033 781257214 779220098 811405642...
output:
803829276 801833247 800490888 787543377 791799314 788820151 783790459 775980300 783408285 804409458 778821417 800068328 796817134 798277649 778087220 804505478 795072240 797846479 807709217 788270814 779274890 794540134 780328313 788953379 787959968 799228394 799692907 785857682 796364803 801818868 ...
result:
ok 91654 numbers
Test #31:
score: 0
Accepted
time: 15ms
memory: 4764kb
input:
9 71 128 899231605 899231449 899231616 899231418 899231695 899231156 899230657 899231527 899231561 899231406 899231842 899231629 899231260 899231560 899231101 899230906 899231226 899231309 899231822 899231481 899231006 899230594 899230850 899231207 899230556 899231607 899230615 899230982 899231678 8...
output:
899231560 899231101 899230906 899231226 899231309 899231822 899231481 899231006 899230594 899230850 899231207 899230556 899231607 899230615 899230982 899231678 899230996 899230974 899231473 899231696 899230597 899231027 899231541 899231581 899231431 899231452 899231014 899231608 899230557 899230895 ...
result:
ok 95199 numbers
Test #32:
score: 0
Accepted
time: 14ms
memory: 4036kb
input:
6 5148 73 526633049 526633049 526633049 526633049 526633049 526633049 526633050 526633050 526633050 526633049 526633050 526633049 526633049 526633049 526633050 526633049 526633049 526633049 526633049 526633050 526633049 526633050 526633049 526633050 526633050 526633050 526633049 526633050 526633049 ...
output:
526633050 3 526633050 3 526633049 0 526633049 0 526633049 3 526633050 0 526633049 3 526633049 3 526633050 0 526633049 3 526633050 0 526633050 3 526633050 3 526633050 3 526633049 0 526633050 3 526633049 3 526633050 0 526633049 3 526633049 0 526633050 3 526633049 0 526633049 3 526633050 0 526633049 3 ...
result:
ok 94129 numbers
Test #33:
score: 0
Accepted
time: 11ms
memory: 3988kb
input:
4 1762 192 2254526 4550504 2443565 4012697 2004817 3688603 1753004 5247876 4840010 3007706 5305194 5830731 2884618 1603599 5307101 5352199 935962 5303794 5083255 2929094 3917229 5973342 5300143 1069546 5148554 1653739 4691182 2522786 3208543 4042763 1888913 1940056 2830609 2216151 5578304 1156293 27...
output:
1603599 5307101 5352199 935962 5303794 5083255 2929094 3917229 5973342 5300143 1069546 5148554 1653739 4691182 2522786 3208543 4042763 1888913 1940056 2830609 2216151 5578304 1156293 2754823 966761 4431606 4052738 2829285 5297749 3543564 2219630 1895857 1961034 1908461 3360722 3852955 3437274 587856...
result:
ok 47622 numbers
Test #34:
score: 0
Accepted
time: 17ms
memory: 3804kb
input:
37 692 229 115249100 125031817 116397147 116343820 126517531 118747753 127132325 120199010 121962685 129224407 118470796 131610591 121241895 143296333 130547044 129073501 138766744 119339643 127318234 119819927 123206763 137825860 121767748 129389684 121659738 135232867 129453966 121551986 141509716...
output:
120666562 258390004 145939611 259012454 125455911 1344178 140110329 262343121 147568656 10420940 143147830 16194131 149210668 267058124 124656315 12602072 144915501 262790213 150383870 236136688 154793930 244687493 161384547 25611243 113765318 246880807 167173515 242196666 160646588 239876105 163536...
result:
ok 82265 numbers
Test #35:
score: 0
Accepted
time: 18ms
memory: 4300kb
input:
15 55537 65143 919364309 911916332 935051834 928634183 916722272 925805320 926620323 916313455 925993054 920042210 924276187 928337721 923938164 917942232 919205451 931744688 912144276 932899711 927900857 912090677 916754907 910703702 921540740 930404802 927930732 928548745 925605563 931052808 93159...
output:
931396689 11733726 918826960 31447822 906873617 7313512 925757409 24942793 906445427 24362695 925211813 12233535 919407930 10688676 907541728 17083176 910081743 21695477 911757079 24049631 909627982 13223816 923750692 30544041 930036048 21361261 912952491 27607204 915297064 2329630 926183500 5583666...
result:
ok 94350 numbers
Test #36:
score: 0
Accepted
time: 11ms
memory: 4012kb
input:
13 32755 8429 283019057 123881330 109600319 57124263 69804516 236533417 327570097 312487874 120178303 61979837 41598479 318318843 250932134 79092602 282390008 226377058 217632507 189446860 76528394 58251455 131826237 113463234 281740820 159484980 200251007 97291455 179219384 324058696 257645850 3291...
output:
64170459 281153301 40432168 307354824 396893989 280296819 419550595 287400511 491505067 468432724 142685026 88903772 197673015 23548419 319748407 471445735 461031257 318746927 389550775 510236800 399918578 341148409 426944969 402446603 292349067 426060982 160763471 255046004 87104029 262550119 12038...
result:
ok 90045 numbers
Test #37:
score: 0
Accepted
time: 16ms
memory: 3868kb
input:
21 85 8 531818406 421150786 441335750 889324654 360992016 532878387 467403506 345311066 830148871 872758461 427571797 742005178 499606272 655463411 444988142 686172727 747676301 634951640 709978457 532145852 762683462 540220981 677441073 453533011 916245073 381368281 587073010 640511108 898662612 74...
output:
1055415811 531818406 421150786 441335750 889324654 360992016 532878387 467403506 345311066 830148871 872758461 427571797 742005178 499606272 655463411 444988142 686172727 747676301 634951640 709978457 532145852 762683462 540220981 677441073 453533011 916245073 381368281 587073010 640511108 898662612...
result:
ok 99771 numbers
Test #38:
score: 0
Accepted
time: 14ms
memory: 4148kb
input:
13 524 13302 953043998 953043886 953043883 953043817 953044249 953044713 953043715 953043893 953044454 953044142 953044272 953044370 953044513 953044644 953043879 953043639 953043898 953044576 953044397 953043772 953044357 953044328 953044278 953043819 953044407 953044374 953043827 953044599 9530442...
output:
953043738 953043616 953044469 953043679 953043984 953043740 953043725 953044677 953044464 953044626 953044436 953044262 953044136 953044479 953044327 953043998 953044548 953043743 953044291 953044349 953043888 953044513 953043659 953044030 953044316 953043725 953044489 953044279 953043649 953044314 ...
result:
ok 89836 numbers
Test #39:
score: 0
Accepted
time: 15ms
memory: 4376kb
input:
7 76973 6 394411828 394412459 394411845 394411835 394412185 394412405 394412134 394411419 394411318 394411214 394411583 394411466 394412144 394412442 394411332 394412549 394411349 394411289 394411785 394412047 394411248 394412320 394411802 394411664 394412091 394411512 394411257 394411753 394411968 ...
output:
394412180 394411560 394411828 394412459 394411845 394411835 394412185 394412405 394412134 394411419 394411318 394411214 394411583 394411466 394412144 394412442 394411332 394412549 394411349 394411289 394411785 394412047 394411248 394412320 394411802 394411664 394412091 394411512 394411257 394411753 ...
result:
ok 96644 numbers
Test #40:
score: 0
Accepted
time: 16ms
memory: 4160kb
input:
19 23462 298 447379807 447539771 447343170 447544407 447405977 447565271 447536901 447381400 447317563 447540327 447325938 447458509 447461896 447358110 447449646 447491500 447501257 447433063 447552348 447490798 447415020 447355803 447442761 447474711 447433774 447472171 447515209 447587730 4474420...
output:
447588415 447503835 447554628 447447521 447348866 447374153 447484836 447489273 447541847 447458949 447451448 447449186 447416636 447389852 447434144 447417124 447562330 447403489 447333881 447418916 447494990 447557289 447440836 447375811 447393638 447363222 447502238 447426117 447443021 447438777 ...
result:
ok 99759 numbers
Test #41:
score: 0
Accepted
time: 7ms
memory: 3756kb
input:
2046 1 2 73493845 2 -1 1 2 239006105 1 -1 1 18 624044006 1 -2 1 -2 2 -2 2 -2 2 -2 2 -2 1 -2 2 -2 2 -2 1 1 827115079 2 1 34 330089687 2 -1 2 -1 1 -2 2 -1 1 -1 2 -2 2 -1 1 -1 1 -1 2 -1 1 -1 2 -1 1 -1 2 -1 1 -2 2 -1 2 -1 1 4 804883645 2 -1 2 -2 1 2 509210069 2 -2 1 23 405357579 2 -2 2 -2 2 -2 2 -2 2 -2...
output:
73493845 239006105 624044006 827115079 330089687 804883645 509210069 405357579 442400542 410019695 785812172 258276442 769110812 747440809 210871707 223592089 290179803 445859241 389793575 634641840 45810535 286929593 662865713 898786152 906202900 647169279 919054032 72030...
result:
ok 37210 numbers
Test #42:
score: 0
Accepted
time: 8ms
memory: 3784kb
input:
1 76963 2 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 ...
output:
598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 598662508 ...
result:
ok 76963 numbers
Test #43:
score: 0
Accepted
time: 8ms
memory: 3868kb
input:
1021 25866 2 574610187 574610187 574609990 574610079 574610024 574610022 574610100 574610071 574610176 574610148 574610132 574610078 574610196 574610020 574610053 574610106 574610172 574610082 574610042 574609991 574610132 574610195 574610076 574610152 574610164 574610068 574610167 574610162 5746100...
output:
331 574610187 574610187 574609990 574610079 574610024 574610022 574610100 574610071 574610176 574610148 574610132 574610078 574610196 574610020 574610053 574610106 574610172 574610082 574610042 574609991 574610132 574610195 574610076 574610152 574610164 574610068 574610167 574610162 574610029 574610...
result:
ok 33990 numbers
Test #44:
score: 0
Accepted
time: 4ms
memory: 3680kb
input:
1 3 92752 589459643 589459644 589459646 1 -2 1 -1 1 -2 1 -1 1 -2 2 -2 1 -1 1 -1 1 -2 2 -2 1 -1 1 -2 1 -1 1 -2 1 -1 1 -1 1 -1 1 -1 1 -2 1 -1 1 -1 1 -1 1 -2 2 -2 2 -2 2 -1 1 -2 1 -1 1 -2 1 -1 1 -2 1 -1 1 -2 1 -2 2 -2 2 -2 1 -2 2 -1 1 -1 1 -1 1 -2 1 -1 1 -2 1 -2 1 -1 1 -1 1 -2 1 -2 1 -2 1 -2 1 -1 1 -1 ...
output:
589459641 589459643 589459644
result:
ok 3 number(s): "589459641 589459643 589459644"
Test #45:
score: 0
Accepted
time: 3ms
memory: 3648kb
input:
2 3 53788 905249895 905249935 905249933 2 -2 2 -2 2 -2 1 -1 2 -2 2 -2 2 -2 2 -2 2 -2 1 -1 2 -2 2 -2 1 -1 2 -2 2 -2 1 -2 1 -1 1 -1 1 -1 2 -2 2 -2 2 -2 2 -2 2 -2 1 -1 1 -1 2 -2 1 -1 2 -1 1 -1 2 -2 2 -2 1 -1 2 -2 1 -2 2 -2 1 -2 1 -1 2 -1 2 -2 1 -1 1 -2 2 -2 2 -2 1 -1 2 -2 2 -2 1 -1 2 -2 2 -2 2 -1 1 -1 ...
output:
905249895 905249935 905249933 544967879 1323990 543849426 1813098 544114185 908551 544297161 1202602 544036616 1473988 543689265 870640 543619888 1608255 544072382 1797282 544406656 1919403 544584489 749663 544776214 231222 545499318 16663775 545141382 16649243 547222169 16048928 546032598 743040 5...
result:
ok 1654 numbers
Test #46:
score: 0
Accepted
time: 17ms
memory: 4432kb
input:
136 99458 3 713458305 713411986 713211537 713623680 713704529 713007954 713379184 713859434 713177878 713325221 712915912 713747850 713514284 713753322 713448650 712851009 713276514 712820545 712949766 713657808 713632294 712827709 713869532 713565654 713673595 713791506 713496453 713534524 71333870...
output:
15980817 712334224 15767042 712124563 16457747 712074306 968464 713788000 469770 713363484 92857 712986993 16104699 712171991 16376637 713015287 164278 713113044 16644757 713243283 702275 713268581 16744024 712226436 16487250 712136745 16367675 712955838 16350082 712889550 15842698 712520377 1652872...
result:
ok 99998 numbers
Test #47:
score: 0
Accepted
time: 9ms
memory: 3884kb
input:
888 4 5 402742929 402743042 402743056 402742708 2 -1 2 -1 1 4 6 75690440 75690483 75690436 75690394 2 -1 2 -2 2 -2 4 12 579930343 579930348 579930348 579930349 2 -2 1 -1 1 -2 1 -2 1 -1 1 -1 4 1 183070096 183078661 183092414 183070123 1 4 42 657907091 657908498 657908350 657900398 1 -2 2 -2 1 -2 1 -2...
output:
402742708 402742915 18 402743056 101 75690440 75690483 75690436 579930348 579930349 10 579930343 183070096 58005 183051819 19328 8081 657907091 657908498 657908350 2976159 892670258 2998978 890069194 613771737 4 613771736 11 688271390 688299049 33098468 687603611 695500972 489160 695281064 2...
result:
ok 35422 numbers
Test #48:
score: 0
Accepted
time: 13ms
memory: 3564kb
input:
1441 90320 4 384821496 384886504 384905101 384717629 384933898 384760179 384736512 384778906 384940108 384925611 384803906 384946599 384862669 384708027 384949232 384791320 384740019 384721667 384713241 384825882 384799862 384787264 384760606 384768611 384728907 384935668 384699852 384821785 3849225...
output:
384821496 384886504 384905101 384717629 384933898 384760179 384736512 384778906 384940108 384925611 384803906 384946599 384862669 384708027 384949232 384791320 384740019 384721667 384713241 384825882 384799862 384787264 384760606 384768611 384728907 384935668 384699852 384821785 384922514 384912065 ...
result:
ok 99996 numbers
Test #49:
score: 0
Accepted
time: 16ms
memory: 3560kb
input:
2718 5 23 88196390 88198212 88515739 88234775 88210120 1 -1 1 -1 1 -1 1 -1 1 -2 2 -1 1 -1 2 -1 2 -1 1 -1 1 -1 2 8 43 517104542 517104696 517105830 517105719 517104757 517104623 517105608 517105794 1 -2 2 -2 2 -1 2 -1 2 -2 1 -2 2 -2 2 -1 2 -2 2 -2 2 -1 2 -2 1 -1 2 -2 1 -1 2 -2 2 -1 2 -2 2 -2 2 -1 2 -...
output:
88234775 238047 88518137 485599 88515739 517105719 3138 517107629 2149 517103847 517107456 3230 517105830 76861308 128173385 69936110 12079305 55024765 130737693 767260047 754893079 774060272 792532811 775056800 764591869 767572139 409742114 470936472 111902950 198052599 444730340 356200028 3264...
result:
ok 49882 numbers
Test #50:
score: 0
Accepted
time: 6ms
memory: 3660kb
input:
261 15 93 816498245 816879824 816658983 816695026 817159106 816772203 816589865 816518810 816877854 817178036 817122572 816859728 816691377 816585895 816620689 1 -2 1 -2 2 -2 1 -2 1 -1 2 -1 2 -1 1 -2 1 -2 1 -2 1 -2 1 -2 2 -1 2 -1 2 -1 1 -2 1 -2 1 -2 1 -2 2 -1 1 -2 1 -2 1 -2 2 -2 1 -2 2 -1 1 -2 1 -2 ...
output:
816691377 107542 816644231 394412 816628457 1858105 816930846 1877740 816348462 428357 816489836 111606 816915176 264028 816859728 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 843954016 0 ...
result:
ok 5592 numbers
Test #51:
score: 0
Accepted
time: 5ms
memory: 3692kb
input:
10 11 4296 101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 2 -2 1 -1 1 -2 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -2 1 -2 2 -2 2 -2 2 -2 1 -1 1 -1 1 -1 1 -1 1 -1 1 -2 1 -1 1 -2 2 -2 1 -1 1 -1 1 -1 2 -2 2 -2 2 -1 1 -1 1 -1 1 -1 2 -1 1 -2...
output:
101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 101340294 399603881 396439216 398285843 397724594 398552894 398880963 400728357 400451685 397682143 399100278 396404797 397708618 398278640 399506121 399826127 400375966 398721320 400499118 399199148...
result:
ok 214 numbers
Test #52:
score: 0
Accepted
time: 3ms
memory: 3656kb
input:
5 16 7899 850613071 850608931 850609621 850605588 850607459 850611395 850605137 850614710 850604542 850605354 850604234 850612199 850609850 850604719 850607198 850609806 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 ...
output:
850611395 30866 850600228 4314 850601456 5434 850615005 7271 850603720 4758 850613272 850616014 3457 850611874 2935 850607459 674074712 2071768 673931548 281152 674258824 199176 674351877 324761 674698832 493276 889435252 171664 889201143 7106 889257083 154228 889437125 33350797 889037345 33327419...
result:
ok 89 numbers
Test #53:
score: 0
Accepted
time: 5ms
memory: 3816kb
input:
1 9 88936 584566629 573032695 247735463 470205436 448002406 319206954 536737828 321546794 311885108 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 1 -2 ...
output:
311885108 96913599 584566629 573032695 247735463 470205436 448002406 319206954 536737828
result:
ok 9 numbers
Test #54:
score: 0
Accepted
time: 2ms
memory: 3596kb
input:
1 7 55740 587618228 587627370 587616856 587635387 587642577 587636307 587617563 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 1 -1 ...
output:
587618228 587627370 587616856 587635387 587642577 587636307 587617563
result:
ok 7 numbers
Test #55:
score: 0
Accepted
time: 4ms
memory: 3676kb
input:
1 47 55493 631479605 816670360 634701359 718327235 573814625 606956908 673833841 734816639 653329699 752400642 578728814 651532671 551262997 639325207 775703177 859360165 662931249 743790614 557219414 541818215 739288015 680123939 781965682 831544416 648184023 707978066 607687555 694443651 770475184...
output:
680123939 101844817 931289905 287366118 991049908 522890039 911144372 463630596 1032395394 247563002 607304057 64864985 625174733 61808017 722020665 104809615 705925931 462220997 858032386 421892085 873065991 377630780 951741790 326149795 1012189911 515219427 738985861 162503344 956496936 483801607 ...
result:
ok 47 numbers
Test #56:
score: 0
Accepted
time: 3ms
memory: 3680kb
input:
1 18 56676 643103744 515752576 551151908 521716154 535997776 727690514 641327737 607222733 713786525 525011530 675649988 595478221 677058905 714998119 579458243 601713733 572249823 715087637 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1 2 -1...
output:
675649988 595478221 677058905 714998119 579458243 601713733 572249823 715087637 73660228 643103744 515752576 551151908 521716154 535997776 727690514 641327737 607222733 713786525
result:
ok 18 numbers
Test #57:
score: 0
Accepted
time: 11ms
memory: 3588kb
input:
1025 20 51334 710071772 710071773 710071772 710071771 710071772 710071770 710071773 710071771 710071771 710071773 710071770 710071771 710071772 710071771 710071773 710071773 710071772 710071771 710071771 710071772 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2 -2 2...
output:
710071772 710071773 710071772 710071771 710071772 710071770 710071773 710071771 710071771 710071773 710071770 710071771 710071772 710071771 710071773 710071773 710071772 710071771 710071771 710071772 941690651 941701606 941703305 941702723 941688772 941696017 941706853 941697702 941704740 941699089...
result:
ok 99941 numbers
Test #58:
score: 0
Accepted
time: 15ms
memory: 3892kb
input:
519 67 97 887879826 885277728 889590837 888025148 883291552 882067871 884402026 888423978 883641652 884975597 884765042 885527373 886659895 884151299 889391742 888095202 885061050 882598622 884242816 883163344 884140864 881882605 881421783 883534682 888032006 882359994 881855138 889064831 883623110 ...
output:
882359994 504856 888781159 5422497 883763116 7172825 881459653 5912575 882385116 8233176 881510174 2735692 882932301 27322623 892767218 31711575 896682480 26705343 889762909 33133814 895088699 31540833 895106880 31590144 896233393 25414253 889884517 26543968 894946658 27747093 883354798 4961748 8875...
result:
ok 65250 numbers
Test #59:
score: 0
Accepted
time: 6ms
memory: 3764kb
input:
48 63 4072 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597...
output:
972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 972934597 ...
result:
ok 9861 numbers
Test #60:
score: 0
Accepted
time: 4ms
memory: 3648kb
input:
8 60 17676 476392074 476392072 476392059 476392063 476392049 476392075 476392072 476392074 476392076 476392068 476392058 476392057 476392065 476392075 476392056 476392060 476392057 476392053 476392066 476392052 476392066 476392074 476392051 476392057 476392065 476392056 476392051 476392060 476392073...
output:
476392074 476392072 476392059 476392063 476392049 476392075 476392072 476392074 476392076 476392068 476392058 476392057 476392065 476392075 476392056 476392060 476392057 476392053 476392066 476392052 476392066 476392074 476392051 476392057 476392065 476392056 476392051 476392060 476392073 476392058 ...
result:
ok 2153 numbers
Test #61:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
1 83 55408 83580955 93559457 76888293 94101958 85576964 90530156 87023560 83961707 80486855 87143956 91029140 93718546 87300896 80962899 90934313 81623396 92710338 89913580 85624182 78886987 76506697 88551342 95697830 94678979 91317426 86388299 89373594 87903670 91197505 92824479 78580323 95114289 8...
output:
88968014 78153391 88902809 96208906 82168514 83683079 79375879 95523350 79124232 88298010 84067511 76079833 80720559 89706296 93489459 93346823 83580955 93559457 76888293 94101958 85576964 90530156 87023560 83961707 80486855 87143956 91029140 93718546 87300896 80962899 90934313 81623396 92710338 899...
result:
ok 83 numbers
Test #62:
score: 0
Accepted
time: 3ms
memory: 3620kb
input:
1 71 77526 33683274 33682108 33680895 33682437 33680007 33683360 33683622 33680267 33680329 33679903 33679380 33683389 33683711 33683870 33679987 33683523 33680300 33680570 33680927 33680674 33679659 33682623 33683961 33681674 33680329 33680402 33683052 33681424 33680640 33682199 33680323 33683351 3...
output:
33683274 33682108 33680895 33682437 33680007 33683360 33683622 33680267 33680329 33679903 33679380 33683389 33683711 33683870 33679987 33683523 33680300 33680570 33680927 33680674 33679659 33682623 33683961 33681674 33680329 33680402 33683052 33681424 33680640 33682199 33680323 33683351 33681610 336...
result:
ok 71 numbers
Test #63:
score: 0
Accepted
time: 2ms
memory: 3792kb
input:
1 186 50066 481627356 481707600 481704526 481658748 481683572 481769185 482051373 482348379 481613124 482018271 482624530 482251636 481516704 481362696 481991376 481853651 482634620 481771263 482514541 482614505 482816575 481460743 481278535 482795666 482602423 481865562 482375054 481821368 48231697...
output:
481516704 481362696 481991376 481853651 482634620 481771263 482514541 482614505 482816575 481460743 481278535 482795666 482602423 481865562 482375054 481821368 482316973 481268472 482578009 481464439 482327738 481369358 482434617 481424422 482261937 481416201 481562708 481592233 481298412 481960731 ...
result:
ok 186 numbers
Test #64:
score: 0
Accepted
time: 14ms
memory: 3668kb
input:
116 293 50830 783499074 783498520 783497929 783499229 783498183 783498605 783499214 783498704 783499988 783499603 783497224 783498849 783499909 783499718 783497821 783499719 783496860 783499756 783499851 783499442 783499410 783497955 783496822 783497454 783498425 783497978 783497408 783499512 783497...
output:
783499694 783500129 783498110 783499028 783499058 783498980 783500140 783498707 783497257 783498855 783498839 783497801 783497349 783497037 783497324 783496971 783497417 783499181 783499591 783497654 783499879 783498856 783497178 783499769 783499706 783496756 783497484 783497730 783497717 783498098 ...
result:
ok 99972 numbers
Test #65:
score: 0
Accepted
time: 19ms
memory: 3616kb
input:
95 758 237 175038088 175038089 175038090 175038088 175038087 175038088 175038090 175038088 175038090 175038090 175038089 175038088 175038088 175038090 175038087 175038089 175038090 175038087 175038089 175038090 175038088 175038090 175038087 175038090 175038088 175038090 175038090 175038087 175038090...
output:
175038090 13 175038087 0 175038089 1 175038089 14 175038086 14 175038087 14 175038089 14 175038089 14 175038086 15 175038086 14 175038087 13 175038084 12 175038086 14 175038089 3 175038090 3 175038091 1 175038089 3 175038091 3 175038089 1 175038089 14 175038084 3 175038091 1 175038091 1 175038091 12...
result:
ok 94895 numbers
Test #66:
score: 0
Accepted
time: 7ms
memory: 3676kb
input:
6 505 23940 720911027 720911029 720911023 720911035 720910999 720911022 720911020 720911001 720911019 720911032 720911001 720911018 720911028 720911003 720911023 720911023 720911000 720911012 720911012 720911021 720911000 720911004 720911006 720911024 720911010 720910998 720911031 720911009 72091102...
output:
720911027 720911029 720911023 720911035 720910999 720911022 720911020 720911001 720911019 720911032 720911001 720911018 720911028 720911003 720911023 720911023 720911000 720911012 720911012 720911021 720911000 720911004 720911006 720911024 720911010 720910998 720911031 720911009 720911024 720911024 ...
result:
ok 15045 numbers
Test #67:
score: 0
Accepted
time: 3ms
memory: 3748kb
input:
2 2149 18179 588869246 585897654 589432575 593460661 585522607 590264458 592988688 595390995 592935727 587592881 590850336 595676743 586268401 595670886 597257825 596057845 584809045 590053203 598047827 592565333 585371630 597822317 584583446 594599716 594761136 593127694 595039517 591072030 5849602...
output:
585152343 28139449 582724415 6549354 602755515 16556346 570691326 15187633 599613452 11674524 574621574 18842990 580526513 7524406 578884704 26420428 593890860 29252159 582921847 18364453 573468777 22197590 598307165 9181299 576721679 8675719 575755054 19212925 581579677 29397538 591173263 4127100 5...
result:
ok 4565 numbers
Test #68:
score: 0
Accepted
time: 6ms
memory: 3756kb
input:
1 737 99848 909433004 909211298 910635227 912009263 910194474 913860824 913919811 909993460 913677138 912127300 909206432 913693002 913594387 912775444 909877614 910592603 912018635 911590102 911267509 914022901 909880266 914341495 912185689 909423477 913210782 912241588 911526384 911703601 91025997...
output:
912714396 911513248 913638020 913367051 913035422 910341177 911745883 909921547 910590273 913221091 912326677 912929602 909087882 909418655 911246576 912018428 913834965 913557238 910112420 910787454 911236836 913499084 913627349 911940026 912370132 910406828 910800999 911101390 912065569 912839810 ...
result:
ok 737 numbers
Test #69:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 572 70540 689741938 689741938 689741938 689741938 689741938 689741939 689741938 689741938 689741939 689741939 689741938 689741939 689741938 689741938 689741938 689741939 689741938 689741938 689741939 689741938 689741939 689741938 689741938 689741939 689741939 689741939 689741938 689741939 68974193...
output:
689741938 689741938 689741938 689741938 689741938 689741939 689741938 689741938 689741939 689741939 689741938 689741939 689741938 689741938 689741938 689741939 689741938 689741938 689741939 689741938 689741939 689741938 689741938 689741939 689741939 689741939 689741938 689741939 689741939 689741939 ...
result:
ok 572 numbers
Test #70:
score: 0
Accepted
time: 4ms
memory: 3640kb
input:
1 2177 60524 899643756 899627428 899635792 899633903 899630634 899626280 899622209 899626962 899629771 899630763 899637006 899638999 899633584 899630442 899641430 899625760 899641179 899635123 899635322 899623570 899625362 899639810 899629731 899634064 899633259 899625258 899628898 899634865 8996360...
output:
899630260 899641586 899632818 899630062 899623817 899637466 899627970 899641979 899627704 899629628 899640170 899627291 899636629 899634954 899628581 899638444 899623673 899621615 899632617 899628078 899627969 899624623 899639728 899628332 899630521 899631089 899621295 899646742 899626869 899629098 ...
result:
ok 2177 numbers
Test #71:
score: 0
Accepted
time: 12ms
memory: 3676kb
input:
10 3293 88254 775768618 775768619 775768617 775768618 775768619 775768619 775768618 775768618 775768619 775768617 775768619 775768618 775768618 775768617 775768619 775768618 775768617 775768618 775768618 775768619 775768619 775768618 775768619 775768618 775768617 775768619 775768619 775768617 775768...
output:
775768618 775768619 775768617 775768618 775768619 775768619 775768618 775768618 775768619 775768617 775768619 775768618 775768618 775768617 775768619 775768618 775768617 775768618 775768618 775768619 775768619 775768618 775768619 775768618 775768617 775768619 775768619 775768617 775768617 775768618 ...
result:
ok 98386 numbers
Test #72:
score: 0
Accepted
time: 15ms
memory: 4208kb
input:
9 15732 47 250214096 250214102 250214097 250214091 250214099 250214106 250214101 250214097 250214092 250214095 250214099 250214090 250214088 250214101 250214100 250214088 250214090 250214102 250214099 250214098 250214097 250214093 250214093 250214102 250214094 250214087 250214092 250214088 250214092...
output:
250214096 10 22 250214086 16 250214081 10 250214105 3 250214102 7 250214091 4 250214103 29 250214101 0 250214100 28 250214102 0 250214099 1 250214096 29 250214096 6 250214088 15 250214083 11 250214087 18 250214091 18 250214084 8 250214097 24 250214101 1 250214090 31 250214100 2 250214099 5 250214109...
result:
ok 96209 numbers
Test #73:
score: 0
Accepted
time: 13ms
memory: 3920kb
input:
3 40584 52 647394595 647394596 647394596 647394595 647394596 647394595 647394596 647394595 647394595 647394595 647394595 647394595 647394596 647394595 647394595 647394595 647394595 647394596 647394596 647394595 647394596 647394595 647394596 647394596 647394596 647394595 647394595 647394595 647394595...
output:
647394596 647394595 647394596 647394596 647394596 647394596 647394596 647394596 647394596 647394596 647394596 647394595 647394595 647394595 647394596 647394596 647394596 647394596 647394595 647394595 647394595 647394596 647394595 647394595 647394595 7 647394595 647394596 647394596 647394595 64739459...
result:
ok 95615 numbers
Test #74:
score: 0
Accepted
time: 9ms
memory: 3764kb
input:
5 33196 131 121183661 121183699 121183744 121183668 121183602 121183514 121183731 121183739 121183537 121183683 121183575 121183539 121183577 121183596 121183539 121183519 121183770 121183666 121183745 121183549 121183634 121183487 121183637 121183651 121183673 121183755 121183655 121183581 12118368...
output:
121183661 126 121183870 970 121183928 930 121183825 938 121183899 856 121183759 828 121183845 777 121183802 805 121183551 141 121183884 945 121183779 732 121184073 746 121184083 344 121183487 418 121183339 457 121183348 615 121184068 957 121183986 921 121183914 939 121183747 870 121183584 174 121183...
result:
ok 61359 numbers
Test #75:
score: 0
Accepted
time: 9ms
memory: 4068kb
input:
3 41188 564 688189462 686618380 685212349 688477231 678932929 668443155 670312744 677368964 682932619 674759592 684717094 670750110 689418202 682139534 675808745 668749760 681119866 674473991 683685175 674197032 671164660 681096294 682692833 673708009 669765258 685592615 667643813 688465497 68904750...
output:
685593447 680880529 685539821 669819029 666943453 671777286 684679621 678427334 676070839 677388615 682957146 683446386 667045244 671848448 678935790 676885726 670128721 676966021 676999936 672091537 672474631 677751528 671527147 679339206 676479234 681809574 672307517 687599356 678442187 667899987 ...
result:
ok 84869 numbers
Test #76:
score: 0
Accepted
time: 15ms
memory: 3888kb
input:
7 22736 2800 482874466 483217003 482173548 482709985 482356070 482716191 483228046 482590332 482226460 482449074 482237217 482305484 482178380 482642912 482080453 482473082 483209197 483252141 483261601 482667569 482547704 482727878 482926687 482303233 482535263 482698426 483232325 482980665 4831292...
output:
482326111 482194480 482553644 482088432 482506719 482280408 482996758 482870066 482268036 482508721 482979037 482255670 482835330 482545241 482922733 482295613 483298433 482395149 482755480 482995533 482121974 482970832 483265514 483140123 482455745 483296186 482464426 482452832 483145768 482839400 ...
result:
ok 75474 numbers
Test #77:
score: 0
Accepted
time: 3ms
memory: 3868kb
input:
2 34268 5704 285952347 285952346 285952324 285952275 285952352 285952270 285952348 285952359 285952340 285952216 285952366 285952262 285952363 285952230 285952287 285952262 285952275 285952223 285952353 285952266 285952304 285952321 285952282 285952336 285952235 285952267 285952339 285952339 2859523...
output:
285952246 285952343 285952263 285952306 285952266 285952252 285952352 285952310 285952286 285952321 285952245 285952272 285952265 285952247 285952224 285952259 285952358 285952218 285952366 285952341 285952332 285952275 285952363 285952289 285952225 285952319 285952281 285952357 285952259 285952255 ...
result:
ok 78042 numbers
Test #78:
score: 0
Accepted
time: 16ms
memory: 4036kb
input:
2 30898 49760 502494950 339153992 304725770 550729047 494769631 402412812 280451564 405044391 166574668 250549294 575588217 375342507 564744962 407656724 427677673 299650051 212099438 149495910 299036320 550561246 554424917 316195434 292371752 329041504 327047059 361356675 423740892 236053307 342066...
output:
406204295 359934879 477068921 396443923 553064311 262179789 525919120 290676352 507826715 285957582 203942463 178691976 555465111 567062194 273040402 345928252 185242329 365660505 163785640 386507966 197517928 329651309 192603589 259413609 531653660 251583125 191209499 267156964 339449901 262706494 ...
result:
ok 60873 numbers
Test #79:
score: 0
Accepted
time: 2ms
memory: 3724kb
input:
1 43662 26757 650510335 832228462 915150385 901878232 919477352 978923347 962272290 720404800 950663570 889237211 847886385 967855250 905798727 879628281 682681487 943551489 594687760 861790487 732030430 754282387 729409880 898000822 681423437 798328536 841327719 608107150 787071219 806164554 759741...
output:
80428862 571392193 328469679 622336670 282692422 639080238 474921085 622175327 266675487 927784077 38564438 818268775 158697205 1015603890 149351755 542509508 409697733 991513301 138718146 602230300 252715407 610912471 300920673 963779884 384277492 616710035 16565533 773129710 504896932 860923898 94...
result:
ok 43662 numbers
Test #80:
score: 0
Accepted
time: 4ms
memory: 3636kb
input:
1 5066 84789 187882047 113962689 192554055 213411388 167968133 171396314 68652589 120841711 176757873 205894138 123916430 136931360 127742547 50685027 213183695 202150072 70461673 191952645 109955396 216001061 59311810 131550264 85836716 127795991 181537568 184283782 56987098 206843726 178189209 158...
output:
108980644 174698296 214583864 73600330 232851116 176231754 154786634 86083879 238153607 44261424 113815288 87334060 235142331 147282028 246436003 219648857 172331081 165750311 39445037 112802954 250845231 89993668 212445189 16114871 115841264 49937147 106367579 63178181 74590074 6160988 135154672 40...
result:
ok 5066 numbers
Test #81:
score: 0
Accepted
time: 6ms
memory: 3832kb
input:
1 5471 67365 551842864 551868607 551847309 551849500 551893365 551826081 551827376 551868199 551894087 551874716 551896508 551854047 551847215 551852583 551894672 551855736 551859031 551866049 551863487 551877868 551874854 551889867 551852714 551868621 551827331 551870752 551871976 551880368 5518713...
output:
551858818 106029 551849875 107460 551907005 86075 551932878 66278 551816794 24694 551817974 17506 551816852 85767 551943045 73995 551925272 76999 551917261 117074 551873215 38870 551856022 105338 551940530 69252 551941896 102960 551888791 8083 551876561 40560 551816347 17635 551822364 56857 55187300...
result:
ok 5471 numbers
Test #82:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
1 9962 52156 964784604 964784604 964784607 964784604 964784606 964784603 964784603 964784606 964784603 964784607 964784607 964784606 964784603 964784606 964784607 964784607 964784607 964784605 964784603 964784606 964784605 964784606 964784605 964784606 964784604 964784604 964784603 964784605 9647846...
output:
964784604 964784604 964784607 964784604 964784606 964784603 964784603 964784606 964784603 964784607 964784607 964784606 964784603 964784606 964784607 964784607 964784607 964784605 964784603 964784606 964784605 964784606 964784605 964784606 964784604 964784604 964784603 964784605 964784603 964784606 ...
result:
ok 9962 numbers
Test #83:
score: 0
Accepted
time: 7ms
memory: 3876kb
input:
1 25366 83350 441613302 441641126 441657458 441637128 441636891 441670814 441623878 441606890 441632529 441604449 441661002 441638297 441658349 441657226 441647663 441618578 441611702 441662662 441633623 441629577 441668063 441612973 441663745 441667417 441669828 441612825 441618542 441651268 441683...
output:
441610052 441596941 441626685 441651408 441602800 441624726 441683554 441667001 441609764 441617362 441687725 441668970 441645945 441639887 441684978 441608394 441671160 441657445 441637232 441631923 441658362 441660526 441604949 441637573 441637024 441654113 441597400 441601354 441663745 441656896 ...
result:
ok 25366 numbers
Test #84:
score: 0
Accepted
time: 7ms
memory: 3956kb
input:
1 16439 82407 616743409 616667615 616799716 616669710 616873688 617067210 616828663 616901305 616773100 616606246 616929915 616612652 616687135 616743335 616954759 616849401 616644165 616877511 616690813 616606871 616878800 616682986 617015637 616686809 616911282 616998899 617019113 616706490 616634...
output:
616742231 387825 616633275 387488 616850021 8125324 616441221 130856 616773318 51080 616610246 432199 616789198 13540 616790456 393343 616928510 517261 616766897 182721 616716020 114156 616444494 8364184 616386022 7923498 616376871 8231184 616484020 8255314 616527845 7948116 616299718 8311856 616518...
result:
ok 16439 numbers
Test #85:
score: 0
Accepted
time: 12ms
memory: 4592kb
input:
2 24850 83382 325628157 324189073 327201394 328965419 323043987 328517535 324900255 327406935 323634377 326821113 323714673 326621347 323812426 324007927 324461169 323618270 326887775 326754574 325559284 323689746 321788611 323313054 326574628 327619360 324246166 323925197 325213926 323084694 327396...
output:
325628157 324189073 327201394 328965419 323043987 328517535 324900255 327406935 323634377 326821113 323714673 326621347 323812426 324007927 324461169 323618270 326887775 326754574 325559284 323689746 321788611 323313054 326574628 327619360 324246166 323925197 325213926 323084694 327396268 321614732 ...
result:
ok 90900 numbers
Test #86:
score: 0
Accepted
time: 10ms
memory: 3560kb
input:
1 93811 6 423131230 423131234 423131310 423131320 423131253 423131278 423131306 423131263 423131242 423131368 423131346 423131202 423131233 423131275 423131274 423131328 423131261 423131370 423131306 423131295 423131326 423131203 423131242 423131329 423131355 423131215 423131211 423131292 423131304 ...
output:
423131230 423131234 423131310 423131320 423131253 423131278 423131306 423131263 423131242 423131368 423131346 423131202 423131233 423131275 423131274 423131328 423131261 423131370 423131306 423131295 423131326 423131203 423131242 423131329 423131355 423131215 423131211 423131292 423131304 423131376 ...
result:
ok 93811 numbers
Test #87:
score: 0
Accepted
time: 11ms
memory: 4688kb
input:
1 91225 48 218778083 217709987 221088021 216352499 215795901 215322560 212278923 213005986 220615407 220838681 220825456 213951795 219255056 212232510 213591709 214428222 213431909 218396330 216076897 218278638 218607603 215900496 215937209 219678466 221705369 221598760 217976063 212279435 218767737...
output:
221705369 221598760 217976063 212279435 218767737 220093734 219705696 213366855 220128486 215583225 218864454 212981549 216921155 217488421 216419994 219125591 214573774 212400143 220711632 213648428 214739737 213337546 219181279 212351121 218522640 217422327 218099042 218137864 219211606 212212743 ...
result:
ok 91225 numbers
Test #88:
score: 0
Accepted
time: 10ms
memory: 3840kb
input:
1 59807 13 154507863 163843029 152701318 115686709 107983079 146958210 179812814 177307769 173079693 105645778 170553153 163798673 147320447 139922698 99058663 146690162 133485630 173397823 99515183 179982981 148758658 178044620 121012686 135737856 181005276 132178554 171457297 171900441 109306417 1...
output:
154598490 222733 164064728 14509150 104356203 5761420 144018958 35796928 145995705 48450356 78597606 243606183 122059830 260149833 131505987 36773028 177163478 226203880 120475607 46150904 142239357 10979071 171653171 219003389 85625853 265510945 137593435 34322762 137709395 246850914 154297851 6565...
result:
ok 59807 numbers
Test #89:
score: 0
Accepted
time: 8ms
memory: 4424kb
input:
1 73725 97 202766518 202766506 202766506 202766504 202766501 202766514 202766501 202766518 202766516 202766501 202766504 202766507 202766511 202766506 202766510 202766502 202766513 202766513 202766509 202766510 202766517 202766503 202766506 202766502 202766511 202766515 202766503 202766515 202766517...
output:
202766504 7 202766504 6 202766499 9 202766527 9 202766498 12 202766525 22 202766522 11 202766523 21 202766497 10 202766498 17 202766526 8 202766503 18 202766523 11 202766508 26 202766508 0 202766503 14 202766500 15 202766524 27 202766510 29 202766513 25 202766515 31 202766513 20 202766503 0 20276650...
result:
ok 73725 numbers
Test #90:
score: 0
Accepted
time: 7ms
memory: 3752kb
input:
1 59916 86 258902580 265912033 259006493 259949188 266989413 262665140 263999881 258962452 259715016 258810336 260347344 265433508 266143824 260652601 262773397 263339737 260684110 261075423 266108013 266252875 258528324 262419616 265558275 267516360 263636895 266410915 262156823 265522703 267824481...
output:
258902580 265912033 259006493 259949188 266989413 262665140 263999881 258962452 259715016 258810336 260347344 265433508 266143824 260652601 262773397 263339737 260684110 261075423 266108013 266252875 258528324 262419616 265558275 267516360 263636895 266410915 262156823 265522703 267824481 263577650 ...
result:
ok 59916 numbers
Test #91:
score: 0
Accepted
time: 0ms
memory: 4196kb
input:
1 51610 220 957804096 957804092 957804103 957804093 957804092 957804101 957804094 957804098 957804097 957804101 957804093 957804100 957804100 957804095 957804100 957804100 957804103 957804098 957804093 957804095 957804098 957804092 957804098 957804096 957804093 957804092 957804095 957804094 95780410...
output:
957804092 957804103 957804093 957804092 957804101 957804094 957804098 957804097 957804101 957804093 957804100 957804100 957804095 957804100 957804100 957804103 957804098 957804093 957804095 957804098 957804092 957804098 957804096 957804093 957804092 957804095 957804094 957804100 957804092 957804096 ...
result:
ok 51610 numbers
Test #92:
score: 0
Accepted
time: 15ms
memory: 4688kb
input:
1 95076 491 782464693 782464636 782464670 782464685 782464669 782464659 782464663 782464669 782464624 782464691 782464669 782464674 782464630 782464674 782464671 782464647 782464690 782464642 782464643 782464647 782464650 782464629 782464693 782464628 782464638 782464655 782464680 782464635 78246463...
output:
782464684 36 782464604 206 782464580 49 782464580 51 782464688 55 782464672 61 782464670 48 782464645 250 782464587 195 782464692 36 782464691 22 782464608 16 782464622 193 782464578 231 782464576 242 782464630 242 782464636 224 782464614 251 782464649 248 782464649 242 782464620 230 782464664 228 7...
result:
ok 95076 numbers
Test #93:
score: 0
Accepted
time: 11ms
memory: 4060kb
input:
1 67714 169 236053969 235948563 236020603 235728852 235711122 236243231 236113694 236288839 235916948 236194555 236201142 235652882 235963128 235638826 235995041 235724153 235874174 235868755 236245660 235584527 236035790 235758759 235880552 236263049 235950205 235821579 235839931 236075938 23626082...
output:
236053969 110530 235982009 1844077 235964927 278752 236359678 259257 235682349 1585366 235672672 512882 236409226 1884576 235683329 58232 235914246 54869 236192969 2013382 235873800 148143 235733703 1578062 235422771 400952 235454339 1737761 235899389 101169 236302792 403833 235619682 30609 23601903...
result:
ok 67714 numbers
Test #94:
score: 0
Accepted
time: 13ms
memory: 4428kb
input:
1 78695 620 981785717 909595683 933950012 984375918 972558151 932053320 953565678 981537105 973597553 853273242 930047270 890185031 845988136 850800545 930101484 847930229 975800794 910818875 921180951 885836553 883678848 932029334 941594797 908546889 923209007 905998280 969775887 882321270 95218538...
output:
862259280 977947440 974026067 903739541 864789311 858289378 841004733 892604600 942941395 842789413 935968092 844284318 843871689 939016919 981359313 985794853 838054490 859834272 886666787 968811284 848735558 989992781 894474517 945718226 945226244 988625381 869510386 993888415 929686724 898633959 ...
result:
ok 78695 numbers
Test #95:
score: 0
Accepted
time: 10ms
memory: 4076kb
input:
1 59198 949 548257496 548257498 548257498 548257495 548257496 548257498 548257494 548257497 548257497 548257497 548257495 548257499 548257496 548257497 548257499 548257497 548257498 548257498 548257497 548257499 548257496 548257496 548257496 548257495 548257495 548257499 548257498 548257495 54825749...
output:
548257499 13 548257495 13 548257494 15 548257495 1 548257496 2 548257496 1 548257494 0 548257499 3 548257497 14 548257492 14 548257494 0 548257497 14 548257493 2 548257498 2 548257498 2 548257496 0 548257496 1 548257498 2 548257499 13 548257495 13 548257499 12 548257498 0 548257497 15 548257493 14 5...
result:
ok 59198 numbers
Test #96:
score: 0
Accepted
time: 3ms
memory: 3620kb
input:
1 66130 516 512114263 512114249 512114342 512113853 512114126 512113799 512113967 512113878 512113758 512113987 512113755 512114059 512114151 512114130 512113786 512114346 512113759 512113920 512114019 512114077 512114218 512114463 512113801 512113832 512113958 512114047 512113757 512113998 51211425...
output:
512114263 512114249 512114342 512113853 512114126 512113799 512113967 512113878 512113758 512113987 512113755 512114059 512114151 512114130 512113786 512114346 512113759 512113920 512114019 512114077 512114218 512114463 512113801 512113832 512113958 512114047 512113757 512113998 512114255 512114008 ...
result:
ok 66130 numbers
Test #97:
score: 0
Accepted
time: 10ms
memory: 4104kb
input:
1 58498 2549 724839850 769487688 695996615 766254942 761840199 813057660 815402921 807063703 772584312 747600350 735561342 731441090 750767623 765020413 701532063 697752592 732980321 804294079 801261407 771677449 733565109 711571446 804596690 706162104 765345188 779635865 716290420 778368332 7465625...
output:
756751852 104861160 677370809 24715821 713103816 121543042 707932031 121686566 764375771 76358861 695695650 108138034 922554081 407788702 881274994 405821456 858649644 406700698 938246067 409566748 927258543 495053316 909499180 467801702 879583331 490088748 884937462 462910416 914838495 511621070 78...
result:
ok 58498 numbers
Test #98:
score: 0
Accepted
time: 11ms
memory: 3828kb
input:
1 64339 1207 858838467 854714489 807987485 915636849 861504226 901094592 772000471 772823744 910158148 866027683 780552360 846447970 778143164 795553381 911506859 840849589 813586785 886573871 782764865 819944554 783054316 787856251 844536799 871404199 786687084 762479113 909428397 772082357 7932729...
output:
701461009 452962258 672026539 405186230 783623367 502048293 676936421 106623026 675982066 511001526 770427669 57508797 824067807 528466787 806677766 104894637 878626840 69243257 821598806 508596503 781176189 2341009 785777642 478189621 795871890 26472190 752970999 450210394 886087919 462996122 89690...
result:
ok 64339 numbers
Test #99:
score: 0
Accepted
time: 6ms
memory: 4300kb
input:
1 59363 6716 378630938 370395963 378721845 378651848 370707042 373181330 374837969 379825604 374547840 377687230 379321702 372960236 373017121 375939298 375230881 378054518 376199169 380909892 372841140 369403960 374527162 376255619 375314543 369563166 371558853 374343280 373788858 370148238 3761042...
output:
380192788 376205157 380209372 378665886 381133405 379646520 378718161 369803556 369322851 374359106 378845443 379580596 380259003 377861727 381265410 380527200 380058251 375209215 371761491 372270564 373160752 377392849 370225932 379270828 371390273 377678143 374958195 371290709 377224213 370844465 ...
result:
ok 59363 numbers
Test #100:
score: 0
Accepted
time: 13ms
memory: 4468kb
input:
1 76870 9576 654361430 654337742 654349793 654344751 654349189 654340315 654341393 654337826 654356934 654339258 654350563 654353791 654338513 654343999 654355494 654337013 654354453 654360179 654341429 654350767 654343327 654346944 654341225 654348151 654356908 654338884 654350523 654358337 6543389...
output:
654344005 654354411 654353531 654341842 654354678 654357427 654336779 654340956 654337061 654340344 654347695 654335475 654347375 654336874 654340043 654354126 654334583 654341752 654338049 654359418 654336628 654338054 654334678 654357348 654362628 654350745 654355575 654358797 654362636 654356589 ...
result:
ok 76870 numbers
Test #101:
score: 0
Accepted
time: 4ms
memory: 4040kb
input:
1 55936 9449 777052736 777799554 774326774 776490458 776369405 775035636 773711547 777515597 775741721 775194543 774786430 774908515 772944961 773885490 776578745 774182653 774962996 777246350 774021317 776993812 777238226 775638890 773685949 776332676 773279502 775212021 773037477 775052017 7749365...
output:
777052736 828866 774630452 6529518 774231315 1560551 772417884 6150929 778123784 5619111 779874521 4971194 777645819 7954633 774948464 1429645 774188985 7797047 777279986 1811942 776475444 7560286 779017955 2833255 775713897 573340 773530169 2717896 773451645 2600455 773301403 853726 775891278 19011...
result:
ok 55936 numbers
Test #102:
score: 0
Accepted
time: 16ms
memory: 4632kb
input:
1 95350 14705 634602272 634601521 634600760 634598971 634602769 634601047 634602876 634596812 634596541 634597575 634598045 634600527 634602021 634596790 634599976 634600786 634599296 634597003 634601436 634602294 634598713 634597378 634596943 634602321 634599598 634595850 634602218 634599437 634599...
output:
634601904 28527 634608234 28894 634609043 7480 634609123 27599 634602583 30594 634603057 31903 634600740 31172 634602869 32541 634603269 31138 634606445 26193 634595248 7685 634608286 30015 634609153 28938 634609532 27039 634596629 6760 634595358 4225 634596343 6530 634608934 28302 634596171 28164 6...
result:
ok 95350 numbers
Test #103:
score: 0
Accepted
time: 18ms
memory: 5064kb
input:
1 98736 17961 41617148 41643760 41667547 41618373 41621924 41599009 41612156 41662026 41675343 41601009 41650824 41679769 41688509 41675308 41573357 41584959 41586068 41598944 41567001 41624740 41675238 41685166 41635185 41616790 41632737 41579519 41689795 41633725 41692093 41584845 41578195 4158531...
output:
41663368 55399 41677482 518930 41708993 462426 41717985 453374 41694836 447260 41789876 513493 41775184 502462 41767375 86561 41668141 105437 41801897 466826 41630036 466279 41766720 518960 41776867 435977 41681383 419940 41789342 396186 41560883 57263 41672355 42719 41615508 464011 41735220 488516 ...
result:
ok 98736 numbers
Test #104:
score: 0
Accepted
time: 9ms
memory: 3988kb
input:
1 51373 16279 709527489 709527322 709527395 709527408 709527335 709527365 709527422 709527378 709527487 709527479 709527366 709527323 709527372 709527412 709527368 709527432 709527413 709527331 709527381 709527403 709527365 709527361 709527441 709527417 709527369 709527421 709527333 709527453 709527...
output:
709527337 232 709527538 145 709527521 198 709527427 253 709527471 16 709527463 225 709527546 182 709527490 138 709527298 119 709527380 1 709527402 47 709527406 255 709527430 207 709527474 151 709527306 127 709527318 139 709527480 56 709527399 205 709527440 51 709527321 136 709527466 135 709527518 24...
result:
ok 51373 numbers
Test #105:
score: 0
Accepted
time: 17ms
memory: 4480kb
input:
1 60002 69170 674464475 672696661 657143099 653247861 656993335 676517640 668714264 654116721 658302031 671041791 668890425 653077193 675008646 651008125 672402761 669223841 664762083 649721684 677825135 671050018 665007504 650737345 654093068 651791752 665738984 673485765 653543136 671282891 649582...
output:
674777035 669892434 650490173 658972674 657005030 671604378 671569286 650355438 664934159 652344994 670004255 651299637 677978289 662887368 676692364 670006577 672536885 659865661 671128819 651133998 656367673 675182368 672424935 669654293 676146038 674123806 653083625 661718753 659458486 666091073 ...
result:
ok 60002 numbers
Test #106:
score: 0
Accepted
time: 8ms
memory: 3544kb
input:
1 54266 84816 629959921 629651827 630029728 629835513 629943060 629937517 629989602 629793489 629829424 630196941 629653049 629865810 630134928 629742283 630008500 629763724 629884853 629676447 629677208 629748695 629736101 630162341 629747433 630193923 629798318 629838546 629729687 630046233 629766...
output:
629959921 629651827 630029728 629835513 629943060 629937517 629989602 629793489 629829424 630196941 629653049 629865810 630134928 629742283 630008500 629763724 629884853 629676447 629677208 629748695 629736101 630162341 629747433 630193923 629798318 629838546 629729687 630046233 629766605 629947096 ...
result:
ok 54266 numbers