QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#523223 | #8907. Конференция | acwing_gza | 100 ✓ | 19ms | 8684kb | C++14 | 2.5kb | 2024-08-17 23:03:17 | 2024-08-17 23:03:17 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
namespace gza{
#define int long long
#define pb push_back
#define MT int TTT=R;while(TTT--)
#define pc putchar
#define R read()
#define fo(i,a,b) for(int i=a;i<=b;i++)
#define rep(i,a,b) for(int i=a;i>=b;i--)
#define m1(a,b) memset(a,b,sizeof a)
namespace IO
{
inline int read()
{
int x=0;
char ch=getchar();
bool f=0;
while(!isdigit(ch)){if(ch=='-') f=1;ch=getchar();}
while(isdigit(ch)) x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
if(f) x=-x;
return x;
}
template<typename T> inline void write(T x)
{
if(x<0) pc('-'),x=-x;
if(x>9) write(x/10);
pc(x%10+'0');
}
};
namespace math
{
inline int gcd(int a,int b)
{
int az=__builtin_ctz(a),bz=__builtin_ctz(b),z=(az>bz)?bz:az,t;
b>>=bz;
while(a) a>>=az,t=a-b,b=a,az=__builtin_ctz(t<0?-t:t),a=t<0?-t:t;
return b<<z;
}
inline int qmi(int a,int b,int p)
{
int res=1;
while(b)
{
if(b&1) res=res*a%p;
a=a*a%p;
b>>=1;
}
return res;
}
const int MAXN=2e6+10;
int my_fac[MAXN],my_inv[MAXN];
void init_binom(int mod)
{
my_fac[0]=1;fo(i,1,min(MAXN,mod)-1) my_fac[i]=my_fac[i-1]*i%mod;
my_inv[min(MAXN,mod)-1]=qmi(my_fac[min(MAXN,mod)-1],mod-2,mod);rep(i,min(MAXN,mod)-2,0) my_inv[i]=my_inv[i+1]*(i+1)%mod;
}
int binom(int a,int b,int mod)
{
return my_fac[a]*my_inv[b]%mod*my_inv[a-b]%mod;
}
};
using namespace IO;
using namespace math;
const int N=1e5+10;
int n,m,now,s;
struct Node{
int l,r,id;
}a[N];
bool vis[N];
vector<int> v1,v2;
bool cmp(Node a,Node b)
{
return a.r<b.r;
}
bool cmp2(Node a,Node b)
{
return a.l<b.l;
}
void solve()
{
n=R;
fo(i,1,n) a[i].l=R,a[i].r=R,a[i].id=i;
sort(a+1,a+n+1,cmp);
s=0,now=0,v1.clear(),v2.clear();
fo(i,1,n)
if(i==1||a[i].l>now) s++,now=a[i].r,v1.pb(i),vis[i]=1;
else vis[i]=0,v2.pb(i);
m=s;
if(v1[m/2]-1>=n/2)
{
int cnt=0;
fo(i,1,v1[m/2]-1)
{
if(!vis[i]){if(cnt<n/2-m/2) write(a[i].id),pc(' '),cnt++;}
else write(a[i].id),pc(' ');
}
puts("");
}
else
{
// for(auto i:v1) cout<<i<<' ';
// cout<<endl;
int cnt=0;
rep(i,n,v1[m/2])
{
// cout<<a[i].l<<' '<<a[i].r<<' '<<a[i].id<<endl;
if(!vis[i]){if(cnt<n/2-m/2) write(a[i].id),pc(' '),cnt++;}
else write(a[i].id),pc(' ');
}
puts("");
}
}
void main(){
MT solve();
}
}
signed main(){
gza::main();
}
详细
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 5712kb
input:
1 4 823983109 859315505 510901709 589624124 351308325 413158126 29447781 138101981
output:
4 3
result:
ok answers are correct. (1 test case)
Test #2:
score: 5
Accepted
time: 1ms
memory: 5644kb
input:
1 10 344190293 385750493 951894838 978895800 82358344 338131819 540516504 607653166 820688970 951835774 395392706 419489159 623802732 644208366 798160348 818154082 680378878 682083538 467019518 519267671
output:
3 1 6 10 4
result:
ok answers are correct. (1 test case)
Test #3:
score: 5
Accepted
time: 1ms
memory: 5792kb
input:
1 500 943625790 945741848 367933677 368747115 117030592 118328257 321658393 322265356 413440931 413466704 191801051 192382494 45318188 45578563 184352813 184557169 267846012 270194842 787080743 789209469 102034755 102793278 677264139 679983858 858429750 858446103 879077624 879224701 573990877 574468...
output:
323 478 486 483 456 418 368 126 72 212 498 499 30 449 233 358 462 66 337 138 68 252 308 7 422 107 205 140 402 203 152 258 429 433 61 326 407 305 190 181 202 284 200 270 306 37 455 378 42 144 134 120 412 113 293 11 343 141 146 230 122 3 354 82 495 71 97 28 467 475 355 403 447 423 436 102 86 91 444 36...
result:
ok answers are correct. (1 test case)
Test #4:
score: 5
Accepted
time: 1ms
memory: 5736kb
input:
1 1000 724221604 725069540 143194275 144876990 944969667 945425601 692430254 692500244 413915365 415513016 441154319 441817251 397426964 397797495 573976568 574310166 333482080 333658815 692670858 693494033 781215754 781315542 297042073 297766151 347972954 348085089 567271813 567539623 43283944 4381...
output:
536 529 141 334 820 451 945 454 354 850 897 197 126 949 602 534 393 282 196 646 413 284 703 272 39 710 96 396 125 952 173 130 367 265 903 121 692 810 349 320 23 219 641 411 15 844 269 75 550 661 242 777 698 621 129 616 189 955 105 276 957 887 539 221 336 705 937 991 55 759 174 373 631 475 742 41 220...
result:
ok answers are correct. (1 test case)
Test #5:
score: 5
Accepted
time: 2ms
memory: 7892kb
input:
1 10000 1915 1916 6871 6872 12925 12926 12679 12680 18809 18810 4725 4726 12781 12782 6363 6364 18471 18472 17037 17038 13225 13226 12201 12202 8365 8366 11427 11428 2859 2860 18423 18424 3519 3520 14647 14648 17649 17650 11249 11250 9003 9004 15623 15624 11345 11346 457 458 4805 4806 17905 17906 84...
output:
4766 9608 8588 7970 4330 9042 4619 4019 1723 757 970 9509 337 91 3766 4462 9793 9109 860 5577 5179 195 7485 8534 3584 2915 4590 8995 4070 9081 1263 3916 4154 8800 8845 431 7355 6314 862 8463 3690 8332 4622 3145 2320 711 1148 3671 8729 5355 2896 2144 6869 6707 9908 1781 4853 6186 8683 4740 1049 607 3...
result:
ok answers are correct. (1 test case)
Test #6:
score: 5
Accepted
time: 2ms
memory: 6028kb
input:
1 10000 951623572 951627967 944693469 944698949 866936571 866953676 708414261 708441197 918925455 918994693 693014496 693052258 500076831 500117857 346961903 346994890 790230509 790247658 486707346 486907093 703108219 703186545 666115252 666249778 638756819 638771288 605550898 605661894 618156528 61...
output:
1837 2807 1955 6579 7554 6281 5488 969 3590 9148 6570 8567 280 2499 4882 8400 1338 6559 427 3961 5378 6589 4656 7420 197 3758 6452 3502 2556 8342 4209 3498 5293 6217 861 8639 7676 4264 3927 6756 1509 7028 7189 2333 6530 8154 6671 1528 7229 1723 1488 4628 8086 7560 7277 7793 7580 9558 9145 1051 2238 ...
result:
ok answers are correct. (1 test case)
Test #7:
score: 5
Accepted
time: 19ms
memory: 8268kb
input:
1 100000 95477550 95482342 57260360 57270968 324158435 324161602 337960344 337966333 843677712 843688311 61482892 61483547 494172231 494182559 843751785 843754290 158705730 158714372 136974660 136976009 424424906 424425379 802041471 802042132 670649961 670659516 155724598 155724784 245837370 2458388...
output:
71939 99928 86010 22766 47721 66161 24469 20566 99568 6269 93234 45127 5007 29782 9053 25180 12136 64304 84962 81419 66887 58844 76589 34741 133 84150 2327 14810 67578 84023 79006 36899 55583 62141 9538 53071 15503 29124 31836 36145 98044 62689 45609 96058 71646 96895 75087 46761 79850 89193 98612 9...
result:
ok answers are correct. (1 test case)
Test #8:
score: 5
Accepted
time: 19ms
memory: 8464kb
input:
1 100000 126151 126152 147685 147686 168691 168692 124505 124506 58489 58490 98015 98016 173339 173340 39469 39470 135733 135734 53105 53106 118229 118230 46503 46504 36953 36954 185819 185820 27699 27700 64063 64064 60847 60848 18307 18308 1697 1698 109113 109114 99305 99306 72117 72118 107975 1079...
output:
75377 51260 37869 20294 14965 95874 5667 11492 31580 717 17389 44033 71923 88665 87417 92824 48939 36551 94330 82375 3013 5157 98708 5429 56464 64915 79502 42666 95763 19728 57214 90790 52810 50976 8996 33863 42096 24445 92194 61911 74140 40171 77799 94597 63531 25724 59373 39922 1130 73597 70370 28...
result:
ok answers are correct. (1 test case)
Subtask #2:
score: 20
Accepted
Test #9:
score: 20
Accepted
time: 1ms
memory: 5712kb
input:
1 10 4 6 15 20 1 12 11 16 3 10 13 19 5 18 7 8 2 17 9 14
output:
2 6 7 9 10
result:
ok answers are correct. (1 test case)
Test #10:
score: 20
Accepted
time: 1ms
memory: 5720kb
input:
1 10 117956745 973823632 23571766 719701618 38785378 558526309 231187237 674007540 733362426 831144169 89816954 851213129 249341944 612792325 373425880 852493895 483542387 985564497 696597340 810358170
output:
9 1 8 6 10
result:
ok answers are correct. (1 test case)
Test #11:
score: 20
Accepted
time: 1ms
memory: 5652kb
input:
1 14 16686983 932034450 223405271 642058261 317002236 708563919 199994594 587702670 454769448 522126055 746578284 809511289 133298121 894605432 94273255 452589074 5923134 643331337 350619519 385885046 317742836 915325929 320415015 743405145 48507375 963122902 124278107 221614208
output:
13 1 11 7 6 12 5
result:
ok answers are correct. (1 test case)
Test #12:
score: 20
Accepted
time: 1ms
memory: 5704kb
input:
1 16 100212181 610959822 59569481 946341427 168724782 490902631 156501761 504380971 25798133 52287573 318331091 915496014 208509217 366012539 288068792 715557962 256907803 526058782 50050253 126428948 104145448 301925232 146518183 863900618 639034909 804627990 412452373 490792746 108316345 249279177...
output:
2 6 12 13 8 1 9 14
result:
ok answers are correct. (1 test case)
Test #13:
score: 20
Accepted
time: 1ms
memory: 5660kb
input:
1 20 456674597 608693437 109249158 596412179 370495893 870389856 488084264 934790215 442774596 811747447 872496853 921725870 376801154 471157541 845813365 998784402 228965099 809754209 382052625 391934909 259367607 683974291 670301847 878762117 35222309 784937368 185199365 910293412 413659466 752376...
output:
8 17 4 6 14 12 3 20 5 1
result:
ok answers are correct. (1 test case)
Test #14:
score: 20
Accepted
time: 1ms
memory: 5656kb
input:
1 20 297037250 419041198 282321805 321064650 349747242 362433069 351288380 375542434 419041198 445887196 602441780 958674622 241096289 375542434 475310449 592319891 349747242 913534896 383581240 419041198 173682409 328216346 328216346 603578694 472233867 801490971 95678652 168142402 168373452 387862...
output:
14 16 2 11 19 3 7 4 20 15
result:
ok answers are correct. (1 test case)
Test #15:
score: 20
Accepted
time: 1ms
memory: 5732kb
input:
1 20 414632002 543806183 925805922 929091516 635760918 935185417 363667984 414632002 367022099 862453723 417689885 547896642 134334204 417689885 65069763 927973748 547896642 882308193 65069763 781505290 263762476 560812886 559742181 929091516 134334204 547896642 547896642 589976615 110485699 9290915...
output:
3 2 15 12 8 19 16 9 5 14
result:
ok answers are correct. (1 test case)
Test #16:
score: 20
Accepted
time: 1ms
memory: 5656kb
input:
1 20 329453252 360742558 89402460 286183994 89402460 360742558 89402460 855784898 286183994 360742558 731929589 996880390 947477154 996880390 286183994 329453252 886845999 947477154 947477154 996880390 855784898 886845999 855784898 947477154 360742558 996880390 329453252 360742558 89402460 360742558...
output:
2 20 8 5 1 19 15 14 3 16
result:
ok answers are correct. (1 test case)
Test #17:
score: 20
Accepted
time: 1ms
memory: 5732kb
input:
1 18 202540904 389043517 226910816 248116434 63938984 546305677 140915764 499772247 49838487 549773488 447779853 755008234 533058173 810427590 285195967 754382401 637925690 745236874 124462413 429325871 337679536 747589476 524818542 789436305 99818393 333713311 365323277 797802647 621572224 86322465...
output:
2 16 13 1 10 4 3 5 17
result:
ok answers are correct. (1 test case)
Test #18:
score: 20
Accepted
time: 1ms
memory: 5776kb
input:
1 20 5 29 3 26 28 32 16 37 30 31 9 18 12 40 20 39 24 34 8 23 2 15 10 11 7 13 14 38 1 27 17 36 22 35 25 33 4 21 6 19
output:
12 13 11 6 20 19 10 2 15 1
result:
ok answers are correct. (1 test case)
Test #19:
score: 20
Accepted
time: 1ms
memory: 7756kb
input:
1 20 485722088 852895392 180584674 212943100 66284389 595168707 2136725 669530231 56269137 678699628 320676083 957135819 596929135 788062700 124202451 346702760 302036371 939376831 39652702 316659144 561860366 877505895 290483397 969059389 256661759 825834533 7051957 255090916 25578269 614441405 579...
output:
2 14 10 20 8 3 15 16 4 5
result:
ok answers are correct. (1 test case)
Test #20:
score: 20
Accepted
time: 1ms
memory: 5732kb
input:
1 20 377259628 382099996 69472389 220349448 393265432 765479011 294596292 404572923 118284478 181270154 643688338 650238709 746999817 921253559 714973742 936522293 692298392 935037128 6892369 351174639 279506178 445398706 527519195 833951836 770865464 927351496 76532474 294108433 263985397 436457230...
output:
5 2 17 14 10 1 4 15 11 16
result:
ok answers are correct. (1 test case)
Test #21:
score: 20
Accepted
time: 1ms
memory: 5720kb
input:
1 20 422854059 481170824 437404694 545549659 104747483 235762834 26069209 210102693 247195443 329574823 668050357 676060905 666824938 742513110 800843882 976578863 485027093 574722004 112136604 121743796 22030602 122637670 569273785 573750615 569699277 573736325 725853453 854844997 647010820 7594164...
output:
10 11 4 3 5 20 16 18 19 1
result:
ok answers are correct. (1 test case)
Subtask #3:
score: 7
Accepted
Dependency #2:
100%
Accepted
Test #22:
score: 7
Accepted
time: 1ms
memory: 5732kb
input:
1 20 12 32 19 33 17 37 6 25 10 18 1 13 2 36 9 27 21 34 26 40 22 31 7 23 20 29 4 35 15 28 8 39 24 30 5 38 3 16 11 14
output:
10 16 18 3 7 14 9 2 1 15
result:
ok answers are correct. (1 test case)
Test #23:
score: 7
Accepted
time: 1ms
memory: 5716kb
input:
1 22 562112285 905647327 240141164 731142048 673886690 763757368 53498001 455662841 20676639 351849824 430638704 607091437 753698264 785733256 566785053 810160249 238350738 873040384 240965920 490240565 199338019 872579030 431913792 892894696 220531515 542988872 192378877 626707752 139188962 5219923...
output:
19 18 1 12 9 11 20 8 7 3 22
result:
ok answers are correct. (1 test case)
Test #24:
score: 7
Accepted
time: 1ms
memory: 5776kb
input:
1 24 452928043 647099793 130630202 367129866 17801368 222353883 39391651 651841181 233638785 667532265 395147159 960230719 588063665 826022795 690973714 857087461 271215960 970029927 552273808 753441132 44593615 602323775 302809042 318322155 177023370 935209668 69416623 749213040 399332295 627145871...
output:
9 20 6 13 21 8 19 7 23 10 14 22
result:
ok answers are correct. (1 test case)
Test #25:
score: 7
Accepted
time: 1ms
memory: 5720kb
input:
1 26 578589417 612484309 292504170 427700804 36277123 499735859 356607648 422009346 754570226 958096037 528029966 993720497 132792333 905159403 29838574 838444239 110735119 836548961 151753757 191748697 89804957 530886628 123919627 829686347 223709236 969746156 346126428 922783233 247235962 60749218...
output:
6 13 5 24 14 7 26 19 8 9 12 16 1
result:
ok answers are correct. (1 test case)
Test #26:
score: 7
Accepted
time: 1ms
memory: 5720kb
input:
1 30 14 29 10 26 4 51 17 52 12 53 36 49 23 58 33 35 2 42 31 44 11 54 6 56 8 60 13 55 46 50 27 47 30 37 24 38 9 48 3 59 22 45 18 28 20 41 7 16 5 57 25 39 34 40 32 43 1 15 19 21
output:
13 20 7 25 12 14 11 5 4 3 15 6 19 16 8
result:
ok answers are correct. (1 test case)
Test #27:
score: 7
Accepted
time: 0ms
memory: 7780kb
input:
1 30 629064809 641790958 578210607 887578641 490629251 577473081 71417170 624625927 160709442 194892241 578210607 831623663 372922675 624146119 608268161 731260920 301807640 578210607 578658807 923868223 228258154 723688277 395587126 726515177 235831812 737833555 368551495 509492097 65945142 3018076...
output:
16 28 10 21 25 17 2 23 20 6 19 13 8 22 1
result:
ok answers are correct. (1 test case)
Test #28:
score: 7
Accepted
time: 1ms
memory: 5648kb
input:
1 30 137296542 821961036 297866317 378867592 73619484 962698330 135824878 474909542 103746039 809367943 91070563 358316534 674622994 962698330 827032540 937136300 135824878 426692572 135824878 474909542 135824878 890103199 135824878 297866317 821961036 962698330 193440379 474909542 7897872 359386284...
output:
3 7 13 8 19 27 11 30 23 22 1 29 5 25 17
result:
ok answers are correct. (1 test case)
Test #29:
score: 7
Accepted
time: 0ms
memory: 5728kb
input:
1 30 29056738 742866412 710261289 995644753 17093202 785360586 474677840 710261289 432334306 742866412 432334306 710261289 417496758 742866412 74049239 417496758 29056738 742866412 544481373 710261289 710261289 742866412 474677840 544481373 17093202 710261289 710261289 995644753 742866412 785360586 ...
output:
2 14 27 24 3 15 19 20 21 16 30 5 7 9 25
result:
ok answers are correct. (1 test case)
Test #30:
score: 7
Accepted
time: 1ms
memory: 5732kb
input:
1 28 49272181 348875502 274336414 284183201 243949834 321672541 736652518 743848105 652730031 824864041 655956258 981360531 476791795 991304198 555269153 999500943 105391657 313308327 370064150 815695166 378968910 745237226 183138856 545120201 132232745 334725524 17861758 589929897 591371637 8537635...
output:
2 9 3 13 1 24 28 18 12 14 26 16 17 27
result:
ok answers are correct. (1 test case)
Test #31:
score: 7
Accepted
time: 1ms
memory: 5784kb
input:
1 30 26 49 35 53 8 39 18 52 13 36 41 48 21 47 2 42 27 55 1 17 40 57 29 59 3 24 37 58 5 33 31 50 10 30 23 60 44 51 15 16 7 38 22 56 4 43 9 25 45 46 12 32 20 54 11 19 6 34 14 28
output:
20 10 28 13 24 30 17 26 15 29 5 21 3 8 23
result:
ok answers are correct. (1 test case)
Test #32:
score: 7
Accepted
time: 1ms
memory: 5780kb
input:
1 30 656834254 888876375 591479951 877053255 230228279 500450410 673720061 912398603 156784707 638174529 102931874 286701668 407947838 905691072 232788839 626151375 77434657 356507836 308940877 834743633 28340621 257708354 480408641 791920983 162713038 357816015 388418446 805038965 19384463 36372925...
output:
22 11 6 9 13 15 30 27 3 29 26 8 5 24 16
result:
ok answers are correct. (1 test case)
Test #33:
score: 7
Accepted
time: 1ms
memory: 5720kb
input:
1 30 276117459 358757893 242147303 417349470 431645945 887019853 270969554 462457681 191873909 663638848 64891524 520763854 488015475 971478723 45208076 403655463 481207107 995401090 640172211 964152357 610798701 732006426 261032641 513928685 92712032 453273578 403670398 822282313 297578639 30164579...
output:
15 1 8 2 13 4 20 29 12 6 19 22 23 25 5
result:
ok answers are correct. (1 test case)
Test #34:
score: 7
Accepted
time: 1ms
memory: 5728kb
input:
1 30 698059820 704032697 813000350 985625673 279308122 623741768 533055871 928549206 47426516 281322666 275842816 519877101 347209442 692600482 863267459 953456649 597668272 889664266 915266074 990661703 24104409 318025559 438147041 438194531 415942415 452749986 163177173 454645219 170248307 6699798...
output:
26 29 18 5 22 19 11 24 12 13 14 6 27 3 15
result:
ok answers are correct. (1 test case)
Test #35:
score: 7
Accepted
time: 1ms
memory: 5656kb
input:
1 30 38778664 266974365 659342514 788316831 105309375 333335436 452687953 645271610 866451541 992350992 898020150 956487258 169300311 196487175 533003687 573730620 803830603 870313203 535272663 553927386 343001847 515742367 370406694 375080026 775445533 884774900 637980096 686706696 124970019 278074...
output:
7 1 15 3 24 12 23 19 17 11 10 8 18 4 27
result:
ok answers are correct. (1 test case)
Test #36:
score: 7
Accepted
time: 0ms
memory: 5716kb
input:
1 30 22689160 598699948 57997602 585516573 47716839 297491726 268634895 898651606 350127494 847430932 471441466 908283960 641576778 892852432 155293607 416552693 666482426 974822483 475979801 849556959 257889658 791152131 100583109 336068373 744476994 754219844 506091016 944210840 8450000 679157874 ...
output:
22 23 3 12 26 19 8 30 28 2 1 25 16 15 21
result:
ok answers are correct. (1 test case)
Test #37:
score: 7
Accepted
time: 1ms
memory: 7760kb
input:
1 30 37 46 23 45 16 21 14 53 32 50 13 40 22 55 11 47 8 33 6 18 7 34 36 52 15 20 29 54 38 49 4 25 5 30 9 59 12 42 26 57 31 51 1 27 17 60 10 56 3 41 24 43 19 44 2 28 35 58 39 48
output:
23 18 29 20 24 7 14 4 12 21 5 15 30 8 26
result:
ok answers are correct. (1 test case)
Test #38:
score: 7
Accepted
time: 1ms
memory: 5780kb
input:
1 30 401489547 725967637 220995091 918993330 167099370 624016129 460962645 787451589 105387235 340924306 213790135 850372211 160669266 390811067 133265130 544081104 647373796 708638034 410069343 909108707 200634433 832039652 109424048 427867478 167768155 451386654 654366706 718678090 578151378 66362...
output:
2 10 30 27 16 18 6 11 4 28 1 20 22 14 15
result:
ok answers are correct. (1 test case)
Subtask #4:
score: 15
Accepted
Test #39:
score: 15
Accepted
time: 1ms
memory: 5712kb
input:
1 10 8 9 15 18 12 13 5 14 7 10 1 20 2 19 6 11 3 4 16 17
output:
6 7 2 10 3
result:
ok answers are correct. (1 test case)
Test #40:
score: 15
Accepted
time: 0ms
memory: 5736kb
input:
1 100 152 159 63 64 101 102 105 106 90 175 114 173 181 190 37 44 186 189 126 127 135 138 27 34 136 137 76 77 149 164 129 130 17 18 68 71 66 73 11 12 47 48 67 72 49 54 21 22 118 121 3 4 117 170 83 194 91 112 124 133 139 140 85 88 151 162 86 87 84 89 116 171 30 31 6 9 46 195 92 97 14 15 125 132 39 42 ...
output:
53 79 74 67 39 28 50 83 99 7 9 78 82 55 92 5 72 6 68 36 27 100 46 48 65 91 15 88 33 47 1 45 73 56 81 52 31 11 13 30 42 54 16 10 98 89 4 3 61 34
result:
ok answers are correct. (1 test case)
Test #41:
score: 15
Accepted
time: 1ms
memory: 5728kb
input:
1 100 192 193 83 84 38 39 33 34 120 121 19 20 118 119 175 176 13 14 74 75 154 155 101 102 68 69 146 147 81 82 89 90 53 54 190 191 181 182 48 49 139 140 40 41 72 73 116 117 1 200 124 125 4 145 9 50 150 151 112 113 27 28 122 123 5 126 46 47 152 153 29 30 91 92 25 26 188 189 110 111 104 105 11 12 179 1...
output:
42 9 62 44 6 89 45 38 31 36 49 4 57 75 3 22 60 84 34 20 28 66 17 55 69 73 52 72 88 50 13 99 23 10 93 46 67 15 2 80 70 16 37 82 98 86 81 12 58 41
result:
ok answers are correct. (1 test case)
Test #42:
score: 15
Accepted
time: 0ms
memory: 5724kb
input:
1 100 189264773 692317517 166821159 730826701 132093661 747760156 244413340 258044743 425913239 571468467 345436794 608324228 414722760 580844232 4880692 979509087 381662564 593964118 15895639 957413704 17946557 939078604 73528693 867087267 18964638 919816261 39059497 884193691 278085494 635574530 2...
output:
84 8 86 80 32 77 68 10 74 11 66 75 13 57 31 26 59 92 34 14 100 18 45 23 12 91 67 62 58 17 39 61 21 42 65 56 48 44 3 70 24 81 98 50 2 52 96 28 53 95
result:
ok answers are correct. (1 test case)
Test #43:
score: 15
Accepted
time: 0ms
memory: 5736kb
input:
1 100 327645749 329093539 980227412 994005154 579806213 598354521 898396499 898525148 545535670 547099732 57665434 63966759 91822376 112410483 898974428 932154782 174406471 268197958 272306427 273971634 389680998 390221315 3154994 997314160 269858259 282937852 343400516 407809409 620512844 631492929...
output:
12 33 2 47 89 42 63 22 8 25 86 76 65 4 41 95 82 77 72 78 99 18 83 17 97 96 69 49 67 88 57 71 98 29 40 46 70 74 80 58 53 32 36 81 39 15 3 24 59 5
result:
ok answers are correct. (1 test case)
Test #44:
score: 15
Accepted
time: 1ms
memory: 5656kb
input:
1 100 19022424 295717821 521909470 631285980 497332842 642316879 652870043 654095607 1416391 996731107 325050618 333648846 854687185 897107660 53041861 61991654 182273029 231298999 38904128 236257569 307694478 357691523 579993158 583091697 239954119 244805531 434287435 485536294 225429937 226370246 ...
output:
61 8 39 71 66 33 70 68 42 93 52 19 82 41 87 16 62 26 15 18 9 10 51 13 45 48 31 32 60 97 37 25 53 1 6 74 76 11 29 69 99 88 77 24 80 58 14 55 36 20
result:
ok answers are correct. (1 test case)
Test #45:
score: 15
Accepted
time: 1ms
memory: 5668kb
input:
1 500 689426082 689507542 427389970 430516694 305033996 305649163 125494668 126279290 235974559 238575143 113585036 123617477 809213065 811464735 695392709 697437354 44577991 45927754 356984995 358581387 853780607 858598288 494073918 494101939 531949799 532852851 910230931 912010323 496284517 500744...
output:
466 492 373 26 100 359 400 438 363 193 157 135 243 181 29 345 320 91 115 140 34 384 32 31 344 57 275 129 360 418 266 164 489 232 180 500 222 491 488 133 253 198 331 25 14 160 282 265 87 364 290 215 497 481 379 108 324 474 70 261 250 342 104 255 98 60 383 496 323 336 11 52 182 42 163 84 417 23 404 46...
result:
ok answers are correct. (1 test case)
Test #46:
score: 15
Accepted
time: 0ms
memory: 5676kb
input:
1 500 298167304 298463628 791031018 794720207 659273641 659882121 104798428 105261813 211419472 211890862 743609251 750342623 785451379 825218182 161739521 165868601 668366592 670883708 17846664 980939732 623757216 629418838 57011271 280805195 702352076 702445129 242115912 248568730 392104305 412710...
output:
477 473 446 171 312 75 194 124 28 404 217 246 21 328 447 172 434 176 428 293 336 365 216 468 121 243 483 90 118 437 248 140 4 319 196 478 288 215 335 275 395 81 361 342 135 396 459 285 263 311 382 419 38 282 24 458 18 174 186 297 379 258 261 152 284 431 278 125 8 438 429 274 132 85 208 488 25 399 11...
result:
ok answers are correct. (1 test case)
Test #47:
score: 15
Accepted
time: 1ms
memory: 5784kb
input:
10 60 11164929 994881562 299556408 474028014 66299485 119766199 432871164 460158656 132161383 176718496 271951527 606038754 539359133 553976140 949470174 958412706 661828987 994881562 12788677 49941342 891211584 895712102 724455378 983161900 152648130 160372649 225338436 227986635 949470174 97419152...
output:
1 9 34 12 33 27 53 15 54 8 29 50 59 11 39 48 20 16 32 23 43 55 21 57 30 52 36 31 6 7 14 6 12 5 3 2 13 7 2 3 64 80 11 67 78 38 63 51 71 74 28 72 84 66 39 82 43 85 23 48 4 59 19 7 57 21 70 61 30 87 31 58 95 10 6 100 68 42 32 22 88 96 24 92 62 73 36 13 65 45 93 50 17 66 67 95 6 51 15 100 55 104 4 3...
result:
ok answers are correct. (10 test cases)
Test #48:
score: 15
Accepted
time: 0ms
memory: 5680kb
input:
1 500 816410380 822544531 933258032 939742925 916278797 958637658 231564956 282306172 702316904 703490950 630478476 632740217 622841133 628258870 559790060 573154940 767361234 767671613 284287915 872329108 294087713 295464162 495885666 857329063 350544956 354873942 83065442 92337813 689858265 846165...
output:
75 79 152 128 149 25 341 237 259 255 297 86 400 37 301 47 373 452 488 290 146 224 19 387 97 34 485 124 41 478 132 258 218 23 251 330 457 3 52 432 263 476 22 235 429 450 213 250 120 219 63 405 2 61 329 28 231 380 88 139 104 240 311 69 464 156 206 463 378 83 421 265 348 357 211 354 331 232 304 10 436 ...
result:
ok answers are correct. (1 test case)
Test #49:
score: 15
Accepted
time: 0ms
memory: 5660kb
input:
10 128 522815246 524621300 923118423 925373805 263423265 265533002 822971542 824137800 862520556 870374525 963957423 987999676 621804380 629749739 353037672 356131731 583538841 596361306 437833985 448432601 583372381 765623200 136738523 153836821 540525609 540914706 211359946 332668957 249110665 318...
output:
80 123 6 21 115 65 47 39 51 34 79 2 96 101 29 121 32 20 41 31 125 122 5 73 71 84 98 4 36 53 62 108 110 45 11 100 77 68 17 43 42 78 75 106 60 22 86 33 58 119 103 91 124 7 28 9 76 67 89 56 13 1 37 102 23 8 17 10 22 11 21 7 16 4 6 20 27 56 57 60 61 9 53 31 32 21 14 48 1 47 4 62 54 37 44 59 13 25 17 6...
result:
ok answers are correct. (10 test cases)
Test #50:
score: 15
Accepted
time: 1ms
memory: 5816kb
input:
1 500 385 386 233 683 460 599 563 565 299 301 336 337 619 620 181 194 642 643 448 600 673 675 449 450 512 513 479 480 653 654 129 145 246 252 22 24 236 238 179 194 523 524 175 214 312 318 338 339 105 107 159 216 538 541 522 525 116 120 499 500 313 315 239 682 402 406 437 439 136 144 520 521 270 271 ...
output:
119 427 169 159 69 409 57 102 156 253 489 150 275 394 455 170 372 415 2 362 32 259 209 399 316 228 373 375 456 413 315 11 365 134 287 262 128 214 479 497 405 113 381 264 423 428 411 15 50 63 470 347 366 350 9 70 137 176 79 299 346 467 477 60 224 168 450 276 242 124 127 7 130 344 293 285 307 93 290 3...
result:
ok answers are correct. (1 test case)
Test #51:
score: 15
Accepted
time: 0ms
memory: 7784kb
input:
1 500 148231886 843751205 617312422 619924046 398704174 662992586 441434589 621116735 390950133 669928473 92679348 907367206 518370794 521942633 477434538 596304707 412430957 653183253 13886794 989938123 285865332 753481093 419812510 646087325 133532754 865082667 29746787 974186362 59429239 94867990...
output:
164 382 350 483 339 406 433 288 127 325 115 260 10 19 185 239 196 135 468 24 285 98 123 238 200 394 458 14 404 371 122 36 83 208 430 114 161 57 184 341 452 342 93 491 333 367 207 37 283 228 324 266 159 180 15 337 403 257 156 354 33 439 246 454 256 484 94 179 442 175 479 467 105 432 237 101 399 47 40...
result:
ok answers are correct. (1 test case)
Test #52:
score: 15
Accepted
time: 0ms
memory: 5736kb
input:
1 500 469801418 543014146 88133056 907796982 371632401 651284421 215700096 770340130 43908894 949974227 228857314 763662824 96428585 878420222 358846586 659069102 342512323 678918835 418259745 622528727 409697819 630897028 419845825 616929433 422535725 601728016 343890155 676697170 459587703 5503620...
output:
129 430 318 254 257 361 386 36 465 489 293 343 300 137 287 108 385 427 496 240 189 495 289 458 31 192 128 261 207 297 89 272 444 268 329 216 397 342 75 197 443 498 77 125 419 325 5 65 368 61 390 179 174 394 45 475 118 447 340 228 363 64 400 141 425 273 110 488 291 422 133 391 226 149 421 175 446 234...
result:
ok answers are correct. (1 test case)
Test #53:
score: 15
Accepted
time: 1ms
memory: 5732kb
input:
10 50 207059937 753068238 180121652 843395001 89976589 910097214 454561729 475461835 30145643 958325187 468106776 475461835 216500729 732895985 186550878 842144439 216500729 730076513 201705854 784916523 101615777 887736079 146407771 854308076 352972448 569951085 146407771 854308076 186550878 843395...
output:
41 33 36 5 34 26 27 29 35 32 3 22 11 25 42 14 12 15 2 43 8 10 31 1 4 33 38 40 18 25 31 1 49 15 30 13 45 24 4 46 41 22 34 9 7 29 23 21 17 32 50 22 21 38 12 42 39 47 45 3 32 26 36 16 20 44 13 28 46 24 37 9 49 33 23 1 6 4 47 27 3 26 37 32 14 18 16 45 9 20 15 46 44 50 21 10 36 42 8 41 12 30 40 43 34...
result:
ok answers are correct. (10 test cases)
Test #54:
score: 15
Accepted
time: 1ms
memory: 7772kb
input:
10 50 96925135 119814173 496158611 512728287 175956964 182608264 651426656 775363792 800402590 803601033 277949571 285049833 459040129 519645784 584657755 622874674 48683750 255362883 835966114 846941081 9112059 997463383 328376408 939777438 273594271 983634047 570024836 938650380 648858690 89641384...
output:
11 49 13 39 46 35 34 12 30 14 18 28 15 20 17 42 47 10 5 48 22 29 24 40 26 27 47 9 43 23 20 12 36 8 4 14 18 41 35 37 45 26 28 17 6 10 5 22 3 42 37 7 1 45 32 11 22 16 18 44 25 41 19 4 43 39 31 33 40 5 46 15 20 6 14 29 16 7 22 31 30 40 17 50 2 9 8 4 26 24 38 1 33 39 15 27 32 18 37 13 46 18 20 21 16...
result:
ok answers are correct. (10 test cases)
Test #55:
score: 15
Accepted
time: 1ms
memory: 5776kb
input:
20 26 3 50 27 44 4 5 19 20 29 30 36 37 24 25 33 42 2 51 26 45 22 47 35 40 6 49 7 10 32 43 13 14 12 15 1 52 38 39 34 41 17 48 28 31 8 9 11 16 23 46 18 21 26 17 18 22 23 15 36 20 33 25 30 24 31 27 28 4 5 41 46 42 45 43 44 10 11 7 8 2 3 19 34 38 39 9 50 13 14 26 29 37 48 21 32 16 35 6 51 40 47 1 52 12 ...
output:
18 9 1 13 21 11 25 10 2 19 6 5 7 25 23 17 26 20 24 9 10 11 16 7 2 1 11 14 24 22 13 6 8 18 5 2 26 17 16 7 19 4 17 14 11 21 26 10 15 22 3 20 5 1 25 22 15 24 6 12 19 23 13 4 16 13 15 1 22 10 14 23 16 8 24 6 7 25 25 16 26 22 21 7 17 1 3 4 23 10 18 25 2 15 20 13 22 17 19 14 10 16 11 24 19 1 8 18 ...
result:
ok answers are correct. (20 test cases)
Test #56:
score: 15
Accepted
time: 1ms
memory: 5656kb
input:
5 100 39 40 38 47 94 128 130 133 113 116 83 84 104 123 70 73 27 28 17 18 23 31 102 103 91 92 64 67 129 185 30 31 120 121 43 44 22 77 32 77 25 26 153 154 8 12 139 140 6 187 169 176 138 183 35 74 129 184 62 69 174 175 158 159 94 127 136 137 82 186 150 151 147 182 98 125 51 57 171 172 163 180 89 186 15...
output:
91 50 95 63 23 94 10 57 21 9 62 11 16 1 18 49 89 2 44 46 65 83 39 55 86 74 68 14 56 45 30 85 48 8 28 77 81 19 20 60 72 47 92 6 96 59 13 64 53 12 36 46 96 58 20 84 64 29 71 79 16 62 77 25 80 41 88 76 35 86 39 55 34 45 4 22 70 66 92 3 83 12 47 94 43 31 67 10 57 13 9 44 91 23 42 89 28 48 2 1 47 66 31...
result:
ok answers are correct. (5 test cases)
Test #57:
score: 15
Accepted
time: 1ms
memory: 5740kb
input:
5 100 134 145 88 91 108 110 5 11 122 149 19 24 49 50 64 73 108 109 25 28 105 115 108 111 35 40 47 48 67 71 36 37 52 82 21 22 51 157 16 45 86 87 13 14 150 154 8 10 70 71 101 102 118 155 83 157 46 158 26 28 15 160 15 159 18 24 125 126 106 115 141 144 13 161 140 144 41 42 100 102 77 78 1 3 63 74 151 15...
output:
47 61 37 31 32 29 95 28 19 73 89 27 23 55 48 44 5 49 68 92 1 46 36 70 38 71 87 86 75 67 51 34 50 85 69 56 11 35 53 64 12 3 9 52 26 96 99 91 93 21 34 22 11 94 41 73 70 97 23 27 30 38 82 75 92 69 43 77 46 19 59 47 10 83 64 32 60 85 52 81 40 74 13 9 89 76 17 98 49 80 26 100 72 91 2 62 63 55 15 95 67 ...
result:
ok answers are correct. (5 test cases)
Test #58:
score: 15
Accepted
time: 1ms
memory: 5736kb
input:
5 100 57 60 4 89 10 11 16 17 52 60 47 83 34 35 18 84 54 56 73 74 34 35 72 74 57 58 16 17 4 89 28 33 20 24 39 40 1 89 14 15 57 60 52 53 6 89 59 60 2 3 52 60 18 19 38 84 49 83 36 37 43 83 70 71 52 56 79 83 7 9 6 11 25 33 36 37 61 62 87 88 14 84 45 83 8 9 6 89 26 33 70 75 50 51 34 35 1 3 47 83 12 84 76...
output:
78 77 88 90 44 23 19 15 2 40 66 81 28 41 64 65 68 75 8 80 79 51 6 96 29 31 34 94 42 50 58 89 76 82 83 56 52 12 32 99 93 92 39 24 13 9 22 47 84 69 24 94 65 100 91 67 88 37 97 6 77 29 64 79 84 41 38 45 11 47 10 93 66 68 69 18 48 53 7 28 19 35 74 33 58 30 1 75 17 85 44 62 59 22 99 57 70 25 86 14 76 1...
result:
ok answers are correct. (5 test cases)
Test #59:
score: 15
Accepted
time: 1ms
memory: 5816kb
input:
1 500 539 750 150 935 113 950 503 768 599 720 394 819 179 180 616 713 236 237 176 925 572 731 273 276 321 860 559 560 226 227 160 933 397 818 594 595 25 28 658 683 576 729 350 845 364 837 80 83 242 243 687 690 473 782 70 71 10 995 109 952 351 844 232 905 38 39 441 798 285 874 633 634 162 163 550 551...
output:
70 115 463 485 265 29 435 472 172 361 409 225 408 183 365 145 107 200 393 345 76 461 140 79 306 318 175 399 356 255 279 372 223 378 258 234 138 466 59 416 276 46 407 108 363 434 381 457 30 147 3 155 149 388 122 482 403 49 410 300 69 493 412 437 401 2 128 16 170 156 275 355 334 120 123 10 235 142 104...
result:
ok answers are correct. (1 test case)
Test #60:
score: 15
Accepted
time: 1ms
memory: 5784kb
input:
9 46 501774969 519983378 285778326 834922419 595571527 661772468 213780183 879520399 118553532 137902327 586255014 704681164 9378356 989491790 252874272 874409322 72613198 74499250 476332881 765679883 152839782 174751052 532596744 731487878 388051588 769413593 28164764 31337189 303272352 802188999 2...
output:
32 7 25 34 35 19 42 4 29 18 8 24 16 44 2 41 40 3 36 37 39 22 27 18 22 19 4 16 11 5 9 15 14 1 46 31 2 15 43 32 12 39 19 28 34 26 3 37 1 35 27 22 41 44 6 29 14 41 32 16 38 51 58 33 7 3 25 36 48 6 61 21 42 22 52 45 49 24 62 27 63 54 50 29 34 17 47 19 23 192 4 140 20 83 137 165 96 174 10 89 164 87 1...
result:
ok answers are correct. (9 test cases)
Test #61:
score: 15
Accepted
time: 1ms
memory: 5652kb
input:
10 16 361772037 792510445 384635416 719144625 409497618 715739063 316966717 810707053 570778884 601671076 466502262 688774338 60266974 833174946 18212972 965603052 78400004 833174946 560213145 634160086 25518996 956489694 88309429 816988063 18212972 965436162 476224887 666831528 125582877 221723227 ...
output:
8 13 11 9 7 12 4 5 28 34 9 2 33 17 8 38 39 22 29 18 32 6 15 30 16 10 20 31 1 4 8 5 35 70 7 58 42 26 36 49 16 12 8 19 32 109 37 15 55 98 39 93 91 52 75 103 108 14 23 89 31 2 51 22 76 68 44 116 9 83 59 43 6 53 61 90 56 48 115 85 63 29 78 66 92 47 81 95 71 84 12 9 2 3 5 13 6 14 4 24 86 50 11 29 2 ...
result:
ok answers are correct. (10 test cases)
Test #62:
score: 15
Accepted
time: 1ms
memory: 5780kb
input:
9 34 383744235 760713475 365248345 373897053 860942199 920723471 367914001 369135522 99996947 376639838 593508480 731644905 616957929 634111207 146766416 151628870 669535137 670535846 526718328 544745772 483058135 495775639 245489848 339299310 166726937 240162489 117981174 376639838 438746063 445010...
output:
25 20 30 3 34 32 23 18 17 16 1 6 9 19 31 10 27 2 17 25 8 18 34 22 12 30 33 10 31 44 35 39 24 21 43 40 3 32 16 2 26 13 25 4 6 8 18 21 24 23 7 17 16 3 64 18 62 81 99 58 49 89 1 54 127 86 27 103 65 52 91 83 20 85 96 88 123 53 19 107 21 93 47 115 101 98 39 117 8 69 41 79 60 78 46 34 87 40 55 10 31 76...
result:
ok answers are correct. (9 test cases)
Test #63:
score: 15
Accepted
time: 1ms
memory: 5716kb
input:
50 10 19750370 989074241 228142631 306262413 19750370 180114661 19750370 989074241 19750370 180114661 917769676 935776167 668494492 935776167 808635100 893567230 19750370 935776167 19750370 989074241 10 47236162 803597278 184820471 241507423 184820471 241507423 368250937 394441803 47236162 803597278...
output:
10 4 1 6 8 7 10 5 1 4 10 4 2 9 7 10 4 7 6 9 9 8 7 6 2 9 8 4 3 1 9 8 7 5 10 10 5 9 4 7 10 7 5 3 4 8 6 4 1 5 9 6 5 2 7 9 6 4 2 3 8 7 4 9 3 6 3 8 5 4 8 1 6 3 5 10 6 9 2 3 10 6 5 3 8 8 5 4 3 2 3 1 9 4 10 4 1 3 10 6 9 6 4 3 1 2 9 1 5 6 6 3 9 7 8 10 9 7 5 3 10 2 1 8 9 6 4 8 5 1 4...
result:
ok answers are correct. (50 test cases)
Test #64:
score: 15
Accepted
time: 1ms
memory: 5716kb
input:
50 10 500087700 584897525 500087700 513155047 267124682 584897525 227510224 584897525 267124682 426744798 15213847 642870289 15213847 642870289 15213847 104703342 117204814 176839817 15213847 652178414 10 612216268 651446105 96310236 996267161 155347798 359252282 797392811 855816166 155347798 517287...
output:
10 7 6 2 5 2 10 8 4 9 4 9 7 5 2 10 9 8 7 2 10 9 8 7 2 7 1 10 9 4 6 10 3 4 9 10 9 3 1 2 10 4 2 1 3 3 2 4 5 6 7 2 3 5 8 6 1 5 7 9 9 6 3 1 8 10 8 2 4 1 3 9 8 7 1 9 10 5 1 6 5 4 8 3 1 8 4 9 5 6 9 8 5 2 3 10 1 9 3 5 10 9 5 3 1 5 3 9 1 4 9 1 5 2 8 10 8 4 7 1 8 5 6 1 3 9 8 7 2 1 7...
result:
ok answers are correct. (50 test cases)
Test #65:
score: 15
Accepted
time: 1ms
memory: 5796kb
input:
50 10 95301773 691037456 230580771 691037456 230580771 691037456 230580771 415222843 230580771 691037456 95301773 691037456 609052820 627973741 609052820 691037456 163112864 691037456 230580771 691037456 10 858016773 940707455 296165260 945036980 796282169 945036980 505882941 538944798 806407720 808...
output:
10 9 8 6 7 9 3 2 1 5 10 9 8 5 6 5 3 2 7 6 10 1 8 7 5 6 5 4 10 7 10 9 6 1 3 1 5 4 2 3 1 10 7 4 5 10 6 4 5 8 9 8 7 3 2 10 6 5 3 4 10 7 4 5 9 8 7 6 1 9 9 7 6 2 8 7 10 9 4 6 10 9 7 5 3 7 5 4 10 2 3 9 8 5 6 10 7 6 1 8 9 1 7 8 3 6 4 3 2 1 10 2 8 3 4 10 8 5 4 1 8 4 2 9 1 8 4 10 2 3...
result:
ok answers are correct. (50 test cases)
Test #66:
score: 15
Accepted
time: 1ms
memory: 5664kb
input:
50 10 496521554 782203994 496521554 805258578 496521554 805258578 227741104 805258578 496521554 782203994 227741104 354334445 585390276 720752921 465894026 805258578 465894026 805258578 465894026 805258578 10 719541783 768667017 9789360 480126972 590606155 941040617 520529706 564445444 9789360 95044...
output:
10 9 8 4 7 10 9 5 7 1 4 10 3 8 5 10 9 5 4 6 7 10 6 8 1 10 9 1 7 5 10 9 8 7 2 8 10 7 1 5 8 7 6 4 10 7 4 1 10 3 1 10 8 5 7 10 9 8 1 3 10 9 8 5 7 6 9 8 3 5 10 9 8 6 1 10 9 7 6 5 4 9 7 1 2 8 7 5 2 4 6 10 9 8 7 10 6 2 9 1 7 10 6 3 9 10 8 5 9 7 5 7 3 6 10 4 10 7 5 9 9 6 5 2 8 7 6 ...
result:
ok answers are correct. (50 test cases)
Test #67:
score: 15
Accepted
time: 1ms
memory: 5652kb
input:
50 10 274720328 743097043 260669555 896987513 332620323 680681926 332620323 462825489 274720328 816488967 352841296 462825489 274720328 711782565 274720328 811840873 699558719 711782565 274720328 811840873 10 381591952 620554201 764121008 785041462 381591952 489054965 132461600 992909141 818614537 9...
output:
2 5 10 8 9 8 10 6 3 1 10 5 9 8 3 9 5 7 4 2 2 9 8 6 4 7 1 6 4 10 2 7 3 10 4 10 9 7 5 6 9 6 5 4 3 2 10 6 4 1 2 9 8 6 10 5 4 10 7 8 3 1 8 4 7 10 9 7 3 4 7 5 4 1 6 2 6 4 8 1 6 4 1 3 7 8 3 4 9 7 8 9 7 4 1 7 8 9 4 5 9 7 4 10 1 3 2 6 4 8 7 1 3 4 5 9 3 8 6 1 7 4 2 5 1 8 7 3 5 10 5 ...
result:
ok answers are correct. (50 test cases)
Test #68:
score: 15
Accepted
time: 1ms
memory: 7704kb
input:
50 10 246101935 330583688 421084866 430900387 163817226 919559164 589300791 747411863 781176762 877487635 781176762 919559164 781176762 919559164 172271752 430900387 484291533 747411863 172271752 430900387 10 926100105 964653175 261196495 487517884 261196495 487517884 289254770 487517884 62387541 99...
output:
7 6 3 5 4 5 8 6 1 9 4 3 9 10 5 7 8 1 10 5 5 7 6 1 8 8 2 10 4 1 6 4 1 3 9 7 9 8 3 1 4 9 7 2 3 2 1 10 9 3 9 5 3 2 6 8 7 4 10 3 10 8 5 4 6 9 1 8 4 3 8 7 6 1 9 8 10 4 7 6 7 3 10 5 1 7 5 2 9 6 9 7 5 1 2 8 7 3 5 10 10 5 9 4 7 9 8 7 4 2 10 9 8 6 3 2 3 7 9 1 4 3 7 5 8 9 6 5 4 7 4 1...
result:
ok answers are correct. (50 test cases)
Test #69:
score: 15
Accepted
time: 1ms
memory: 5708kb
input:
50 10 98118201 946809205 698601498 946809205 616801293 632577205 616801293 632577205 698601498 946809205 98118201 105239489 98118201 374226278 260272702 374226278 616801293 946809205 98118201 105239489 10 567495749 580987757 416030258 942105701 877206458 908247659 457723701 801183075 226224578 26614...
output:
9 5 2 1 3 6 2 3 4 1 10 2 9 4 7 6 7 9 5 3 3 5 7 8 4 6 4 9 8 5 10 9 8 1 7 9 6 1 2 3 1 3 6 7 8 8 9 5 3 4 8 10 9 7 4 9 5 4 3 8 2 1 9 3 4 10 5 8 7 1 8 5 3 9 1 4 10 2 5 8 8 7 5 4 1 7 6 5 3 9 5 1 6 3 8 3 9 8 7 1 3 6 5 2 8 9 6 5 2 10 10 8 6 5 9 2 5 9 3 8 8 3 7 5 4 10 9 8 3 7 10 6 5...
result:
ok answers are correct. (50 test cases)
Test #70:
score: 15
Accepted
time: 1ms
memory: 5700kb
input:
50 10 95762328 357488445 7881961 661417382 7881961 868882778 123928976 357488445 123928976 357488445 95762328 661417382 261433049 351216204 7881961 30590524 95762328 661417382 201165551 357488445 10 6927352 894008664 6927352 916083033 643525866 754864631 205422979 314133882 182751834 386895978 69273...
output:
3 9 6 2 7 6 8 2 9 3 7 6 10 5 3 8 7 3 2 6 3 6 4 8 9 1 8 2 5 7 7 5 3 6 8 5 4 7 10 1 8 6 4 3 5 9 8 7 5 4 9 6 4 2 3 10 3 2 1 5 4 5 10 3 1 9 8 4 3 1 5 4 1 2 9 9 7 1 5 8 4 3 1 7 2 5 4 1 10 2 3 10 7 6 2 4 8 2 3 5 10 8 3 1 4 3 2 7 1 4 4 3 9 5 6 9 3 7 5 2 3 7 2 4 6 3 7 1 8 4 5 4 3 6...
result:
ok answers are correct. (50 test cases)
Test #71:
score: 15
Accepted
time: 1ms
memory: 5648kb
input:
50 10 57876729 983880390 8926814 44672754 107471632 934426253 4217634 983880390 107471632 788207016 57876729 983880390 222576133 432931526 222576133 313331857 4217634 983880390 107471632 983880390 10 50222656 892856645 343460693 607833602 619563637 693426564 708283851 735081648 708283851 735081648 3...
output:
10 9 6 4 8 7 6 1 4 3 10 7 6 5 8 6 3 8 5 7 10 9 5 8 2 4 2 10 9 1 8 10 7 6 5 10 6 2 1 9 1 9 7 5 6 9 1 6 4 10 10 9 7 6 8 9 8 7 5 6 10 8 7 2 9 1 2 4 5 9 10 9 7 4 8 3 10 5 8 2 10 6 3 2 9 8 4 6 2 5 3 9 7 5 8 5 7 2 1 9 7 5 1 6 2 7 4 9 8 2 5 4 6 1 3 10 8 5 2 3 7 3 5 2 6 2 1 5 6 4 4...
result:
ok answers are correct. (50 test cases)
Test #72:
score: 15
Accepted
time: 1ms
memory: 5712kb
input:
50 10 15965927 975018108 68352633 676327492 220756310 676327492 15965927 975018108 15965927 975018108 15965927 676327492 261298454 261496889 15965927 676327492 305077262 484707206 15965927 975018108 10 146385333 798429298 146385333 974393929 426691324 614364015 92566487 974393929 62050530 70054039 1...
output:
10 5 4 1 9 9 7 4 2 3 9 7 5 2 10 2 3 6 7 5 1 5 2 7 10 5 10 1 8 3 3 10 6 2 8 9 8 3 7 2 5 7 6 2 4 4 10 8 3 9 10 3 5 1 7 10 7 5 2 6 10 5 4 2 8 8 6 5 9 1 10 8 7 1 2 9 4 1 6 3 9 2 1 6 8 6 7 9 5 1 6 5 10 3 2 8 6 7 10 2 8 9 6 5 3 10 1 9 4 2 9 8 1 10 3 6 1 3 4 8 10 7 4 6 2 7 10 9 6 2...
result:
ok answers are correct. (50 test cases)
Test #73:
score: 15
Accepted
time: 1ms
memory: 5772kb
input:
50 10 527821219 538882050 153871478 849039744 40456084 849039744 621580633 849039744 177959669 346970826 621580633 792727118 527821219 558640486 153871478 558640486 40456084 113187287 621580633 849039744 10 335913552 410720658 335913552 877706389 72481592 947592325 72481592 225949552 241504175 28533...
output:
10 4 3 6 1 7 3 10 2 1 6 8 2 4 3 7 8 10 1 4 8 5 1 7 9 10 7 5 4 9 6 4 8 5 2 6 5 1 4 2 5 7 3 6 8 2 1 8 6 3 10 4 8 6 2 9 8 7 1 10 5 10 3 4 9 3 1 4 7 2 8 5 3 10 2 9 6 8 5 4 4 5 8 2 6 6 9 5 4 3 7 4 5 2 8 10 9 7 5 2 5 7 9 6 10 3 1 10 6 7 8 3 2 4 5 6 9 5 3 2 7 2 1 8 5 4 2 8 6 9 8 6...
result:
ok answers are correct. (50 test cases)
Test #74:
score: 15
Accepted
time: 1ms
memory: 5776kb
input:
50 10 15351021 721243480 15351021 762387722 421103784 721243480 332266090 335259514 68311199 304196778 332266090 335259514 332266090 335259514 332266090 335259514 15351021 22859805 15351021 721243480 10 163659830 573521786 726134071 932986613 72585021 960657018 936361788 960657018 144999220 67703923...
output:
2 10 3 1 4 10 9 4 3 2 9 6 4 2 8 5 7 10 6 1 10 8 5 2 1 8 4 5 9 10 4 10 9 5 2 10 9 5 1 3 8 3 9 7 1 10 9 5 1 3 6 1 4 5 2 4 6 5 2 1 5 1 7 4 9 2 1 6 9 10 7 6 5 4 2 7 6 4 2 10 10 6 7 3 5 6 5 3 2 4 6 2 10 7 4 10 9 7 4 5 10 8 5 7 9 6 10 5 8 3 9 8 3 6 1 3 10 8 5 1 1 4 9 5 2 6 5 4 8 1...
result:
ok answers are correct. (50 test cases)
Subtask #5:
score: 15
Accepted
Dependency #1:
100%
Accepted
Dependency #4:
100%
Accepted
Test #75:
score: 15
Accepted
time: 1ms
memory: 5720kb
input:
1 20 30 31 3 6 33 36 27 38 29 32 34 35 2 13 16 17 24 39 1 14 10 11 7 8 4 5 20 21 28 37 15 40 25 26 9 12 19 22 18 23
output:
16 9 4 15 3 6 5 1 17 14
result:
ok answers are correct. (1 test case)
Test #76:
score: 15
Accepted
time: 1ms
memory: 5668kb
input:
1 100 99580718 788681355 168494404 633900033 398354349 437458680 382840897 475263751 395179163 441595008 33286473 836597844 86012072 802380044 98615384 793148898 7614395 879717295 96177742 794526527 28142611 838119278 349484760 494968224 85805093 808023168 937801780 975672624 891788522 997640506 268...
output:
100 18 31 64 3 5 89 27 90 4 42 71 55 54 91 36 12 49 34 65 80 52 86 93 83 20 53 76 98 77 16 29 78 21 79 28 84 81 82 25 97 96 45 44 32 48 2 58 39 94
result:
ok answers are correct. (1 test case)
Test #77:
score: 15
Accepted
time: 1ms
memory: 5696kb
input:
1 1000 156 899 468 587 1582 1867 334 721 1122 1149 265 790 349 706 1189 1298 488 567 1601 1848 1468 1981 1466 1983 1062 1087 1352 1407 376 679 1222 1265 313 742 300 755 254 801 322 733 325 730 1693 1756 26 1029 353 702 347 708 1633 1816 428 627 344 711 1618 1831 1226 1261 252 803 1124 1147 1129 1142...
output:
186 414 569 409 712 793 171 281 532 372 980 577 868 332 484 933 98 880 199 291 813 370 820 707 336 42 613 990 742 735 585 104 598 863 777 477 630 754 853 9 160 165 194 273 968 41 433 995 706 931 709 812 540 161 126 441 930 323 925 2 147 38 952 609 305 669 864 578 890 239 888 815 272 197 953 993 948 ...
result:
ok answers are correct. (1 test case)
Test #78:
score: 15
Accepted
time: 1ms
memory: 5768kb
input:
1 1000 272631341 908695294 4501146 998267881 315583118 879542960 99204646 969688908 715232965 731832360 683069783 743050963 200607937 201535838 383066788 854760325 187017464 946309885 288069094 897691453 563090274 798970172 428564254 839689860 621989271 765233882 202401576 943574606 104983262 967482...
output:
304 67 283 490 673 2 494 211 831 768 828 468 292 636 915 108 913 274 824 209 42 481 87 142 939 135 846 144 873 205 346 161 376 698 488 857 601 43 98 409 668 940 259 923 613 155 99 479 919 608 634 676 696 215 987 116 817 680 623 457 401 232 190 233 262 722 540 622 933 610 521 136 816 4 558 658 210 85...
result:
ok answers are correct. (1 test case)
Test #79:
score: 15
Accepted
time: 2ms
memory: 8116kb
input:
1 10000 17731 17732 6322 6324 11255 11256 4059 4060 1099 1100 6856 6857 354 355 7266 7267 3271 3272 8030 8031 9650 9651 9624 9625 16421 16422 17835 17836 10735 10736 10346 10347 5428 5429 6408 6409 14448 14449 16542 16543 11397 11398 15449 15450 17269 17270 14565 14566 557 558 11938 11939 13052 1305...
output:
6588 6527 5203 6809 2042 8003 1339 1098 5635 6401 8909 1593 3951 552 8064 4469 6640 7938 8836 6241 5586 5047 2748 2839 8813 5424 9959 5243 1261 2818 8425 2129 2412 687 5741 3179 6240 9580 6350 4872 6610 8510 2597 301 7997 2254 2241 1574 7736 8299 7333 825 2191 9529 7330 2215 731 1389 7527 852 7528 1...
result:
ok answers are correct. (1 test case)
Test #80:
score: 15
Accepted
time: 3ms
memory: 6032kb
input:
1 10000 24132232 982872059 122051511 906831836 79963811 942084364 89099617 934724367 417039986 684570746 155462903 155516707 138733150 893946151 224108710 829120713 162809760 876055632 484592778 484681364 168746144 872100797 274643046 792546354 78421043 942885492 261316179 802341586 302285856 770897...
output:
6568 9821 6454 7599 5446 3687 5412 2084 4617 5381 4559 749 5988 5144 3310 47 8262 2609 2565 6445 8347 8191 4509 3241 263 6142 1119 5015 5306 3938 9389 2214 7432 5563 9825 3071 7523 6721 4859 7057 7236 5878 2876 9335 9405 8793 7934 7521 5348 6061 9079 8639 9863 4614 5382 3069 2906 6744 1213 3981 9412...
result:
ok answers are correct. (1 test case)
Test #81:
score: 15
Accepted
time: 0ms
memory: 6096kb
input:
1 10000 15798 15828 9940 9953 10957 10962 11253 12450 9876 10023 16786 16866 13043 13123 16814 16837 13731 14065 6272 6677 15476 15598 8482 8498 6760 6901 4596 4638 8783 8887 17229 17492 7443 7448 10668 10691 6377 6571 4497 4505 11339 12366 2711 2830 11711 12025 10572 10785 1364 1428 701 1113 1637 2...
output:
1635 1499 3040 5879 2144 1628 8484 8012 1100 1229 6483 1892 7998 1542 2837 8054 5098 692 6776 9242 8106 393 7185 9380 9051 9717 2517 4349 3573 2521 2364 8659 2865 2330 5987 1792 7665 6324 9433 3692 3034 4885 4757 2443 1483 6263 8679 9974 3218 6931 816 805 3736 9612 9130 4642 3846 9724 3544 9273 2822...
result:
ok answers are correct. (1 test case)
Test #82:
score: 15
Accepted
time: 2ms
memory: 5876kb
input:
10 354 570568009 572339753 213936555 214003250 379812391 380070394 15852102 16075419 846737868 894964026 853724442 855608041 231442910 291105661 995887973 996634431 925575683 925869806 892771121 892777309 652031698 673716895 77038800 114950342 796289712 805933667 384515157 399306202 922154397 926790...
output:
236 8 231 336 101 38 338 182 233 117 46 88 75 218 18 345 340 68 184 288 317 303 167 214 54 79 87 348 244 287 304 325 247 312 152 179 171 215 194 70 121 153 315 15 30 9 220 242 198 130 188 136 139 20 55 5 238 10 230 201 195 202 128 174 169 351 246 157 146 85 204 211 285 6 40 331 27 97 245 93 203 295 ...
result:
ok answers are correct. (10 test cases)
Test #83:
score: 15
Accepted
time: 0ms
memory: 6024kb
input:
1 10000 528349916 528753308 384979109 385007812 747588619 751204057 784529615 784543266 20744102 20786832 610123094 615158257 178435450 178458428 675218966 675427093 143112096 143232253 352922284 352995003 66722977 67268405 930406831 930539190 340144676 340908731 58931024 58950886 538252939 53829058...
output:
3942 3167 2996 1285 2342 4888 1427 7011 5391 5590 1781 7991 7760 1965 3542 2350 7695 3263 6242 2765 9757 4272 1363 9050 7036 1993 8178 9738 4747 659 5580 2056 6992 9609 2157 8881 8753 9275 5855 3717 8699 5150 2825 2196 9665 8538 8683 5653 8440 9147 1471 9570 7666 4392 7043 1959 4024 9677 2026 7332 7...
result:
ok answers are correct. (1 test case)
Test #84:
score: 15
Accepted
time: 2ms
memory: 6144kb
input:
1 10000 300190943 300268738 980446713 980576718 849367251 849372853 59042670 59135050 276892485 276972497 537546886 537584393 348549089 348610407 120979409 121024513 766950477 767063323 14532258 14586715 974408692 974435475 823407680 823417964 121946762 121958713 718760379 718795883 947860390 947860...
output:
3081 4419 7258 4300 2521 7172 987 8851 1285 2094 6319 8750 1773 8087 3647 5849 9019 3862 534 8222 8463 6981 8674 1509 6470 7278 8899 3511 3833 9521 4969 20 9332 7245 5853 8895 5465 8765 5202 3555 8530 1414 4734 7308 6997 243 7158 5552 6850 6261 88 1772 1159 5362 4639 9103 5717 5618 799 8386 9757 482...
result:
ok answers are correct. (1 test case)
Test #85:
score: 15
Accepted
time: 2ms
memory: 6096kb
input:
1 10000 828408688 853978299 698153877 698408232 883239772 883397822 596621350 596669869 583953726 583962391 152798081 152814304 927561776 927596639 976036685 977005816 467912627 467970676 526356492 532297680 521319682 521761068 309518853 309635413 560447456 560639447 241342225 241353247 342264818 34...
output:
5969 4999 7314 9957 561 9790 1540 1945 1621 782 5053 1685 2314 3455 530 3662 8102 2532 9855 7769 9047 3588 9279 9691 5152 6184 7422 5834 4871 9104 4388 3939 1251 2430 126 22 6385 3934 1541 5921 1502 425 8224 651 7792 9046 6821 5314 1766 2328 7546 4812 4872 7702 2121 6252 1297 6011 448 1676 6165 5024...
result:
ok answers are correct. (1 test case)
Test #86:
score: 15
Accepted
time: 6ms
memory: 7060kb
input:
1 50000 8457 8458 6705 6706 10522 10523 40316 40317 81252 81253 43100 43101 84488 84489 2384 2385 57449 57450 76649 76650 71754 71755 17497 17498 43833 43834 79228 79229 90645 90646 2594 2595 87537 87538 33874 33875 67696 67697 40056 40057 74369 74370 43264 43265 76425 76426 47250 47251 30130 30131 ...
output:
34719 20885 39730 37828 25588 38302 678 867 17103 22490 31391 8854 8262 2318 40271 1875 24746 5912 28966 31456 28916 15954 24252 19833 26750 30059 5541 9392 41213 8116 25416 13851 43811 10579 23069 6488 29069 45745 4624 46352 37832 33422 47191 19465 47782 11939 23481 27047 1733 7718 39171 31126 3884...
result:
ok answers are correct. (1 test case)
Test #87:
score: 15
Accepted
time: 10ms
memory: 7124kb
input:
1 50000 81840699 935082610 505749831 601783736 395294723 685993063 241428470 809501904 162953914 870864169 217156955 829067564 488612517 615297596 504278837 602980815 460793579 636170854 211143528 833617058 32832316 974716528 235739092 814340333 380222374 698076843 473011511 627666048 292294351 7685...
output:
12781 9338 11657 47593 9462 2208 12805 28459 8257 44110 37795 21955 33196 49728 28669 23616 13857 38242 5490 46292 10076 8985 38658 13184 11299 28686 7994 18013 12466 4330 15323 43514 38679 26842 45449 39665 41716 18920 49320 9754 31589 7168 17892 1964 8093 49433 7671 47305 14409 9588 288 26131 1720...
result:
ok answers are correct. (1 test case)
Test #88:
score: 15
Accepted
time: 7ms
memory: 6772kb
input:
1 50000 898736152 916568783 128432329 129362728 951151158 957406414 17835688 17858916 786836391 819513604 893634885 921354119 79466799 107966804 368400475 373459839 507136704 511082557 3175288 34283806 133584841 138103942 369519378 371977470 768782336 775002665 79952723 107503688 28105716 28116619 8...
output:
12607 36590 43207 12568 32517 35603 27829 17691 14280 1741 46712 18255 40516 39026 19721 8783 22436 44104 11486 32669 21026 2911 33860 700 16769 25485 5600 29350 42021 15843 39093 34853 23457 46542 21736 29141 1352 43797 7339 41396 11750 21491 21584 22950 12594 35281 10067 10193 46338 17142 1651 362...
result:
ok answers are correct. (1 test case)
Test #89:
score: 15
Accepted
time: 2ms
memory: 6272kb
input:
1 50000 87062 87166 15987 16015 68304 68745 82154 82721 77879 81673 36620 38468 61299 63362 46129 46241 82327 82534 62127 62551 30365 32012 88016 88225 5870 6884 324 1010 4221 4229 12353 14225 14709 15474 83130 84054 47224 47675 51044 52750 64306 64826 84840 86245 48271 48496 54534 55407 70548 71491...
output:
21878 33233 11897 15964 13278 4346 23960 35665 16687 17265 22877 36633 36173 12825 6963 24679 8613 44434 16273 29594 3569 32394 45989 20794 46106 19601 10975 42698 11324 25778 36971 37508 26509 20830 34304 44417 42107 11192 19839 49479 23403 18885 7033 31497 11616 46921 503 34489 10557 38287 39760 2...
result:
ok answers are correct. (1 test case)
Test #90:
score: 15
Accepted
time: 19ms
memory: 7788kb
input:
1 100000 956559098 956588185 943896409 943896710 688473932 688485488 925192308 925249937 389035222 389052420 304355535 304377366 997252188 997254317 127262220 127273912 172170446 172225119 329065745 329315801 265753121 266086543 669643006 671206033 630358446 631856811 641585225 641599353 836356758 8...
output:
30776 60116 73982 78597 515 34314 54729 41542 16643 77384 72373 81489 52876 58519 45082 15610 68294 4039 77998 14510 87605 5619 36610 25002 97069 87852 81112 49343 53726 10625 6082 61898 29714 72664 14747 43062 60211 82138 98238 52082 25305 28884 80882 65939 14268 33394 11457 73162 99921 75480 98241...
result:
ok answers are correct. (1 test case)
Test #91:
score: 15
Accepted
time: 14ms
memory: 7076kb
input:
1 100000 338664641 338680429 537202201 537205828 661611095 661613969 883120041 883136735 71502968 71511527 794835013 794852390 216641650 216646554 533095858 533161916 331577645 331600732 903769107 903789147 388738477 388794797 895216824 895257811 607321529 607342140 332873512 332896866 182984553 182...
output:
35361 73824 44996 21499 2200 45318 48500 93214 57133 23627 15133 47443 89977 71121 30679 4040 51441 64628 92394 90105 96184 23924 48666 4554 97694 49795 78382 50680 9263 88126 23859 14140 31506 69301 83768 75276 41626 27002 94664 81964 76444 32015 81352 88729 93680 96753 53973 75755 27038 19018 2204...
result:
ok answers are correct. (1 test case)
Test #92:
score: 15
Accepted
time: 19ms
memory: 7868kb
input:
1 100000 366357082 366361211 570761122 570761223 1877887 1884698 102066966 102071178 866806254 866807323 598762630 598782587 139253518 139257424 212655770 212668150 272872538 272877904 167643787 167644337 276754767 276757285 580789555 580793145 362483417 362485855 429000790 429002867 370943814 37094...
output:
20403 16446 54327 71227 79197 44436 49982 96569 14316 27790 50856 34371 30166 18695 41469 37960 61377 25503 82172 37928 82306 45058 27195 85692 34098 88872 76624 39895 60790 67236 19435 32858 93982 96165 59011 36763 8153 85173 65507 94163 56941 37149 14609 5131 50143 37177 86271 65106 61453 84237 58...
result:
ok answers are correct. (1 test case)
Test #93:
score: 15
Accepted
time: 19ms
memory: 6776kb
input:
1 100000 487208023 487332344 500084525 500121163 400043720 400223441 913040395 913160592 2548383 2549329 64021500 64028085 39697775 39778139 489279674 489296631 841842418 841846777 877348463 877386812 837157448 837365070 37420409 37422668 624138768 624147601 656145962 661162394 479729001 479739415 8...
output:
44183 61306 54396 62971 4778 29187 4264 55489 90588 32140 82173 31065 73194 92456 38656 86014 44730 72388 62053 85605 53828 28596 89626 24766 71933 51517 12147 80760 23944 70538 48484 75776 65896 22651 54281 96954 33872 6464 44732 81671 63672 66596 97012 59084 67478 40900 44324 88607 5425 25324 4633...
result:
ok answers are correct. (1 test case)
Test #94:
score: 15
Accepted
time: 17ms
memory: 6284kb
input:
20 6594 157502849 157542901 470732818 475369595 355044611 355168801 811540509 811623177 234826780 236005708 134985664 134996294 873942179 874436336 139233604 184120931 736582351 736641245 948286334 948316463 433137422 433170974 247703603 248061579 233674312 233722891 267081069 267187430 206889877 20...
output:
1892 5515 2178 5088 5035 5576 4906 2320 4601 5279 1037 4949 5684 2094 3199 2093 4437 3333 2400 2627 5939 2926 2045 1356 2526 3664 3271 994 1495 6490 2922 4773 3748 1172 6014 2393 2530 3241 321 838 4030 4098 2431 669 6403 4707 2924 4105 1862 4262 2489 4641 5876 5229 2855 3266 2786 265 2823 4829 4506 ...
result:
ok answers are correct. (20 test cases)
Test #95:
score: 15
Accepted
time: 11ms
memory: 6876kb
input:
1 100000 414261818 414276478 739749106 739758190 246833915 246840857 609722086 609727106 642722467 642724552 433078527 433090728 150160526 150187032 384089113 384089844 356563195 356565385 42377882 42386743 107244973 107250286 159707098 159712486 639820017 639824158 833536332 833538985 192786496 192...
output:
18453 33969 82412 2731 67112 89272 43677 13122 9328 54721 8916 20767 88699 81573 19835 24975 31109 26313 79425 79610 43970 57572 27128 60286 76357 21623 24945 59072 87789 67210 63824 51804 9573 93263 63176 53845 49488 45820 98923 42601 99752 53815 74155 4151 98738 62506 80442 65619 7045 61160 51614 ...
result:
ok answers are correct. (1 test case)
Test #96:
score: 15
Accepted
time: 19ms
memory: 6744kb
input:
1 100000 273992303 274135071 28854644 28879715 128295582 128319612 635633482 635693224 683182948 683183537 696031431 696034430 779233017 779234719 487043344 487277532 224307366 224329574 497130557 497148043 445005859 445069016 61829587 61983210 642909630 642918309 364885744 364906476 338885009 33891...
output:
17122 84798 32216 41612 27249 61770 1131 79669 72368 65328 54392 41305 86166 72529 24277 32988 86453 70906 8823 2989 64141 22946 6301 97536 67837 74895 82106 66890 35792 82027 5847 50394 57669 32488 59247 75853 23562 22793 98330 46748 38928 19213 5415 61653 49271 52728 49835 97017 51571 83894 1264 2...
result:
ok answers are correct. (1 test case)
Test #97:
score: 15
Accepted
time: 17ms
memory: 6680kb
input:
10 5114 584843159 585975547 335481261 335535801 438625276 440697468 655412378 655499124 358873915 359110122 194331096 195255478 186027719 186246505 969011091 969012433 698968142 698983154 720976320 722961912 854914798 859273551 971517669 971565015 634284530 634285580 394273337 394281923 706937686 71...
output:
1697 3879 719 1384 3078 623 4764 311 1604 2148 3156 611 3796 4390 935 4701 858 1940 3705 2517 4528 834 2925 40 2396 2051 2064 5059 561 169 2290 3199 3013 4663 1467 1910 3977 4562 2910 4440 4073 4303 1539 3146 304 4096 3096 4055 3215 3003 2665 689 1950 129 1083 4827 2818 964 4853 1593 2889 2785 413 5...
result:
ok answers are correct. (10 test cases)
Test #98:
score: 15
Accepted
time: 15ms
memory: 5964kb
input:
100 768 316622134 980462990 858055554 858445621 48935393 60541836 530470061 539118899 343155689 399359572 887492325 899661828 760787631 911944808 787290819 789319443 291599707 297150114 820606009 824622324 706985467 707117057 509766773 511272368 13410290 26717653 108528 999539446 257603457 267928589...
output:
86 14 633 657 17 19 106 267 416 48 305 502 503 447 540 311 707 243 672 205 701 261 613 72 466 339 28 533 140 1 631 207 122 110 678 746 431 697 426 115 369 137 22 63 512 285 51 189 387 345 249 190 299 648 160 92 460 476 224 263 355 671 607 229 185 507 558 200 673 500 444 241 528 125 303 227 594 755 2...
result:
ok answers are correct. (100 test cases)
Test #99:
score: 15
Accepted
time: 14ms
memory: 5688kb
input:
100 1000 611301939 611563394 251056161 893976942 377984628 835193661 629344458 732224103 326362095 326683345 646312155 724264694 486839864 785070645 40100382 989092606 300098740 881734833 59283258 62165879 504485764 504506416 439090307 805930281 245532357 894698407 691362104 706817818 573106213 7586...
output:
990 201 696 664 537 229 842 145 306 203 352 349 499 845 91 103 955 597 254 322 220 501 8 284 136 315 246 98 623 432 125 812 388 299 865 139 901 578 308 794 251 934 20 196 65 624 740 628 715 556 607 328 579 915 147 23 394 348 249 323 754 424 293 259 113 654 451 321 793 634 275 705 131 689 449 549 471...
result:
ok answers are correct. (100 test cases)
Test #100:
score: 15
Accepted
time: 12ms
memory: 7924kb
input:
10 10000 59287337 976581315 63625897 975493318 447407654 814958048 381180127 381184130 606566574 606682249 507037188 507066579 382482051 846575078 470154554 470235865 202730956 202751361 556828745 556872660 406045681 834766619 688339341 688396454 388931647 844269559 169125373 934011769 648594523 738...
output:
4112 6033 4965 16 1964 8941 8009 6192 9523 6765 6188 129 3953 3579 6113 1844 6378 719 7186 339 3994 3051 97 4556 7138 2258 9270 2665 8565 1346 7600 263 3791 685 5324 4646 4227 2652 3270 3476 3798 3887 7496 4093 144 1838 1088 4634 7046 5278 9406 9280 4511 8613 3099 4132 8381 855 6245 9797 549 6569 43...
result:
ok answers are correct. (10 test cases)
Test #101:
score: 15
Accepted
time: 8ms
memory: 5896kb
input:
100 918 675 1566 381 382 1068 1403 1134 1373 330 1705 1009 1432 606 1601 898 899 905 1464 386 387 1178 1361 736 1539 815 820 1170 1171 792 795 448 1671 825 1510 1077 1078 294 1727 227 230 1109 1384 442 445 532 1647 677 1564 808 809 1223 1224 269 272 358 1699 443 444 41 1816 1127 1128 1083 1398 311 3...
output:
742 884 635 826 378 168 155 796 564 642 395 245 794 711 766 633 847 904 332 646 30 95 736 450 541 104 465 164 424 868 366 74 482 717 456 210 708 324 355 855 451 716 565 176 810 127 757 343 559 189 814 433 129 390 204 323 566 416 459 912 138 509 375 341 579 519 558 522 180 401 917 506 793 402 569 242...
result:
ok answers are correct. (100 test cases)
Test #102:
score: 15
Accepted
time: 9ms
memory: 5960kb
input:
100 780 277 448 241 448 375 376 9 448 163 164 247 248 277 448 301 304 89 90 87 88 181 182 291 292 401 448 251 448 441 448 341 448 383 448 349 448 235 448 9 10 389 390 209 448 433 448 345 346 267 448 381 382 75 76 249 448 19 20 315 448 25 26 341 448 183 448 153 448 369 448 183 448 107 448 133 134 149...
output:
332 331 329 326 325 321 320 319 489 315 314 311 310 309 308 305 300 316 360 359 357 356 355 353 352 351 334 346 344 343 340 339 338 337 335 347 266 265 263 262 261 259 258 257 298 255 254 253 249 248 247 245 244 256 296 295 292 290 289 287 285 283 269 281 280 278 277 276 275 274 271 270 282 453 450 ...
result:
ok answers are correct. (100 test cases)
Test #103:
score: 15
Accepted
time: 12ms
memory: 5852kb
input:
100 4860 1564 5806 4569 4570 1088 5964 3025 3026 2917 2921 2519 5490 1289 5896 2730 5435 319 6170 3719 3720 92 93 4512 4957 3203 5287 4135 4136 3315 5252 619 6104 864 6036 3243 5272 1477 1478 3501 5198 1917 5688 3113 5321 3940 3941 4031 5071 3482 5209 2275 5577 295 296 3636 5160 1382 1383 2025 2026 ...
output:
1345 1774 1576 4475 2560 3712 4106 2947 3661 4192 2179 2265 3443 2222 3102 1939 4216 1484 1517 4110 4710 2300 1107 4587 79 1542 1685 4692 2174 895 3998 4347 721 750 4743 2564 57 4644 242 2879 1315 2324 898 4201 3233 2655 2342 546 897 2857 2075 1546 778 4002 4794 4463 2259 4553 1441 2877 2636 893 275...
result:
ok answers are correct. (100 test cases)
Test #104:
score: 15
Accepted
time: 12ms
memory: 5952kb
input:
100 1604 440 2172 287 288 473 2161 1354 1873 1003 1004 1241 1912 1679 1718 1211 1212 683 2101 363 2199 892 2028 1466 1842 1349 1875 595 596 614 2119 653 2107 778 781 1707 1708 1665 1768 326 2209 1457 1845 1613 1785 988 989 994 995 38 52 500 501 818 2052 902 2025 1662 1771 1034 1035 342 343 1364 1870...
output:
250 1081 785 1466 758 1103 288 825 414 1574 300 646 373 1394 228 838 1228 496 557 1557 196 1050 1523 892 1110 668 1354 215 694 910 1158 1249 1173 1280 803 1058 633 1045 231 1458 1597 559 722 213 1314 1540 938 611 142 848 226 1417 450 499 57 389 436 574 1175 1051 959 1390 372 302 482 1072 1495 1564 6...
result:
ok answers are correct. (100 test cases)
Test #105:
score: 15
Accepted
time: 12ms
memory: 5920kb
input:
100 1476 1361 1362 24 25 440 2175 431 432 975 1998 479 2163 776 780 675 2090 1209 1210 1323 1324 967 968 44 45 449 2173 1414 1854 69 2307 1395 1860 930 2014 19 2338 859 2034 312 2225 411 2188 1623 1774 856 857 1475 1476 1278 1893 329 2217 704 2080 156 157 737 2075 1700 1744 1066 1966 407 2191 234 22...
output:
1038 935 834 1345 1324 120 113 1055 1284 1382 838 1339 767 654 795 18 829 1455 860 294 501 887 1407 891 828 784 822 637 1383 398 1181 785 612 1355 218 912 176 1180 242 659 1162 587 494 1087 1161 1098 853 529 225 439 827 371 801 952 423 15 484 202 509 274 756 295 1034 1060 1288 1077 1074 787 327 493 ...
result:
ok answers are correct. (100 test cases)
Test #106:
score: 15
Accepted
time: 12ms
memory: 6024kb
input:
100 2390 2263 3305 2593 2594 2934 2935 1912 1913 1546 3544 40 41 2007 2008 1722 1723 265 266 2887 3054 2141 3360 375 3964 703 713 2159 2160 1879 1882 2167 2168 2454 3239 2797 2798 2530 3218 99 108 1264 3630 548 550 344 362 1638 1639 437 440 790 3786 842 843 691 3821 2990 3011 349 355 1252 3635 2806 ...
output:
658 450 330 531 813 923 654 1041 623 519 157 1870 457 1149 2262 2315 452 1925 889 631 564 1569 1023 1015 2370 217 1653 194 1092 1789 341 1786 1550 1308 1289 459 1787 1702 1741 583 918 742 281 892 493 1520 2054 777 1165 277 2361 321 2046 1376 1412 1908 1280 575 255 1488 1189 144 2028 441 524 1512 165...
result:
ok answers are correct. (100 test cases)
Test #107:
score: 15
Accepted
time: 17ms
memory: 6368kb
input:
10 2792 519844295 522055399 554078624 554485650 127843315 128047410 457861250 836146480 86018931 86113048 620077161 767018288 53524050 53895312 433370866 433893612 406532939 854096410 203647894 924877521 402657515 855691463 206344636 207364205 310703105 311044161 629636190 631913967 421658547 422874...
output:
1867 1922 1722 169 1254 1293 1259 1915 250 1521 533 510 1769 192 2006 1701 2441 1986 1439 2231 2017 2534 2206 2036 711 1489 2773 1336 597 1117 1686 1961 645 2211 972 997 2391 1838 2470 2679 1136 2733 2069 2520 1762 2327 2623 1115 240 1688 1952 2458 882 376 1767 1947 1113 165 1389 1376 1020 474 2333 ...
result:
ok answers are correct. (10 test cases)
Test #108:
score: 15
Accepted
time: 12ms
memory: 5824kb
input:
100 486 637 654 632 633 378 379 81 869 645 646 114 855 338 339 47 884 593 672 64 880 255 256 295 296 146 839 555 690 249 794 587 674 305 306 488 495 634 656 320 773 69 877 534 699 371 372 537 696 418 421 243 797 426 728 125 126 552 553 355 762 119 854 644 647 318 319 223 224 436 721 390 391 304 780 ...
output:
350 344 47 416 207 334 95 103 144 119 260 477 204 43 411 330 130 459 427 308 432 132 222 51 284 420 42 8 310 463 246 10 336 237 21 485 278 388 328 291 272 303 4 366 296 171 392 87 404 189 376 325 343 362 430 142 401 410 6 96 31 63 209 175 62 152 251 357 441 215 442 433 408 181 285 280 379 164 13 364...
result:
ok answers are correct. (100 test cases)
Test #109:
score: 15
Accepted
time: 12ms
memory: 5660kb
input:
1000 100 26388451 96975931 798518286 804730308 601817116 830377764 355831557 389031069 875258730 890588056 439781300 496507632 493341471 494058067 649934720 666132246 122842429 400853005 26388451 96975931 601817116 641443663 493341471 494058067 704225316 808741542 670312348 678412687 503814831 51937...
output:
77 60 76 38 69 45 71 40 34 55 56 68 73 44 37 53 5 91 32 93 26 96 3 65 57 86 13 100 27 2 61 87 88 48 39 49 36 92 43 14 84 8 25 11 47 75 95 22 33 15 25 21 99 38 56 59 67 7 28 9 90 72 11 35 19 40 2 86 62 6 17 76 16 73 48 39 63 34 81 3 1 98 10 44 29 54 20 69 30 68 8 45 88 77 80 43 33 4 15 74 97 83 8 4...
result:
ok answers are correct. (1000 test cases)
Test #110:
score: 15
Accepted
time: 12ms
memory: 5664kb
input:
1000 100 190797416 979347972 290955680 291650595 913179322 976677534 723354647 762299547 610533760 612177374 578248324 598116451 889388585 901699604 146075565 993648555 879399841 978775032 974155846 976677534 257231970 263753518 913179322 976677534 913179322 950513478 835783591 848353977 88775348 11...
output:
63 8 1 71 82 50 9 20 34 12 10 3 13 39 80 36 53 57 58 54 7 66 45 67 87 69 94 56 62 14 21 84 19 47 46 4 41 42 48 23 61 18 93 88 35 16 59 74 76 24 70 18 15 83 45 49 54 59 65 68 1 97 21 86 6 36 30 52 19 53 69 47 2 73 43 77 14 84 82 41 27 63 8 71 61 39 55 13 35 79 98 88 40 87 10 56 23 67 91 34 68 60 95...
result:
ok answers are correct. (1000 test cases)
Test #111:
score: 15
Accepted
time: 8ms
memory: 5660kb
input:
1000 100 585226115 588856364 622286810 624590440 458635924 726544438 158945244 184360796 509978567 661292211 302941836 954190130 74476776 83764883 395809759 404241348 395809759 949434592 735281386 737082060 743570813 831116133 250394114 256237037 472931372 677271169 158945244 174473507 537947301 555...
output:
31 54 41 68 91 84 50 6 74 9 88 59 93 63 83 76 35 21 60 62 49 57 52 11 24 16 36 39 20 56 48 61 40 10 3 32 13 89 95 70 79 2 43 69 53 1 75 94 28 51 23 28 57 37 5 16 67 14 20 7 79 88 61 62 18 10 43 60 92 93 76 29 78 75 63 53 86 55 94 9 12 68 72 15 64 3 45 71 50 58 13 42 24 91 34 31 98 26 81 40 70 73 6...
result:
ok answers are correct. (1000 test cases)
Test #112:
score: 15
Accepted
time: 12ms
memory: 5660kb
input:
1000 100 107892129 152786589 625791342 961890956 311871798 435739412 123129624 125954225 295843908 299092492 5786668 60492557 534606062 535611709 744306235 750866369 69460671 188969080 823665585 824831817 242738238 248961017 68094547 998038412 531422458 581412236 482480247 486042888 351363533 396228...
output:
12 72 78 24 94 31 44 54 53 21 79 74 28 16 2 34 35 40 48 59 73 33 60 65 22 92 90 82 100 69 10 71 58 41 86 39 96 80 47 51 36 8 70 42 37 20 57 87 91 7 100 4 65 41 83 34 97 95 56 63 64 87 35 53 58 72 20 90 50 70 79 24 60 94 92 33 46 52 80 22 62 25 31 23 67 86 6 76 5 40 96 9 39 16 99 45 32 89 66 10 65 ...
result:
ok answers are correct. (1000 test cases)
Test #113:
score: 15
Accepted
time: 9ms
memory: 5784kb
input:
1000 100 291911865 497834341 76545754 76651845 625521090 980665902 884121208 890825403 337854510 409507926 757639277 774914373 28257983 29944829 20962118 26655280 28257983 78440399 171430112 254136903 682800195 712850694 914404995 918334271 627502507 645473683 28257983 41306176 205018209 206829841 5...
output:
72 41 62 3 59 46 42 28 34 39 87 71 52 40 18 21 73 57 77 24 29 38 48 79 12 82 67 4 100 93 61 35 91 51 68 55 65 6 20 22 83 11 95 27 13 64 54 16 1 74 72 20 14 69 23 92 38 42 45 56 71 13 24 82 57 93 88 90 95 33 86 76 64 91 17 68 10 50 40 55 9 66 35 22 81 3 99 59 12 1 52 25 44 60 37 4 63 2 79 53 46 11 ...
result:
ok answers are correct. (1000 test cases)
Test #114:
score: 15
Accepted
time: 8ms
memory: 5776kb
input:
1000 100 551600472 904465128 63296911 67072140 551600472 555577778 631290916 877316298 670942977 674059050 612690055 878966043 823903537 851745704 594578430 597615640 604361741 605151975 341757395 344426750 735473266 805274084 231820334 247207447 81974580 91034175 100428144 980392208 412096953 95097...
output:
78 30 24 94 89 92 75 28 39 79 20 64 96 63 14 23 65 72 35 53 56 100 81 99 29 27 25 80 46 49 18 77 26 16 15 68 43 34 60 11 62 5 45 97 17 9 8 3 70 54 95 39 2 46 52 31 81 62 18 90 76 50 6 80 36 26 14 9 43 51 15 99 58 61 32 92 85 11 7 16 74 84 94 69 75 35 21 79 98 40 60 42 55 93 10 34 68 82 8 63 92 17 ...
result:
ok answers are correct. (1000 test cases)
Test #115:
score: 15
Accepted
time: 12ms
memory: 5792kb
input:
1000 100 252858402 273750127 114831321 998252121 556063906 970181816 106393544 998252121 886180184 912274479 114831321 998252121 418916124 419349453 226309233 238688575 682679843 946789640 615715082 962966401 460420123 467007123 732509241 935361260 98141290 998252121 42879907 60226624 435108853 9701...
output:
100 4 6 13 22 30 36 39 48 62 63 72 2 87 55 51 74 23 18 28 61 93 3 83 25 54 84 15 29 58 60 91 90 67 10 20 46 5 50 64 32 95 68 80 98 47 77 69 52 89 81 85 28 82 19 24 60 7 54 20 99 46 62 68 10 67 74 2 86 100 37 25 66 45 51 84 98 90 12 63 8 50 18 43 71 16 59 95 36 1 41 61 33 56 48 69 29 80 14 87 65 88...
result:
ok answers are correct. (1000 test cases)
Test #116:
score: 15
Accepted
time: 13ms
memory: 5720kb
input:
1000 100 122816804 127537891 845888639 868346674 44037793 56261249 765449114 868346674 299243527 931688869 183308403 188310155 142463294 976533829 644694599 927842566 723962360 895850412 639710645 639732467 765449114 868346674 686164319 896943583 668281839 912005306 691964487 895850412 513263867 516...
output:
60 35 77 51 84 49 69 7 98 87 91 64 5 68 61 82 70 16 90 37 67 41 27 8 88 59 83 53 85 56 42 76 75 86 13 39 99 62 44 79 58 24 10 36 94 30 65 96 52 54 62 46 83 93 85 11 17 47 20 22 24 99 32 30 54 44 43 89 8 36 86 2 18 59 1 53 74 69 28 97 77 51 27 12 81 92 35 95 6 70 79 50 41 3 23 7 29 73 33 45 24 7 98...
result:
ok answers are correct. (1000 test cases)
Test #117:
score: 15
Accepted
time: 12ms
memory: 5664kb
input:
1000 100 605609926 836267365 494747889 498524062 581965767 849196491 544178909 912185291 188776633 196666820 780320763 818659327 494747889 912383648 714626746 768400131 510854114 521743208 274421067 973906059 200415810 987106440 188776633 994659858 599457519 603040890 706229359 829248566 205528225 2...
output:
95 49 99 52 65 87 21 12 30 34 70 11 20 27 60 36 10 61 73 39 82 42 47 96 28 54 75 85 17 68 59 88 32 7 51 83 76 80 78 24 56 40 64 13 23 53 67 71 57 25 87 26 98 20 4 38 61 23 51 93 8 5 50 79 86 39 16 10 65 83 84 73 41 46 33 31 19 2 80 6 47 66 95 21 96 32 45 64 37 7 55 34 44 11 17 74 53 48 43 3 81 3 1...
result:
ok answers are correct. (1000 test cases)
Test #118:
score: 15
Accepted
time: 8ms
memory: 5716kb
input:
1000 100 417653707 842208184 659951314 710775722 80077919 938953152 258759296 851521394 337276854 851521394 570441850 616697123 214916677 894896401 715774058 788676199 86714680 899894122 223751485 853867847 719950440 788676199 516807233 526701467 370834544 842208184 607275560 616697123 592502122 598...
output:
47 50 56 65 88 51 79 100 97 3 25 67 90 28 45 78 64 9 92 98 16 60 26 55 57 7 85 39 81 66 10 59 61 4 5 21 72 68 83 35 14 15 24 87 80 54 63 73 75 27 43 11 14 73 28 63 59 85 54 49 77 18 87 33 46 36 52 8 26 84 25 32 20 55 62 53 38 27 68 44 88 99 40 22 4 96 79 23 39 90 83 92 58 37 80 34 45 57 42 30 59 2...
result:
ok answers are correct. (1000 test cases)
Subtask #6:
score: 13
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Test #119:
score: 13
Accepted
time: 1ms
memory: 5776kb
input:
1 100 362287593 364248162 187128808 936550222 199429428 932702024 155636925 951743713 482490872 498427338 533423243 756335366 542814068 548453153 206919942 923525235 264229089 820822108 211088232 921940165 49588507 56568679 482265901 502140676 661557083 723927232 8607074 994298918 102830687 10851261...
output:
14 46 77 19 30 69 36 28 75 47 4 87 32 2 51 3 66 8 10 25 31 84 50 33 68 88 16 37 9 99 58 27 95 90 64 26 34 96 89 63 92 44 48 72 7 5 38 57 20 56
result:
ok answers are correct. (1 test case)
Test #120:
score: 13
Accepted
time: 1ms
memory: 5740kb
input:
1 100 285465612 290098506 719076909 719655361 518612806 830186163 247772854 250934659 608243553 742799866 659043485 677733329 599855770 805598007 60101402 970349086 201709392 927164534 29304715 33752750 52857946 988086001 18516668 34065115 389070681 399317982 93937006 959774179 542136922 820217424 2...
output:
26 39 11 70 28 8 52 78 37 60 14 19 49 77 48 62 63 9 31 16 81 30 73 100 68 61 92 33 18 74 80 41 59 43 64 96 2 53 82 57 32 46 27 97 55 17 47 90 67 42
result:
ok answers are correct. (1 test case)
Test #121:
score: 13
Accepted
time: 1ms
memory: 5720kb
input:
1 100 511710858 576074376 232830623 346546316 70803911 548875318 206979741 724889385 244958506 681766150 766773375 999237133 78929627 311977061 163289686 232830623 232830623 859566759 501719510 590577240 78587229 316349275 20254073 65994073 93599178 494164849 472555746 590577240 167025217 912386079 ...
output:
6 72 23 81 52 91 100 79 93 25 78 54 42 17 39 41 15 43 27 51 26 22 50 9 60 92 18 53 28 56 29 69 21 80 4 48 76 61 90 71 30 5 47 44 24 87 16 97 73 1
result:
ok answers are correct. (1 test case)
Test #122:
score: 13
Accepted
time: 1ms
memory: 5716kb
input:
1 100 913939627 942651155 197251638 464175241 606539196 676302558 194709765 873058046 71733630 738692485 464175241 873058046 71733630 913939627 606539196 913939627 71733630 360490219 194709765 464175241 223170319 606539196 676302558 738692485 194709765 360490219 913939627 942651155 194709765 9139396...
output:
83 64 62 44 93 37 33 94 84 67 85 9 57 13 54 25 61 35 89 20 21 71 48 72 34 66 2 98 95 10 86 65 59 11 92 52 91 50 17 18 99 80 40 81 22 82 26 88 43 45
result:
ok answers are correct. (1 test case)
Test #123:
score: 13
Accepted
time: 1ms
memory: 7820kb
input:
1 100 209692296 607785499 11801734 182905817 325451870 658197121 694407977 900949299 19786620 516365003 786018169 896943665 47498328 792243106 302853010 743187888 119378542 678441670 419075533 972444090 1841681 768713384 686934625 830336782 24481630 191068410 438130325 995872103 155165750 282532128 ...
output:
14 98 83 30 45 26 10 82 44 24 56 87 71 47 46 67 16 96 60 4 31 6 74 42 68 22 57 12 78 75 51 80 28 49 7 85 63 37 18 11 66 92 8 23 58 61 54 65 70 52
result:
ok answers are correct. (1 test case)
Test #124:
score: 13
Accepted
time: 1ms
memory: 5796kb
input:
1 100 493243644 553316984 827268467 953138156 882002347 904533052 115195143 291320054 721846298 755220122 366512354 407276307 494319562 553316984 127859173 283332020 607814283 656186331 458290872 558765660 493243644 558765660 78082662 102011515 64812773 107532681 347188179 412156564 36373345 4281788...
output:
68 64 84 82 97 43 53 2 81 40 42 49 76 95 85 92 3 99 37 83 60 36 16 78 66 21 5 17 38 63 23 75 56 77 24 41 73 25 9 98 28 20 58 51 59 11 10 44 88 65
result:
ok answers are correct. (1 test case)
Test #125:
score: 13
Accepted
time: 1ms
memory: 5808kb
input:
1 400 228233701 397484825 819417892 833772541 323198330 476943576 92341280 648666798 695759252 743101893 144120125 667793597 307337075 882821768 493791944 910614116 715622293 764883840 76067907 438315191 749548765 894347279 408250458 575562711 84553405 584562395 109981287 151200699 244490028 7678622...
output:
193 299 298 31 50 202 25 179 398 294 307 228 104 377 107 66 20 359 342 141 308 364 248 161 352 358 56 262 38 296 304 256 116 27 254 81 102 207 368 97 385 267 124 316 168 279 325 250 234 114 29 339 122 49 351 345 379 8 187 226 321 395 183 166 64 148 238 212 242 91 335 394 11 241 121 58 320 18 283 215...
result:
ok answers are correct. (1 test case)
Test #126:
score: 13
Accepted
time: 1ms
memory: 5672kb
input:
1 500 559957680 833501771 57753416 313477598 391190508 992586662 5636293 382559044 61636749 305284167 627186487 773106569 155394731 217154656 455234696 936424390 422523435 971455332 128038388 247637295 444411296 950742548 97704147 267327289 496063923 894728055 89332663 272338347 451604471 943121827 ...
output:
28 90 327 179 120 318 3 198 293 403 387 23 487 174 196 118 80 167 346 234 378 130 124 451 350 193 72 261 213 281 269 461 9 112 486 307 244 393 424 128 441 20 373 443 121 160 125 452 154 159 397 204 211 137 35 278 11 383 359 330 30 357 267 391 156 99 113 15 46 315 389 214 425 477 285 8 492 134 377 32...
result:
ok answers are correct. (1 test case)
Test #127:
score: 13
Accepted
time: 1ms
memory: 5748kb
input:
1 500 462 465 423 429 334 335 279 336 189 190 285 288 554 560 179 180 163 242 537 538 572 573 154 155 32 33 252 253 136 137 523 625 223 231 661 669 580 581 250 255 283 284 447 448 263 274 74 75 57 61 338 343 411 417 418 420 454 457 164 180 90 106 469 470 472 482 120 121 16 687 474 480 561 562 403 40...
output:
222 39 226 155 87 498 289 174 358 430 202 440 35 142 162 476 484 293 327 308 223 257 50 286 304 125 270 18 292 416 279 90 478 70 248 114 189 389 196 480 398 153 141 315 67 449 377 96 181 169 59 455 175 177 53 179 77 75 101 281 234 404 437 16 233 167 291 69 62 51 453 107 212 477 168 109 415 255 342 2...
result:
ok answers are correct. (1 test case)
Test #128:
score: 13
Accepted
time: 0ms
memory: 5792kb
input:
1 500 216 468 23 141 184 451 97 198 140 374 231 357 292 406 182 448 376 378 248 292 252 465 334 451 10 414 244 311 165 407 185 470 105 301 242 493 266 368 106 241 374 391 98 207 76 240 325 340 111 196 172 352 95 186 9 375 230 318 255 290 5 155 152 158 119 236 74 439 324 330 101 124 279 291 95 322 50...
output:
380 283 149 204 191 248 342 18 321 55 422 175 378 314 352 360 205 240 303 182 170 180 449 243 113 296 143 45 124 100 79 390 16 260 174 433 402 81 457 1 166 343 498 375 142 11 232 447 470 469 215 300 307 281 257 133 379 194 186 167 492 265 474 256 334 3 12 99 168 487 8 427 475 417 59 195 128 454 425 ...
result:
ok answers are correct. (1 test case)
Test #129:
score: 13
Accepted
time: 0ms
memory: 5680kb
input:
1 500 691 960 163 385 160 663 158 561 142 780 439 790 40 208 867 895 369 922 719 828 432 481 154 213 109 316 493 975 121 789 504 660 266 806 412 438 73 865 890 942 437 798 174 450 738 897 105 127 485 639 461 766 94 289 195 576 325 717 725 907 265 441 762 768 497 626 479 815 180 335 857 882 259 823 3...
output:
106 238 198 274 398 161 410 76 455 100 246 333 374 155 387 422 468 372 156 111 496 132 434 490 14 396 67 203 241 437 291 361 101 200 366 243 222 160 43 1 500 267 213 400 376 487 226 459 217 498 407 127 481 297 104 202 20 482 93 206 253 397 309 322 83 290 141 256 439 183 312 99 89 272 171 79 9 308 35...
result:
ok answers are correct. (1 test case)
Test #130:
score: 13
Accepted
time: 0ms
memory: 5652kb
input:
10 50 270917656 694122000 494597004 994247161 393212942 856921545 897003089 983043105 217230127 345589071 755442947 963555826 6797916 185680545 808493657 813892855 225281947 736530867 329675423 950884152 82011776 199608778 405072926 698320811 400734449 710359121 95540240 280628667 421554282 52533707...
output:
2 29 4 20 50 37 6 36 10 25 44 42 48 23 38 3 35 8 27 17 39 19 30 24 32 50 38 48 14 29 3 28 46 34 15 23 44 42 16 4 26 47 40 30 5 33 27 1 39 10 5 47 43 13 1 35 27 14 16 11 15 7 50 10 22 24 46 17 45 25 41 40 19 36 21 46 32 14 6 33 47 48 15 24 17 50 31 5 37 9 40 30 36 11 1 29 3 12 27 2 42 37 34 21 10...
result:
ok answers are correct. (10 test cases)
Test #131:
score: 13
Accepted
time: 1ms
memory: 5652kb
input:
10 50 68 69 30 97 5 22 55 61 20 82 84 88 34 72 42 80 13 45 26 32 37 54 4 17 11 33 15 16 35 43 19 92 24 87 71 96 6 7 60 98 1 46 2 76 38 66 36 81 56 86 50 74 62 93 23 67 21 83 89 95 40 57 18 41 52 79 85 99 48 91 9 28 49 63 31 53 14 25 27 47 78 100 44 90 58 64 8 29 3 51 73 94 10 12 59 65 39 75 70 77 50...
output:
41 34 20 2 18 30 46 27 16 35 42 6 17 25 29 5 24 8 33 50 22 49 26 1 4 12 30 24 48 33 20 15 25 17 22 14 4 7 50 27 49 34 5 1 46 26 13 3 29 6 19 29 50 5 21 24 23 27 13 41 4 46 17 49 34 37 30 14 2 26 33 48 8 47 36 45 32 31 19 11 30 23 33 43 9 15 34 29 41 49 2 28 5 16 44 6 36 4 17 47 27 5 38 47 36 3 1...
result:
ok answers are correct. (10 test cases)
Test #132:
score: 13
Accepted
time: 1ms
memory: 5668kb
input:
1 500 686 790 221 336 639 891 646 989 171 367 614 912 604 783 540 982 597 832 164 317 200 258 182 542 333 910 263 857 656 820 601 830 635 877 122 379 438 904 108 691 456 884 700 875 528 793 127 350 423 996 495 930 521 808 198 329 199 619 28 498 183 735 366 978 690 865 436 962 719 985 586 943 375 795...
output:
332 255 290 11 301 299 424 247 425 482 74 207 436 175 68 500 225 360 174 285 358 386 333 361 382 278 132 180 237 144 84 441 129 10 316 384 330 189 254 45 28 148 370 170 2 399 135 359 298 104 480 24 419 227 404 317 344 365 302 289 5 211 268 99 18 141 454 449 149 102 167 93 375 253 478 279 479 72 85 1...
result:
ok answers are correct. (1 test case)
Subtask #7:
score: 13
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #6:
100%
Accepted
Test #133:
score: 13
Accepted
time: 1ms
memory: 5820kb
input:
1 1000 221570002 911991775 33279638 986348305 352989293 353997982 134590083 949156005 602134935 748161152 679949196 719004656 327561390 842837652 685566722 685962755 402861693 403147772 187646140 188236273 396394315 817968027 53702027 53972739 671406282 671557981 399262216 815809026 500748542 783713...
output:
717 227 78 948 902 66 637 347 355 504 835 821 965 951 374 360 449 920 653 20 812 935 109 541 757 738 959 615 851 581 905 134 820 941 2 750 459 144 82 650 999 247 987 789 811 112 853 664 258 418 75 18 250 214 663 329 740 809 152 571 830 649 937 225 125 662 678 562 377 71 742 840 325 101 660 599 858 4...
result:
ok answers are correct. (1 test case)
Test #134:
score: 13
Accepted
time: 0ms
memory: 5772kb
input:
1 1000 45615391 977058383 653100524 704912668 687366982 690074277 169667206 920249712 277686487 868924818 137423384 934531981 521490985 740172349 166221351 922311025 88201677 956085327 499381940 755570556 358823892 818964435 357427090 820224031 562208548 567867022 523300484 739944517 193998392 91005...
output:
244 85 693 166 642 424 825 955 568 798 502 863 593 266 282 78 303 437 438 985 505 702 492 178 464 531 273 219 138 557 822 435 817 384 981 405 349 215 739 457 592 486 1 771 980 251 877 729 224 727 550 211 950 951 646 974 689 840 884 543 383 838 77 677 600 150 638 846 29 443 511 186 987 234 432 394 20...
result:
ok answers are correct. (1 test case)
Test #135:
score: 13
Accepted
time: 1ms
memory: 5732kb
input:
10 110 484298777 735037709 494462382 706552261 521509838 532827264 517301929 696420059 197634253 212883747 14846373 989015371 76311148 951997867 301641081 837067053 403690815 430085440 121127491 937535377 129361896 936104500 413939806 426806998 589933414 637418522 179593956 919106470 571026567 67470...
output:
70 76 6 107 48 38 81 103 69 24 7 86 65 27 99 10 11 49 25 93 59 23 14 20 35 63 79 100 26 64 80 106 46 57 8 85 101 67 62 44 33 52 82 98 3 83 89 75 36 12 87 30 47 74 68 32 13 60 21 66 77 26 56 35 4 12 17 45 28 80 61 72 37 57 18 29 36 47 39 48 22 54 46 65 40 43 44 11 31 38 55 78 73 33 15 187 162 119 1...
result:
ok answers are correct. (10 test cases)
Test #136:
score: 13
Accepted
time: 1ms
memory: 5832kb
input:
1 1000 527149750 758781431 238813256 795653481 357540618 939614019 75629345 972234413 50797122 285965722 372210752 831419218 596899089 708388138 967488564 975475216 252832263 482831690 310775868 468093842 184320516 226771305 69365262 536483357 32793592 930571648 439883956 673024246 135283068 3801295...
output:
483 784 109 440 72 208 729 940 191 553 915 464 314 566 958 921 567 417 801 799 903 528 674 476 97 623 590 882 448 754 891 319 529 608 692 332 910 922 506 204 63 85 545 854 129 993 849 575 108 246 175 296 36 8 27 156 974 34 997 703 548 424 4 585 783 458 260 824 645 990 218 349 322 271 948 146 626 995...
result:
ok answers are correct. (1 test case)
Test #137:
score: 13
Accepted
time: 1ms
memory: 5684kb
input:
1 1000 368916915 713051666 311565134 368916915 487214187 861363447 184393155 850235159 100082171 967571759 238733803 579710655 765340211 836525551 765340211 836525551 368916915 967571759 184393155 368916915 234673670 815961586 184393155 311565134 487214187 738430201 168451888 861363447 635672906 738...
output:
164 484 248 531 539 587 595 190 232 649 449 694 926 743 747 199 23 811 906 209 25 853 673 322 312 983 416 127 300 418 340 279 612 618 188 805 24 5 359 646 376 596 663 915 370 368 707 775 929 480 254 445 899 126 466 514 544 546 562 566 904 9 922 975 748 330 754 783 788 829 828 796 148 152 44 820 806 ...
result:
ok answers are correct. (1 test case)
Test #138:
score: 13
Accepted
time: 1ms
memory: 5684kb
input:
1 1000 205493792 867439944 398964704 952472604 808097531 914125328 237993740 916898380 162143246 294810903 669225392 975576548 37889786 809739567 561387557 879042583 168684314 970778409 540965555 911610241 404715553 757542602 228175149 760805305 926006951 994632976 236669338 863725324 200183115 2540...
output:
267 174 699 432 801 895 294 218 807 240 727 413 467 13 871 650 55 987 661 208 121 782 480 137 123 54 435 910 607 473 304 803 564 583 73 778 402 269 974 901 105 233 459 882 252 462 667 972 690 103 609 872 64 758 6 844 960 859 707 104 867 63 9 130 724 710 169 825 295 881 456 730 485 154 993 464 210 88...
result:
ok answers are correct. (1 test case)
Test #139:
score: 13
Accepted
time: 0ms
memory: 5776kb
input:
10 124 220925753 990704488 829446704 896457004 275216239 648601182 153588846 222782668 469195692 964049365 391323562 588604658 421324193 456907652 352527995 612406208 777507271 861574497 259086143 493933657 134904012 873104311 33131787 239170060 475869329 955856249 24546038 809497336 250730258 62914...
output:
86 73 111 1 54 33 17 31 84 74 101 35 5 102 13 110 107 97 99 112 39 93 2 109 88 89 55 20 95 11 23 16 40 9 108 92 58 71 113 75 91 14 46 79 66 49 47 26 114 53 52 94 123 65 64 77 103 57 48 19 29 81 25 24 38 39 6 34 31 2 33 30 32 18 26 14 17 4 20 5 15 16 52 11 63 99 10 98 32 80 61 112 92 45 103 28 49 1...
result:
ok answers are correct. (10 test cases)
Test #140:
score: 13
Accepted
time: 1ms
memory: 5992kb
input:
1 5000 118658972 536222207 61138554 593944121 740875443 904010358 271592325 383983429 296711785 358413544 755659851 888654806 303956552 348461740 782668441 865970272 316741243 335753371 237683950 419731049 99528260 555366633 298499921 356147381 315321403 336584389 17132029 639862762 97887116 5571239...
output:
3117 1661 1707 4199 2887 4410 801 4618 251 2072 245 3668 1681 2668 3134 4432 1518 3711 2888 2812 4922 4113 719 3437 4891 4017 4901 2590 1229 2670 2094 4822 2883 1302 103 2128 2719 3850 972 699 1646 3390 3108 4517 217 802 3554 1343 2571 393 2475 2354 3455 2188 2172 3645 1277 2443 4256 585 1869 4531 2...
result:
ok answers are correct. (1 test case)
Test #141:
score: 13
Accepted
time: 1ms
memory: 5816kb
input:
5 276 148051595 218400093 170562291 178244353 611562431 625485963 173156782 177787843 441998436 480555036 759681224 798828809 374600237 395475739 817258917 858296801 814711973 863033573 588142813 666280061 113802149 252341504 314602856 353928243 102424580 258205702 12474432 90588361 133863516 228538...
output:
205 234 44 33 176 178 174 82 264 49 172 121 230 103 226 166 118 101 133 123 245 132 53 139 210 14 171 85 47 151 28 4 200 2 88 97 119 159 232 115 122 193 29 54 192 223 188 137 215 216 117 191 116 22 1 31 155 149 40 145 269 15 71 136 46 229 219 98 168 164 161 195 17 76 34 69 213 154 11 113 183 51 111 ...
result:
ok answers are correct. (5 test cases)
Test #142:
score: 13
Accepted
time: 1ms
memory: 7856kb
input:
1 5000 5894 5895 2899 2900 2691 2692 3936 3938 1543 1555 2059 2070 5089 5128 10 26 6017 6020 5795 5996 2077 5634 2578 2582 525 561 2517 2518 5299 5301 106 683 192 193 3134 3136 118 679 1674 1686 4822 4852 2473 2474 5720 6005 4934 4935 3714 3716 5696 5697 4542 4558 5523 5524 361 362 5662 5663 40 45 3...
output:
3528 3003 3179 3527 1157 3690 4402 3752 3357 3522 4770 2494 1997 4294 3589 358 3350 384 4247 1017 2485 53 2662 4127 1227 3610 3542 2116 1505 3087 1710 2805 4195 3343 117 740 2075 4875 2208 3487 3532 2089 4351 2920 3157 3431 2373 3356 2253 4955 2932 3281 1380 4562 841 4553 3550 4025 4747 3481 521 172...
result:
ok answers are correct. (1 test case)
Test #143:
score: 13
Accepted
time: 0ms
memory: 7768kb
input:
10 136 36 37 15 16 77 78 54 60 40 41 39 45 176 177 71 72 148 150 132 136 130 137 56 57 5 178 163 167 102 103 13 21 143 157 35 37 79 80 24 29 8 22 185 186 115 116 69 72 133 134 10 11 151 155 144 156 49 50 2 178 92 93 102 140 171 172 180 181 147 155 56 57 176 177 25 26 5 175 61 64 123 124 69 73 40 42 ...
output:
134 46 26 77 2 97 57 54 53 120 130 16 21 58 87 38 121 82 20 99 111 107 1 18 113 91 5 43 68 6 115 29 125 51 65 36 12 116 61 74 4 93 106 76 100 40 81 92 133 24 8 127 47 42 69 3 19 64 135 104 45 67 126 95 72 124 31 103 244 217 310 838 124 302 595 1045 76 774 156 647 532 536 231 58 437 35 529 233 864 1...
result:
ok answers are correct. (10 test cases)
Test #144:
score: 13
Accepted
time: 1ms
memory: 5672kb
input:
40 66 13 17 57 58 77 78 35 73 76 81 85 86 88 89 13 14 85 86 37 67 68 69 79 80 75 95 96 98 53 54 59 60 55 56 10 19 27 28 38 39 82 94 49 50 15 16 41 65 40 66 9 33 36 73 7 100 74 95 77 78 44 48 10 19 11 12 22 23 88 93 71 72 62 63 21 28 22 23 1 101 42 64 52 56 25 26 21 24 44 51 18 19 31 32 20 29 4 5 35 ...
output:
40 64 60 28 50 14 57 13 29 62 21 59 35 65 7 6 9 54 5 12 3 30 27 4 36 52 11 10 25 51 16 2 17 99 32 100 7 62 45 44 58 30 5 61 69 52 78 25 20 3 98 90 81 102 43 85 6 64 53 4 67 22 19 86 46 76 36 17 41 55 39 63 95 73 27 82 23 48 8 104 97 16 1 33 50 175 205 281 256 215 194 344 106 231 147 112 293 49 12 ...
result:
ok answers are correct. (40 test cases)
Test #145:
score: 13
Accepted
time: 0ms
memory: 5736kb
input:
100 6 5 6 1 2 1 6 4 7 1 2 3 5 16 6 8 8 10 5 8 4 5 8 9 1 2 3 7 2 7 6 11 1 2 8 9 10 12 2 4 1 2 2 6 4 5 6 2 5 3 4 1 4 2 5 4 5 2 3 58 28 31 12 15 16 29 13 31 34 41 32 42 41 46 43 45 1 27 38 47 17 41 14 15 25 26 22 25 12 26 28 48 27 33 23 25 21 42 36 37 10 30 14 33 34 44 11 40 1 6 16 23 5 22 24 48 17 42 ...
output:
4 3 6 6 10 14 13 4 16 15 7 6 2 3 16 28 10 52 7 8 23 36 37 53 39 6 29 57 46 44 43 19 5 54 11 30 35 24 42 34 31 38 1 6 5 3 1 6 4 2 1 13 32 21 34 5 10 39 30 17 33 12 4 23 3 19 8 16 36 42 11 15 9 10 5 2 7 11 10 3 12 9 5 24 20 12 18 11 1 6 2 10 7 3 4 22 9 21 13 1 35 4 24 11 38 36 10 7 2 23 20 ...
result:
ok answers are correct. (100 test cases)
Test #146:
score: 13
Accepted
time: 1ms
memory: 5856kb
input:
10 320 39 154 72 91 266 273 184 227 112 155 40 249 30 108 134 226 210 253 83 175 15 40 121 238 273 279 154 296 222 272 221 251 9 264 96 116 134 166 202 204 27 181 74 173 35 291 10 119 47 121 160 282 146 255 7 117 159 228 227 292 123 237 177 200 211 260 238 248 96 112 25 63 17 251 102 185 36 275 176 ...
output:
14 282 73 260 132 66 30 23 84 134 54 173 160 252 126 187 174 243 51 44 26 151 283 318 196 161 202 120 133 13 131 319 85 234 201 301 305 211 130 39 47 265 189 175 199 3 195 86 15 269 233 129 141 94 88 169 123 314 223 309 216 49 165 93 236 17 271 52 304 307 291 119 219 33 99 111 231 150 188 128 46 225...
result:
ok answers are correct. (10 test cases)
Test #147:
score: 13
Accepted
time: 1ms
memory: 5872kb
input:
1 5000 1879 3332 711 1604 2182 2304 1911 3532 56 2470 1271 2463 1842 3974 2452 4955 447 530 1948 2449 3336 4653 1858 2054 1623 4295 1335 3708 2472 4382 1063 1235 88 3879 904 2279 3113 3763 175 3173 1193 4868 1451 3183 92 1683 4028 4214 72 4867 524 2838 2324 4183 2218 2339 3213 4525 2827 3418 1956 48...
output:
2645 2594 8 3812 2475 2628 2270 1876 213 562 3903 1116 1402 617 209 658 4888 3314 2098 303 2881 373 1191 3997 4926 2949 304 327 668 1202 3068 732 423 1015 2491 2784 2519 4143 4343 1914 780 3005 109 2136 766 3496 549 2157 4712 3966 4391 2966 4691 207 4047 4421 1130 790 2588 2109 1888 3333 4702 4081 3...
result:
ok answers are correct. (1 test case)
Test #148:
score: 13
Accepted
time: 1ms
memory: 5768kb
input:
10 802 20 1438 994 1337 843 1195 255 724 715 1090 246 1502 791 1004 327 1067 60 928 147 458 241 1444 925 1199 34 965 400 901 489 714 1405 1435 213 951 1189 1508 54 63 1213 1483 173 1183 442 1275 865 933 886 1131 8 707 95 670 1073 1513 987 1238 792 1547 702 992 1 288 641 760 336 1002 926 1477 141 592...
output:
665 554 454 220 382 139 746 190 421 592 506 237 559 166 189 530 529 127 392 249 221 331 710 389 395 317 326 231 155 250 110 407 779 332 308 148 694 179 676 760 471 235 398 565 588 404 794 318 168 566 402 636 511 406 433 29 62 107 783 63 263 599 428 157 306 604 570 472 498 211 648 208 720 315 801 729...
result:
ok answers are correct. (10 test cases)
Test #149:
score: 13
Accepted
time: 1ms
memory: 5748kb
input:
10 634 574437593 816957904 302671546 771277906 505493784 981380572 141295423 598533227 409138780 456351460 276181800 709651968 42886786 204138709 457801669 879016863 200929161 741203838 185321693 245948339 357884966 436905966 677018683 946059274 364729127 959087205 158994120 629433929 287588355 7822...
output:
374 77 570 386 526 602 201 549 281 116 447 147 489 193 162 196 486 409 567 372 346 323 456 3 117 185 607 362 356 241 358 216 87 560 347 539 16 583 532 90 308 498 524 389 246 565 435 13 420 572 84 111 315 544 597 377 342 332 427 366 255 148 12 234 629 505 262 303 530 413 336 19 254 235 207 67 280 21 ...
result:
ok answers are correct. (10 test cases)
Test #150:
score: 13
Accepted
time: 0ms
memory: 5676kb
input:
10 500 138876369 265846114 294778882 590636569 93248540 685458213 704069928 828559168 254679650 597003691 330321613 955688773 72187964 332214256 246358602 832305171 246909315 815007275 109141099 374162937 242499327 825697150 879369311 928575321 258341936 287501522 370920865 457387863 394446204 70029...
output:
352 402 24 158 250 72 92 29 446 167 368 332 79 336 191 97 408 107 494 153 312 425 428 490 32 471 497 295 156 199 103 208 493 434 244 235 298 300 111 385 148 492 172 73 150 213 16 245 320 378 262 6 335 109 90 460 211 134 189 53 217 267 68 384 395 444 207 461 51 448 318 484 366 190 479 473 421 356 315...
result:
ok answers are correct. (10 test cases)
Test #151:
score: 13
Accepted
time: 1ms
memory: 5804kb
input:
10 500 310 515 456 912 673 955 788 831 659 707 230 537 636 643 421 862 85 588 140 712 206 661 519 977 343 800 182 608 478 963 392 438 602 632 6 81 313 542 561 611 548 920 328 640 380 383 448 728 428 444 9 637 86 794 83 300 594 944 33 968 157 503 174 302 303 874 340 798 406 876 645 897 210 943 314 94...
output:
359 296 45 233 450 77 97 364 117 489 371 169 204 415 422 148 300 442 46 43 303 110 286 12 192 66 195 480 202 485 478 277 30 370 132 96 100 15 384 205 451 408 355 483 3 479 362 170 49 352 243 149 466 435 38 29 37 438 141 39 470 395 245 257 463 254 79 334 207 474 357 112 464 223 128 63 469 304 21 495 ...
result:
ok answers are correct. (10 test cases)
Test #152:
score: 13
Accepted
time: 1ms
memory: 5712kb
input:
100 50 592823212 593560486 67616697 457555625 8660762 393834361 52024854 365229241 249585261 933258976 457312339 974919926 329982686 583258159 26625865 414858606 65906779 822627996 653597541 856464254 46783551 153487337 573544457 742797594 36029498 559099466 418379365 888552411 601658983 780914402 2...
output:
32 37 22 33 6 20 5 23 39 14 18 35 10 29 30 34 16 9 46 15 40 12 19 17 1 4 2 11 20 19 5 14 3 9 4 23 21 27 22 13 6 2 1 128 68 137 1 164 95 113 7 33 116 155 6 100 29 138 132 133 139 37 63 111 81 61 172 161 83 168 102 125 72 24 145 8 143 141 70 104 19 169 49 148 119 88 75 93 163 62 3 39 151 10 120 87...
result:
ok answers are correct. (100 test cases)
Test #153:
score: 13
Accepted
time: 1ms
memory: 5788kb
input:
100 4 107589863 890080709 888017791 904218165 366964348 561582455 304331927 535296056 16 507143090 930075958 253719143 867338553 272677291 450499516 293085726 990242978 147278963 221827329 3018140 317119276 929182034 973692331 37266414 887574886 615079302 917759735 282881604 455133616 146526379 7709...
output:
4 3 4 7 1 9 8 2 11 16 4 74 50 36 83 9 75 33 24 68 22 7 53 59 40 58 10 12 47 57 19 28 69 84 56 39 29 64 5 78 21 72 6 11 25 41 66 71 14 79 3 44 101 71 103 65 45 88 40 90 78 80 24 22 99 70 83 66 97 23 51 72 47 75 102 30 44 14 13 48 54 15 43 16 3 77 87 68 98 11 105 35 55 76 33 27 41 53 100 84 91 67 5...
result:
ok answers are correct. (100 test cases)
Test #154:
score: 13
Accepted
time: 1ms
memory: 5908kb
input:
1 5000 5967 7816 5028 9616 3475 8596 7199 9466 6589 9748 1501 4313 5972 9809 266 2738 1610 5638 6162 9931 1747 3830 2601 9566 968 6221 1112 5036 1631 6903 3495 7873 4836 8105 162 6003 1274 4576 591 6343 2385 2824 2064 5832 5955 9340 3540 8637 1250 2767 6392 7926 2191 4532 4147 8390 470 6553 4567 807...
output:
2278 718 1124 1432 3764 108 1352 2266 3511 3621 4827 2811 4875 2986 3679 2500 3166 4922 1942 3136 2421 3765 1788 4351 1632 3099 4984 4050 2140 2058 3799 4052 2573 4153 3027 2503 4600 710 4595 2173 1101 1273 258 3789 3332 3665 3579 3320 3104 76 2633 3039 1600 369 1341 339 4174 1791 348 4576 2899 4030...
result:
ok answers are correct. (1 test case)
Subtask #8:
score: 12
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #6:
100%
Accepted
Dependency #7:
100%
Accepted
Test #155:
score: 12
Accepted
time: 2ms
memory: 6020kb
input:
1 10000 634813517 746476282 606954970 606968029 5603155 5664604 146733108 146830046 195788943 920962348 463711802 463809397 664464996 735669274 216089445 216197762 243736054 904269975 415547839 829608451 46129244 982189670 165276181 934539208 326627665 866034584 410884378 831162405 61604500 61621943...
output:
8857 174 6016 4014 1454 2348 5054 2144 1586 6287 570 2180 5441 7748 5769 7383 1818 3016 7046 8818 217 6981 9269 8456 4523 3479 875 7691 3533 2446 7810 5238 872 9807 4933 9064 9346 2392 6782 2322 5019 6412 8581 9812 3518 3223 3815 7668 6583 6511 1647 5217 8277 1686 2791 2501 6877 165 4509 7454 2514 5...
result:
ok answers are correct. (1 test case)
Test #156:
score: 12
Accepted
time: 2ms
memory: 6144kb
input:
1 10000 380589071 846297610 449079479 817209685 650830157 650916044 383277669 383339434 460376034 460389500 528242789 787169057 250714924 896216542 557886924 557962141 446111517 446113720 183962951 184126732 323308017 323330540 388021991 842939689 123415350 949655016 230085111 907223744 227655214 90...
output:
8704 4892 9090 3616 364 9182 7636 5961 774 5876 9053 6805 4995 432 3612 731 7174 7797 421 213 2736 7955 681 9869 8766 7768 1927 5866 809 3715 7393 7130 4784 9094 3987 6893 4175 9556 9443 3846 5855 5337 7596 8285 3842 706 4874 766 4181 6464 9726 1539 4438 6395 7179 8645 147 6865 9213 998 7082 9026 87...
result:
ok answers are correct. (1 test case)
Test #157:
score: 12
Accepted
time: 2ms
memory: 6084kb
input:
1 10000 285939640 586007043 144908478 479317095 639482147 785768199 818819329 913963066 537479522 680067662 656319711 757638945 129270318 172241250 519163474 762977851 201118358 210064087 788332015 792884298 644500318 984514745 484608079 782681162 142397061 727174826 949588689 998097718 219008282 58...
output:
4396 5973 5192 6334 2622 9010 9818 4235 4977 6517 1187 9841 7711 3047 424 8010 6741 6412 6750 4336 3332 8955 14 4899 8420 1382 5845 6306 3854 4167 7931 5904 167 1883 6613 544 9956 8985 2381 8244 3437 9882 5333 7440 4207 4157 2948 993 5676 706 3946 1989 5414 1108 4305 298 8069 434 7511 874 9790 4720 ...
result:
ok answers are correct. (1 test case)
Test #158:
score: 12
Accepted
time: 2ms
memory: 6088kb
input:
1 10000 25043884 301288445 337831183 756107368 265785120 377791402 377791402 994055154 383744602 475579013 383744602 532607569 680234910 775046850 334898622 532607569 749692187 853717387 377791402 508829931 377791402 906601668 648677460 966334526 641712379 680234910 93399731 933356179 31024070 36897...
output:
3337 1800 1808 6856 9580 5494 3295 3283 3278 6910 2854 5478 3265 5473 6936 1898 3201 8178 1936 6992 7008 5433 8230 9482 4593 4594 3465 1677 3463 3454 3453 532 3427 6822 1712 1719 3423 1734 5564 1745 5559 9543 5554 3393 6809 4625 5339 2122 2949 2946 9768 9770 5324 2929 2146 7228 8122 2164 4874 268 21...
result:
ok answers are correct. (1 test case)
Test #159:
score: 12
Accepted
time: 2ms
memory: 6084kb
input:
1 10000 411425103 764051595 593030255 742462361 277596319 477536908 257044538 571566384 319830859 378506733 475567054 512583106 484996595 973366153 684106755 918164521 103212444 538652443 51443763 76026910 101273608 841048581 374549348 956238743 142202945 504521772 249307731 939367055 12050239 79014...
output:
5657 3021 4373 5826 4797 3317 8062 7950 8227 9293 6060 4475 1662 1778 234 1896 6724 9768 6108 1588 9302 3129 5368 6655 3307 7461 2664 7837 3735 8855 9382 6565 3895 5193 3193 7114 4260 9387 277 6033 7300 8070 2633 1949 9195 8387 877 3897 7589 1696 2917 2138 8932 4596 215 8052 167 5332 306 7060 5901 4...
result:
ok answers are correct. (1 test case)
Test #160:
score: 12
Accepted
time: 6ms
memory: 7080kb
input:
1 50000 326135026 859525865 316926409 869154434 314101601 872076846 24262256 159583699 480768602 704126572 566533079 617563933 523135938 661242315 387308766 797749988 212281930 971460861 501411885 682428851 435343685 750020121 533776146 649884078 498856067 685418677 337436792 847915541 457601022 726...
output:
49558 19672 49169 30409 19893 12287 33596 40415 34914 2981 9222 8619 3111 39486 28322 7598 27588 23801 13403 32897 5701 7438 5813 40677 6123 32939 6386 8548 3094 39387 32814 49551 15435 16474 18062 35092 7568 24039 23299 23853 3646 2009 49545 27181 2168 6919 19738 25357 11039 13781 8518 33176 14889 ...
result:
ok answers are correct. (1 test case)
Test #161:
score: 12
Accepted
time: 6ms
memory: 7032kb
input:
1 50000 446250296 570066549 140434680 282647200 128233854 293766806 169581102 252977021 464725279 551676913 1267930 124233641 902056933 915813606 303877920 405351021 892921051 926241419 173387090 249545491 814093959 815957517 683787881 725578227 334667441 375463636 888527615 929624802 578948612 6406...
output:
22415 8993 3275 12890 24119 31394 7567 2141 28714 7449 4934 30143 27180 5834 30028 13063 26904 534 681 42945 35505 1294 5562 2151 17517 42449 5223 27980 31010 27577 19915 26054 21391 22465 3932 45690 30420 3908 36008 29690 34044 33088 46731 36825 18844 42729 44480 34459 47781 21421 27070 43842 17590...
result:
ok answers are correct. (1 test case)
Test #162:
score: 12
Accepted
time: 9ms
memory: 7120kb
input:
1 50000 24828 24829 53188 53189 1864 1867 212 213 937 938 47164 47165 40882 42284 51335 51338 8718 8727 11407 11437 43430 43431 30746 30749 41862 41865 62925 62927 23308 23311 55974 56015 68856 68870 3512 3513 7251 7262 11616 11623 43996 43997 43074 43087 27312 27347 12682 12685 35178 35180 36239 36...
output:
36241 44789 8809 13026 21523 24660 12899 32292 766 40665 33662 34015 5933 23681 48177 44997 39241 22026 4088 10255 47037 101 6138 44654 41005 31419 15746 3341 25583 37358 4156 25755 21639 43816 14558 29645 45954 19132 28498 6125 8344 14223 49990 6775 14161 19472 33738 36517 43366 4471 17437 12481 73...
result:
ok answers are correct. (1 test case)
Test #163:
score: 12
Accepted
time: 9ms
memory: 6588kb
input:
1 50000 15059 34300 20388 29724 15608 42443 16174 23020 1243 4574 12225 30807 8728 16888 37092 39623 6567 32220 5244 35916 13316 49543 4131 30492 2753 6988 29243 33476 41065 42178 4786 47114 799 44604 8665 40552 24612 37977 3793 35532 8881 30094 22752 28231 2282 48271 6837 24905 2250 19126 19840 393...
output:
22330 26656 10426 40265 11068 21378 11971 25510 49165 10774 39280 40329 12766 28516 46303 39872 43778 2925 32227 9919 18199 22334 23999 47936 31942 43030 38352 26223 21532 18588 6521 33022 43488 24617 26401 21888 42599 13875 41344 45388 11770 9344 27494 39403 8503 49071 38816 5946 19186 26423 7448 8...
result:
ok answers are correct. (1 test case)
Test #164:
score: 12
Accepted
time: 19ms
memory: 7848kb
input:
1 100000 329611992 867459260 580201316 580203195 325360165 869193215 340589687 340591055 324177312 869602145 442089038 821074769 5459652 5475131 542766408 542778869 400076999 400104434 299432172 299433369 425010663 425012910 152959654 938061757 287655543 884456329 483803807 483805421 584423813 58443...
output:
1036 68943 51243 42690 63823 54013 76248 55311 95003 92090 60621 57954 1484 1012 72464 5828 9845 51677 13980 89741 71366 32803 18852 34025 64193 74987 60681 64571 28 40087 46374 57654 78628 46175 55516 18391 65356 42770 9612 55783 43862 94986 86361 25373 14016 65945 99836 53763 70379 967 21579 69897...
result:
ok answers are correct. (1 test case)
Test #165:
score: 12
Accepted
time: 19ms
memory: 8284kb
input:
1 100000 254324616 518443862 318347034 381085759 147096049 924339119 52914387 478364305 261293937 656660736 638053910 823838184 269630275 513654526 37573041 453124522 654278089 674745338 576399605 831725421 100414808 515967538 705097491 857384721 348122133 566529007 120676496 210583505 107738554 169...
output:
55867 38873 67961 23836 18822 14981 65636 46046 8994 16457 86734 13895 47408 23469 25226 52645 54858 61265 99615 23706 33303 69674 4924 9165 67849 84465 53526 47421 67372 92968 53851 9596 94245 56935 49302 25499 85038 69509 40299 35501 75735 79177 23685 13315 86492 25165 2828 12801 44373 40256 15587...
result:
ok answers are correct. (1 test case)
Test #166:
score: 12
Accepted
time: 16ms
memory: 8276kb
input:
1 100000 156008654 910742971 92755915 502719356 633105109 799239421 644228462 765187120 236836501 876790864 90507664 377164027 78990691 603699513 556861794 750549568 340702740 386159394 532399963 957898572 181234123 674268917 118293728 143760949 459397 644228462 218277717 855306846 742276595 8191302...
output:
95580 29274 15635 15654 15665 29278 5607 38814 15682 27090 1444 86389 53332 95745 95790 77933 86305 86298 4662 20683 77809 25470 31987 20832 77161 31944 77219 54428 77231 95309 77256 53707 7666 1593 15410 77339 54226 86547 99499 31869 77470 38740 83190 51796 78698 41635 43485 39353 31504 51580 51515...
result:
ok answers are correct. (1 test case)
Test #167:
score: 12
Accepted
time: 19ms
memory: 8440kb
input:
1 100000 119241641 613464492 490241507 910054958 109799237 470477062 643905323 728144956 210136020 677686279 526427304 954012078 37784408 823947370 330253271 403371326 81390909 123719285 156843216 346377489 260697279 835345872 350262349 446647272 202882494 607223399 674669712 737734020 539032927 587...
output:
31308 63588 37011 85081 1052 56535 60693 59002 28735 1699 77617 17 17597 80194 51699 54838 73529 85532 10645 90252 89896 57822 35213 29156 85601 51483 46371 90382 58729 43232 59915 37131 20215 79552 47730 10889 78770 20368 79128 96000 81020 5553 69808 29262 76510 15657 42530 71655 9277 41686 77448 5...
result:
ok answers are correct. (1 test case)
Test #168:
score: 12
Accepted
time: 14ms
memory: 5752kb
input:
100 1000 583557907 768991079 315151968 766597987 643525310 655240361 558139652 944883496 417210693 517249248 780607526 842468217 64452339 433524829 40681705 549558182 493797785 994971958 621462808 999090220 429413078 586121195 190323157 267674590 171957614 497377312 473043394 997819980 183401773 876...
output:
651 629 10 646 83 14 213 835 938 208 9 393 868 752 778 548 496 131 790 411 737 896 724 341 416 809 827 751 215 845 457 444 925 31 297 709 557 241 642 933 187 702 886 65 643 895 954 500 313 616 359 189 991 783 909 39 589 356 508 168 715 408 799 797 326 855 195 803 641 587 736 528 838 880 524 902 171 ...
result:
ok answers are correct. (100 test cases)
Test #169:
score: 12
Accepted
time: 19ms
memory: 6992kb
input:
1 100000 832362701 922925646 155798818 599729944 829111545 926246784 330475003 425206584 272603334 482539098 791295614 964725317 810436761 945385509 183826339 571767364 368789298 386425661 121435250 633592857 57178462 697850941 98163343 657126683 197222129 558451789 181798495 573899262 758035851 997...
output:
38212 75342 75873 4474 21972 94014 1747 26576 121 71681 16633 12644 22107 39951 38062 91506 9123 53479 81527 2769 7598 43462 85130 491 32907 90996 99819 94992 44009 64624 24327 6739 51605 82095 51493 69213 79130 53357 96046 7244 93914 48103 73379 333 992 18739 4800 28164 53461 10338 41195 3600 90190...
result:
ok answers are correct. (1 test case)
Test #170:
score: 12
Accepted
time: 15ms
memory: 7572kb
input:
1 100000 229000294 233267068 64349443 172406904 654893821 846950775 245833503 310393268 736203562 766305479 344069208 459696669 499732295 574313348 354013842 450152154 57504503 178851673 598048256 903850128 44066013 192534514 112616948 122691712 395420936 408402519 517992415 556203015 911823497 9929...
output:
51627 4521 85914 42799 83874 62039 50183 46016 21034 29279 45135 8102 44580 75109 28471 10377 74268 6296 36379 97607 91559 77313 9261 86873 4084 7098 53240 68978 4136 39427 18316 39355 8526 40964 48370 73158 66307 62929 21779 41515 37096 55565 1979 31651 39150 12063 5337 22980 95676 98612 9780 79189...
result:
ok answers are correct. (1 test case)
Test #171:
score: 12
Accepted
time: 10ms
memory: 7748kb
input:
1 100000 84769 84950 78496 78502 54993 54996 124001 124002 86322 86323 28997 29023 34726 34729 60571 60572 29146 29147 46129 46130 121654 121657 10035 10041 119573 119576 14462 14465 9378 9396 8526 8527 42641 42642 123380 123766 19709 20187 37272 37278 50547 50549 85869 85870 6624 6821 123252 123253...
output:
57777 82431 79174 80473 80455 75987 32205 88267 88637 189 84984 80428 82563 38680 66250 56719 78529 53428 4077 79704 3197 22987 89325 17012 57244 34356 62272 4523 23089 22115 32591 17538 56974 44046 29205 27594 40647 77324 90019 92436 20241 11078 91712 77343 7486 16388 35541 26525 32520 21195 61509 ...
result:
ok answers are correct. (1 test case)
Test #172:
score: 12
Accepted
time: 12ms
memory: 5924kb
input:
100 56 23 24 71 72 43 44 37 38 12 13 6 70 52 53 83 84 2 3 62 67 78 85 33 39 65 66 6 57 30 31 68 69 15 45 8 9 58 59 25 26 32 40 81 82 48 49 2 5 6 56 16 44 19 29 63 64 33 34 74 75 2 4 54 55 10 53 25 27 62 67 11 14 17 44 76 77 6 70 11 47 73 87 80 85 35 36 15 46 58 61 1 87 78 79 41 42 20 21 60 61 19 29 ...
output:
9 31 24 18 52 5 36 49 1 20 34 53 51 27 56 15 29 43 4 12 21 48 37 26 3 17 23 54 259 11 269 204 185 76 265 114 130 7 19 128 22 73 235 321 163 80 27 83 56 197 75 184 134 212 308 190 90 233 44 206 99 231 107 152 208 196 177 50 277 219 54 309 120 267 254 35 214 306 157 49 155 65 245 294 272 182 140 45 3...
result:
ok answers are correct. (100 test cases)
Test #173:
score: 12
Accepted
time: 15ms
memory: 6000kb
input:
100 1184 334117967 334321284 702694582 703185210 268154220 268656330 814502527 814758558 932733154 934904695 206830273 207151323 856456021 865430086 634245952 635401907 516425531 517815270 364957144 369423975 234792853 235801376 704685389 705801276 743597167 743999449 221558820 222994690 23225599 23...
output:
911 379 408 692 918 160 64 290 980 153 999 369 1054 642 599 625 941 475 803 785 96 1031 587 942 392 42 215 516 1167 698 736 937 829 141 264 842 832 229 932 309 628 794 180 975 874 670 1016 667 895 810 998 1005 1099 277 1138 636 241 718 1126 345 684 859 1004 695 140 449 888 138 459 1124 127 132 252 6...
result:
ok answers are correct. (100 test cases)
Test #174:
score: 12
Accepted
time: 17ms
memory: 8684kb
input:
1 100000 11742 65735 53036 76133 24279 94256 4511 6541 25912 56552 53277 53764 31097 68141 69663 88772 85067 91898 23145 53180 14123 49721 48995 66548 53125 77338 17585 73442 48271 94636 48498 93632 50472 70070 8411 67452 4089 89575 4677 86133 6793 47121 83834 96348 31276 54617 61921 97756 17535 683...
output:
66261 50469 26436 54021 53197 19210 78625 84641 53593 50348 46401 24162 94948 28025 84873 30004 44513 14385 97291 80348 44857 83097 429 4054 36355 45558 60328 44388 25453 11924 1582 31607 3423 38683 92799 62773 12627 18587 86795 31970 38800 5855 68816 40452 1748 667 98175 74666 88395 63585 19546 909...
result:
ok answers are correct. (1 test case)
Test #175:
score: 12
Accepted
time: 13ms
memory: 6104kb
input:
10 10000 1548 5185 3629 3786 3897 4953 854 4112 5542 6622 79 6061 2343 6743 1577 1626 477 1115 2633 3130 1457 7061 1196 5397 2171 2602 7726 8605 3307 8343 4470 7093 7699 8063 7968 9912 8083 8758 5461 9639 2528 5680 230 5497 5908 8700 601 8527 8899 9595 332 6286 2322 3507 241 9959 1189 9241 76 4124 3...
output:
3398 5351 8079 166 5896 3166 6657 1464 1446 494 5791 9640 7369 6221 3843 2799 9891 8153 3101 4156 3315 1681 773 8939 2741 578 4206 7564 5465 9175 5851 7594 8137 2653 7846 4659 3640 1261 9932 2273 7482 7340 145 2413 1738 6649 606 457 719 3851 1038 6346 7819 8341 4975 7752 9981 6587 5096 2610 1892 28 ...
result:
ok answers are correct. (10 test cases)
Test #176:
score: 12
Accepted
time: 15ms
memory: 7196kb
input:
1 100000 518086099 568477197 194582604 377596903 689618157 730205242 440092255 463099109 4107025 579420102 329488917 393826795 473214249 479681429 68538053 433253486 564657096 772552542 113045749 965597140 63873365 646947544 434880865 874921587 687402335 773952203 76328683 646278693 165627312 670321...
output:
51392 42054 95657 22284 85484 70284 22552 27438 84876 192 82021 41203 7852 83571 77146 85508 54544 10955 60435 33170 64807 89982 38859 34391 66450 39621 78545 52620 89128 68828 41964 85199 35051 68078 97784 29684 37502 90407 33376 14481 99810 43351 52244 41951 79010 12811 30529 36654 75500 49797 615...
result:
ok answers are correct. (1 test case)
Test #177:
score: 12
Accepted
time: 10ms
memory: 6556kb
input:
10 4890 863315904 917436274 78637332 765503617 489575785 840801368 154190671 428717357 417276811 792617375 59658502 922816925 592067417 834515529 501697387 641652322 342822804 983297444 12059870 892533503 602131534 760169697 168585199 599569566 219909054 313667634 443777519 801386280 190691507 66836...
output:
3244 675 2496 1805 3383 783 3789 3311 1493 3715 1547 3485 4097 1254 988 645 4219 3052 4105 3991 2033 2488 4313 4184 1550 3150 1044 1460 507 3679 996 1034 3942 2226 746 2635 314 3262 1947 2163 4811 373 1972 2784 1320 3169 492 3333 4303 169 137 4213 2976 4608 4379 433 2735 888 3309 1907 4122 3847 2138...
result:
ok answers are correct. (10 test cases)
Test #178:
score: 12
Accepted
time: 11ms
memory: 5932kb
input:
100 1242 281243183 581537250 457716820 859206390 714721389 780542603 575867059 934123867 17288493 257943601 134316823 794576676 353066358 703440360 328118811 612878701 321410620 895394594 162735601 710871666 85899999 655688147 9191719 336248804 382716594 463345483 409632247 991956008 251603606 26352...
output:
477 956 299 1211 759 1136 564 1169 341 705 769 625 494 865 349 255 1026 805 14 401 418 1071 353 1181 903 868 1170 390 1022 879 848 376 700 655 50 1206 1054 755 787 109 300 368 616 547 555 1124 1111 441 53 634 776 593 562 1144 137 991 1002 197 251 568 302 785 16 19 17 472 28 534 911 228 502 1204 252 ...
result:
ok answers are correct. (100 test cases)
Test #179:
score: 12
Accepted
time: 14ms
memory: 5800kb
input:
200 854 484801270 916937076 16446486 239830878 95331499 980732264 32887119 343035384 109930748 589853755 388875736 855006008 371607540 827365713 104947343 705117786 259238842 602814059 169097832 543614734 366362478 831230861 720279797 833841211 32885183 533412748 14394949 264811264 212800944 5462264...
output:
131 196 551 661 345 850 807 436 462 371 156 380 79 695 295 507 150 518 167 652 784 630 750 103 76 357 612 30 434 330 341 748 3 430 771 334 279 455 420 72 200 671 648 172 654 252 754 187 125 16 225 530 61 662 408 168 590 231 134 437 773 786 645 288 197 219 74 164 757 133 36 48 689 639 500 608 512 476...
result:
ok answers are correct. (200 test cases)
Test #180:
score: 12
Accepted
time: 8ms
memory: 5676kb
input:
1000 10 3841173 153508703 75088004 264989879 239701192 395874614 78048023 688935563 534983155 744058500 329105631 984436916 176398323 588680277 822408649 913027405 699115742 811080750 178091737 659141553 42 529484675 639090007 302050269 418560816 246460489 418821981 248250010 427343543 630666071 756...
output:
1 2 3 7 10 26 32 37 21 39 23 22 14 15 12 33 25 19 11 16 5 34 6 24 8 31 160 2 66 93 168 60 103 178 76 35 94 48 74 147 58 156 143 83 89 39 127 59 81 174 154 67 170 98 52 71 18 17 176 42 62 100 22 80 73 146 92 184 46 182 118 161 55 111 19 68 165 21 87 36 129 88 56 167 49 157 151 169 43 14 44 53 4 65 ...
result:
ok answers are correct. (1000 test cases)
Test #181:
score: 12
Accepted
time: 19ms
memory: 7732kb
input:
1 100000 151296858 151303690 32371925 986313422 518304361 790563746 452587716 452607934 625688031 747976322 97414801 959927159 686126459 686132364 274422133 888430016 309774060 874395324 352526076 857654301 373344332 373395115 704478015 717134520 524766137 524941478 617807641 617828066 402035623 837...
output:
7210 66801 54493 96824 804 71474 7645 33903 72578 94529 3470 54466 83945 50231 55854 18503 4684 80669 59990 46511 55657 22443 88964 5675 61562 81316 93511 28344 60781 3892 3362 90289 76338 34420 21747 91138 8007 10209 57397 19736 27553 3363 32583 91378 30149 71068 46062 2946 63996 11044 42069 60767 ...
result:
ok answers are correct. (1 test case)
Test #182:
score: 12
Accepted
time: 19ms
memory: 7000kb
input:
1 100000 851145456 851662752 231999752 232870307 89923983 91629340 183321171 186789644 988230925 989048000 676364441 678404803 790161971 790590157 169989530 173342257 281773295 281792461 676538780 678327386 975529559 977063891 409548617 414200867 59522959 59549924 679353065 680308272 705130343 70591...
output:
28755 61959 85696 15291 49915 32733 78983 26269 45743 96552 27239 8613 72764 40773 54361 93522 75351 72313 92156 86524 50116 183 16372 78706 42068 68599 72749 94372 31057 62700 65385 36545 36516 17807 80489 61494 70346 32902 83447 7742 86534 12592 67512 43486 90817 33413 34918 46897 98090 50148 3839...
result:
ok answers are correct. (1 test case)
Test #183:
score: 12
Accepted
time: 12ms
memory: 5884kb
input:
100 130 208 211 159 176 185 252 214 217 164 165 35 36 194 243 27 34 96 101 22 25 97 100 220 239 122 123 77 94 104 105 198 205 116 139 172 173 189 248 2 259 47 108 28 33 226 235 199 200 215 216 31 32 201 202 171 174 23 24 113 114 192 247 186 187 84 85 87 88 197 206 92 93 16 17 223 224 52 53 158 177 6...
output:
82 20 123 55 114 79 125 111 3 76 87 19 31 44 54 7 122 50 12 67 109 23 56 107 98 129 74 38 128 104 4 25 1 105 69 35 16 113 27 24 88 32 94 99 103 73 40 2 70 28 18 112 130 86 5 60 116 108 43 77 110 59 102 91 90 14 38 46 12 48 1 4 28 68 59 64 2 32 56 42 58 37 9 54 6 5 18 10 62 52 8 20 30 66 13 44 45 35...
result:
ok answers are correct. (100 test cases)
Test #184:
score: 12
Accepted
time: 18ms
memory: 8284kb
input:
1 100000 128120 131704 194067 196659 20481 136269 17272 34692 53386 105698 56295 123257 42630 109764 80928 112619 30754 186030 23409 173397 1685 141357 34066 131911 42400 73751 36666 72617 67664 158568 73160 88301 156287 174778 4772 152231 3462 13168 40010 74081 28108 183833 79519 189994 47794 14872...
output:
31927 22490 21804 22173 98541 96099 19886 39205 68105 85208 46029 43041 79829 34566 29867 18293 34501 24122 60820 83752 18454 6578 79976 79997 51002 65933 98822 44801 50972 44619 37520 39776 22451 69260 65164 84325 81569 76414 89034 98281 71355 36588 33782 85324 67826 65237 50565 57059 57881 37989 4...
result:
ok answers are correct. (1 test case)
Test #185:
score: 12
Accepted
time: 7ms
memory: 5716kb
input:
10000 10 588158034 698164740 716401449 875473558 360137762 639375440 487890359 748399810 539169057 755800866 107997562 362804046 528039806 668168290 304964796 407180600 756867878 919688708 393669506 559136634 18 766988294 864468705 8895116 798471179 688497735 972977560 541428983 568708384 221586049 ...
output:
6 8 10 3 7 3 9 8 1 5 12 14 17 4 7 8 10 6 3 2 8 9 6 11 5 28 24 6 8 3 4 25 14 21 17 5 18 2 23 2 1 2 12 11 5 4 1 2 2 3 5 2 2 3 11 1 13 5 3 4 14 12 7 20 14 10 1 4 8 6 9 2 10 8 6 7 4 14 9 5 16 10 7 11 6 8 18 15 16 12 1 22 9 14 11 13 4 3 1 10 4 9 3 3 2 9 14 5 3 6 18 12 2 11 3 1 8 12 4...
result:
ok answers are correct. (10000 test cases)
Test #186:
score: 12
Accepted
time: 17ms
memory: 7424kb
input:
1 100000 13590 72161 72816 163351 33479 99171 8873 104931 16439 130096 85181 168251 17013 86971 53543 182833 2196 79250 122722 198641 46508 61053 11224 135094 15956 54574 30463 148180 131240 162220 15345 84917 121650 155174 75916 151880 7084 119981 78250 151085 91359 158966 35417 58186 132278 154467...
output:
29863 76082 22974 68707 90866 90355 29099 43316 87134 1564 33856 2816 10989 9968 57218 36747 56309 48499 85918 74411 94827 23027 5590 46546 52209 81031 29994 84559 48800 71773 58917 84276 84638 77534 73656 49848 43779 82827 88443 68764 66098 2485 94012 2917 33642 65092 21968 34297 78545 46196 48685 ...
result:
ok answers are correct. (1 test case)
Extra Test:
score: 0
Extra Test Passed