QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#111046 | #1429. Hit | Kostlin | AC ✓ | 92ms | 44228kb | C++14 | 3.0kb | 2023-06-05 17:30:42 | 2023-06-05 17:30:43 |
Judging History
answer
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
#define fi first
#define sc second
#define mkp make_pair
#define pii pair<int,int>
typedef long long ll;
const int N=1e5+5,oo=1e9+5;
inline int read() {
int x=0,flag=0;char ch=getchar();
while(ch<'0'||ch>'9') {flag|=(ch=='-');ch=getchar();}
while('0'<=ch&&ch<='9') {x=(x<<3)+(x<<1)+ch-'0';ch=getchar();}
return flag?-x:x;
}
inline int mx(int x,int y) {return x>y?x:y;}
inline int mn(int x,int y) {return x<y?x:y;}
inline void swp(int &x,int &y) {x^=y^=x^=y;}
inline int as(int x) {return x>0?x:-x;}
int n,b[N<<2],val[N<<2],Val[N<<2],vc[N],Vc[N],ans;
int f[N<<2][20],to[N<<2],q[N<<2],l,r; bool vis[N];
struct Node {
int l,r;
bool operator <(const Node &w) {
return r<w.r;
}
}a[N];
int main() {
int TT=read();
while(TT--) {
n=read();vc[0]=Vc[0]=b[0]=0;
for(int i=1;i<=n;++i)
a[i].l=read(),a[i].r=read(),
b[++b[0]]=a[i].l,b[++b[0]]=a[i].r,b[++b[0]]=a[i].l-1,b[++b[0]]=a[i].r+1;
sort(b+1,b+b[0]+1);b[0]=unique(b+1,b+b[0]+1)-b-1;
b[b[0]+1]=oo;
for(int i=1;i<=n;++i) a[i].l=lower_bound(b+1,b+b[0]+1,a[i].l)-b,a[i].r=lower_bound(b+1,b+b[0]+1,a[i].r)-b;
sort(a+1,a+n+1);
int pre=-oo;
for(int i=1;i<=n;++i) if(pre<a[i].l) {
pre=a[i].r;
vc[++vc[0]]=pre;
}
ans=0;
for(int i=1,p1,p2;i<=n;++i) {
p1=lower_bound(vc+1,vc+vc[0]+1,a[i].l)-vc;
p2=upper_bound(vc+1,vc+vc[0]+1,a[i].r)-vc-1;
ans=mx(ans,p2-p1+1);
}
for(int i=1;i<=b[0]+1;++i) val[i]=b[0]+1,Val[i]=0;
for(int i=1;i<=n;++i) val[a[i].l-1]=mn(val[a[i].l-1],a[i].r),Val[a[i].l]=mx(Val[a[i].l],a[i].r);
for(int i=b[0];i>=1;--i) val[i]=mn(val[i+1],val[i]);
for(int i=1;i<=b[0];++i) Val[i]=mx(Val[i-1],Val[i]);
bool fl=0;Vc[0]=0;
if(ans>1) {
q[l=r=b[0]]=b[0];
for(int i=0;i<=17;++i) f[b[0]][i]=b[0];
for(int i=b[0]-1;i>=1;--i) {
while(l<=r&&q[r]>val[i]) --r;
if(l>r) continue;
f[i][0]=q[r];
for(int j=1;j<=17;++j)
f[i][j]=f[f[i][j-1]][j-1];
int now=i;
for(int j=17;j>=0;--j)
if(((ans-1)>>j)&1) now=f[now][j];
if(now>Val[i]) q[--l]=i,fl|=(i==1);
}
if(fl) {
int now=f[1][0];
while(now<b[0]) {
Vc[++Vc[0]]=now;
now=f[now][0];
}
}
}
if(fl) {
printf("%d %d ",ans-1,Vc[0]);
for(int i=1;i<=Vc[0];++i) printf("%d ",b[Vc[i]]);
printf("\n");
} else {
printf("%d %d ",ans,vc[0]);
for(int i=1;i<=vc[0];++i) printf("%d ",b[vc[i]]);
printf("\n");
}
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 2ms
memory: 13700kb
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 -1 9 2 3 1 3 5
result:
ok ok, tt = 4
Test #2:
score: 0
Accepted
time: 3ms
memory: 9568kb
input:
1 1 0 1
output:
1 1 1
result:
ok ok, tt = 1
Test #3:
score: 0
Accepted
time: 3ms
memory: 9776kb
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: 46ms
memory: 9620kb
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: 14ms
memory: 9592kb
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: 29ms
memory: 9684kb
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: 23ms
memory: 7572kb
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: 33ms
memory: 9684kb
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: 35ms
memory: 9732kb
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: 24ms
memory: 13988kb
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: 26ms
memory: 11676kb
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: 23ms
memory: 9696kb
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 -646598561 -266513035 674646296 1 1 -337612608 2 4 -774316111 377059314 671405762 947062775 2 2 -341333148 375405984 1 2 -647977976 124238958 2 2 -224588367 239570222 1 4 -939414375...
result:
ok ok, tt = 18133
Test #13:
score: 0
Accepted
time: 20ms
memory: 13836kb
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: 39ms
memory: 11672kb
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: 44ms
memory: 11944kb
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 -234903445 207687233 912360651 3 3 -102691886 472435445 760055061 5 5 -523934747 -116458604 -74942502 145747514 194530530 1 5 -908439896 -610270887 -299953542 307981824 739861543 1 3 -740177142 -375349773 411568686 2 3 -797052731 -239925500 66648346 3 4 -877019032 -345920695 417530482 8089...
result:
ok ok, tt = 10000
Test #16:
score: 0
Accepted
time: 53ms
memory: 11680kb
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: 53ms
memory: 9828kb
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 -706524531 -602955231 -525208653 -464213837 -347296792 -300765402 -164472569 -128540556 -56544267 41454285 61513341 146152792 227454687 259038403 280056640 387727816 487121504 561063499 661246631 772647128 797301058 891449969 924934522 3 22 -896023510 -762775942 -699551789 -65486708...
result:
ok ok, tt = 1961
Test #18:
score: 0
Accepted
time: 47ms
memory: 11908kb
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 -716239505 -558660969 -420997711 -236928638 -53755679 168496821 456454651 601977324 641237975 752131589 10 12 -882592215 -869165463 -380228541 -298608073 -208025440 133836798 267592316 443756915 548775236 783347206 919240917 966321387 9 9 -711156139 -524876643 -273668536 -23541551...
result:
ok ok, tt = 1915
Test #19:
score: 0
Accepted
time: 40ms
memory: 9904kb
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 -731583305 -709843524 -698612947 -679644388 -652368218 -626354011 -610406258 -587864612 -581132298 -552869616 -534363363 -524329989 -511391771 -484991842 -469700942 -440003155 -334298774 -292093282 -224130272 -205382471 -18435661...
result:
ok ok, tt = 1000
Test #20:
score: 0
Accepted
time: 40ms
memory: 11948kb
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 -920073406 -830171223 -769200936 -639325256 -579656508 -482856294 -405668244 -284199365 -211230167 -97487042 -51277528 42905040 71274229 119909448 126793885 182778793 277029443 322489689 388734009 461956201 515158462 541241172 615808401 684118563 805476305 851364127 4 27 -932547827 ...
result:
ok ok, tt = 1000
Test #21:
score: 0
Accepted
time: 57ms
memory: 11788kb
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 -597556825 -502468776 -359095545 -186700820 -170751408 -3188327 266426286 339218107 422883509 447377676 742988081 796458750 11 11 -842147760 -786246949 -648497482 -342271772 -224207420 3447309 196441337 351118596 483197697 643755723 882062997 11 13 -905160216 -725409326 -529546902...
result:
ok ok, tt = 1000
Test #22:
score: 0
Accepted
time: 56ms
memory: 13740kb
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 -979232682 -974677788 -966685396 -949500835 -946394706 -932434978 -927901186 -911013309 -899479310 -884414817 -872173855 -867867294 -850786484 -832674011 -816657720 -801199912 -791767221 -774570464 -745367362 -735475587 -724938231 -720469771 -703464216 -688288579 -679341018 -6685945...
result:
ok ok, tt = 196
Test #23:
score: 0
Accepted
time: 53ms
memory: 13788kb
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 -953043257 -918199582 -883340141 -775693933 -701057471 -666105783 -612486297 -568895696 -463555901 -383865182 -304360334 -249031097 -219230452 -168157856 -115550500 -20478897 51695731 146094147 192733145 273754008 327132684 404078742 527934664 572486021 648077236 697302859 761616383 816803005 8...
result:
ok ok, tt = 232
Test #24:
score: 0
Accepted
time: 45ms
memory: 11980kb
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 -880343087 -868848871 -809289865 -776620464 -720006770 -585890238 -553220998 -536412723 -508370808 -415907518 -385842960 -327699059 -217071276 -84660998 -6950467 76188643 149163508 225346771 310310212 352099704 406049970 433462878 506734847 556098031 632549839 721053830 784294017 820084252 902...
result:
ok ok, tt = 188
Test #25:
score: 0
Accepted
time: 50ms
memory: 11812kb
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 -993551962 -984772264 -966432939 -957041311 -954009145 -941443599 -936494721 -926196403 -914955091 -907372304 -898679166 -896790549 -892409183 -881818116 -876800450 -870415409 -863433380 -853883679 -839746656 -832695914 -826195520 -818705609 -812077795 -808518801 -801971448 -794993282 -7845834...
result:
ok ok, tt = 100
Test #26:
score: 0
Accepted
time: 66ms
memory: 11692kb
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 -993431185 -958132479 -929851682 -907150520 -884306668 -846355093 -827204305 -797720105 -758680066 -754218254 -733769393 -714494045 -674741364 -642929500 -636446003 -600350204 -561511126 -546028385 -522462886 -481646054 -469785128 -442014925 -412481537 -389785502 -362168810 -352463339 -3218107...
result:
ok ok, tt = 100
Test #27:
score: 0
Accepted
time: 44ms
memory: 9656kb
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 -945452744 -900287852 -823021128 -790502597 -717266873 -687219044 -661176878 -654954060 -579842128 -518444396 -454501450 -331969080 -256268904 -171954392 -158025120 -118328831 -69288744 -8291023 59714481 148803767 208128571 261010923 282028541 304943546 311423417 451978758 505148922 532247814 ...
result:
ok ok, tt = 100
Test #28:
score: 0
Accepted
time: 59ms
memory: 16252kb
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 -996425565 -994861825 -988391331 -982987499 -974534047 -967143367 -960516722 -953022071 -946268380 -941886443 -934573062 -928082697 -920834983 -910337292 -908405425 -902433557 -896900145 -889768474 -885119234 -881401672 -871590949 -860802430 -852166835 -845505531 -840536424 -834360520 -8272723...
result:
ok ok, tt = 27
Test #29:
score: 0
Accepted
time: 57ms
memory: 14096kb
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 -984999588 -981492480 -977576409 -972186001 -965237220 -952500545 -943320990 -936998069 -931525754 -923033065 -908369083 -901949565 -891972407 -887288840 -885748835 -881203080 -871467758 -851690161 -837659765 -837285678 -829174178 -820907118 -808345399 -804209285 -792726294 -790936...
result:
ok ok, tt = 32
Test #30:
score: 0
Accepted
time: 66ms
memory: 15832kb
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 -988696969 -946718938 -927181864 -896888974 -874767374 -863112090 -851575430 -847867102 -837083888 -829805527 -814033732 -793692400 -764314076 -753464593 -722136541 -713324209 -686046170 -655018009 -618803775 -608242163 -593048160 -571356383 -554423880 -533028519 -515448601 -505246929 -49220...
result:
ok ok, tt = 31
Test #31:
score: 0
Accepted
time: 59ms
memory: 12124kb
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 -996264897 -993217934 -988587291 -984830286 -982667128 -980557173 -979477888 -976743111 -976528069 -974277866 -972574836 -971036661 -970298013 -968086029 -966760392 -965077456 -958712975 -956950413 -955840794 -954141981 -952002479 -950396660 -949177196 -947739309 -946123046 -942330803 -939521...
result:
ok ok, tt = 10
Test #32:
score: 0
Accepted
time: 56ms
memory: 12048kb
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 -991967690 -988118437 -984672143 -979658410 -968478704 -961827592 -946752208 -942757505 -940973382 -936939611 -935959829 -930035649 -923120683 -911156253 -905627314 -899780326 -896468059 -887057524 -875694268 -864897106 -858779799 -849210769 -840663317 -830486825 -822691257 -817026660 -812157...
result:
ok ok, tt = 10
Test #33:
score: 0
Accepted
time: 68ms
memory: 14076kb
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 -993826637 -981742712 -968429173 -957535182 -929865485 -919636928 -903059396 -861434135 -852799208 -845733986 -826784798 -817589177 -802651442 -796348420 -787355529 -771178228 -763195575 -727801882 -720954380 -704145531 -694648787 -664530521 -644645556 -638962971 -620047702 -606214696 -57426...
result:
ok ok, tt = 10
Test #34:
score: 0
Accepted
time: 65ms
memory: 18332kb
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 -985569009 -981340902 -980252133 -973298528 -970646229 -968600812 -967562844 -965785264 -960442756 -954063212 -951821402 -948032930 -942614626 -939954537 -932661268 -931133028 -922127083 -920173724 -919133244 -913116066 -911463434 -906071193 -902565752 -899593513 -8966843...
result:
ok ok, tt = 17
Test #35:
score: 0
Accepted
time: 74ms
memory: 33164kb
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 -712907248 -584566122 -467983385 -389535030 -278755212 -142607921 -80369976 51342778 168812785 200380063 240911068 291400695 384872770 493707731 568379707 623169156 695104659 745375222 909898782 6 35 -949363678 -905416803 -822287636 -769827121 -723718974 -67559...
result:
ok ok, tt = 15
Test #36:
score: 0
Accepted
time: 80ms
memory: 33208kb
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 -998050688 -994550744 -975287625 -963857059 -951678561 -944901075 -930785568 -920171855 -916271069 -904509857 -898173602 -885005029 -876146274 -864787136 -858584665 -853673095 -847155945 -830714705 -823407260 -817668976 -815956437 -811745323 -804395325 -800826238 -793545955 -789852756 -77663...
result:
ok ok, tt = 14
Test #37:
score: 0
Accepted
time: 78ms
memory: 44196kb
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 -999310262 -999183483 -998397655 -997870246 -997196212 -996458074 -995442434 -994877149 -994564527 -993664863 -993357351 -992973048 -992452128 -991119820 -990587751 -989125856 -988058359 -987001946 -986634060 -986529003 -985855649 -984868977 -984097860 -983532151 -982464879 -982311470 -98168...
result:
ok ok, tt = 1
Test #38:
score: 0
Accepted
time: 86ms
memory: 21640kb
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 -999595533 -998595585 -997159921 -995692415 -993894555 -991756349 -989210483 -987656263 -985238438 -983418747 -981191980 -979888449 -976788729 -976545907 -973178722 -970107414 -969551950 -965753312 -964175009 -961646332 -959610545 -955115475 -952059033 -951345196 -951027395 -950396015 -948147...
result:
ok ok, tt = 1
Test #39:
score: 0
Accepted
time: 90ms
memory: 44228kb
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 -997630461 -995156406 -991521867 -988382459 -980060273 -971964677 -966434246 -958747274 -953736902 -947775966 -944432666 -941702310 -937657860 -928493813 -921845590 -913171481 -903996323 -895041797 -889014833 -877566729 -873297262 -867914656 -865775735 -851460388 -850349146 -848276338 -83909...
result:
ok ok, tt = 1
Test #40:
score: 0
Accepted
time: 28ms
memory: 9736kb
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: 33ms
memory: 7644kb
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: 34ms
memory: 7700kb
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: 20ms
memory: 7728kb
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: 28ms
memory: 9748kb
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: 24ms
memory: 9620kb
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: 14ms
memory: 9624kb
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: 11908kb
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 4 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 -1 8 2 3 -4 -1 8 1 1 1 2 3 -2 0 7 2 2 -7 1 1 3 -7 -1 9 2 2 -3 4 1 2 -2 10 1 2 -6 7 1 2 -9 0 2 2 -7 -3 2 3 0 7 9 2 2 -6 8 1 3 -6 1 9 2 2 -5 4 1 1 2 1 1 -1 2 3 -5 3 8 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: 30ms
memory: 9624kb
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 -12 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 -18 7 89 2 2 18 38 1 1 -30 2 3 -31 3 52 1 1 17 2 3 -20 69 83 2 2 -14 87 1 2 ...
result:
ok ok, tt = 18219
Test #49:
score: 0
Accepted
time: 29ms
memory: 13864kb
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 -337 166 1 1 -33 1 2 303 986 4 4 -528 -431 -68 257 2 3 -771 112 836 1 1 252 2 2 -302 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 40 450 932 3 6 -812 -447 -...
result:
ok ok, tt = 18357
Test #50:
score: 0
Accepted
time: 35ms
memory: 11944kb
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 1651 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 7042 1 1 5475 1 2 -6967 561 2 2 -4774 3959 1 2 -3559 2486 2 3 -3910 973 8689 1 3 -4361 599 6041 1 1 -877 2 3 -6...
result:
ok ok, tt = 18057
Test #51:
score: 0
Accepted
time: 30ms
memory: 11676kb
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 76272 1 1 -31409 2 3 20930 48019 99981 1 2 -16680 44037 1 5 -93770 -85710 3865 77867 97741 2 2 -46005 17487 2 3 -73476 9104 48948 2 3 -47328 39212 80613 1 1 32077 1 1 1300 3 3 -4000 28861 68922 1 1 -12853 2 3 -35468 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: 10ms
memory: 7688kb
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: 25ms
memory: 11656kb
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 -9 -7 -5 -1 3 7 10 9 9 -8 -5 -3 -1 1 3 5 7 9 7 7 -9 -4 -1 1 3 6 8 6 6 -7 -4 -1 3 8 10 6 6 -8 -4 0 4 7 10 4 4 -5 -2 3 9 2 2 -3 5 4 5 -8 -3 0 3 9 2 3 -7 -1 8 6 6 -8 -4 0 2 5 9 4 5 -7 -5 0 4 10 4 5 -9 -4 -2 4 8 4 5 -8 -5 -1 6 10 6 6 -8 -2 1 5 7 9 4 4 -6 1 4 8 6 6 -7 -4 -2 3 5 8 4 5 ...
result:
ok ok, tt = 2003
Test #54:
score: 0
Accepted
time: 31ms
memory: 11668kb
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 -26 13 26 44 76 99 8 9 -93 -68 -59 -35 -13 8 28 51 81 9 11 -73 -63 -50 -18 -6 14 51 59 72 83 94 2 3 -43 15 50 7 9 -94 -71 -31 5 13 44 74 90 99 10 12 -84 -73 -51 -27 -4 11 28 38 56 63 82 94 4 5 -77 -50 -16 45 76 4 5 -66 8 42 79 98 1 2 -53 47 4 4 -55 -34 46 65 4 5 -63 -6 20 55 100 3...
result:
ok ok, tt = 1998
Test #55:
score: 0
Accepted
time: 39ms
memory: 11640kb
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 -694 -572 -139 370 488 889 2 2 -296 186 4 6 -864 -659 -496 -149 419 886 3 4 -629 -265 226 452 8 9 -816 -419 -213 -15 352 387 582 727 963 7 9 -642 -444 -417 -296 -45 147 356 590 902 10 12 -932 -544 -444 -233 -109 108 275 542 629 633 871 989 8 10 -889 -657 -444 -282 -63 158 429 657 669...
result:
ok ok, tt = 1952
Test #56:
score: 0
Accepted
time: 45ms
memory: 13748kb
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 -9047 -4990 -829 99 2189 2463 5379 1 1 1022 9 10 -9436 -8767 -8302 -8187 -7152 -3717 -1075 3416 4705 8592 1 1 3967 4 5 -4397 -1144 2014 6060 9319 7 8 -9288 -6425 -3880 -364 22 591 4010 7717 10 10 -7965 -7728 -7080 -5496 -3011 378 3220 5844 6853 8529 5 6 -9583 -5951 -2162 1281 4751 8093 8...
result:
ok ok, tt = 1949
Test #57:
score: 0
Accepted
time: 41ms
memory: 11800kb
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 -64643 -49538 10861 23763 29033 52923 78321 95592 2 2 -45139 12454 10 11 -91147 -49170 -37947 -34040 -12060 318 19715 30608 49881 69124 75941 6 7 -64987 -39516 -22006 11854 24326 64739 94470 2 3 -80309 -10399 97576 3 5 -60984 -39500 -16570 16054 60388 4 6 -44442 210 27613 59197 77707 94636...
result:
ok ok, tt = 1973
Test #58:
score: 0
Accepted
time: 8ms
memory: 9684kb
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: 26ms
memory: 9632kb
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 -8 -5 0 3 6 9 10 10 -9 -7 -5 -3 0 2 4 6 8 10 10 10 -9 -7 -4 -2 0 2 4 6 8 10 7 7 -8 -6 -4 -1 1 4 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 6 6 -9 -6 -3 -1 1 7 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 6 6 -9 -5 -1 ...
result:
ok ok, tt = 217
Test #60:
score: 0
Accepted
time: 36ms
memory: 11668kb
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 -76 -65 -57 -1 6 33 63 75 89 21 23 -97 -91 -80 -69 -66 -53 -48 -39 -25 -20 -13 -5 4 9 19 25 38 43 60 66 79 88 97 18 19 -93 -80 -71 -60 -45 -38 -30 -16 -9 -7 6 16 27 38 48 60 81 91 100 20 20 -91 -83 -68 -58 -43 -39 -31 -12 1 9 18 22 32 37 43 50 55 70 79 88 31 32 -93 -83 -80 -74 -66 -62 -56 -4...
result:
ok ok, tt = 206
Test #61:
score: 0
Accepted
time: 45ms
memory: 11684kb
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 -928 -792 -744 -631 -572 -510 -498 -451 -379 -320 -254 -189 -146 -54 -23 55 74 177 219 290 369 523 686 780 818 892 967 12 14 -904 -676 -506 -330 -262 -161 7 143 376 390 550 654 823 958 21 22 -923 -776 -678 -641 -550 -434 -399 -310 -307 -177 -144 1 85 128 176 334 433 586 732 815 866 947 29 2...
result:
ok ok, tt = 199
Test #62:
score: 0
Accepted
time: 49ms
memory: 13952kb
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 -9251 -7402 -5701 -3889 -1791 -249 1167 1655 2530 2713 4421 5434 6388 7017 8444 8838 9952 27 30 -9311 -8397 -8230 -7719 -7138 -6047 -5484 -5003 -4005 -2632 -1926 -1717 -521 200 886 1507 2381 2975 3411 4277 5406 5702 5758 6102 6519 7372 8343 9253 9827 9985 27 27 -9053 -8679 -8121 -7584 -6702 ...
result:
ok ok, tt = 210
Test #63:
score: 0
Accepted
time: 52ms
memory: 13860kb
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 -94649 -87228 -83054 -80750 -77739 -72495 -67509 -61855 -55527 -48345 -47244 -42829 -35541 -27239 -22748 -15626 -8290 -3516 7792 17113 23411 27801 32396 42694 51200 57606 61850 65273 67375 72961 84123 89168 92080 98029 12 14 -90239 -76358 -56594 -40249 -21835 -12939 7804 16151 21109 48858 555...
result:
ok ok, tt = 198
Test #64:
score: 0
Accepted
time: 9ms
memory: 9812kb
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: 26ms
memory: 11868kb
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 -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 -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 1...
result:
ok ok, tt = 24
Test #66:
score: 0
Accepted
time: 35ms
memory: 11880kb
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 -91 -84 -57 -36 -28 -11 6 20 30 48 59 68 89 41 41 -96 -93 -86 -83 -80 -77 -71 -66 -58 -53 -46 -42 -36 -32 -28 -26 -19 -12 -8 1 5 7 16 19 23 26 33 39 45 48 55 57 60 63 70 74 77 81 86 91 95 50 51 -97 -93 -87 -83 -81 -76 -72 -64 -60 -56 -53 -48 -46 -41 -39 -36 -34 -28 -25 -22 -20 -17 -11 -9 -5 ...
result:
ok ok, tt = 25
Test #67:
score: 0
Accepted
time: 43ms
memory: 13752kb
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 -993 -972 -960 -913 -890 -869 -862 -837 -809 -796 -786 -774 -755 -747 -721 -714 -694 -671 -652 -642 -636 -617 -592 -566 -528 -515 -494 -461 -447 -421 -404 -380 -375 -354 -315 -306 -292 -273 -253 -233 -194 -174 -143 -125 -109 -86 -67 -50 -28 -13 10 33 51 67 98 114 121 155 168 184 196 234 250 ...
result:
ok ok, tt = 26
Test #68:
score: 0
Accepted
time: 47ms
memory: 10120kb
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 -9902 -9644 -9528 -9405 -9093 -8938 -8630 -8370 -8012 -7595 -7500 -7216 -7083 -7025 -6512 -6176 -6113 -5873 -5386 -5119 -5035 -4795 -4729 -4685 -4365 -4125 -3851 -3733 -3582 -3327 -3073 -2783 -2502 -2181 -2000 -1732 -1513 -1451 -1145 -1064 -845 -687 -627 -492 -216 -53 39 124 271 745 1058 1178 ...
result:
ok ok, tt = 24
Test #69:
score: 0
Accepted
time: 64ms
memory: 15864kb
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 -95453 -82226 -78106 -69287 -56921 -49384 -34777 -30624 -26338 -12467 4496 20194 40593 52369 61555 72885 86884 64 64 -97992 -95820 -92812 -89994 -87727 -84940 -82227 -80889 -78689 -74613 -72793 -69334 -65104 -62894 -59757 -55092 -52782 -50155 -48563 -45688 -43936 -39327 -37423 -33974 -30985 -...
result:
ok ok, tt = 30
Test #70:
score: 0
Accepted
time: 17ms
memory: 9172kb
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: 20ms
memory: 13416kb
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 -4 -1 2 9 9 9 -9 -7 -5 -3 -1 1 3 6 9 4 4 -7 -3 3 9 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 8 9 -10 -7 -4 -2 1 3 5 7 9 1 1 -8 8 8 -8 -6 -3 0 3 5 7 10 2 2 -7 2 6 6 -9 -4 -1 3 6 9 10 10 -9 -6 -4 -2 0 2 4 6 8 10 10 10 -9 -7 -5 -3 -1 1 3 5 7 9 1 1 3 8 8 -9 -7 -5 -3 -1 2 5 7
result:
ok ok, tt = 13
Test #72:
score: 0
Accepted
time: 30ms
memory: 12752kb
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 -92 -81 -69 -62 -55 -49 -39 -29 -20 -13 0 5 20 28 39 51 65 80 85 94 6 6 -34 -16 10 44 56 89 14 16 -99 -90 -76 -59 -51 -37 -24 -6 1 25 35 55 66 72 91 99 100 100 -99 -97 -95 -93 -91 -89 -87 -85 -83 -81 -79 -77 -75 -73 -71 -69 -67 -65 -63 -61 -59 -57 -55 -53 -51 -49 -47 -45 -43 -41 -39 -37 -35...
result:
ok ok, tt = 11
Test #73:
score: 0
Accepted
time: 46ms
memory: 12460kb
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 -882 -839 -689 -630 -538 -512 -377 -258 -239 -96 -51 71 202 363 538 594 756 956 998 68 70 -986 -967 -935 -901 -856 -832 -775 -744 -678 -655 -633 -629 -612 -588 -539 -507 -492 -466 -447 -429 -367 -332 -304 -282 -236 -210 -164 -144 -112 -62 -52 -39 -9 25 47 74 115 129 151 167 228 236 257 274 30...
result:
ok ok, tt = 11
Test #74:
score: 0
Accepted
time: 58ms
memory: 17328kb
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 675 5699 103 103 -9935 -9710 -9501 -9417 -9269 -8772 -8533 -8286 -8053 -7963 -7681 -7531 -7451 -7360 -7265 -7139 -7090 -6740 -6594 -6503 -6161 -6072 -6014 -5839 -5573 -5306 -5137 -4954 -4717 -4641 -4516 -4449 -4186 -3808 -3585 -3351 -3212 -2995 -2900 -2528 -2350 -2271 -2018 -1610...
result:
ok ok, tt = 11
Test #75:
score: 0
Accepted
time: 77ms
memory: 25404kb
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 -95868 -87058 -75206 -69632 -61646 -52705 -48773 -36236 -26920 -17333 -10957 -3356 454 5292 15702 22548 25386 29732 34714 39205 45931 49264 49988 59451 69777 77143 82920 93981 94856 1 1 25182 15 15 -83348 -68156 -55993 -51409 -46395 -33544 -25111 -3891 13231 25344 31225 47590 57186 67417 813...
result:
ok ok, tt = 16
Test #76:
score: 0
Accepted
time: 69ms
memory: 11704kb
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: 64ms
memory: 10916kb
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 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 #78:
score: 0
Accepted
time: 69ms
memory: 11108kb
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: 72ms
memory: 13464kb
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: 68ms
memory: 21420kb
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: 13536kb
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: 44ms
memory: 12984kb
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 -2500 -2491 -2462 -2439 -2434 -2419 -2402 -2386 -2370 -2351 -2337 -2315 -2294 -2282 -2274 -2263 -2250 -2240 -2230 -2206 -2187 -2163 -2147 -2137 -2129 -2103 -2090 -2084 -2068 -2046 -2023 -2019 -2006 -1987 -1981 -1958 -1949 -1936 -1924 -1914 -1906 -1879 -1867 -1850 -1844 -1819 -1812 -1796 -178...
result:
ok ok, tt = 1
Test #83:
score: 0
Accepted
time: 40ms
memory: 15584kb
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 -1854 -1847 -1834 -1820 -1811 -1800 -1791 -1780 -1764 -1753 -1735 -1730 -1723 -1718 -1706 -1694 -1687 -1677 -1661 -1648 -1644 -1640 -1627 -1615 -1606 -1599 -1587 -1577 -1559 -1555 -1540 -1524 -1514 -1510 -1492 -1485 -1461 -1447 -1434 -1420 -1415 -1402 -1393 -1380 -1370 -1356 -1336 -1331 -132...
result:
ok ok, tt = 1
Test #84:
score: 0
Accepted
time: 41ms
memory: 12724kb
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 -1587 -1580 -1577 -1572 -1567 -1553 -1549 -1539 -1532 -1519 -1514 -1501 -1498 -1496 -1485 -1474 -1457 -1449 -1432 -1423 -1421 -1404 -1397 -1393 -1388 -1375 -1371 -1362 -1353 -1341 -1328 -1312 -1297 -1291 -1279 -1272 -1268 -1259 -1251 -1245 -1240 -1233 -1219 -1198 -1193 -1186 -1176 -1166 -115...
result:
ok ok, tt = 1
Test #85:
score: 0
Accepted
time: 52ms
memory: 13060kb
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 -3554 -3543 -3504 -3461 -3444 -3431 -3423 -3409 -3373 -3346 -3317 -3281 -3265 -3247 -3218 -3176 -3156 -3141 -3134 -3115 -3087 -3069 -3061 -3052 -3026 -3019 -3012 -2992 -2982 -2964 -2960 -2934 -2913 -2888 -2871 -2855 -2845 -2834 -2823 -2778 -2744 -2735 -2726 -2710 -2674 -2668 -2646 -2613 -260...
result:
ok ok, tt = 1
Test #86:
score: 0
Accepted
time: 54ms
memory: 15192kb
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 -9481 -9471 -9379 -9344 -9281 -9240 -9186 -9129 -9105 -9023 -8974 -8898 -8885 -8867 -8851 -8743 -8720 -8669 -8628 -8571 -8525 -8470 -8431 -8390 -8328 -8253 -8228 -8140 -8137 -8041 -7946 -7868 -7835 -7767 -7708 -7630 -7567 -7485 -7437 -7364 -7254 -7191 -7175 -7101 -7019 -6955 -6947 -6872 -680...
result:
ok ok, tt = 1
Test #87:
score: 0
Accepted
time: 54ms
memory: 15640kb
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 -8838 -8796 -8740 -8704 -8628 -8559 -8494 -8443 -8357 -8325 -8264 -8172 -8107 -8071 -8005 -7969 -7947 -7880 -7837 -7794 -7784 -7687 -7680 -7625 -7620 -7569 -7518 -7502 -7486 -7451 -7448 -7365 -7322 -7271 -7228 -7136 -7068 -6992 -6932 -6908 -6847 -6794 -6784 -6687 -6669 -6662 -6597 -6557 -652...
result:
ok ok, tt = 1
Test #88:
score: 0
Accepted
time: 47ms
memory: 15592kb
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 -1908 -1896 -1883 -1871 -1849 -1833 -1830 -1809 -1794 -1789 -1778 -1766 -1757 -1739 -1730 -1723 -1709 -1691 -1669 -1655 -1646 -1637 -1627 -1602 -1581 -1553 -1547 -1533 -1523 -1518 -1504 -1491 -1478 -1450 -1446 -1439 -1433 -1423 -1414 -1405 -1395 -1385 -1379 -1365 -1358 -1349 -1330 -1316 -129...
result:
ok ok, tt = 1
Test #89:
score: 0
Accepted
time: 60ms
memory: 17632kb
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 -6909 -6890 -6853 -6840 -6776 -6713 -6661 -6653 -6636 -6574 -6539 -6499 -6472 -6446 -6437 -6420 -6378 -6340 -6306 -6221 -6189 -6142 -6053 -5987 -5969 -5944 -5936 -5887 -5830 -5812 -5795 -5755 -5737 -5692 -5675 -5624 -5615 -5595 -5576 -5515 -5449 -5405 -5348 -5278 -5227 -5196 -5172 -5118 -507...
result:
ok ok, tt = 1
Test #90:
score: 0
Accepted
time: 52ms
memory: 12204kb
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 -9853 -9803 -9731 -9718 -9705 -9643 -9565 -9422 -9300 -9265 -9203 -9143 -9053 -8980 -8920 -8832 -8788 -8688 -8654 -8545 -8524 -8493 -8449 -8396 -8332 -8281 -8202 -8154 -8083 -8039 -8020 -7977 -7933 -7828 -7710 -7697 -7630 -7593 -7567 -7550 -7403 -7317 -7263 -7188 -7111 -7101 -7047 -7014 -697...
result:
ok ok, tt = 1
Test #91:
score: 0
Accepted
time: 48ms
memory: 17472kb
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 -7450 -7380 -7325 -7251 -7218 -7198 -7162 -7054 -6989 -6966 -6951 -6879 -6861 -6822 -6794 -6784 -6762 -6705 -6638 -6610 -6522 -6471 -6435 -6372 -6336 -6286 -6238 -6216 -6174 -6168 -6104 -6057 -6041 -6026 -5984 -5941 -5921 -5895 -5886 -5875 -5830 -5770 -5716 -5677 -5606 -5579 -5502 -5473 -544...
result:
ok ok, tt = 1
Test #92:
score: 0
Accepted
time: 49ms
memory: 15340kb
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 -7488 -7483 -7454 -7423 -7389 -7302 -7287 -7246 -7196 -7140 -7074 -7033 -7016 -6964 -6905 -6879 -6815 -6756 -6733 -6713 -6691 -6666 -6612 -6578 -6514 -6479 -6456 -6414 -6405 -6369 -6326 -6285 -6257 -6203 -6197 -6181 -6124 -6018 -5987 -5959 -5909 -5872 -5846 -5791 -5738 -5662 -5623 -558...
result:
ok ok, tt = 1
Test #93:
score: 0
Accepted
time: 49ms
memory: 13452kb
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 -3889 -3870 -3822 -3795 -3784 -3770 -3760 -3732 -3718 -3683 -3672 -3656 -3622 -3597 -3588 -3574 -3559 -3538 -3512 -3496 -3474 -3445 -3424 -3387 -3364 -3343 -3312 -3279 -3252 -3234 -3216 -3198 -3181 -3160 -3151 -3135 -3115 -3096 -3088 -3063 -3040 -3005 -2977 -2964 -2937 -2911 -2892 -2860 -285...
result:
ok ok, tt = 1
Test #94:
score: 0
Accepted
time: 47ms
memory: 11984kb
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 -3287 -3277 -3262 -3232 -3215 -3178 -3163 -3133 -3115 -3094 -3084 -3068 -3049 -3024 -3008 -3001 -2974 -2932 -2911 -2894 -2880 -2865 -2848 -2838 -2826 -2807 -2801 -2780 -2755 -2729 -2693 -2671 -2650 -2642 -2620 -2593 -2579 -2574 -2549 -2525 -2501 -2480 -2450 -2429 -2406 -2389 -2376 -2346 -231...
result:
ok ok, tt = 1
Test #95:
score: 0
Accepted
time: 46ms
memory: 15428kb
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 -1747 -1733 -1721 -1709 -1699 -1694 -1691 -1678 -1658 -1651 -1645 -1639 -1620 -1600 -1595 -1591 -1584 -1566 -1562 -1555 -1547 -1526 -1513 -1501 -1486 -1474 -1460 -1451 -1445 -1427 -1417 -1404 -1392 -1376 -1370 -1355 -1345 -1342 -1333 -1319 -1309 -1305 -1296 -1289 -1278 -1266 -1253 -1236 -122...
result:
ok ok, tt = 1
Test #96:
score: 0
Accepted
time: 48ms
memory: 15560kb
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 -3182 -3160 -3132 -3123 -3104 -3074 -3047 -3014 -2995 -2980 -2958 -2935 -2921 -2899 -2892 -2882 -2861 -2851 -2833 -2815 -2812 -2806 -2780 -2768 -2759 -2747 -2731 -2700 -2677 -2663 -2623 -2610 -2600 -2568 -2556 -2523 -2503 -2494 -2469 -2444 -2429 -2412 -2401 -2374 -2347 -2327 -2302 -2262 -224...
result:
ok ok, tt = 1
Test #97:
score: 0
Accepted
time: 31ms
memory: 11436kb
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: 46ms
memory: 11520kb
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: 92ms
memory: 44136kb
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: 54ms
memory: 10460kb
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: 75ms
memory: 44224kb
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 51188 61644 73430 88319 101982 125436 140583 157923 175471 185666 198203 208234 218859 234392 244571 262578 275152 285191 298924 311747 323085 349544 360737 374267 390125 400547 410924 426170 448795 465619 476722 491581 505225 518917 532671 551011 563034 576722 586851 596900 608511...
result:
ok ok, tt = 1