QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#664448 | #1429. Hit | Flamire | AC ✓ | 72ms | 45540kb | C++17 | 2.2kb | 2024-10-21 20:43:16 | 2024-10-21 20:43:17 |
Judging History
answer
#include <bits/stdc++.h>
#define N 200011
#define pii pair<int,int>
#define s1 first
#define s2 second
using namespace std;
vector<int> vv;int t,n,l[N],r[N];
int ID(int x){return lower_bound(vv.begin(),vv.end(),x)-vv.begin();}
int to[N][21],dis[N],X;
bool vis[N];
vector<pii> G[N];
int F(int w){return w==1?X:w;}
vector<int> vl[N],vr[N];
int tor[N],tolx[N];
bool spfa()
{
for(int i=0;i<vv.size();++i)dis[i]=0;
for(int i=vv.size()-1;~i;--i)
{
if(i)dis[i-1]=min(dis[i],dis[i-1]);
if(~tor[i])dis[tor[i]]=min(dis[tor[i]],dis[i]-1);
}
for(int i=0;i<vv.size();++i)vis[i]=0;
static queue<int> q;int cc=0;
while(!q.empty())q.pop();
for(int i=0;i<vv.size();++i)q.push(i),vis[i]=1;
while(!q.empty())
{
int p=q.front();q.pop();++cc;vis[p]=0;
if(cc>2*vv.size())return 0;
for(auto [v,w]:G[p])if(dis[v]>dis[p]+F(w))
{
dis[v]=dis[p]+F(w);
if(!vis[v])q.push(v),vis[v]=1;
}
}
return 1;
}
int getx(int l,int r)
{
int ans=0;
for(int i=17;~i;--i)if(to[r][i]>=l)r=to[r][i],ans+=1<<i;
return ans;
}
int main()
{
scanf("%d",&t);while(t--)
{
scanf("%d",&n);vv.clear();
for(int i=1;i<=n;++i)
{
scanf("%d%d",l+i,r+i);
vv.push_back(l[i]-1);
vv.push_back(r[i]);
}
sort(vv.begin(),vv.end());vv.resize(unique(vv.begin(),vv.end())-vv.begin());
for(int i=0;i<vv.size();++i)tor[i]=tolx[i]=-1;
for(int i=1;i<=n;++i)
{
l[i]=ID(l[i]-1);r[i]=ID(r[i]);
tor[r[i]]=max(tor[r[i]],l[i]);
tolx[l[i]]=max(tolx[l[i]],r[i]);
}
for(int i=0;i<vv.size();++i)G[i].clear();
for(int i=0;i<vv.size();++i)to[i][0]=-1;
for(int i=0;i<vv.size();++i)
{
if(~tor[i])
{
G[i].push_back({tor[i],-1});
to[i][0]=max(to[i][0],tor[i]);
}
if(i)to[i][0]=max(to[i][0],to[i-1][0]);
if(~tolx[i])G[i].push_back({tolx[i],1});
if(i)G[i].push_back({i-1,0});
}
for(int i=0;i<vv.size();++i)for(int j=1;j<=17;++j)
{
if(!~to[i][j-1])to[i][j]=-1;
else to[i][j]=to[to[i][j-1]][j-1];
}
X=0;
for(int i=1;i<=n;++i)X=max(X,getx(l[i],r[i]));
if(!spfa())++X,spfa();
printf("%d ",X);
printf("%d ",-dis[0]);
for(int i=1;i<vv.size();++i)if(dis[i]!=dis[i-1])printf("%d ",vv[i]);putchar(10);
}
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 22240kb
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 1 2 5 4 4 10 30 50 70 2 3 -9 -2 4 2 3 1 2 5
result:
ok ok, tt = 4
Test #2:
score: 0
Accepted
time: 0ms
memory: 17868kb
input:
1 1 0 1
output:
1 1 1
result:
ok ok, tt = 1
Test #3:
score: 0
Accepted
time: 3ms
memory: 18220kb
input:
3 1 -1000000000 1000000000 1 -1000000000 -999999999 1 999999999 1000000000
output:
1 1 1000000000 1 1 -999999999 1 1 1000000000
result:
ok ok, tt = 3
Test #4:
score: 0
Accepted
time: 43ms
memory: 18208kb
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 -744839313 1 1 645984490 1 1 342792055 1 1 -400411740 1 1 205856204 1 1 268256106 1 1 806620391 1 1 86560242 1 1 -644094805 1 1 518776542 1 1 -958188900 1 1 -762439365 1 1 -880465378 1 1 -545603970 1 1 674193870 1 1 -613177432 1 1 -189815796 1 1 -636284766 1 1 -212256845 1 1 -...
result:
ok ok, tt = 100000
Test #5:
score: 0
Accepted
time: 54ms
memory: 20512kb
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 -319069731 1 1 804248178 1 1 -819815600 1 1 -20800126 1 1 64456029 1 1 -666742404 1 1 -620054847 1 1 -883932130 1 1 97672798 1 1 -456770262 1 1 692802903 1 1 669651153 1 1 -413146928 1 1 912121104 1 1 -402000624 1 1 310772000 1 1 -329279769 1 1 888975125 1 1 -505832802 1 1 310...
result:
ok ok, tt = 100000
Test #6:
score: 0
Accepted
time: 45ms
memory: 22556kb
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 -95619025 1 1 761501973 1 1 895113150 1 1 560617332 1 1 510136024 1 1 -650911183 1 1 62633326 1 1 641989470 1 1 66116491 1 1 340664034 1 1 433070710 1 1 316877801 1 1 991378355 1 1 351139472 1 1 643790197 1 1 899761936 1 1 -713126923 1 1 358738130 1 1 502116510 1 1 647513652 ...
result:
ok ok, tt = 100000
Test #7:
score: 0
Accepted
time: 46ms
memory: 22220kb
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 -135832850 1 1 -739814745 1 1 436843128 1 1 597671579 1 1 -48746711 1 1 -874340357 1 1 -945006677 1 1 279390556 1 1 -288200984 1 1 685514644 1 1 -31640268 1 1 -224829882 1 1 -595948258 1 1 -886772435 1 1 281278372 1 1 -154122163 1 1 302173751 1 1 117393731 1 1 -725867793 1 1 -...
result:
ok ok, tt = 100000
Test #8:
score: 0
Accepted
time: 46ms
memory: 22556kb
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 -817076126 1 1 -823854498 1 1 -90954343 1 1 895167117 1 1 -592296022 1 1 -60845257 1 1 -143079067 1 1 -658589397 1 1 632505978 1 1 651681553 1 1 354710208 1 1 -579254528 1 1 -415805150 1 1 -620402885 1 1 -80905695 1 1 866571582 1 1 884604855 1 1 888448333 1 1 -97223882 1 1 791...
result:
ok ok, tt = 100000
Test #9:
score: 0
Accepted
time: 42ms
memory: 22276kb
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 175843021 1 1 369513273 1 1 866834459 1 1 619481540 1 1 -388861986 1 1 86153621 1 1 670657620 1 1 527397835 1 1 777147616 1 1 999819348 1 1 430027557 1 1 937429463 1 1 375753871 1 1 -241036764 1 1 253849507 1 1 904700981 1 1 875953108 1 1 121979058 1 1 465863397 1 1 901461978 ...
result:
ok ok, tt = 100000
Test #10:
score: 0
Accepted
time: 45ms
memory: 22216kb
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 -330557331 -239258910 -186440987 868102416 1 3 -232183484 -180651308 748153230 1 1 -573301094 1 2 -600701104 -278362438 1 3 -625261223 377771047 765234419 1 2 -772865937 -84556628 1 1 770021135 1 4 -426773202 -230063854 446840121 522239063 1 3 -817483854 -666548915 382548322 1 6 -869109...
result:
ok ok, tt = 18139
Test #11:
score: 0
Accepted
time: 46ms
memory: 22260kb
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 -587302321 -307381953 -203235401 235156246 548146965 612829986 1 5 -828869761 -621240147 -462880667 21149560 150451126 1 1 342776419 1 5 -964969612 -855582387 -649355822 -35329612 188035491 1 6 -798024093 -606741869 437565320 567632562 803810143 964101989 1 3 -767627849 -495398605 400486568...
result:
ok ok, tt = 18100
Test #12:
score: 0
Accepted
time: 41ms
memory: 22240kb
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 -745044456 -492922415 1 2 -173514637 974882583 1 1 519406660 1 1 483623678 1 2 -496651937 803485629 1 3 -767189089 -276389524 674646296 1 1 -337612608 2 4 -774316111 377059314 671197591 947062775 2 2 -357889994 375405984 1 2 -647977976 124238958 2 2 -224588367 239570222 1 4 -939414375...
result:
ok ok, tt = 18133
Test #13:
score: 0
Accepted
time: 36ms
memory: 22252kb
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 -481478345 -212103356 -159394105 -115526252 21576 64121837 329876984 407340943 709295587 917523471 1 10 -990727071 -966959227 -740112635 -486863445 208816371 281620256 369203597 451805266 517813073 588061967 1 10 -980020619 -897308380 -337399133 -291693182 -185627418 -62840400 15760740 322921...
result:
ok ok, tt = 10000
Test #14:
score: 0
Accepted
time: 36ms
memory: 22324kb
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 -759031174 -602096184 -342513788 -105112142 -25660790 396589232 644827792 1 7 -689317566 -289542973 6349651 133353790 181128673 418090877 672522353 1 6 -835233568 -461990596 -179986756 -36565299 252510816 623612156 1 6 -796351540 -659766756 111484915 335210280 532838490 716462515 1 6 -805420...
result:
ok ok, tt = 10000
Test #15:
score: 0
Accepted
time: 32ms
memory: 22284kb
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 -460475673 -146305358 399479363 3 3 -576674218 472435445 758884343 5 5 -684479450 -124002597 -74942502 145747514 194530530 1 5 -908439896 -610270887 -299953542 307981824 739861543 1 3 -740177142 -375349773 411568686 2 3 -797052731 -239925500 66648346 3 4 -877019032 -370784196 417530482 808...
result:
ok ok, tt = 10000
Test #16:
score: 0
Accepted
time: 43ms
memory: 22352kb
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 -895078281 -790201899 -714949937 -687718654 -509165271 -464582157 -414986437 -411719929 -318020488 -304156223 -221963993 -172183170 -152771324 88750440 180607248 231004181 272809277 382779156 426676602 437793551 507260616 550613861 673246744 791549862 962718666 1 20 -766541093 -379369333 -1766...
result:
ok ok, tt = 2015
Test #17:
score: 0
Accepted
time: 38ms
memory: 22588kb
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 -870254092 -738831005 -602955231 -528032305 -472333424 -416804448 -300765402 -164563341 -139434963 -66559103 28874255 61513341 105513228 176869155 253526758 268775606 376945696 487121504 551617467 584364034 698845899 797301058 855002236 924934522 3 22 -896023510 -786442739 -713479999 -66193804...
result:
ok ok, tt = 1961
Test #18:
score: 0
Accepted
time: 38ms
memory: 22264kb
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 -899632473 -751313206 -636400630 -430922015 -335044597 -76861914 48731604 234178055 543920429 625822942 731025004 10 12 -915135955 -869165463 -380228541 -353267015 -219810204 45521360 255831879 435111447 457764395 658060995 881964277 966321387 9 9 -874076743 -591706880 -409858630 -246141044 ...
result:
ok ok, tt = 1915
Test #19:
score: 0
Accepted
time: 39ms
memory: 22568kb
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 -982482176 -973277785 -905805828 -844196587 -815060372 -803486026 -731696490 -714637462 -702128929 -679644388 -652368218 -626354011 -610406258 -587864612 -581132298 -552869616 -534363363 -524329989 -511391771 -489599987 -477403870 -440003155 -334298774 -292093282 -224130272 -205382471 -18435661...
result:
ok ok, tt = 1000
Test #20:
score: 0
Accepted
time: 38ms
memory: 20716kb
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 -958685777 -927802231 -830171223 -798470228 -694138247 -596668396 -482892644 -405668244 -313456988 -233431288 -134456749 -51277528 16070551 71274229 119909448 126793885 173867777 266692791 322489689 388734009 440058972 487045106 541241172 615808401 684118563 799598479 842921701 4 27 -932547827...
result:
ok ok, tt = 1000
Test #21:
score: 0
Accepted
time: 45ms
memory: 22280kb
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 -861437752 -625110298 -507100582 -467725250 -317950871 -170751408 -41526042 266426286 328548343 400839272 446150542 628282309 796458750 11 11 -859746466 -786246949 -741956569 -639282140 -265180880 -84711899 20616329 208696746 365901709 643755723 855025222 11 13 -922662371 -864317710 -6614091...
result:
ok ok, tt = 1000
Test #22:
score: 0
Accepted
time: 43ms
memory: 22356kb
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 -992975234 -980206931 -974677788 -969109156 -959298474 -946394706 -945103384 -927901186 -911013309 -899479310 -884414817 -872173855 -867867294 -850786484 -832674011 -816657720 -801199912 -791767221 -774570464 -748847474 -738274138 -726221462 -720469771 -703464216 -702637729 -679341018 -6685945...
result:
ok ok, tt = 196
Test #23:
score: 0
Accepted
time: 39ms
memory: 22320kb
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 -973840283 -920906881 -886306370 -790215064 -723768430 -689467932 -612486297 -568895696 -479715458 -396170574 -319261207 -251782587 -219230452 -174516946 -115550500 -52536956 51695731 139192529 179285515 249295635 323809303 383670316 519170483 568249743 648077236 687502620 735983348 767416656 8...
result:
ok ok, tt = 232
Test #24:
score: 0
Accepted
time: 43ms
memory: 22348kb
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 -902849461 -868848871 -845411917 -790647293 -721989779 -645981198 -564879027 -536412723 -513115769 -455515394 -386173740 -331266007 -234798046 -102060912 -17095341 73399246 128846968 175456072 310310212 337404888 406049970 424502198 462035641 538293010 624734372 719043841 784294017 800432487 8...
result:
ok ok, tt = 188
Test #25:
score: 0
Accepted
time: 48ms
memory: 22664kb
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 -997026797 -987142264 -966432939 -958577533 -954009145 -942156528 -937984459 -926804832 -917188091 -913213236 -902157979 -897341642 -892409183 -883880132 -878058641 -870415409 -867591922 -858164141 -845412533 -835561971 -831064704 -824009652 -812906907 -809971389 -802610881 -794993282 -7845834...
result:
ok ok, tt = 100
Test #26:
score: 0
Accepted
time: 44ms
memory: 22556kb
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 -993838670 -963390633 -932625405 -911098097 -885789495 -862996986 -827341927 -800954852 -788693482 -755013267 -736122671 -714494045 -682816725 -656141571 -641759079 -600619508 -574358892 -551812594 -529289395 -490401542 -471029094 -460223588 -435263104 -396353517 -373979160 -352696434 -3218107...
result:
ok ok, tt = 100
Test #27:
score: 0
Accepted
time: 45ms
memory: 22372kb
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 -964404429 -923842535 -825896320 -792381668 -742472016 -693365942 -686235687 -658328550 -611403534 -532824503 -458715969 -337754646 -301605847 -211696761 -158858696 -135196279 -81208805 -24060734 57086422 138346113 208128571 254054031 277686710 285951701 311423417 443428293 479979896 530100249...
result:
ok ok, tt = 100
Test #28:
score: 0
Accepted
time: 47ms
memory: 25180kb
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 -998804958 -994861825 -991206215 -983145403 -975757873 -970711307 -960822073 -953382818 -950794372 -943229641 -939907691 -928560083 -921915619 -911934407 -909490997 -905071305 -898188584 -893062248 -889022067 -881484770 -872241704 -860802430 -852278768 -845730263 -842329657 -834800829 -8318322...
result:
ok ok, tt = 27
Test #29:
score: 0
Accepted
time: 54ms
memory: 25208kb
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 -995144881 -986864104 -981542339 -978588396 -973285826 -967741147 -953928852 -944252485 -936998069 -935953440 -923928349 -911371112 -905693672 -899468142 -888973794 -885748835 -883798095 -874081853 -860888703 -849621890 -837501091 -830471742 -820907118 -810782865 -805052954 -797793765 -791320...
result:
ok ok, tt = 32
Test #30:
score: 0
Accepted
time: 47ms
memory: 25400kb
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 -991603601 -957317087 -930185274 -913400229 -879190788 -869435515 -859254036 -851461450 -837238331 -832771715 -827669300 -809928716 -778789186 -760417546 -723584729 -715021318 -706227815 -681889449 -645101933 -611545296 -601224583 -578573825 -558992975 -537351146 -522899380 -505495965 -49990...
result:
ok ok, tt = 31
Test #31:
score: 0
Accepted
time: 51ms
memory: 25152kb
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 -996319489 -993287551 -989716410 -984830286 -982728296 -980943601 -980531586 -977405400 -976561366 -976050453 -972769797 -971206898 -970399808 -969245461 -967416797 -965405909 -960365281 -957564658 -955840794 -954273854 -952056749 -950772982 -949937367 -947739309 -947289251 -943110188 -939551...
result:
ok ok, tt = 10
Test #32:
score: 0
Accepted
time: 54ms
memory: 25116kb
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 -997628798 -988118437 -987374045 -983541937 -975421211 -962142427 -960068989 -944505609 -941512575 -938121744 -936463188 -935121347 -926127185 -913671264 -907521724 -904288779 -899153614 -887057524 -876165928 -874611747 -862171321 -855617877 -842695619 -836175779 -822832142 -819942684 -812157...
result:
ok ok, tt = 10
Test #33:
score: 0
Accepted
time: 57ms
memory: 25224kb
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 -996283952 -988179148 -977325763 -958335457 -942751453 -924407416 -903326339 -869359535 -856178120 -848259934 -842582585 -824597223 -809596494 -801353759 -796185346 -778010475 -763474829 -756353723 -722493082 -713278723 -698368967 -676367515 -653760666 -641073168 -620932266 -610913064 -58006...
result:
ok ok, tt = 10
Test #34:
score: 0
Accepted
time: 52ms
memory: 28724kb
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 -996394374 -991466603 -989486270 -982046539 -980918193 -976745521 -971851851 -969554380 -967779671 -966925098 -960750036 -954638656 -953389820 -948032930 -943670737 -941692839 -933128914 -932275544 -929451420 -921598513 -919533707 -913116066 -911463434 -906907034 -902632458 -899671130 -8971176...
result:
ok ok, tt = 17
Test #35:
score: 0
Accepted
time: 57ms
memory: 37948kb
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 -941086588 -878919612 -769888813 -712981558 -584566122 -488743578 -409978119 -283649610 -175022895 -80369976 51342778 141544963 191417745 240911068 258514050 379543999 493707731 568379707 595299748 680182435 745375222 909898782 6 35 -949363678 -905416803 -838905382 -791110518 -723718974 -70743...
result:
ok ok, tt = 15
Test #36:
score: 0
Accepted
time: 72ms
memory: 37200kb
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 -999960632 -996269989 -980380604 -967792153 -954516485 -946629799 -932858792 -921469314 -916983584 -911377840 -904288710 -886252233 -877641528 -867811606 -858801026 -854950576 -848551900 -840560080 -830569307 -818031989 -816205861 -812761085 -807047806 -801185039 -798383539 -790422754 -78371...
result:
ok ok, tt = 14
Test #37:
score: 0
Accepted
time: 65ms
memory: 45144kb
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 -999456190 -999284822 -998915125 -998080425 -997196212 -996850319 -995951993 -995373136 -994700038 -994397962 -993603084 -993072818 -992452128 -991785398 -990661847 -989649048 -988220563 -987479318 -986861445 -986576432 -985905635 -985293230 -984097860 -983674548 -982947259 -982337470 -98182...
result:
ok ok, tt = 1
Test #38:
score: 0
Accepted
time: 66ms
memory: 45156kb
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 -999776636 -998675778 -998446223 -995925140 -993894555 -993468250 -989627723 -987850477 -986252868 -984063014 -982145053 -980623446 -977845161 -976640662 -973594261 -972218409 -969551950 -969282023 -964740055 -961693283 -961244017 -957513128 -952430105 -951433058 -951027395 -950633154 -948531...
result:
ok ok, tt = 1
Test #39:
score: 0
Accepted
time: 70ms
memory: 44800kb
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 -998608844 -995599555 -993268064 -990391099 -986939178 -973358160 -966505273 -961287237 -955522872 -953667163 -944947362 -943041978 -938041388 -933100257 -922072852 -915572182 -905722228 -898232189 -890662785 -882682197 -876860870 -869507785 -867574092 -860648603 -850585189 -849343430 -84616...
result:
ok ok, tt = 1
Test #40:
score: 0
Accepted
time: 40ms
memory: 22216kb
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 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 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 0 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 1 1 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 1 ...
result:
ok ok, tt = 100000
Test #41:
score: 0
Accepted
time: 39ms
memory: 22308kb
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 -2 1 1 6 1 1 9 1 1 -6 1 1 6 1 1 4 1 1 0 1 1 1 1 1 -4 1 1 3 1 1 -4 1 1 10 1 1 6 1 1 1 1 1 1 1 1 -8 1 1 9 1 1 -5 1 1 7 1 1 6 1 1 4 1 1 8 1 1 8 1 1 7 1 1 6 1 1 6 1 1 2 1 1 10 1 1 9 1 1 -7 1 1 1 1 1 1 1 1 10 1 1 -9 1 1 8 1 1 0 1 1 -8 1 1 4 1 1 9 1 1 7 1 1 6 1...
result:
ok ok, tt = 100000
Test #42:
score: 0
Accepted
time: 39ms
memory: 22524kb
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 49 1 1 35 1 1 66 1 1 94 1 1 -27 1 1 81 1 1 -2 1 1 20 1 1 38 1 1 97 1 1 60 1 1 -4 1 1 20 1 1 85 1 1 -16 1 1 70 1 1 97 1 1 -34 1 1 25 1 1 55 1 1 17 1 1 57 1 1 -46 1 1 52 1 1 88 1 1 97 1 1 78 1 1 31 1 1 -81 1 1 -78 1 1 65 1 1 46 1 1 -4 1 1 -8 1 1 55 1 1 63 1 1 8 ...
result:
ok ok, tt = 100000
Test #43:
score: 0
Accepted
time: 40ms
memory: 22216kb
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 -182 1 1 310 1 1 310 1 1 756 1 1 -32 1 1 788 1 1 345 1 1 200 1 1 434 1 1 -99 1 1 918 1 1 360 1 1 283 1 1 293 1 1 844 1 1 -333 1 1 838 1 1 339 1 1 -22 1 1 504 1 1 789 1 1 159 1 1 45 1 1 522 1 1 994 1 1 333 1 1 967 1 1 10 1 1 654 1 1 911 1 1 772 1 1 -250 1 1 149 1 ...
result:
ok ok, tt = 100000
Test #44:
score: 0
Accepted
time: 41ms
memory: 22268kb
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 3814 1 1 -2923 1 1 -7064 1 1 5895 1 1 9695 1 1 4245 1 1 9000 1 1 4799 1 1 5712 1 1 7720 1 1 -499 1 1 8642 1 1 6604 1 1 4103 1 1 -4992 1 1 8111 1 1 5312 1 1 9204 1 1 756 1 1 5222 1 1 9802 1 1 6197 1 1 -4349 1 1 -8425 1 1 2831 1 1 8096 1 1 5913 1 1 7497 1 1 5465 1 1 78...
result:
ok ok, tt = 100000
Test #45:
score: 0
Accepted
time: 42ms
memory: 20444kb
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 25216 1 1 -11235 1 1 -12391 1 1 44517 1 1 67137 1 1 59449 1 1 46944 1 1 10422 1 1 73988 1 1 93530 1 1 58435 1 1 90860 1 1 7417 1 1 32494 1 1 -75455 1 1 -37521 1 1 70087 1 1 20463 1 1 65549 1 1 -490 1 1 -97475 1 1 6864 1 1 -1552 1 1 59980 1 1 42819 1 1 -27893 1 1 63346 ...
result:
ok ok, tt = 100000
Test #46:
score: 0
Accepted
time: 20ms
memory: 22272kb
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 0 1 1 0 1 1 1 1 1 1 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 1 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 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 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 ...
result:
ok ok, tt = 18129
Test #47:
score: 0
Accepted
time: 29ms
memory: 20920kb
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 -2 3 1 2 -3 8 1 2 -7 5 1 1 0 2 3 -4 3 9 2 2 -8 -3 1 3 -6 3 9 2 2 -2 5 2 3 -4 -1 8 1 1 1 2 3 -2 0 7 2 2 -8 -4 1 3 -7 -1 9 2 2 -3 4 1 2 -2 10 1 2 -6 7 1 2 -9 0 2 2 -8 -3 2 3 0 3 9 2 2 -6 8 1 3 -6 1 9 2 2 -7 4 1 1 2 1 1 -1 2 3 -5 3 7 2 3 -4 -1 8 1 1 1 1 2 -4 2 1 1 8 2 3...
result:
ok ok, tt = 18189
Test #48:
score: 0
Accepted
time: 35ms
memory: 22280kb
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 29 1 4 -43 -20 29 51 1 1 40 1 1 88 1 3 -66 -3 92 1 2 -38 45 2 3 -27 31 92 1 2 -40 54 1 3 -89 -10 58 2 3 -38 14 61 2 3 -66 -8 50 1 1 -16 1 3 -68 15 66 1 2 2 93 2 2 -20 -17 2 2 -34 -2 2 2 27 68 2 3 -23 7 89 2 2 -42 38 1 1 -30 2 3 -31 3 52 1 1 17 2 3 -20 6 83 2 2 -14 87 1 2 ...
result:
ok ok, tt = 18219
Test #49:
score: 0
Accepted
time: 33ms
memory: 22264kb
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 -606 -32 4 4 -649 -495 -396 166 1 1 -33 1 2 303 986 4 4 -676 -431 -104 174 2 3 -771 112 836 1 1 252 2 2 -498 138 1 3 -905 -72 871 1 1 960 1 3 -802 108 796 1 2 -109 580 1 1 -48 1 2 323 901 1 2 -323 430 1 1 250 1 1 407 1 1 251 1 3 -434 405 769 4 4 -656 -360 415 932 3 6 -858 -44...
result:
ok ok, tt = 18357
Test #50:
score: 0
Accepted
time: 34ms
memory: 22244kb
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 -5992 -4065 751 5455 3 3 -7180 -3289 5445 1 2 -4618 4007 1 2 -7043 1730 2 3 -8842 -4440 1389 1 2 3527 9843 3 3 -8986 -5792 -1936 1 2 -9679 3180 1 1 -413 3 3 -5079 641 6312 1 1 5475 1 2 -6967 561 2 2 -4774 3959 1 2 -4651 2203 2 3 -5637 973 7520 1 3 -4361 599 6041 1 1 -877 2 3 -83...
result:
ok ok, tt = 18057
Test #51:
score: 0
Accepted
time: 30ms
memory: 22272kb
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 -10368 49719 1 1 -31409 2 3 -46059 40893 99981 1 2 -16680 44037 1 5 -93770 -85710 3865 77867 97741 2 2 -46005 17487 2 3 -73476 9104 48948 2 3 -47328 20965 80613 1 1 32077 1 1 1300 3 3 -4000 4617 51168 1 1 -12853 2 3 -43527 55583 94911 1 1 41078 1 2 -19789 43593 2 2 -56796 35453 1...
result:
ok ok, tt = 18266
Test #52:
score: 0
Accepted
time: 14ms
memory: 22268kb
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 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 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 = 1977
Test #53:
score: 0
Accepted
time: 27ms
memory: 20688kb
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 -9 -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 -...
result:
ok ok, tt = 2003
Test #54:
score: 0
Accepted
time: 30ms
memory: 20644kb
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 -30 2 21 44 53 81 8 9 -96 -76 -60 -35 -17 5 19 50 75 9 11 -93 -69 -57 -29 -13 14 29 58 69 75 90 2 3 -82 4 50 7 9 -94 -72 -54 -22 7 23 69 77 92 10 12 -92 -79 -55 -35 -11 8 22 37 50 57 75 85 4 5 -94 -61 -17 33 73 4 5 -69 7 29 56 98 1 2 -96 6 4 4 -55 -39 41 57 4 5 -71 -6 12 50 100 3 ...
result:
ok ok, tt = 1998
Test #55:
score: 0
Accepted
time: 33ms
memory: 22572kb
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 -948 -710 -621 -366 127 488 602 2 2 -432 186 4 6 -903 -750 -500 -309 207 848 3 4 -629 -265 46 313 8 9 -816 -430 -237 -109 352 387 582 727 885 7 9 -688 -571 -420 -361 -45 127 356 422 783 10 12 -950 -699 -495 -354 -127 91 275 542 627 633 749 951 8 10 -990 -711 -572 -327 -150 32 383 630 669 ...
result:
ok ok, tt = 1952
Test #56:
score: 0
Accepted
time: 34ms
memory: 22280kb
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 -9155 -4990 -829 -325 1009 2463 4883 1 1 1022 9 10 -9497 -9103 -8302 -8189 -7152 -4041 -1427 2792 4344 8592 1 1 3967 4 5 -6237 -3760 1699 6060 9319 7 8 -9362 -7164 -4277 -3471 -184 311 3554 7535 10 10 -8251 -7728 -7293 -5995 -4350 -730 3068 5198 6713 7990 5 6 -9701 -8148 -3969 635 3060 77...
result:
ok ok, tt = 1949
Test #57:
score: 0
Accepted
time: 35ms
memory: 22576kb
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 -64909 -49538 2000 23763 29033 51927 78321 88601 2 2 -48611 12454 10 11 -97603 -52089 -44022 -34040 -24942 -10412 13574 21620 47556 62330 74104 6 7 -64987 -42505 -28450 11854 22848 48010 94470 2 3 -80309 -10399 89160 3 5 -60984 -39500 -16570 7434 44319 4 6 -44442 210 6964 58249 76560 93435...
result:
ok ok, tt = 1973
Test #58:
score: 0
Accepted
time: 14ms
memory: 22248kb
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 ...
result:
ok ok, tt = 206
Test #59:
score: 0
Accepted
time: 17ms
memory: 20792kb
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 ...
result:
ok ok, tt = 217
Test #60:
score: 0
Accepted
time: 29ms
memory: 22376kb
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 -84 -73 -63 -33 4 33 58 75 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...
result:
ok ok, tt = 206
Test #61:
score: 0
Accepted
time: 41ms
memory: 22428kb
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 -936 -839 -757 -651 -601 -571 -505 -463 -397 -325 -263 -213 -160 -62 -23 14 70 170 219 287 349 491 630 689 785 848 949 12 14 -933 -718 -516 -397 -294 -191 -61 143 376 385 488 654 805 914 21 22 -925 -851 -687 -645 -557 -462 -406 -319 -308 -203 -153 -58 64 92 136 199 433 481 712 750 819 882 2...
result:
ok ok, tt = 199
Test #62:
score: 0
Accepted
time: 40ms
memory: 22648kb
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 -9257 -8063 -5855 -3898 -1791 -249 443 1655 2415 2710 4204 5329 5862 7017 8134 8768 9237 27 30 -9582 -8903 -8238 -8110 -7288 -6558 -5894 -5003 -4267 -2810 -2016 -1780 -1233 -70 852 1284 1693 2416 3403 4195 5071 5650 5758 6002 6159 7214 8118 9149 9365 9977 27 27 -9723 -8896 -8349 -7853 -7395 ...
result:
ok ok, tt = 210
Test #63:
score: 0
Accepted
time: 36ms
memory: 22672kb
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 -94824 -90073 -84118 -81669 -80178 -76689 -70162 -63649 -58196 -55372 -48341 -43217 -35827 -29450 -24262 -20779 -9076 -3516 7623 12664 21083 26495 31438 40304 50564 55670 60479 64393 65649 72827 81818 86697 91772 97788 12 14 -91957 -77085 -57524 -40249 -26244 -19193 -1553 9825 21109 32956 520...
result:
ok ok, tt = 198
Test #64:
score: 0
Accepted
time: 15ms
memory: 22396kb
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 1 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 1 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: 19ms
memory: 22776kb
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 -3 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 ...
result:
ok ok, tt = 24
Test #66:
score: 0
Accepted
time: 24ms
memory: 20900kb
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 20 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: 22416kb
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: 45ms
memory: 23048kb
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 -9975 -9753 -9595 -9464 -9139 -8940 -8756 -8410 -8147 -7725 -7540 -7353 -7143 -7030 -6620 -6275 -6167 -5975 -5554 -5335 -5084 -4978 -4731 -4709 -4433 -4222 -4033 -3830 -3615 -3536 -3198 -2902 -2573 -2331 -2046 -1795 -1522 -1502 -1397 -1144 -901 -715 -660 -543 -217 -142 25 67 254 707 977 1176 1...
result:
ok ok, tt = 24
Test #69:
score: 0
Accepted
time: 52ms
memory: 25228kb
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 -97874 -86531 -81647 -75712 -59063 -55425 -34997 -32630 -29086 -22475 -11464 7461 37552 44018 54002 68227 81490 64 64 -99626 -97123 -93735 -90000 -88718 -85031 -83401 -81061 -80400 -78505 -73895 -72193 -69254 -63166 -59764 -58035 -53690 -51711 -49323 -48083 -45114 -41219 -38205 -35103 -31474 ...
result:
ok ok, tt = 30
Test #70:
score: 0
Accepted
time: 15ms
memory: 23128kb
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 1 1 1 1 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: 24ms
memory: 23464kb
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 -8 8 8 -10 -6 -4 0 2 4 7 9 2 2 -7 2 6 6 -10 -8 -1 2 6 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 3 8 8 -10 -8 -6 -4 -2 1 5 7
result:
ok ok, tt = 13
Test #72:
score: 0
Accepted
time: 32ms
memory: 22956kb
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 -17 8 35 45 86 14 16 -100 -91 -79 -74 -57 -42 -30 -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...
result:
ok ok, tt = 11
Test #73:
score: 0
Accepted
time: 33ms
memory: 22596kb
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 -878 -700 -630 -539 -518 -377 -275 -245 -107 -56 42 179 316 416 539 716 954 996 68 70 -992 -967 -943 -902 -863 -851 -790 -745 -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 ...
result:
ok ok, tt = 11
Test #74:
score: 0
Accepted
time: 50ms
memory: 24480kb
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 933 2 3 -6459 -461 1918 103 103 -9952 -9903 -9654 -9426 -9285 -8852 -8690 -8419 -8061 -7980 -7764 -7615 -7501 -7446 -7290 -7199 -7118 -6775 -6603 -6571 -6402 -6125 -6057 -5863 -5650 -5429 -5223 -4984 -4857 -4660 -4637 -4449 -4213 -3861 -3767 -3507 -3254 -3044 -2948 -2674 -2424 -2300 -2146 -171...
result:
ok ok, tt = 11
Test #75:
score: 0
Accepted
time: 62ms
memory: 35144kb
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 -95997 -89751 -76210 -73058 -64522 -54137 -49802 -38667 -30510 -19788 -11311 -5956 224 4183 14020 21260 24257 26771 32135 38780 41727 48889 49869 50108 60518 71258 81577 91531 94705 1 1 25182 15 15 -83348 -72178 -57954 -52198 -46922 -35178 -27931 -8857 3182 15797 26399 47078 55851 66689 7982...
result:
ok ok, tt = 16
Test #76:
score: 0
Accepted
time: 56ms
memory: 36828kb
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: 57ms
memory: 36704kb
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: 53ms
memory: 36880kb
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: 56ms
memory: 36412kb
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 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 #80:
score: 0
Accepted
time: 60ms
memory: 35684kb
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: 61ms
memory: 36656kb
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 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 #82:
score: 0
Accepted
time: 40ms
memory: 22952kb
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: 39ms
memory: 23024kb
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: 39ms
memory: 22964kb
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: 41ms
memory: 23908kb
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: 25928kb
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: 42ms
memory: 26328kb
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: 39ms
memory: 23448kb
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: 44ms
memory: 25764kb
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: 42ms
memory: 26024kb
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: 47ms
memory: 24104kb
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: 44ms
memory: 25188kb
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: 37ms
memory: 23156kb
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: 45ms
memory: 23520kb
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: 39ms
memory: 21652kb
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: 42ms
memory: 25316kb
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: 38ms
memory: 35204kb
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 1000000000
result:
ok ok, tt = 1
Test #98:
score: 0
Accepted
time: 29ms
memory: 35024kb
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 0
result:
ok ok, tt = 1
Test #99:
score: 0
Accepted
time: 61ms
memory: 44836kb
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 42 142 242 342 442 542 642 742 842 942 1042 1142 1242 1342 1442 1542 1642 1742 1842 1942 2042 2142 2242 2342 2442 2542 2642 2742 2842 2942 3042 3142 3242 3342 3442 3542 3642 3742 3842 3942 4042 4142 4242 4342 4442 4542 4642 4742 4842 4942 5042 5142 5242 5342 5442 5542 5642 5742 5842 5942...
result:
ok ok, tt = 1
Test #100:
score: 0
Accepted
time: 59ms
memory: 44852kb
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: 66ms
memory: 45540kb
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 22117 49277 59278 71637 88319 101982 120695 130696 157586 167587 185666 192955 202956 217894 234392 244554 254555 268519 279373 298924 311747 323085 342603 352604 370539 381076 397366 407367 426170 448795 465058 475059 491581 505225 518917 532671 550799 560800 567172 577173 591434 606705...
result:
ok ok, tt = 1