QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#400005 | #1429. Hit | vme50 | AC ✓ | 84ms | 22560kb | C++17 | 1.4kb | 2024-04-26 20:56:33 | 2024-04-26 20:56:33 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
const int N=2e5+5,INF=1e9;
int T,n,n1,tp,ans,l[N],r[N],ds[N],o[N],o1[N],st[N],z[N][18];
int id(int x) {return upper_bound(ds+1,ds+n1+1,x)-ds-1;}
int get(int x,int y)
{
int res=0;
for(int i=17;i>=0;--i) if(z[x][i]>=y)
x=z[x][i],res+=1<<i;return res;
}
bool chk(int x)
{
tp=0;st[++tp]=0;
for(int i=1,t;i<=n1;++i)
{
t=lower_bound(st+1,st+tp+1,o[i])-st;
if(t>tp) return 0;z[i][0]=st[t];
for(int j=1;j<=17;++j) z[i][j]=z[z[i][j-1]][j-1];
if(get(i,o1[i])<x) st[++tp]=i;
}return 1;
}
void slv()
{
scanf("%d",&n);n1=ans=0;
for(int i=1;i<=n;++i)
scanf("%d %d",&l[i],&r[i]),ds[++n1]=l[i],ds[++n1]=r[i]+1;
sort(ds+1,ds+n1+1);n1=unique(ds+1,ds+n1+1)-ds-1;
fill(o,o+n1+1,0);fill(o1,o1+n1+1,INF);
for(int i=1;i<=n;++i) l[i]=id(l[i]),r[i]=id(r[i]),
o[r[i]+1]=max(o[r[i]+1],l[i]),o1[r[i]]=min(o1[r[i]],l[i]);
for(int i=1;i<=n1;++i) o[i]=max(o[i],o[i-1]);
for(int i=n1-1;i;--i) o1[i]=min(o1[i],o1[i+1]);
for(int i=1;i<=n1;++i)
{
z[i][0]=o[i];
for(int j=1;j<=17;++j) z[i][j]=z[z[i][j-1]][j-1];
}for(int i=1;i<=n;++i) ans=max(ans,get(r[i]+1,l[i]));
if(!chk(ans)) chk(++ans);
tp=0;for(int i=z[n1][0];i;i=z[i][0]) st[++tp]=ds[i];
printf("%d %d ",ans,tp);
for(int i=tp;i;--i) printf("%d%c",st[i],i>1?' ':'\n');
}
int main()
{
scanf("%d",&T);
while(T--) slv();return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 8048kb
input:
4 4 0 1 2 3 4 5 3 5 5 0 70 0 10 20 30 40 50 60 70 8 -1 7 -2 -1 -9 -7 -8 9 -9 -7 -2 4 -7 4 3 9 5 0 1 0 2 2 3 3 5 4 5
output:
1 3 0 2 4 4 4 0 20 40 60 2 3 -9 -2 3 2 3 0 2 4
result:
ok ok, tt = 4
Test #2:
score: 0
Accepted
time: 2ms
memory: 9992kb
input:
1 1 0 1
output:
1 1 0
result:
ok ok, tt = 1
Test #3:
score: 0
Accepted
time: 0ms
memory: 10088kb
input:
3 1 -1000000000 1000000000 1 -1000000000 -999999999 1 999999999 1000000000
output:
1 1 -1000000000 1 1 -1000000000 1 1 999999999
result:
ok ok, tt = 3
Test #4:
score: 0
Accepted
time: 50ms
memory: 7908kb
input:
100000 1 -755794993 -744839313 1 638832683 645984490 1 333736843 342792055 1 -412526164 -400411740 1 193156287 205856204 1 266085745 268256106 1 789502967 806620391 1 85305828 86560242 1 -655573585 -644094805 1 517734490 518776542 1 -966001098 -958188900 1 -780504491 -762439365 1 -896592598 -8804653...
output:
1 1 -755794993 1 1 638832683 1 1 333736843 1 1 -412526164 1 1 193156287 1 1 266085745 1 1 789502967 1 1 85305828 1 1 -655573585 1 1 517734490 1 1 -966001098 1 1 -780504491 1 1 -896592598 1 1 -557316732 1 1 664292314 1 1 -629158110 1 1 -202815742 1 1 -640869188 1 1 -229963066 1 1 -785668909 1 1 48944...
result:
ok ok, tt = 100000
Test #5:
score: 0
Accepted
time: 41ms
memory: 10032kb
input:
100000 1 -392749917 -319069731 1 761382535 804248178 1 -858764838 -819815600 1 -87503649 -20800126 1 -69252318 64456029 1 -848092983 -666742404 1 -659061625 -620054847 1 -982031817 -883932130 1 -47104919 97672798 1 -494834028 -456770262 1 496748206 692802903 1 572757539 669651153 1 -484466016 -41314...
output:
1 1 -392749917 1 1 761382535 1 1 -858764838 1 1 -87503649 1 1 -69252318 1 1 -848092983 1 1 -659061625 1 1 -982031817 1 1 -47104919 1 1 -494834028 1 1 496748206 1 1 572757539 1 1 -484466016 1 1 729473771 1 1 -428804236 1 1 212864606 1 1 -381428604 1 1 813986190 1 1 -573957931 1 1 -125982928 1 1 -7723...
result:
ok ok, tt = 100000
Test #6:
score: 0
Accepted
time: 45ms
memory: 10048kb
input:
100000 1 -422738609 -95619025 1 496655203 761501973 1 -253341552 895113150 1 -213934938 560617332 1 257193179 510136024 1 -684784337 -650911183 1 -999254900 62633326 1 -627557633 641989470 1 -682383675 66116491 1 -859630523 340664034 1 -422590930 433070710 1 259879968 316877801 1 -90014752 991378355...
output:
1 1 -422738609 1 1 496655203 1 1 -253341552 1 1 -213934938 1 1 257193179 1 1 -684784337 1 1 -999254900 1 1 -627557633 1 1 -682383675 1 1 -859630523 1 1 -422590930 1 1 259879968 1 1 -90014752 1 1 -789762673 1 1 -750992244 1 1 -964513526 1 1 -723869577 1 1 44144467 1 1 -550241786 1 1 386352264 1 1 757...
result:
ok ok, tt = 100000
Test #7:
score: 0
Accepted
time: 49ms
memory: 8044kb
input:
100000 1 -146170891 -135832850 1 -758721094 -739814745 1 434418655 436843128 1 584625787 597671579 1 -54920782 -48746711 1 -890924962 -874340357 1 -955254050 -945006677 1 276114326 279390556 1 -291805472 -288200984 1 673823575 685514644 1 -43237398 -31640268 1 -239622315 -224829882 1 -596965402 -595...
output:
1 1 -146170891 1 1 -758721094 1 1 434418655 1 1 584625787 1 1 -54920782 1 1 -890924962 1 1 -955254050 1 1 276114326 1 1 -291805472 1 1 673823575 1 1 -43237398 1 1 -239622315 1 1 -596965402 1 1 -902355499 1 1 262300444 1 1 -172688572 1 1 289036433 1 1 106949065 1 1 -733199280 1 1 -146867424 1 1 95061...
result:
ok ok, tt = 100000
Test #8:
score: 0
Accepted
time: 44ms
memory: 7996kb
input:
100000 1 -938525664 -817076126 1 -932701889 -823854498 1 -198817321 -90954343 1 852989237 895167117 1 -657597128 -592296022 1 -189337058 -60845257 1 -308394755 -143079067 1 -798793040 -658589397 1 587269730 632505978 1 463959892 651681553 1 210139744 354710208 1 -738322653 -579254528 1 -473167271 -4...
output:
1 1 -938525664 1 1 -932701889 1 1 -198817321 1 1 852989237 1 1 -657597128 1 1 -189337058 1 1 -308394755 1 1 -798793040 1 1 587269730 1 1 463959892 1 1 210139744 1 1 -738322653 1 1 -473167271 1 1 -719122089 1 1 -135498368 1 1 798473093 1 1 772169233 1 1 732432771 1 1 -164220287 1 1 605378245 1 1 4418...
result:
ok ok, tt = 100000
Test #9:
score: 0
Accepted
time: 40ms
memory: 7952kb
input:
100000 1 -124550996 175843021 1 -993480749 369513273 1 -472345946 866834459 1 51146719 619481540 1 -953985291 -388861986 1 30060232 86153621 1 397966610 670657620 1 228037899 527397835 1 -328812046 777147616 1 528770087 999819348 1 -443642177 430027557 1 -985366041 937429463 1 286165886 375753871 1 ...
output:
1 1 -124550996 1 1 -993480749 1 1 -472345946 1 1 51146719 1 1 -953985291 1 1 30060232 1 1 397966610 1 1 228037899 1 1 -328812046 1 1 528770087 1 1 -443642177 1 1 -985366041 1 1 286165886 1 1 -553313072 1 1 -22755036 1 1 -586567462 1 1 384242088 1 1 59282828 1 1 -787530941 1 1 97548261 1 1 -858346451...
result:
ok ok, tt = 100000
Test #10:
score: 0
Accepted
time: 35ms
memory: 7992kb
input:
18139 4 -336270587 -330557331 -252002330 -239258910 -186846904 -186440987 848243159 868102416 3 -195461235 -180651308 -250893512 -232183484 741194405 748153230 1 -583374820 -573301094 2 -289487516 -278362438 -617984192 -600701104 3 361103576 377771047 -629713150 -625261223 760487909 765234419 2 -789...
output:
1 4 -336270587 -252002330 -186846904 848243159 1 3 -250893512 -195461235 741194405 1 1 -583374820 1 2 -617984192 -289487516 1 3 -629713150 361103576 760487909 1 2 -789944592 -103045325 1 1 756732794 1 4 -428947266 -243873198 439377407 512729535 1 3 -832490738 -677551837 366281659 1 6 -869814878 -501...
result:
ok ok, tt = 18139
Test #11:
score: 0
Accepted
time: 40ms
memory: 10028kb
input:
18100 8 598403417 795720309 -373919856 -307381953 199626892 235156246 -217973856 -203235401 516184634 548146965 556458253 612829986 -686678416 -587302321 -251190508 -105682769 6 -526414856 -462880667 -734369052 -596753646 114814523 150451126 -10532542 21149560 -892168032 -828869761 -663573167 -62124...
output:
1 6 -686678416 -373919856 -217973856 199626892 516184634 598403417 1 5 -892168032 -663573167 -526414856 -10532542 114814523 1 1 265590649 1 5 -974272520 -859851492 -694051917 -139444653 72700218 1 6 -874717487 -726871981 430693526 566260856 729647776 963371105 1 3 -812492493 -544715709 208727348 1 6...
result:
ok ok, tt = 18100
Test #12:
score: 0
Accepted
time: 35ms
memory: 9912kb
input:
18133 3 -532740766 -492922415 -745044455 -386840345 -749335013 -565459391 5 -534228433 657736275 688238957 974882583 -927059249 -173514637 -821264333 -27208503 -637987799 201098089 2 -183611012 812265988 360179783 519406660 1 363751319 483623678 5 -417328703 863569501 -593491816 -478939136 -23407126...
output:
1 2 -749335013 -532740766 1 2 -534228433 688238957 1 1 360179783 1 1 363751319 1 2 -593491816 -194800056 1 3 -958375053 -289803680 592717413 1 1 -524868351 2 4 -887619616 308683350 635083287 920526346 2 2 -466910044 175225091 1 2 -759804786 -583969466 2 2 -287026922 155525336 1 4 -939542239 -2832299...
result:
ok ok, tt = 18133
Test #13:
score: 0
Accepted
time: 34ms
memory: 7924kb
input:
10000 10 -161942485 -159394105 705139634 709295587 -483286727 -481478345 399306971 407340943 -217429921 -212103356 -12246787 21576 -125089225 -115526252 323652979 329876984 908529648 917523471 49320201 64121837 10 -744908257 -740112635 450103712 451805266 200334663 208816371 -996683991 -990727071 57...
output:
1 10 -483286727 -217429921 -161942485 -125089225 -12246787 49320201 323652979 399306971 705139634 908529648 1 10 -996683991 -977374331 -744908257 -490079770 200334663 262632577 367800386 450103712 517018119 574143543 1 10 -989074091 -912740790 -350877016 -310036497 -195634972 -78658240 9548545 16417...
result:
ok ok, tt = 10000
Test #14:
score: 0
Accepted
time: 35ms
memory: 8008kb
input:
10000 10 482432556 644827792 -702152771 -602096184 -169663783 -105112142 292039646 396589232 534340289 664863338 -422883760 -342513788 -97749687 -25660790 -390644233 -281643839 -810548734 -759031174 -673955416 -549979942 10 -119363544 6349651 122113020 133353790 -373106144 -289542973 -879113115 -689...
output:
1 7 -810548734 -673955416 -390644233 -169663783 -97749687 292039646 534340289 1 7 -879113115 -332247508 -119363544 122113020 171368080 363834577 645928414 1 6 -949574656 -467350312 -227571080 -77672650 182755372 600904961 1 6 -810552290 -664635999 -6424312 291169610 495350955 632920968 1 6 -88461131...
result:
ok ok, tt = 10000
Test #15:
score: 0
Accepted
time: 37ms
memory: 7904kb
input:
10000 10 -658814387 373850938 43747648 576461378 -431503832 324268120 -385319430 112339593 -460475672 399479363 -178690792 207687233 -474720568 -234903445 -703397684 -146305358 262963282 912360651 -424445504 486778793 10 -928391058 -102691886 -917150287 689395688 -621563113 90008077 750906563 861653...
output:
2 3 -474720568 -178690792 373850939 3 3 -621563113 373321120 750906563 5 5 -704437631 -207626584 -92577419 51605268 147962037 1 5 -974093282 -616169589 -402410184 73512281 701849626 1 3 -765811812 -453131209 273027997 2 3 -800318492 -298060006 -14999607 3 4 -940669475 -565599798 371692671 732801688 ...
result:
ok ok, tt = 10000
Test #16:
score: 0
Accepted
time: 43ms
memory: 8000kb
input:
2015 31 367803441 382779156 -163366000 -145324996 -305141801 -304156223 -425625552 -414986437 -170900678 -152771324 536906161 550613861 -688165350 -687718654 -225793776 -221963993 -331207650 -317565830 488620488 507260616 420866299 426676602 253541173 272809277 -174936617 -172183170 -715888891 -7149...
output:
1 25 -904061213 -809095636 -715888891 -688165350 -521166579 -465764431 -425625552 -413521909 -331207650 -305141801 -225793776 -174936617 -163366000 75872976 173259791 219668378 253541173 367803441 420866299 436787024 488620488 536906161 668540203 784448742 951921684 1 20 -784950550 -380289713 -17734...
result:
ok ok, tt = 2015
Test #17:
score: 0
Accepted
time: 43ms
memory: 7936kb
input:
1961 91 776129123 928989894 709599839 804296310 755486132 821491760 -416804447 -294950319 -795171418 -598953586 314046883 430976730 364193950 416986736 -338772962 -173803958 -437039989 -347296792 794012412 797301058 541168633 561063499 385768025 538260546 -636369000 -528032305 -518735967 -388173299 ...
output:
3 24 -873692832 -748485592 -603901503 -541342445 -491712475 -437039989 -305392248 -167780911 -156084212 -72482200 13500781 55412391 101254617 160986845 235189567 262354455 368442691 473624802 541168633 576944651 668698470 794012412 836246619 898670740 3 22 -915301845 -789077090 -729912808 -670747360...
result:
ok ok, tt = 1961
Test #18:
score: 0
Accepted
time: 38ms
memory: 8016kb
input:
1915 88 -599184315 73586345 -57063004 735370626 -594784261 657664800 -312883696 57445978 -285146469 851050384 625822943 834222116 68918244 794706645 -301544950 933777477 206867581 731025004 -439024607 -420997711 -270811554 773852696 -949479290 -530448879 -59150188 446557826 -979358741 -208839320 -18...
output:
10 11 -902887827 -764788555 -658258265 -439024607 -335699645 -81037809 9986913 224575488 515935394 612731369 726840642 10 12 -923073760 -870131639 -381079868 -366161236 -246288652 36741667 244188370 397395431 444211856 656027137 828140441 947349881 9 9 -881025419 -601228348 -419550027 -258824721 -13...
result:
ok ok, tt = 1915
Test #19:
score: 0
Accepted
time: 35ms
memory: 8012kb
input:
1000 100 -167567106 -163456106 -645093441 -626354011 82584033 96043351 451690906 463599253 950908947 966920341 -982393168 -968113113 836738075 850385021 -707055272 -698612947 -171074009 -155730094 -352159178 -334298774 827292325 832177673 -554357876 -552869616 888998643 890253060 -218756361 -2053824...
output:
2 66 -999587762 -976986385 -912906519 -855469438 -822531375 -806296329 -737713870 -729788562 -707055272 -685627614 -660930521 -645093441 -615142746 -592700822 -581326656 -554357876 -549908456 -526031731 -515029211 -491354955 -479103395 -454069283 -352159178 -293868975 -226874546 -209881105 -19388598...
result:
ok ok, tt = 1000
Test #20:
score: 0
Accepted
time: 43ms
memory: 10096kb
input:
1000 100 -545312772 -482856294 -452625671 -373728742 -189286126 -27573154 438335850 461956201 -570840084 -394388626 -343214435 -277284691 742508809 929985121 173867778 353632110 -862386155 -731171646 -381279305 -233431288 -696987559 -615594564 635223307 770675002 125262736 126793885 -611209204 -5383...
output:
3 27 -972435185 -940314523 -841484437 -804390477 -696987559 -608513477 -485738093 -418398752 -343214435 -246583064 -136772704 -52634428 -13817101 57327452 111817413 125262736 164078855 259774617 306508600 387780630 438335850 480521289 538264148 604382211 664216383 778861255 841312381 4 27 -937311004...
result:
ok ok, tt = 1000
Test #21:
score: 0
Accepted
time: 44ms
memory: 9960kb
input:
1000 100 -514015364 -502468776 -780221896 -332795155 -798142427 -562846508 -535018850 875423486 436197708 544762002 -931471806 -838065195 -448363432 53489617 -969136873 -123865150 -555197110 -130170596 -163510682 857998125 -474465124 -359095545 -830847377 -93005735 -779554592 -580059164 -338261122 9...
output:
12 13 -894597606 -634771925 -514015364 -474465124 -325629671 -171368938 -48975643 265670265 322857732 345036075 444695568 624979020 795994141 11 11 -872030023 -789434485 -757297694 -641537535 -266421756 -93823708 20287675 208471026 354852818 636051534 824270425 11 13 -924919885 -875467190 -675510854...
result:
ok ok, tt = 1000
Test #22:
score: 0
Accepted
time: 44ms
memory: 12088kb
input:
196 512 -976710587 -957911716 396126887 413364569 -224591467 -213982089 -870349990 -867867294 875985077 891894871 -479834146 -475222581 -739569971 -735475587 176524306 179708881 772080172 773719956 -483049430 -467425107 554653646 569597668 625892984 636319270 607058779 622167287 575940568 578213647 ...
output:
3 182 -997580757 -983910448 -975248120 -969256130 -961017173 -946529325 -945996915 -930173817 -912970292 -900988629 -885621596 -872920167 -870349990 -855938040 -833954033 -818667333 -805460379 -793516067 -775832668 -749413745 -739569971 -732134416 -722698920 -704500323 -702734175 -688230230 -6693404...
result:
ok ok, tt = 196
Test #23:
score: 0
Accepted
time: 46ms
memory: 10168kb
input:
232 196 570259791 728644932 -762178785 -609038168 574874527 724945656 568249744 650511759 -87427280 40141628 -52536955 117627877 48854486 143164744 556128387 717537583 115078197 269634007 -181774590 -153807188 107080395 146094147 -488553529 -359507301 -476537964 -292772461 158781310 309292328 -77830...
output:
4 32 -995081444 -937484194 -886676347 -797471708 -733387144 -690671928 -613600917 -570346655 -483427381 -406017060 -322044922 -259081076 -222006400 -181774590 -116772751 -78374156 51434563 138454564 178755073 248229487 322323411 378262793 503286936 565292370 630810313 680697899 735574546 765318676 8...
result:
ok ok, tt = 232
Test #24:
score: 0
Accepted
time: 49ms
memory: 8140kb
input:
188 600 -546284297 3356566 -391939001 967989238 -117118822 431506282 -738558842 -574980954 -573604736 -339434769 779937475 951369078 -388110461 337404888 -934763000 -462449985 172279122 740101640 -599792754 -124813472 -810687119 685060180 -402535521 379470043 -981449698 134385687 -881019027 -6030344...
output:
29 29 -903718391 -873104701 -848628449 -791218785 -725580895 -646569489 -565225456 -540532110 -514199472 -462316021 -386449059 -331272605 -235963182 -104638013 -18841541 72622652 123922063 175391807 308302722 334240422 405964630 422915720 457845457 538201906 622606925 718588270 783535263 798598161 8...
result:
ok ok, tt = 188
Test #25:
score: 0
Accepted
time: 45ms
memory: 8052kb
input:
100 1000 513133350 524241076 522226826 540704505 -831839727 -826195520 -206542620 -193220133 274040281 289201563 -778703162 -762793712 -135335714 -127774525 91938350 92041302 -324366149 -308601519 31087397 34351317 -47847647 -41956490 -130051011 -122206422 723258226 729264535 471669330 482106003 905...
output:
5 250 -997137419 -987203622 -966942604 -959206631 -955223867 -944157409 -938675009 -927002085 -918088127 -914718700 -903477912 -897365844 -894897050 -884419540 -878209249 -870909705 -869084264 -858737881 -846600204 -836008549 -831839727 -824657815 -815137572 -810115466 -802983866 -795682740 -7866540...
result:
ok ok, tt = 100
Test #26:
score: 0
Accepted
time: 49ms
memory: 8128kb
input:
100 1000 408414675 423662562 740376389 743722152 -387299539 -237481225 -340967996 -297526526 -294875120 -285956278 933351716 976544634 -640201441 -549091258 505335426 689937292 355352714 375795480 225823324 346179052 -274475631 -241165595 732441817 778669892 -152537136 -125113662 -507857697 -4018807...
output:
12 93 -994449984 -966615611 -933310625 -912068606 -887244837 -865038047 -827489846 -801154966 -789201003 -755203861 -736551863 -714527431 -683654239 -656309361 -642228587 -600625424 -574580504 -552776500 -531943990 -491655351 -471782920 -461310055 -437965724 -398153841 -374318213 -353879459 -3253936...
result:
ok ok, tt = 100
Test #27:
score: 0
Accepted
time: 42ms
memory: 8084kb
input:
100 1000 -793245822 -716533154 104147570 235233116 -184639627 184695708 -850483705 244383818 -349368718 501148182 54912681 771034558 -211696760 585360268 -420617852 738348798 -954283346 -837467738 423517497 837378527 -316354450 -78564131 -421329379 -295710632 -728659321 849932862 127259474 808726570...
output:
34 34 -964475898 -925306335 -830076602 -792576343 -742688224 -693901400 -686271968 -658994796 -611615896 -532876287 -458731704 -338612496 -301792141 -213567672 -158866388 -136316571 -82096201 -24861268 56607345 137047961 206978999 252672919 276878871 285545759 311352360 441732946 478629477 529897047...
result:
ok ok, tt = 100
Test #28:
score: 0
Accepted
time: 55ms
memory: 11152kb
input:
27 2287 181330633 183856972 -532834123 -517748546 -453427394 -446709667 -429835259 -415069888 -387834236 -370410249 -414493266 -395494039 132756006 151519866 132041600 133236133 885423034 901094850 315887312 316387373 -196543247 -188692540 -277826700 -260010862 -845730262 -833161607 -440917313 -4341...
output:
7 397 -999586996 -996098836 -992732397 -983313639 -976556193 -970730180 -960854273 -953844045 -950843794 -944638199 -940313168 -928576419 -922068739 -912528712 -910148569 -905880725 -898536913 -893486589 -889371925 -882271429 -872603921 -861334033 -853341360 -846781717 -842767388 -835269169 -8322862...
result:
ok ok, tt = 27
Test #29:
score: 0
Accepted
time: 55ms
memory: 11396kb
input:
32 6892 -835674043 -777692063 647833687 840673443 -40663453 66871464 -933257390 -831189768 -168999256 -102556302 510806134 574939366 -719861574 -603902305 -249613374 -198182193 -995127298 -933708697 441280099 459862524 329480919 429896685 -988648123 -819633182 301310302 343227540 -205151542 -8678587...
output:
28 219 -995241545 -987502855 -981579840 -978833889 -973389695 -968071148 -954492410 -944453911 -937046488 -936064869 -924311497 -911411133 -905726553 -899984270 -889023417 -885794040 -884250685 -874377987 -860967721 -849807634 -837503592 -830670429 -820915990 -810960415 -805070329 -797903777 -791717...
result:
ok ok, tt = 32
Test #30:
score: 0
Accepted
time: 56ms
memory: 9232kb
input:
31 8893 -214699304 551180176 -445789907 475514430 -247708103 239098620 593591880 822470887 -682318767 577246547 -914129640 861836244 -79860107 679714488 -328549885 -201153408 -14619438 223752045 -457089907 624398914 -299189896 327238774 -620313575 -477876247 -562096813 943108761 229548194 934838268 ...
output:
100 100 -991679436 -957556889 -930393437 -913470431 -879224708 -869493977 -859392657 -851494187 -837362193 -832818736 -827777517 -809934758 -778802711 -760445371 -723592055 -715120638 -706231667 -682144542 -645396829 -611599387 -601287351 -578701184 -559099544 -537380941 -523160294 -505520953 -50032...
result:
ok ok, tt = 31
Test #31:
score: 0
Accepted
time: 52ms
memory: 11100kb
input:
10 10000 -664010814 -653215656 700012595 708405957 685852295 704629830 -177025866 -159410125 -34756793 -31080585 -597896155 -585949013 328127832 345362191 -338552539 -338091506 40458419 52992448 -577487552 -566780139 307933636 321666954 -399550133 -397513070 -375652852 -365308412 77971771 94674962 -...
output:
11 795 -996506428 -993670575 -989934850 -984905550 -982780522 -980987014 -980551686 -977555632 -976737569 -976116122 -972774093 -971518504 -970461431 -969495970 -967818188 -965527060 -960430027 -957694400 -955889701 -954503319 -952081341 -950773536 -949993656 -947808250 -947314289 -943191130 -939553...
result:
ok ok, tt = 10
Test #32:
score: 0
Accepted
time: 58ms
memory: 9464kb
input:
10 10000 -815027042 -751472239 343071526 491400032 164883834 291295587 604274172 648236084 557918008 694885219 -828342078 -629858464 -500067216 -416034448 400631340 490726901 236180475 330761645 -356536360 -192711697 -481022549 -425687744 -683853681 -648296879 137982697 296713223 972931829 976757074...
output:
31 258 -997697112 -988598112 -987434769 -983778999 -975596152 -962239179 -960372608 -944582842 -941878296 -938214947 -936662056 -935195480 -926259573 -913746365 -907675429 -904337954 -899235825 -887395425 -876868918 -874857145 -862610658 -855648727 -842726911 -836536205 -822913073 -819987520 -812195...
result:
ok ok, tt = 10
Test #33:
score: 0
Accepted
time: 58ms
memory: 10580kb
input:
10 10000 -121320802 100336697 -259992139 852888821 -26257966 578245202 147741009 294573042 241635638 396200947 -674367823 430374149 -675477000 -54653559 437597793 448474813 340902981 465923274 -937294963 747554594 167931277 835935205 -841719563 750782245 626922032 670988074 225730108 524456243 -1291...
output:
110 111 -996334864 -988240272 -977349923 -958339418 -942825113 -924480578 -903347230 -869383783 -856361688 -848306325 -842809388 -824787272 -809625834 -801382015 -796296863 -778045972 -763597088 -756718596 -722652065 -713428888 -698474470 -676449921 -653956366 -641144550 -620966807 -611149295 -58021...
result:
ok ok, tt = 10
Test #34:
score: 0
Accepted
time: 59ms
memory: 11464kb
input:
17 3731 -500905796 -481002872 443916923 445081585 373327902 379754504 -870913816 -865091771 685043429 703105211 -850268716 -843867796 436226063 445841553 -730963128 -714640942 -740391672 -722694466 -368987093 -367458350 -727718051 -714344149 353380746 361537531 757184591 758773395 465473435 46862148...
output:
8 487 -996631759 -991794309 -989931085 -982276911 -980966925 -977243617 -972048024 -969667943 -968497786 -967198239 -960847507 -955323569 -953656141 -948094304 -943733275 -941784735 -933569241 -932548224 -929687528 -921922782 -919667932 -913390334 -911817000 -907045126 -902651990 -899703996 -8973660...
result:
ok ok, tt = 17
Test #35:
score: 0
Accepted
time: 59ms
memory: 20400kb
input:
15 63 361772495 413649765 724559953 745375222 -139264920 -38600757 -616212213 -584566122 517658232 622449637 285748680 391692628 680241480 770145552 648587651 695104659 -513881954 -460739919 165301008 284723322 43197466 85134752 -802779565 -769888813 -904102949 -878919612 694313852 879950327 -945166...
output:
3 22 -945166777 -904102949 -802779565 -718579744 -616212213 -513881954 -429348409 -310039430 -211196460 -99236119 43197466 131830557 190481541 229634144 249871883 361772495 484357166 548891724 580099539 648587651 745100601 900582707 6 35 -952894278 -908080108 -839609535 -793482272 -733727071 -717837...
result:
ok ok, tt = 15
Test #36:
score: 0
Accepted
time: 65ms
memory: 18200kb
input:
14 36658 -639436868 -579052739 -108594338 299792353 -759825951 985078549 -492740721 630957817 -878448913 132948183 -647548727 69997288 -297982740 90678422 -585995625 99160421 -250515753 234042719 -889407693 652866564 -692579141 378642573 -525678451 813513674 -511439587 485184958 -117321550 215760808...
output:
226 229 -999980529 -996325697 -980383922 -967835246 -954636280 -946652209 -932886416 -921476560 -916987824 -911417832 -904349801 -886257492 -877685943 -867812517 -858830395 -854973310 -848567468 -840564472 -830577710 -818182515 -816257707 -812768503 -807070415 -801185629 -798386853 -790455960 -78372...
result:
ok ok, tt = 14
Test #37:
score: 0
Accepted
time: 60ms
memory: 22076kb
input:
1 100000 -130912269 -130823332 765148942 781818956 368564044 374965733 -795188217 -790329347 -712842273 -702902428 957097326 969358192 -957413461 -956614015 727095721 730650968 -898812981 -882658718 -312191307 -296390445 -366722286 -356882444 600751314 610760268 -146924165 -136489208 -833403524 -821...
output:
37 2545 -999461833 -999296080 -998925747 -998086346 -997216250 -996885104 -995954439 -995383716 -994712902 -994407265 -993615881 -993074197 -992458630 -991798453 -990662534 -989653781 -988220694 -987481628 -986893040 -986578613 -985915140 -985312236 -984099828 -983685464 -982949253 -982351437 -98184...
result:
ok ok, tt = 1
Test #38:
score: 0
Accepted
time: 69ms
memory: 22560kb
input:
1 100000 912144777 989846356 -940895110 -922366953 452972662 582849252 -328061856 -142853913 -693772314 -614284374 -374510482 -284290744 481227448 505326571 696320340 863201645 51136196 208959929 450245189 564981731 -709747929 -616522433 -253120425 -90876997 -603875189 -585828738 -794796855 -7016129...
output:
94 821 -999780554 -998680735 -998502166 -995926008 -993900232 -993493726 -989634888 -987865634 -986289761 -984087409 -982162366 -980643710 -977851313 -976646772 -973594827 -972218753 -969552690 -969283263 -964772174 -961725443 -961247538 -957519286 -952432780 -951443347 -951034766 -950638945 -948535...
result:
ok ok, tt = 1
Test #39:
score: 0
Accepted
time: 65ms
memory: 22252kb
input:
1 100000 -791706967 -348028538 -475601557 621229805 -150040691 -44795199 -990542852 -128956625 -393822550 271304162 -430050168 -204299590 -944057517 -419695064 83260849 815610790 870384022 979736268 -145087537 954908188 -715834270 562277877 203018153 444677866 489150079 532825234 2958640 834742464 6...
output:
354 356 -998623072 -995603375 -993278727 -990395953 -986944307 -973361281 -966514151 -961298717 -955586108 -953667561 -944955231 -943052271 -938064817 -933119409 -922073291 -915576473 -905728198 -898234195 -890668599 -882682615 -876861003 -869513956 -867576931 -860654272 -850589724 -849346648 -84616...
result:
ok ok, tt = 1
Test #40:
score: 0
Accepted
time: 33ms
memory: 7920kb
input:
100000 1 0 1 1 -1 1 1 -1 0 1 0 1 1 0 1 1 -1 0 1 -1 0 1 0 1 1 -1 0 1 -1 0 1 -1 1 1 -1 0 1 -1 1 1 -1 0 1 0 1 1 -1 0 1 -1 1 1 -1 1 1 -1 1 1 0 1 1 -1 1 1 -1 0 1 -1 0 1 -1 0 1 -1 0 1 0 1 1 -1 0 1 -1 0 1 -1 1 1 -1 0 1 -1 0 1 -1 1 1 -1 0 1 -1 0 1 -1 0 1 -1 1 1 0 1 1 -1 1 1 -1 1 1 0 1 1 -1 0 1 -1 0 1 0 1 1 ...
output:
1 1 0 1 1 -1 1 1 -1 1 1 0 1 1 0 1 1 -1 1 1 -1 1 1 0 1 1 -1 1 1 -1 1 1 -1 1 1 -1 1 1 -1 1 1 -1 1 1 0 1 1 -1 1 1 -1 1 1 -1 1 1 -1 1 1 0 1 1 -1 1 1 -1 1 1 -1 1 1 -1 1 1 -1 1 1 0 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 0 1 1 -1 1 1 -1 1 1 0 1 1 -1 1 1 -1 1 1 0 1 1 0 1 1...
result:
ok ok, tt = 100000
Test #41:
score: 0
Accepted
time: 38ms
memory: 7996kb
input:
100000 1 -3 -2 1 -7 6 1 -6 9 1 -7 -6 1 4 6 1 -4 4 1 -2 0 1 -7 1 1 -6 -4 1 -4 3 1 -7 -4 1 8 10 1 1 6 1 -7 1 1 -9 1 1 -9 -8 1 2 9 1 -9 -5 1 2 7 1 1 6 1 -4 4 1 -10 8 1 -10 8 1 -8 7 1 2 6 1 -2 6 1 -4 2 1 -4 10 1 8 9 1 -9 -7 1 -3 1 1 -4 1 1 -10 10 1 -10 -9 1 -1 8 1 -2 0 1 -9 -8 1 1 4 1 3 9 1 1 7 1 -9 6 1...
output:
1 1 -3 1 1 -7 1 1 -6 1 1 -7 1 1 4 1 1 -4 1 1 -2 1 1 -7 1 1 -6 1 1 -4 1 1 -7 1 1 8 1 1 1 1 1 -7 1 1 -9 1 1 -9 1 1 2 1 1 -9 1 1 2 1 1 1 1 1 -4 1 1 -10 1 1 -10 1 1 -8 1 1 2 1 1 -2 1 1 -4 1 1 -4 1 1 8 1 1 -9 1 1 -3 1 1 -4 1 1 -10 1 1 -10 1 1 -1 1 1 -2 1 1 -9 1 1 1 1 1 3 1 1 1 1 1 -9 1 1 -6 1 1 -8 1 1 0 ...
result:
ok ok, tt = 100000
Test #42:
score: 0
Accepted
time: 42ms
memory: 8004kb
input:
100000 1 -27 49 1 23 35 1 30 66 1 -4 94 1 -50 -27 1 15 81 1 -18 -2 1 1 20 1 13 38 1 96 97 1 -39 60 1 -32 -4 1 -73 20 1 82 85 1 -66 -16 1 25 70 1 -11 97 1 -85 -34 1 -18 25 1 -18 55 1 -53 17 1 15 57 1 -69 -46 1 41 52 1 -12 88 1 -94 97 1 -8 78 1 -39 31 1 -85 -81 1 -92 -78 1 11 65 1 -37 46 1 -43 -4 1 -2...
output:
1 1 -27 1 1 23 1 1 30 1 1 -4 1 1 -50 1 1 15 1 1 -18 1 1 1 1 1 13 1 1 96 1 1 -39 1 1 -32 1 1 -73 1 1 82 1 1 -66 1 1 25 1 1 -11 1 1 -85 1 1 -18 1 1 -18 1 1 -53 1 1 15 1 1 -69 1 1 41 1 1 -12 1 1 -94 1 1 -8 1 1 -39 1 1 -85 1 1 -92 1 1 11 1 1 -37 1 1 -43 1 1 -28 1 1 24 1 1 25 1 1 -82 1 1 34 1 1 68 1 1 -4...
result:
ok ok, tt = 100000
Test #43:
score: 0
Accepted
time: 43ms
memory: 10044kb
input:
100000 1 -677 -182 1 40 310 1 -837 310 1 -89 756 1 -733 -32 1 546 788 1 -8 345 1 179 200 1 -948 434 1 -230 -99 1 -222 918 1 -625 360 1 -758 283 1 -953 293 1 492 844 1 -355 -333 1 -534 838 1 -283 339 1 -995 -22 1 486 504 1 -505 789 1 -834 159 1 -113 45 1 -386 522 1 -791 994 1 88 333 1 427 967 1 -198 ...
output:
1 1 -677 1 1 40 1 1 -837 1 1 -89 1 1 -733 1 1 546 1 1 -8 1 1 179 1 1 -948 1 1 -230 1 1 -222 1 1 -625 1 1 -758 1 1 -953 1 1 492 1 1 -355 1 1 -534 1 1 -283 1 1 -995 1 1 486 1 1 -505 1 1 -834 1 1 -113 1 1 -386 1 1 -791 1 1 88 1 1 427 1 1 -198 1 1 83 1 1 270 1 1 -16 1 1 -674 1 1 -275 1 1 113 1 1 -805 1 ...
result:
ok ok, tt = 100000
Test #44:
score: 0
Accepted
time: 40ms
memory: 8044kb
input:
100000 1 2217 3814 1 -6257 -2923 1 -7984 -7064 1 -5647 5895 1 8705 9695 1 -6644 4245 1 -8877 9000 1 -246 4799 1 -9879 5712 1 -5137 7720 1 -4480 -499 1 -2733 8642 1 -9626 6604 1 -730 4103 1 -5849 -4992 1 -6518 8111 1 -9638 5312 1 -9800 9204 1 -6643 756 1 -8366 5222 1 2315 9802 1 -6307 6197 1 -5299 -4...
output:
1 1 2217 1 1 -6257 1 1 -7984 1 1 -5647 1 1 8705 1 1 -6644 1 1 -8877 1 1 -246 1 1 -9879 1 1 -5137 1 1 -4480 1 1 -2733 1 1 -9626 1 1 -730 1 1 -5849 1 1 -6518 1 1 -9638 1 1 -9800 1 1 -6643 1 1 -8366 1 1 2315 1 1 -6307 1 1 -5299 1 1 -9987 1 1 -2128 1 1 -6237 1 1 -6911 1 1 -3600 1 1 -2522 1 1 -8357 1 1 5...
result:
ok ok, tt = 100000
Test #45:
score: 0
Accepted
time: 44ms
memory: 8052kb
input:
100000 1 -6896 25216 1 -28848 -11235 1 -55500 -12391 1 -38150 44517 1 18266 67137 1 -22182 59449 1 -33453 46944 1 -97946 10422 1 -14366 73988 1 -85678 93530 1 28081 58435 1 -40448 90860 1 -2973 7417 1 19153 32494 1 -86353 -75455 1 -60400 -37521 1 -15432 70087 1 -45382 20463 1 -10551 65549 1 -86089 -...
output:
1 1 -6896 1 1 -28848 1 1 -55500 1 1 -38150 1 1 18266 1 1 -22182 1 1 -33453 1 1 -97946 1 1 -14366 1 1 -85678 1 1 28081 1 1 -40448 1 1 -2973 1 1 19153 1 1 -86353 1 1 -60400 1 1 -15432 1 1 -45382 1 1 -10551 1 1 -86089 1 1 -99922 1 1 -73270 1 1 -23720 1 1 15854 1 1 -76976 1 1 -40837 1 1 -9754 1 1 -10289...
result:
ok ok, tt = 100000
Test #46:
score: 0
Accepted
time: 21ms
memory: 7868kb
input:
18129 6 -1 0 -1 1 -1 1 -1 1 -1 1 0 1 6 -1 1 -1 0 -1 1 -1 0 -1 1 0 1 10 -1 0 -1 0 -1 1 -1 1 -1 0 0 1 0 1 -1 0 -1 1 0 1 4 0 1 -1 0 0 1 0 1 4 -1 1 -1 1 -1 0 0 1 9 0 1 0 1 -1 0 -1 0 0 1 -1 0 -1 0 -1 1 -1 0 6 0 1 -1 1 0 1 0 1 -1 0 0 1 8 -1 0 -1 1 -1 0 -1 0 -1 1 -1 1 -1 1 -1 0 8 -1 1 -1 1 -1 0 -1 1 0 1 -1...
output:
1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 ...
result:
ok ok, tt = 18129
Test #47:
score: 0
Accepted
time: 26ms
memory: 7900kb
input:
18189 5 -3 -2 -6 7 -1 4 -5 10 -10 3 7 -6 2 -6 6 -9 5 -4 0 -8 -1 -4 -3 6 8 5 -4 6 -8 0 -3 8 3 5 -6 7 7 -4 0 -2 5 -5 0 -8 5 -1 8 -8 0 -1 4 8 -3 10 -6 -4 -8 3 0 8 -1 3 -7 8 -8 -2 4 9 8 -9 6 -8 -2 -5 -3 -4 -1 -9 -8 -4 6 -9 7 -8 -5 5 2 3 -8 2 -8 -4 -5 3 4 9 6 -9 5 -5 5 -3 -1 -1 9 -3 8 1 8 5 4 8 -5 -4 -5 ...
output:
2 2 -3 -1 1 2 -4 7 1 2 -8 3 1 1 -1 2 3 -6 0 9 2 2 -8 -4 1 3 -8 3 4 2 2 -3 1 2 3 -5 -1 4 1 1 -1 2 3 -4 -1 6 2 2 -8 -6 1 3 -10 -1 4 2 2 -4 4 1 2 -2 9 1 2 -6 6 1 2 -9 -1 2 2 -9 -4 2 3 -5 3 8 2 2 -8 7 1 3 -7 -1 8 2 2 -7 4 1 1 -1 1 1 -4 2 3 -7 2 5 2 3 -5 -2 5 1 1 0 1 2 -6 -2 1 1 0 2 3 -9 -4 5 2 3 -10 -5 ...
result:
ok ok, tt = 18189
Test #48:
score: 0
Accepted
time: 30ms
memory: 7948kb
input:
18219 2 -98 29 -30 69 4 -23 -20 46 51 -7 29 -76 -43 1 -77 40 2 -100 91 39 88 7 -86 -50 0 92 -54 -3 2 94 -6 2 -65 53 -99 -32 5 23 83 -57 -18 -24 45 -37 97 -27 67 10 -27 -12 -36 76 21 62 66 92 -61 54 -94 14 6 31 -38 -10 -45 82 -26 44 9 -77 -32 -66 14 -77 53 7 85 25 88 -76 43 -39 100 29 54 43 79 7 42 6...
output:
1 1 -30 1 4 -76 -23 -7 46 1 1 -77 1 1 39 1 3 -86 -6 54 1 2 -57 23 2 3 -27 21 83 1 2 -66 54 1 3 -99 -74 45 2 3 -50 6 28 2 3 -90 -9 36 1 1 -47 1 3 -85 14 17 1 2 -22 64 2 2 -39 -19 2 2 -37 -6 2 2 19 47 2 3 -38 5 76 2 2 -59 29 1 1 -96 2 3 -37 -11 46 1 1 14 2 3 -82 1 77 2 2 -17 67 1 2 0 90 1 1 -67 1 1 -5...
result:
ok ok, tt = 18219
Test #49:
score: 0
Accepted
time: 30ms
memory: 8000kb
input:
18357 7 -773 -553 -739 -606 -85 39 -541 820 -54 470 -49 -32 -823 -175 10 -814 -396 -224 166 -848 200 -862 375 -546 -495 -327 237 -437 -337 -790 -559 -859 283 -858 -649 2 -294 -33 -777 75 4 -918 361 27 303 -509 314 756 986 10 -675 190 67 257 -84 698 -103 459 -908 174 -364 -68 -897 610 -739 -528 -439 ...
output:
1 2 -739 -49 4 4 -790 -546 -437 -224 1 1 -294 1 2 27 756 4 4 -739 -439 -364 67 2 3 -920 -167 657 1 1 20 2 2 -531 75 1 3 -923 -159 685 1 1 49 1 3 -994 37 390 1 2 -390 276 1 1 -193 1 2 70 724 1 2 -356 286 1 1 -112 1 1 -90 1 1 -64 1 3 -966 -83 511 4 4 -711 -380 367 855 3 6 -940 -561 -442 -170 534 763 1...
result:
ok ok, tt = 18357
Test #50:
score: 0
Accepted
time: 35ms
memory: 9988kb
input:
18057 8 -594 1651 2139 5455 1007 7092 -8601 -5992 752 9586 -5244 -4065 -671 9619 -3791 7348 8 2664 6680 -5950 -3289 1370 7173 -1577 5445 589 7096 -9398 8531 -5997 -594 -8776 -7180 3 -892 8977 1549 4007 -7163 -4618 3 -8197 -7043 -4868 1730 -9632 -3394 10 -8883 -7804 -3257 9192 -9446 -1049 -7686 8480 ...
output:
2 4 -8601 -5244 -594 2139 3 3 -8776 -5950 2664 1 2 -7163 1549 1 2 -8197 -3393 2 3 -8883 -5650 1237 1 2 -3871 8675 3 3 -9569 -5921 -3044 1 2 -9764 -50 1 1 -1825 3 3 -6986 282 5617 1 1 2402 1 2 -7849 293 2 2 -6235 801 1 2 -9897 347 2 3 -6232 -619 7239 1 3 -7166 -2808 5008 1 1 -1237 2 3 -8587 -3321 492...
result:
ok ok, tt = 18057
Test #51:
score: 0
Accepted
time: 32ms
memory: 7944kb
input:
18266 5 -59625 90114 -74815 49719 -18355 -10368 -82884 50703 -997 76272 7 -94114 5559 -94108 -28622 -95654 55359 -68857 30819 -83755 75234 -52222 99125 -35690 -31409 8 -97991 99604 12861 96037 71576 99981 -67314 20930 -94703 47348 31468 48019 -37561 67703 -46058 40893 6 -56334 5816 4909 62247 -35933...
output:
2 2 -18355 -997 1 1 -35690 2 3 -67314 31468 99605 1 2 -21874 13971 1 5 -99944 -87067 -1636 70180 95932 2 2 -63231 6588 2 3 -83268 6623 41412 2 3 -50878 18090 79569 1 1 6176 1 1 -35860 3 3 -9123 -2115 44728 1 1 -29149 2 3 -61497 47321 90490 1 1 -12561 1 2 -28970 -19396 2 2 -59422 22395 1 1 -18794 1 1...
result:
ok ok, tt = 18266
Test #52:
score: 0
Accepted
time: 15ms
memory: 7984kb
input:
1977 88 -1 1 0 1 -1 1 -1 0 -1 1 -1 0 -1 1 0 1 0 1 0 1 -1 1 -1 1 0 1 0 1 -1 0 -1 1 -1 1 0 1 -1 0 -1 0 -1 1 -1 1 0 1 -1 0 -1 1 -1 1 -1 0 -1 0 -1 1 -1 0 -1 0 -1 0 -1 1 0 1 -1 1 0 1 0 1 -1 0 0 1 0 1 -1 0 0 1 -1 1 -1 0 0 1 -1 0 0 1 -1 0 -1 0 0 1 -1 0 -1 0 -1 1 0 1 -1 0 0 1 -1 1 -1 1 -1 1 0 1 -1 1 -1 0 -1...
output:
1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 ...
result:
ok ok, tt = 1977
Test #53:
score: 0
Accepted
time: 26ms
memory: 7904kb
input:
2003 79 -8 -4 5 7 -5 -4 -7 9 -2 1 -4 4 -10 -3 -2 4 -7 5 -8 6 -7 -2 -8 -3 5 10 -8 6 -6 0 -8 8 9 10 -2 4 4 10 2 7 0 10 2 3 -9 10 4 10 -7 8 -5 -3 -8 -7 1 5 -10 -3 3 4 -10 -2 -2 8 -10 -1 -2 7 -10 -9 6 8 -4 0 -5 1 -6 10 -2 8 -9 -3 -8 4 -6 -4 -8 -3 -9 8 7 10 -6 0 -2 -1 -7 5 -6 -5 -10 -2 -4 4 -2 10 -1 9 -1...
output:
7 7 -10 -8 -5 -1 3 6 9 9 9 -8 -6 -4 -2 0 2 4 6 8 7 7 -9 -4 -2 0 3 5 8 6 6 -9 -6 -2 0 4 9 6 6 -8 -4 0 4 6 8 4 4 -7 -4 0 8 2 2 -5 0 4 5 -8 -4 -1 3 8 2 3 -7 -2 8 6 6 -8 -4 -1 1 4 9 4 5 -10 -6 0 2 7 4 5 -10 -6 -3 0 7 4 5 -8 -6 -1 5 8 6 6 -9 -2 1 3 6 8 4 4 -6 1 4 8 6 6 -8 -6 -3 1 4 6 4 5 -8 -3 0 4 9 7 7 ...
result:
ok ok, tt = 2003
Test #54:
score: 0
Accepted
time: 34ms
memory: 8008kb
input:
1998 72 -57 13 -72 40 -100 98 -32 -26 -37 12 -7 74 41 61 55 100 69 85 -2 13 22 93 -82 21 -84 27 42 44 -51 -6 73 94 -76 59 -42 19 -62 -30 -43 -18 -28 96 49 81 -84 72 38 53 -87 73 20 26 -45 25 -92 70 -9 70 -72 30 -76 65 -77 71 4 32 16 33 -91 57 -42 -15 -6 89 79 99 -15 73 -25 58 -93 89 -75 -41 -22 24 -...
output:
7 7 -50 -32 -2 20 42 52 79 8 9 -97 -77 -60 -36 -17 2 19 49 75 9 11 -94 -69 -58 -29 -15 13 27 58 69 74 89 2 3 -84 4 44 7 9 -99 -72 -54 -22 6 18 67 77 92 10 12 -93 -79 -55 -35 -12 8 21 35 49 57 75 85 4 5 -94 -62 -17 30 72 4 5 -70 2 27 54 84 1 2 -97 -16 4 4 -76 -42 26 56 4 5 -74 -6 11 50 100 3 4 -70 -2...
result:
ok ok, tt = 1998
Test #55:
score: 0
Accepted
time: 38ms
memory: 7912kb
input:
1952 47 -449 -75 -672 -246 -655 658 -765 -512 311 764 598 889 -851 235 -546 -139 -532 174 -854 890 -848 426 -993 -148 -339 736 -442 -105 596 904 -570 938 -521 567 -259 806 -455 344 477 488 -709 20 -705 638 -633 -572 -342 899 -575 -246 -969 -852 207 707 128 662 -833 21 -640 522 407 649 72 370 -620 -1...
output:
7 7 -958 -730 -633 -442 72 477 598 2 2 -447 151 4 6 -918 -759 -502 -331 205 798 3 4 -682 -309 -14 278 8 9 -862 -431 -249 -199 320 363 529 678 878 7 9 -740 -575 -421 -377 -48 39 304 394 768 10 12 -966 -706 -505 -364 -158 88 265 524 586 630 740 950 8 10 -997 -718 -581 -330 -150 21 370 619 666 920 7 7 ...
result:
ok ok, tt = 1952
Test #56:
score: 0
Accepted
time: 36ms
memory: 9984kb
input:
1949 31 -5533 -1542 -1686 -325 -8726 -2103 -3713 306 -7972 -1169 -6207 7302 -391 99 -9797 -5941 -7833 3194 -2019 4883 -6391 -4752 -5003 -4990 -2722 5035 -8184 1009 -9046 7041 -5432 4896 2430 2463 4501 5379 -5973 -1520 -8129 4306 -5314 6297 3987 9720 -5713 -3998 -6063 -1185 -9154 -3044 892 2189 -8143...
output:
6 7 -9617 -5003 -1103 -391 892 2430 4501 1 1 -7349 9 10 -9573 -9329 -8316 -8193 -7190 -4104 -1657 2770 4224 8564 1 1 -2764 4 5 -6701 -3916 1634 5749 9101 7 8 -9381 -7269 -4478 -3564 -324 64 3505 7433 10 10 -8256 -7773 -7307 -6166 -4459 -763 2876 5146 6703 7978 5 6 -9945 -8261 -4562 546 2133 7486 8 8...
result:
ok ok, tt = 1949
Test #57:
score: 0
Accepted
time: 35ms
memory: 8020kb
input:
1973 39 3807 67598 13640 90431 -85614 76511 77558 78321 27987 29033 12356 88601 -41662 26150 -53464 -49538 -64045 51927 -36296 10861 -20239 69160 -5617 22650 -17156 55167 -66606 -64643 -80785 38295 82498 95592 -51214 -7280 -97413 56124 13669 69445 -55653 -47435 -48917 81873 -90922 2000 -42362 68283 ...
output:
6 8 -66606 -51214 -5617 23573 27987 40027 77558 82498 2 2 -52898 11921 10 11 -99337 -53109 -44042 -34264 -25012 -10952 12814 21575 46457 60420 73876 6 7 -66742 -45880 -28537 11334 21790 47997 93902 2 3 -82264 -15612 72329 3 5 -66349 -40214 -19625 4476 40168 4 6 -51178 -35 4795 54834 72941 89027 5 6 ...
result:
ok ok, tt = 1973
Test #58:
score: 0
Accepted
time: 10ms
memory: 7924kb
input:
206 9 -1 0 -1 1 -1 0 0 1 0 1 -1 1 -1 0 -1 0 -1 0 144 -1 1 -1 0 0 1 -1 0 -1 1 0 1 0 1 0 1 -1 0 0 1 -1 1 -1 0 -1 0 -1 0 -1 1 -1 1 -1 0 -1 0 -1 0 -1 0 -1 1 -1 0 -1 1 -1 0 -1 1 0 1 -1 0 0 1 -1 0 -1 1 -1 1 0 1 -1 1 -1 1 -1 0 0 1 -1 0 -1 0 0 1 -1 0 0 1 -1 1 0 1 -1 1 -1 0 -1 0 0 1 0 1 -1 0 -1 1 -1 1 0 1 0 ...
output:
1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0...
result:
ok ok, tt = 206
Test #59:
score: 0
Accepted
time: 22ms
memory: 10032kb
input:
217 866 -4 0 7 10 -9 6 -2 1 -10 -5 0 1 -5 -2 -7 8 -6 1 -8 1 -4 3 8 10 -4 7 -6 6 -1 10 -8 6 -1 4 3 4 -6 7 -3 1 0 7 -10 -2 -4 9 -3 10 -10 -2 -6 9 -2 7 -7 2 -9 -1 1 2 -10 -8 -1 0 -4 4 -9 -8 -3 -1 -7 3 -6 10 -3 1 -6 1 -7 -6 -9 9 0 10 -10 9 -7 0 0 9 -1 5 0 1 -9 4 -8 -2 -8 6 -6 3 -2 7 -6 9 -5 3 -8 3 -9 9 ...
output:
10 10 -9 -7 -5 -3 -1 1 3 5 7 9 6 6 -9 -6 0 3 6 8 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 7 7 -9 -7 -5 -2 0 4 8 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 6 6 -10 -7 -4 -1 1 6 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -10 -8 -6 -4 -2 0 3 5 7 9 6 6 -10 -5 -2 2 4 8 6...
result:
ok ok, tt = 217
Test #60:
score: 0
Accepted
time: 30ms
memory: 8044kb
input:
206 77 -25 47 -37 76 -93 34 -55 47 -57 77 -40 53 -79 -53 -63 -57 -60 -4 -79 -68 -83 72 -78 21 -59 56 5 43 57 63 -7 36 -62 94 6 76 0 6 89 99 -96 -5 20 75 -79 78 11 92 -68 8 -61 -14 -35 52 -53 70 -77 -42 -90 46 3 58 -73 28 79 89 18 49 -85 -76 -66 79 -36 76 -35 47 -73 -65 -86 75 74 83 -91 -17 -6 94 -63...
output:
8 9 -85 -73 -63 -35 3 32 57 74 89 21 23 -98 -93 -84 -72 -67 -60 -48 -40 -29 -23 -19 -8 -4 6 17 24 35 43 59 66 79 87 94 18 19 -93 -81 -71 -62 -48 -40 -37 -25 -15 -8 5 14 20 33 47 59 75 84 99 20 20 -98 -84 -69 -59 -56 -42 -33 -15 -2 9 11 21 26 33 42 48 52 59 74 86 31 32 -96 -91 -81 -74 -68 -63 -61 -50...
result:
ok ok, tt = 206
Test #61:
score: 0
Accepted
time: 37ms
memory: 8132kb
input:
199 583 -700 -327 -655 388 341 567 -286 42 -990 99 -571 -245 -425 429 -809 -168 -797 -389 343 935 -182 -140 -921 -282 -322 -38 131 742 -446 -46 74 526 -605 -130 -608 145 184 412 -397 -328 -267 589 319 598 -367 293 29 283 541 928 -703 -326 -204 893 -651 -613 -351 -3 156 679 -511 -292 -875 -637 -169 1...
output:
26 27 -937 -840 -758 -651 -601 -571 -505 -463 -397 -325 -264 -213 -163 -62 -25 12 67 162 217 286 349 489 623 688 785 848 949 12 14 -934 -720 -518 -397 -300 -195 -64 131 375 385 487 650 804 902 21 22 -926 -858 -694 -646 -559 -462 -406 -322 -309 -203 -153 -58 59 87 133 195 430 478 711 748 817 877 29 2...
result:
ok ok, tt = 199
Test #62:
score: 0
Accepted
time: 42ms
memory: 10100kb
input:
210 275 -8238 -1729 -965 5947 2364 4861 -6102 -4202 -3258 -1653 -5181 -3269 1813 2867 -5935 7874 -7064 4053 2374 2530 -7109 2761 -8197 -4275 -7863 7065 -296 8558 -4861 -1083 2680 2713 -7970 -3605 -9903 3825 2088 3119 -7492 4519 676 9336 4249 5793 7032 8912 -3611 3218 -9476 2154 5828 6388 -5950 6647 ...
output:
16 17 -9364 -8081 -5906 -3924 -1862 -257 404 1538 2374 2680 4145 5207 5828 7000 8128 8720 9232 27 30 -9611 -8909 -8245 -8119 -7308 -6564 -5911 -5014 -4323 -2814 -2019 -1792 -1259 -91 846 1284 1677 2411 3377 4188 5071 5593 5740 5991 6159 7211 8097 9147 9362 9960 27 27 -9733 -8911 -8379 -7873 -7395 -6...
result:
ok ok, tt = 210
Test #63:
score: 0
Accepted
time: 46ms
memory: 8044kb
input:
198 977 -67005 -58237 -12755 -7958 -14379 74219 -29497 -25444 -16214 51982 -65780 84285 69043 94460 34460 79064 -11737 18949 -91363 10480 -18637 27129 -20718 55159 -82602 19960 -94286 -56028 -88541 10704 -15542 31980 20631 23411 -19677 92119 -33161 98407 -76665 53639 -83559 47533 -57056 60232 55574 ...
output:
33 34 -94892 -90424 -84173 -81727 -80189 -76966 -70263 -63796 -58204 -55499 -48341 -43266 -35867 -29497 -24381 -21100 -9257 -3598 7595 12516 20942 26329 31293 40210 50512 55574 60472 64382 65540 72818 81730 86630 91759 97765 12 14 -92207 -77796 -58513 -40303 -27805 -19698 -2313 9681 20723 32554 5191...
result:
ok ok, tt = 198
Test #64:
score: 0
Accepted
time: 10ms
memory: 8024kb
input:
27 1657 -1 0 -1 0 -1 0 -1 1 0 1 0 1 0 1 -1 1 0 1 -1 1 0 1 0 1 -1 1 -1 0 0 1 -1 1 -1 1 -1 1 0 1 0 1 -1 0 -1 0 0 1 -1 1 -1 0 0 1 -1 1 -1 0 -1 0 -1 0 -1 1 -1 1 -1 1 -1 0 0 1 0 1 0 1 -1 0 -1 0 -1 1 0 1 -1 1 0 1 -1 1 -1 0 0 1 0 1 0 1 -1 0 -1 1 0 1 0 1 -1 0 -1 1 -1 0 0 1 -1 0 0 1 0 1 -1 1 0 1 -1 0 -1 1 -1...
output:
1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0
result:
ok ok, tt = 27
Test #65:
score: 0
Accepted
time: 16ms
memory: 10040kb
input:
24 401 -8 -7 -5 -1 -9 2 0 4 -8 3 -5 9 5 7 -7 1 -6 3 -3 7 -5 -4 -7 5 -5 6 -3 10 3 4 -9 1 -5 3 -8 -2 -3 4 -10 8 -7 10 2 8 -8 3 -4 6 -8 -6 -2 2 -8 5 5 10 0 10 -2 10 -6 -5 -5 -3 2 7 -1 5 1 3 2 8 -8 6 -4 -3 -6 6 -9 -1 -8 6 -9 8 6 8 -9 10 -8 9 -4 6 -2 10 4 9 -10 1 -2 7 1 10 4 9 1 10 -8 7 -6 9 -4 7 -4 2 -2...
output:
10 10 -10 -8 -6 -4 -2 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 1 1 -10 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 ...
result:
ok ok, tt = 24
Test #66:
score: 0
Accepted
time: 25ms
memory: 10000kb
input:
25 251 -91 67 -97 -4 -21 -9 -93 -91 -34 -2 -25 71 0 64 -36 -16 -32 5 -21 7 -52 96 -1 26 -83 66 -39 18 5 88 -50 -10 -30 -28 -60 27 -49 33 -11 55 -89 28 30 56 -93 95 19 48 -48 32 -54 65 -69 43 -53 -34 -85 42 -88 54 -27 68 -88 99 23 88 -94 7 -25 27 -90 94 -54 92 -43 -33 48 50 -37 -36 19 38 -67 -27 -62 ...
output:
13 13 -93 -85 -59 -37 -30 -13 4 19 26 48 54 67 83 41 41 -97 -93 -89 -84 -82 -79 -73 -66 -62 -57 -51 -44 -41 -35 -30 -27 -20 -12 -8 -1 4 6 8 18 22 25 32 38 43 48 53 56 59 62 65 73 75 78 82 89 94 50 51 -98 -93 -89 -86 -81 -77 -73 -64 -61 -59 -53 -50 -47 -43 -40 -37 -34 -29 -27 -24 -21 -18 -13 -10 -7 -...
result:
ok ok, tt = 25
Test #67:
score: 0
Accepted
time: 37ms
memory: 8172kb
input:
26 9607 -606 689 -178 686 -553 -445 199 990 192 453 1 877 -709 930 -464 278 -776 855 46 974 -833 897 -994 881 -6 870 -158 42 -373 796 -810 171 -72 376 187 204 -283 830 538 632 -848 539 -700 624 70 575 -546 -305 -843 -794 -27 574 -962 39 -900 -35 84 355 232 441 -657 -614 -134 920 -543 408 -655 -220 -...
output:
106 107 -995 -988 -960 -916 -893 -879 -863 -843 -812 -801 -793 -776 -765 -748 -746 -718 -698 -680 -669 -651 -640 -625 -605 -573 -552 -517 -503 -493 -460 -443 -405 -383 -377 -360 -335 -313 -296 -287 -261 -237 -199 -178 -148 -128 -113 -90 -74 -61 -37 -13 -3 32 45 64 94 109 119 146 157 177 192 228 247 ...
result:
ok ok, tt = 26
Test #68:
score: 0
Accepted
time: 50ms
memory: 10976kb
input:
24 6272 -3827 5984 -6585 3092 -8175 6979 -5760 -3896 -3037 8061 -2562 7047 -9470 8512 -4137 -3633 4608 8699 -4475 1841 -3168 6812 -1301 2966 -1514 4253 -5370 7896 2155 2217 -4279 -499 -4327 9249 -7966 -2185 -2556 1886 -8866 7953 504 6685 -1095 1228 -92 95 5438 9138 3171 9912 3156 5021 -4693 8000 195...
output:
90 92 -9976 -9755 -9596 -9465 -9139 -8941 -8757 -8411 -8147 -7725 -7544 -7353 -7147 -7030 -6621 -6275 -6170 -5976 -5561 -5336 -5085 -4979 -4735 -4709 -4433 -4224 -4033 -3832 -3616 -3539 -3198 -2904 -2573 -2331 -2046 -1796 -1524 -1504 -1404 -1144 -901 -715 -660 -543 -218 -142 25 63 253 707 973 1175 1...
result:
ok ok, tt = 24
Test #69:
score: 0
Accepted
time: 49ms
memory: 10436kb
input:
30 193 35941 79069 -61683 87592 -27124 51606 -62711 75939 -10359 95611 -73557 -5597 14930 93802 -29409 6472 -85999 1602 25761 91500 -96288 44092 -29085 59455 78691 93879 -72438 9108 10222 82829 -42901 30524 22052 47250 23921 40726 -65458 88926 -45888 35504 -73928 43428 -66285 2216 -64934 36442 74099...
output:
16 17 -98408 -87098 -81720 -75802 -61218 -55698 -35081 -33259 -29124 -22584 -12249 6497 37192 43488 53298 67636 81001 64 64 -99683 -97234 -93783 -90015 -88751 -85092 -83417 -81077 -80434 -78519 -73918 -72194 -69276 -63245 -59785 -58054 -53752 -51883 -49336 -48139 -45140 -41225 -38213 -35115 -31544 -...
result:
ok ok, tt = 30
Test #70:
score: 0
Accepted
time: 11ms
memory: 8184kb
input:
15 68049 -1 1 -1 0 -1 1 -1 1 -1 1 -1 1 -1 0 -1 0 -1 0 -1 1 0 1 -1 0 -1 1 0 1 -1 0 0 1 -1 0 -1 0 0 1 0 1 -1 0 -1 0 -1 1 -1 0 -1 1 0 1 0 1 0 1 -1 0 -1 1 0 1 0 1 0 1 -1 1 0 1 0 1 -1 1 -1 0 -1 0 0 1 0 1 0 1 -1 1 -1 0 -1 0 0 1 -1 0 0 1 -1 0 0 1 0 1 -1 1 0 1 -1 1 -1 0 -1 1 -1 1 0 1 0 1 -1 1 -1 0 -1 0 -1 0...
output:
1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 -1
result:
ok ok, tt = 15
Test #71:
score: 0
Accepted
time: 20ms
memory: 8808kb
input:
13 34 9 10 -8 -1 1 10 -2 4 8 9 -10 -3 -10 -1 -10 -1 -9 -4 -1 2 -3 0 -2 6 2 6 -3 3 0 2 -7 10 -7 1 -3 -1 -6 0 0 3 -5 -3 2 3 -4 -3 -10 8 -8 2 0 5 -5 -4 -1 7 -6 3 -9 8 -9 6 -7 6 -5 9 1 3 228 -8 6 5 8 -7 9 -5 2 3 4 -6 5 -6 7 -4 6 -5 -1 -1 3 -6 6 2 3 -5 8 -4 3 -5 10 -10 0 -3 3 1 10 -7 4 -1 7 -3 6 -4 8 -6 ...
output:
4 4 -5 -3 2 9 9 9 -10 -8 -6 -4 -2 0 3 6 9 4 4 -7 -3 2 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 8 9 -10 -8 -4 -2 0 2 4 6 9 1 1 -9 8 8 -10 -6 -4 0 2 4 7 9 2 2 -10 2 6 6 -10 -8 -1 2 5 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 1 1 -8 8 8 -10 -8 -6 -4 -2 1 5 7
result:
ok ok, tt = 13
Test #72:
score: 0
Accepted
time: 28ms
memory: 10044kb
input:
11 304 15 48 -47 -28 -99 -40 53 95 -83 -81 -59 21 -92 -45 12 63 -64 -12 -44 21 54 92 -76 88 -84 84 46 55 -78 -52 -82 96 -8 78 -98 -41 7 99 -54 50 65 95 -48 -37 -54 -44 -67 52 20 57 2 74 -50 -49 -37 15 -25 22 -56 14 45 93 -95 -18 -82 74 -40 1 -29 22 -96 80 49 88 -74 -1 49 53 -6 46 -70 -33 -80 20 -36 ...
output:
19 20 -100 -83 -80 -66 -57 -50 -40 -34 -22 -17 -4 4 18 27 38 49 63 67 81 88 6 6 -41 -20 7 35 45 84 14 16 -100 -91 -79 -74 -58 -42 -31 -11 0 25 34 50 59 71 78 98 100 100 -100 -98 -96 -94 -92 -90 -88 -86 -84 -82 -80 -78 -76 -74 -72 -70 -68 -66 -64 -62 -60 -58 -56 -54 -52 -50 -48 -46 -44 -42 -40 -38 -3...
result:
ok ok, tt = 11
Test #73:
score: 0
Accepted
time: 32ms
memory: 8272kb
input:
11 312 -3 304 -706 225 -428 -43 -97 789 -843 552 -245 -162 -815 92 -619 -431 -994 148 -922 457 329 670 -952 421 -678 -453 -249 -239 -805 -11 -762 -394 -565 -298 -224 388 -962 9 -398 757 -768 -78 -374 179 -452 34 -442 -205 -715 175 90 442 -613 -417 -557 435 -453 598 -740 202 -210 189 -772 -450 -579 3...
output:
17 19 -907 -880 -702 -632 -540 -518 -384 -276 -245 -110 -56 42 177 307 413 539 714 952 993 68 70 -992 -967 -943 -902 -863 -851 -790 -746 -711 -673 -654 -632 -617 -589 -577 -519 -500 -477 -453 -430 -396 -348 -307 -283 -254 -218 -176 -145 -116 -63 -56 -46 -20 10 40 50 113 127 131 158 173 229 245 267 2...
result:
ok ok, tt = 11
Test #74:
score: 0
Accepted
time: 45ms
memory: 11476kb
input:
11 1 696 933 10 -715 675 1335 5699 122 6828 -9542 1773 -1976 3124 -112 9138 -460 1918 -9340 -6259 -6458 7443 -1388 3742 8510 -9825 7084 1355 7694 3298 9690 3014 6182 -4651 -579 -4383 -3956 3048 6549 -2217 8517 1083 3845 -6402 -6161 -2779 4565 -6986 773 -7754 840 -1611 5710 -1090 6272 -7275 6680 1744...
output:
1 1 696 2 3 -9340 -715 1774 103 103 -9953 -9904 -9654 -9426 -9286 -8852 -8692 -8419 -8061 -7981 -7764 -7615 -7501 -7446 -7292 -7199 -7118 -6777 -6603 -6571 -6402 -6127 -6057 -5863 -5650 -5429 -5225 -4985 -4859 -4660 -4638 -4450 -4214 -3861 -3767 -3509 -3254 -3046 -2948 -2674 -2426 -2304 -2148 -1711 ...
result:
ok ok, tt = 11
Test #75:
score: 0
Accepted
time: 56ms
memory: 18384kb
input:
16 799 -96967 -84408 -81820 -74879 -19057 66593 -92000 -35961 3333 41042 -93099 -61666 -10790 19049 9470 52704 -85996 5816 -51465 -14179 -68892 -30275 -52003 35141 -88931 -12092 -4961 21292 -6580 -1783 -93531 -51882 -97509 -63399 46502 63886 -95584 14078 -9381 66431 -70252 87809 14608 29844 -66209 1...
output:
28 29 -95999 -89916 -76254 -73076 -64855 -54160 -49820 -38682 -30628 -19794 -11320 -6107 185 3928 13988 21226 24131 26570 32025 38604 41694 48803 49448 50107 60427 71170 81425 91483 94670 1 1 -20818 15 15 -83684 -72660 -61006 -52794 -47220 -35198 -28085 -9223 2835 15629 26140 46620 55589 65904 79760...
result:
ok ok, tt = 16
Test #76:
score: 0
Accepted
time: 55ms
memory: 18404kb
input:
1 100000 24887 24888 29146 29147 38122 38123 15163 15164 93091 93092 9314 9315 79630 79631 81603 81604 80213 80214 96583 96584 79094 79095 14400 14401 34451 34452 30481 30482 97187 97188 7635 7636 11537 11538 58667 58668 35733 35734 94341 94342 61319 61320 85959 85960 39205 39206 13061 13062 34420 3...
output:
1 50000 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...
result:
ok ok, tt = 1
Test #77:
score: 0
Accepted
time: 47ms
memory: 16096kb
input:
1 99999 46674 46675 66539 66540 29260 29261 141 142 95762 95763 51868 51869 28504 28505 94989 94990 13936 13937 81112 81113 76308 76309 22851 22852 41824 41825 44560 44561 48522 48523 22312 22313 77968 77969 6806 6807 52665 52666 38047 38048 703 704 9003 9004 71151 71152 63910 63911 145 146 36433 36...
output:
1 50000 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172...
result:
ok ok, tt = 1
Test #78:
score: 0
Accepted
time: 55ms
memory: 15880kb
input:
1 100000 38715 38716 73156 73157 93248 93249 86362 86363 76184 76185 34874 34875 61714 61715 82249 82250 99062 99063 8568 8569 80278 80279 76366 76367 777 778 17791 17792 14516 14517 5303 5304 83683 83684 28275 28276 9368 9369 25451 25452 48949 48950 37733 37734 68732 68733 33893 33894 28197 28198 7...
output:
1 50000 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...
result:
ok ok, tt = 1
Test #79:
score: 0
Accepted
time: 51ms
memory: 18004kb
input:
1 100000 76606 76607 50845 50846 98681 98682 29111 29112 81241 81242 18701 18702 44886 44887 37659 37660 39745 39746 14011 14012 1466 1467 82458 82459 86181 86182 90070 90071 78190 78191 54841 54842 22724 22725 7154 7155 36626 36627 7789 7790 52844 52845 30323 30324 59956 59957 5405 5406 67035 67036...
output:
1 50000 0 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...
result:
ok ok, tt = 1
Test #80:
score: 0
Accepted
time: 52ms
memory: 17816kb
input:
1 99999 6399 6400 63817 63818 91646 91647 75205 75206 96914 96915 92677 92678 1259 1260 12840 12841 28274 28275 43835 43836 79904 79905 95014 95015 43884 43885 63025 63026 8531 8532 81194 81195 24128 24129 70268 70269 60092 60093 20686 20687 49932 49933 5844 5845 17633 17634 34457 34458 5230 5231 48...
output:
1 50000 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172...
result:
ok ok, tt = 1
Test #81:
score: 0
Accepted
time: 50ms
memory: 18316kb
input:
1 99999 67419 67420 69702 69703 65934 65935 81788 81789 74068 74069 13816 13817 51563 51564 68362 68363 42039 42040 50877 50878 4272 4273 55142 55143 15229 15230 48902 48903 21387 21388 89308 89309 2844 2845 58337 58338 47149 47150 301 302 66212 66213 1885 1886 36081 36082 69952 69953 78571 78572 18...
output:
1 50000 0 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...
result:
ok ok, tt = 1
Test #82:
score: 0
Accepted
time: 39ms
memory: 9236kb
input:
1 100000 -1749 1976 493 1557 -1927 1240 -244 593 -2117 -392 464 1654 -2138 1406 -383 1903 1618 2020 -2090 1325 827 1555 -1704 2358 -69 695 -829 1219 -1680 -1534 -318 1928 -2470 -2145 1799 1899 905 1474 -1397 1356 -1691 -1471 1132 1221 -1416 -1231 -1620 869 1539 1562 -749 -495 1234 2149 -1360 2487 -2...
output:
336 339 -2502 -2497 -2467 -2445 -2437 -2421 -2415 -2400 -2373 -2362 -2340 -2328 -2312 -2291 -2275 -2272 -2252 -2241 -2233 -2210 -2191 -2179 -2161 -2138 -2131 -2106 -2095 -2089 -2079 -2051 -2041 -2021 -2011 -1991 -1982 -1977 -1955 -1936 -1929 -1916 -1906 -1883 -1875 -1866 -1849 -1836 -1813 -1800 -178...
result:
ok ok, tt = 1
Test #83:
score: 0
Accepted
time: 38ms
memory: 8764kb
input:
1 100000 150 1206 846 1493 -928 1557 -1055 1733 986 1281 480 896 -1617 -76 -1016 159 181 850 537 603 617 873 345 1533 -1100 1495 -1694 -1067 -1132 1513 -755 665 -1631 214 88 1023 -489 1355 704 728 -613 -398 -386 1725 -135 745 -1608 -1528 590 1305 1044 1311 -610 1568 -1770 -334 541 1303 50 388 1081 1...
output:
324 325 -1855 -1848 -1842 -1827 -1815 -1809 -1799 -1784 -1773 -1755 -1752 -1732 -1724 -1719 -1714 -1705 -1693 -1678 -1665 -1649 -1645 -1641 -1638 -1626 -1614 -1603 -1593 -1579 -1572 -1556 -1543 -1531 -1521 -1512 -1494 -1487 -1465 -1453 -1440 -1431 -1417 -1405 -1400 -1382 -1371 -1356 -1340 -1333 -132...
result:
ok ok, tt = 1
Test #84:
score: 0
Accepted
time: 34ms
memory: 9044kb
input:
1 100000 -319 687 659 1226 -521 -2 -32 567 290 875 -1559 -1512 57 1504 -111 211 -1203 1101 -1280 1535 -1455 -523 -1444 1078 523 710 1213 1254 -1341 -248 -1067 -697 -852 955 -176 -27 -1359 212 473 1361 -1225 837 153 183 -1200 -307 -903 -156 -1190 185 -1004 565 -1180 -85 -883 498 785 1414 -402 742 -69...
output:
329 329 -1589 -1581 -1578 -1576 -1569 -1560 -1550 -1541 -1532 -1525 -1514 -1504 -1500 -1496 -1485 -1474 -1458 -1450 -1435 -1430 -1421 -1408 -1398 -1396 -1391 -1385 -1374 -1370 -1354 -1350 -1331 -1325 -1309 -1294 -1281 -1273 -1269 -1265 -1253 -1246 -1244 -1234 -1221 -1203 -1196 -1187 -1180 -1172 -116...
result:
ok ok, tt = 1
Test #85:
score: 0
Accepted
time: 36ms
memory: 8940kb
input:
1 100000 -2983 -2465 -252 -77 -1206 16 -781 731 -3145 1643 -2999 -2939 -2960 1433 -3261 1354 -1056 1821 2081 2689 -2882 1844 -1263 -862 1925 3015 -2071 -355 -2963 1565 -2219 566 -1144 -1002 -2981 2641 -19 2875 -756 1412 -846 519 -3084 883 625 1845 935 3550 -626 272 2133 3380 -2629 2222 1697 2847 -18...
output:
325 327 -3560 -3553 -3522 -3494 -3454 -3436 -3430 -3413 -3377 -3368 -3322 -3285 -3269 -3252 -3220 -3176 -3161 -3148 -3135 -3116 -3091 -3079 -3068 -3060 -3038 -3023 -3016 -3010 -2983 -2973 -2963 -2944 -2917 -2902 -2882 -2860 -2850 -2838 -2826 -2787 -2763 -2743 -2730 -2715 -2686 -2670 -2665 -2633 -260...
result:
ok ok, tt = 1
Test #86:
score: 0
Accepted
time: 41ms
memory: 11292kb
input:
1 100000 -4567 6416 -5133 5434 -1320 6573 -5780 3958 4958 6669 -8456 -1884 6986 8753 -765 4398 -6527 -1035 -6467 -1039 2624 8745 -7984 3283 7519 9373 -7893 -3820 -6446 5505 618 1892 -2647 6272 -5641 -927 -5765 -848 -7178 8270 -8612 -5419 -5368 -1584 -9101 8646 4456 9144 -5165 2043 3073 7052 3666 498...
output:
355 355 -9532 -9479 -9384 -9368 -9327 -9242 -9225 -9139 -9106 -9068 -9003 -8929 -8896 -8877 -8861 -8751 -8724 -8697 -8639 -8573 -8534 -8488 -8453 -8409 -8341 -8307 -8236 -8152 -8138 -8048 -7952 -7923 -7864 -7774 -7717 -7670 -7596 -7561 -7456 -7364 -7285 -7213 -7180 -7123 -7031 -6971 -6952 -6894 -683...
result:
ok ok, tt = 1
Test #87:
score: 0
Accepted
time: 40ms
memory: 9580kb
input:
1 100000 -6966 -1124 -2849 6247 -6378 563 -3449 784 -3718 7956 -7122 1472 3543 6582 -321 6704 5319 6135 -6377 -1565 -1665 2771 -28 8166 -8066 1442 -8099 -2891 -3331 8780 975 2680 -7505 5932 -7777 -4768 -6324 -521 -7763 394 -7704 -5034 6067 8443 -8000 4499 -2762 7872 3329 5580 -4612 4603 -2566 -1531 ...
output:
343 344 -8867 -8824 -8781 -8723 -8665 -8620 -8512 -8462 -8383 -8327 -8266 -8172 -8148 -8082 -8016 -7983 -7965 -7906 -7859 -7810 -7786 -7690 -7683 -7665 -7621 -7577 -7540 -7516 -7487 -7457 -7449 -7387 -7345 -7298 -7244 -7184 -7099 -7050 -6969 -6923 -6875 -6824 -6787 -6727 -6684 -6668 -6626 -6560 -652...
result:
ok ok, tt = 1
Test #88:
score: 0
Accepted
time: 35ms
memory: 8600kb
input:
1 100000 -1259 279 1243 1350 -108 -42 -1534 -637 -1285 394 1058 1481 -431 -261 -879 723 -1662 -1632 -1308 354 -1522 211 -1062 1412 -1634 -668 1359 1542 -1281 -1086 -1281 524 1072 1450 184 252 -789 -188 33 563 600 1183 -1366 1671 -1718 1061 43 1749 -1010 -738 195 1712 645 1152 -124 1422 -318 1766 -69...
output:
327 328 -1917 -1897 -1883 -1874 -1853 -1836 -1831 -1817 -1801 -1791 -1786 -1768 -1757 -1746 -1737 -1727 -1710 -1692 -1672 -1668 -1654 -1640 -1633 -1603 -1581 -1556 -1547 -1534 -1529 -1518 -1506 -1498 -1479 -1457 -1446 -1440 -1435 -1428 -1416 -1413 -1399 -1386 -1382 -1373 -1362 -1355 -1334 -1319 -130...
result:
ok ok, tt = 1
Test #89:
score: 0
Accepted
time: 38ms
memory: 11588kb
input:
1 100000 -6562 5974 718 6651 -6467 -2960 5824 5933 -3977 -1164 -2207 -1613 -4669 3441 -5718 3811 -5375 -421 -1071 2418 4694 6894 -4423 1555 -2956 2062 -3971 -697 -5348 -1611 2552 5714 115 2297 -5428 -1793 -1826 3361 5774 6169 -3604 1589 -4570 -4298 -3353 -1827 3394 5257 -440 2145 -1893 2685 -1139 47...
output:
345 346 -6915 -6896 -6856 -6843 -6776 -6723 -6683 -6655 -6644 -6608 -6546 -6500 -6485 -6451 -6444 -6435 -6389 -6349 -6324 -6290 -6198 -6165 -6131 -6052 -5982 -5961 -5937 -5912 -5860 -5817 -5799 -5756 -5740 -5734 -5676 -5665 -5616 -5607 -5591 -5518 -5461 -5415 -5371 -5311 -5277 -5223 -5185 -5127 -507...
result:
ok ok, tt = 1
Test #90:
score: 0
Accepted
time: 45ms
memory: 11380kb
input:
1 100000 -2638 -612 1139 8451 -9085 5487 -6658 -1589 -7354 101 7413 7995 -5072 -144 -5406 9254 -2270 3856 -8245 4552 -6994 2583 -1067 5508 -2360 7362 7730 8972 -6689 -1647 -3900 5465 -8219 -7343 -6380 -1059 -7861 -2939 -9415 -6302 -1419 6102 -5972 4276 -2954 4416 -6284 2544 2756 8582 2886 6438 509 7...
output:
350 351 -9866 -9841 -9798 -9729 -9716 -9658 -9574 -9422 -9306 -9274 -9237 -9155 -9084 -9025 -8933 -8841 -8795 -8722 -8667 -8617 -8527 -8500 -8471 -8406 -8348 -8285 -8223 -8201 -8131 -8057 -8022 -7998 -7971 -7836 -7728 -7702 -7640 -7601 -7571 -7565 -7535 -7343 -7275 -7241 -7160 -7109 -7079 -7028 -698...
result:
ok ok, tt = 1
Test #91:
score: 0
Accepted
time: 40ms
memory: 11572kb
input:
1 100000 -7147 1933 -5997 4389 6995 7277 -2740 3465 1598 4373 817 6898 -4582 -3733 1477 5533 5999 7288 61 6087 -843 304 -7162 -5231 537 3421 -2283 -1798 -3580 -2082 121 7225 -1862 6297 -5376 -4130 6355 7037 959 3945 3741 6928 -4215 1401 -5912 1022 -1626 4830 -7079 6028 4597 5456 -4205 -3183 462 4987...
output:
351 352 -7466 -7382 -7331 -7252 -7231 -7204 -7162 -7054 -6998 -6967 -6961 -6881 -6874 -6858 -6801 -6785 -6778 -6708 -6645 -6625 -6570 -6520 -6440 -6400 -6342 -6308 -6270 -6218 -6205 -6171 -6106 -6058 -6048 -6030 -6003 -5973 -5927 -5918 -5889 -5883 -5851 -5792 -5759 -5691 -5672 -5582 -5528 -5497 -546...
result:
ok ok, tt = 1
Test #92:
score: 0
Accepted
time: 43ms
memory: 9448kb
input:
1 100000 -6314 7079 -3555 3814 -528 7121 -5474 6874 -6392 2497 -4222 4490 -3533 -3379 -836 7345 -1946 2263 507 7131 -4069 -3297 -6203 1603 -6625 -6084 -6392 3983 -3187 933 -2782 2932 4816 4823 -3107 -1632 -4411 645 5079 5465 5114 5947 740 7603 288 3679 -7525 -5299 3519 4955 -7562 -47 -2511 4200 -646...
output:
364 364 -7571 -7529 -7486 -7461 -7430 -7391 -7336 -7293 -7284 -7200 -7155 -7083 -7040 -7028 -6974 -6952 -6879 -6820 -6766 -6740 -6718 -6702 -6668 -6614 -6603 -6575 -6511 -6464 -6442 -6406 -6377 -6360 -6303 -6263 -6228 -6198 -6195 -6126 -6027 -5996 -5968 -5920 -5897 -5858 -5810 -5738 -5707 -5640 -559...
result:
ok ok, tt = 1
Test #93:
score: 0
Accepted
time: 41ms
memory: 12428kb
input:
1 100000 -1435 3333 236 765 -1856 1511 -3721 2752 -1202 1537 -3089 1273 -3004 3799 -1753 3340 -3144 573 -3783 -2748 -1280 1225 -210 2981 -3203 1002 244 3114 -236 2827 -1375 -240 918 2822 -3198 1875 -3427 -3034 513 3395 -3886 -2957 -2559 -1845 101 1839 -1668 -650 2585 2839 -2148 -1072 1389 3030 306 7...
output:
329 329 -3897 -3886 -3839 -3812 -3792 -3774 -3763 -3734 -3722 -3717 -3675 -3663 -3630 -3598 -3591 -3583 -3567 -3539 -3523 -3507 -3484 -3451 -3430 -3414 -3376 -3346 -3320 -3279 -3264 -3241 -3226 -3205 -3189 -3170 -3159 -3137 -3120 -3100 -3092 -3068 -3040 -3024 -2993 -2967 -2937 -2922 -2902 -2866 -285...
result:
ok ok, tt = 1
Test #94:
score: 0
Accepted
time: 40ms
memory: 8924kb
input:
1 100000 498 562 -268 1751 1136 1484 -1743 3137 -1739 90 -1491 2077 661 2873 -1751 -780 -1933 542 -2153 -1027 791 1872 -1990 -914 -666 2017 -1545 2395 -1031 3144 69 1201 -2460 636 -3067 -614 1493 3226 2012 3173 -2384 1298 -376 1176 1807 3151 -1690 -362 -222 2851 -2230 1045 -1079 298 -2637 3133 30 18...
output:
339 341 -3288 -3280 -3264 -3245 -3221 -3195 -3170 -3147 -3125 -3104 -3088 -3075 -3052 -3041 -3022 -3005 -2985 -2943 -2921 -2898 -2887 -2866 -2863 -2839 -2837 -2813 -2804 -2784 -2757 -2731 -2709 -2679 -2668 -2643 -2631 -2595 -2588 -2575 -2549 -2529 -2501 -2481 -2454 -2429 -2411 -2393 -2379 -2356 -232...
result:
ok ok, tt = 1
Test #95:
score: 0
Accepted
time: 34ms
memory: 12308kb
input:
1 100000 462 1550 -1074 -218 -1300 1033 -1447 1557 -333 223 -961 426 -795 1039 -1179 776 -402 1348 296 977 239 945 -1139 116 -151 1210 1340 1619 -1458 -1444 -1135 521 -743 -116 -1708 -1478 -1117 -87 -1595 -1278 -1260 1399 -1640 1464 -1507 630 -288 97 -1618 71 -973 187 -176 356 31 200 1513 1751 -1617...
output:
305 307 -1751 -1735 -1722 -1714 -1708 -1695 -1693 -1679 -1660 -1657 -1648 -1640 -1621 -1603 -1597 -1591 -1587 -1577 -1563 -1558 -1548 -1528 -1515 -1502 -1487 -1477 -1463 -1452 -1445 -1429 -1421 -1410 -1394 -1383 -1371 -1360 -1354 -1343 -1338 -1328 -1314 -1308 -1299 -1295 -1287 -1268 -1254 -1242 -123...
result:
ok ok, tt = 1
Test #96:
score: 0
Accepted
time: 40ms
memory: 12220kb
input:
1 100000 -501 267 -2881 335 838 2380 -2160 1910 -2968 2048 610 1908 -1543 1336 1972 2322 -1357 -1288 -1971 -1114 -1103 1998 -1396 -756 -2073 2723 1810 3178 -2812 -2625 -1162 -279 -1392 -402 -2385 1771 1841 2873 1017 2693 2834 3013 -1665 724 -332 18 729 1984 -2716 3124 -1834 -1251 -2087 1437 -385 200...
output:
336 337 -3190 -3161 -3133 -3126 -3105 -3076 -3049 -3024 -3009 -2983 -2964 -2936 -2924 -2912 -2895 -2885 -2880 -2860 -2849 -2817 -2813 -2811 -2784 -2777 -2760 -2758 -2733 -2715 -2692 -2665 -2626 -2613 -2604 -2583 -2559 -2550 -2513 -2496 -2471 -2445 -2431 -2416 -2409 -2382 -2369 -2330 -2305 -2262 -225...
result:
ok ok, tt = 1
Test #97:
score: 0
Accepted
time: 30ms
memory: 17828kb
input:
1 100000 28348 1000000000 37729 1000000000 93566 1000000000 51949 1000000000 30380 1000000000 64444 1000000000 96252 1000000000 2238 1000000000 15193 1000000000 26067 1000000000 78851 1000000000 30352 1000000000 30691 1000000000 49881 1000000000 88144 1000000000 47382 1000000000 56326 1000000000 101...
output:
1 1 99999
result:
ok ok, tt = 1
Test #98:
score: 0
Accepted
time: 35ms
memory: 18484kb
input:
1 100000 -1000000000 84384 -1000000000 17023 -1000000000 43932 -1000000000 88405 -1000000000 14147 -1000000000 71513 -1000000000 2346 -1000000000 68207 -1000000000 4129 -1000000000 50259 -1000000000 15243 -1000000000 57800 -1000000000 76772 -1000000000 19474 -1000000000 84197 -1000000000 95954 -1000...
output:
1 1 -1000000000
result:
ok ok, tt = 1
Test #99:
score: 0
Accepted
time: 84ms
memory: 22260kb
input:
1 100000 6049400 6049442 9031900 9031942 9993900 9993942 7807900 7807942 3490400 3490442 8702800 8702842 7157200 7157242 2575200 2575242 1029300 1029342 1435400 1435442 2723000 2723042 3140300 3140342 2731800 2731842 9939000 9939042 9117300 9117342 4140800 4140842 6928300 6928342 6063400 6063442 626...
output:
99999 99999 0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100 2200 2300 2400 2500 2600 2700 2800 2900 3000 3100 3200 3300 3400 3500 3600 3700 3800 3900 4000 4100 4200 4300 4400 4500 4600 4700 4800 4900 5000 5100 5200 5300 5400 5500 5600 5700 5800 5900 ...
result:
ok ok, tt = 1
Test #100:
score: 0
Accepted
time: 50ms
memory: 21812kb
input:
1 100000 -72292 72292 -40055 40055 -92738 92738 -37640 37640 -37837 37837 -44913 44913 -45179 45179 -30366 30366 -83264 83264 -21305 21305 -17610 17610 -83556 83556 -45388 45388 -32844 32844 -58125 58125 -9887 9887 -78435 78435 -60889 60889 -10160 10160 -96564 96564 -66134 66134 -80662 80662 -78438 ...
output:
1 1 -1
result:
ok ok, tt = 1
Test #101:
score: 0
Accepted
time: 69ms
memory: 22008kb
input:
1 100000 416349661 416359661 285273062 285283062 257752426 257762426 94120336 94130336 414932354 414942354 348680698 348690698 124074621 124084621 444582706 444592706 390232564 390242564 372863471 372873471 469171845 469181845 249825358 249835358 131487248 131497248 153435159 153445159 361806098 361...
output:
33325 33325 12117 46176 56331 70559 81976 93103 117166 130583 151692 165471 175666 188203 198234 213806 228751 243555 254329 265152 275191 288924 311688 321903 339544 350737 365894 380125 396950 407100 421678 442772 455619 474048 486482 502257 516735 531501 546085 556218 566722 576851 588547 599874 ...
result:
ok ok, tt = 1