QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#425130#5029. 在路上marher70 954ms48800kbC++143.1kb2024-05-29 22:28:322024-05-29 22:28:32

Judging History

你现在查看的是最新测评结果

  • [2024-05-29 22:28:32]
  • 评测
  • 测评结果:70
  • 用时:954ms
  • 内存:48800kb
  • [2024-05-29 22:28:32]
  • 提交

answer

#pragma GCC optimize("Ofast","inline")
#include"path.h"
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+50;

mt19937 rad(time(0));

int n,m,vis[N];
vector<int>s,g;

void clear()
{
	s.clear();g.clear();
}

int rd(int l,int r)
{
	return rad()%(r-l+1)+l;
}

int chk(int x)
{
	int now=0,cnt=0;
	for(int i=1;i<=n;i++)if(i!=x)
	{
		if(!cnt)
		{
			now=i,cnt=1;
			continue;
		}
		if(ask(x,i,now)==x)cnt--;
		else cnt++;
	}
	cnt=1;
	for(int i=1;i<=n;i++)if(i!=x&&i!=now)cnt+=ask(x,i,now)!=x;
	return cnt<=m?x:0;
}

int sol(int u,int v,int ls,int rs,int ff=1)
{
	if(s.empty()||max(ls,rs)>m)return 0;
    if(u==v)return chk(u);
	int pos=g[rd(0,g.size()-1)],fa=s[0],tt=0,cc=0;
    for(auto x:s)if(x==pos)tt=1;
    for(auto x:s)cc+=(x==u)+(x==v);
    if(!tt)
    {
        for(auto x:s)if(x!=fa&&ask(x,fa,pos)==x)fa=x;
        pos=fa;
    }
    int cl=ls,cr=rs,c=0;
    vector<int>L,R;
    if(pos==u)
    {
        for(auto x:g)if(x!=pos)
        {
            if(ask(u,v,x)!=u)R.push_back(x),cr++;
            else c++;
        }
    }
    else if(pos==v)
    {
        for(auto x:g)if(x!=pos)
        {
            if(ask(u,v,x)!=v)L.push_back(x),cl++;
            else c++;
        }
    }
    else for(auto x:g)if(x!=pos)
    {
        if(x==u){L.push_back(x);cl++;continue;}
        if(x==v){R.push_back(x);cr++;continue;}
        int w=ask(x,u,pos);
        if(w!=pos){L.push_back(x);cl++;continue;}
        w=ask(x,v,pos);
        if(w!=pos){R.push_back(x);cr++;continue;}
        ++c;
    }
    if(max(cl,cr)<=m)
    {
        if(c<=m&&pos!=u&&pos!=v)return pos;
        return chk(pos);
    }
    for(auto x:L)vis[x]=0;
    for(auto x:R)vis[x]=1;
    vector<int>tmp;int F=cl<cr;
    for(auto x:s)if(x!=pos&&vis[x]==F)tmp.push_back(x);
    swap(tmp,s);vector<int>().swap(tmp);
    if(s.empty())return 0;
    if(F)
    {
        swap(g,R);
        vector<int>().swap(L);
        vector<int>().swap(R);
        int now=s[0];
        for(auto x:s)
        {
            if(x==pos)cerr<<1;
            if(x!=now&&ask(x,now,pos)==x)now=x;
        }
        return sol(now,v,cl+c+1,rs);
    }
    else
    {
        swap(g,L);
        vector<int>().swap(L);
        vector<int>().swap(R);
        int now=s[0];
        for(auto x:s)
        {
            if(x!=now&&ask(x,now,pos)==x)now=x;
            if(x==pos)cerr<<1;
        }
        return sol(u,now,ls,cr+c+1);
    }
}

int solve(int u,int v)
{
	if(u==v)return 0;
	for(int i=1;i<=n;i++)if(i==u||i==v||ask(u,v,i)==i)s.push_back(i);
	for(int i=1;i<=n;i++)g.push_back(i);
	return sol(u,v,0,0,0);
}

int centroid(int id,int N,int M)
{
	if(id==1)return ask(1,2,3);
    if(id==5||id==3)
    {
        int x=1,y=2;
        for(int i=1;i<=n;i++)
        {
            int w=ask(x,y,i);
            if(w==x)x=i;
            if(w==y)y=i;
        }
        int d[N];
        for(int i=1;i<=n;++i)d[i]=i;
        nth_element(d+1,d+(n+1)/2,d+n+1,[&](int a,int b){return ask(x,a,b)==a;});
        return d[(n+1)/2];
    }
	n=N;m=n/2;int ans=0;
	while(!(ans=solve(rd(1,n),rd(1,n))))clear();
    clear();
	return ans;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 2
Accepted

Test #1:

score: 2
Accepted
time: 1ms
memory: 7908kb

input:

1 100 100
3
1 2
3
1 2
3
3 1
3
1 2
3
1 2
3
3 1
3
1 2
3
3 1
3
1 2
3
3 1
3
3 1
3
3 1
3
3 1
3
3 1
3
3 1
3
3 1
3
3 1
3
1 2
3
1 2
3
3 1
3
3 1
3
1 2
3
3 1
3
3 1
3
1 2
3
3 1
3
3 1
3
1 2
3
3 1
3
3 1
3
3 1
3
1 2
3
1 2
3
3 1
3
3 1
3
1 2
3
1 2
3
1 2
3
1 2
3
3 1
3
3 1
3
3 1
3
1 2
3
1 2
3
1 2
3
3 1
3
3 1
3
3 1
3
...

result:

ok correct

Subtask #2:

score: 8
Accepted

Test #2:

score: 8
Accepted
time: 4ms
memory: 14496kb

input:

2 10 10000000
999
60 112 98 509 586 175 588 875 861 516 920 370 781 249 999 649 292 308 934 949 437 92 506 752 547 866 869 510 984 228 104 612 202 630 360 809 56 107 566 448 940 726 146 299 941 50 319 794 670 603 365 492 728 872 829 942 451 632 373 106 909 25 306 995 735 99 568 673 75 573 383 407 56...

result:

ok correct

Test #3:

score: 0
Accepted
time: 4ms
memory: 14140kb

input:

2 10 10000000
999
60 112 98 509 586 175 588 875 861 516 920 370 781 249 999 649 292 308 934 949 437 92 506 752 547 866 869 510 984 228 104 612 202 630 360 809 56 107 566 448 940 726 146 299 941 50 319 794 670 603 365 492 728 872 829 942 451 632 373 106 909 25 306 995 735 99 568 673 75 573 383 407 56...

result:

ok correct

Test #4:

score: 0
Accepted
time: 4ms
memory: 14184kb

input:

2 10 10000000
999
60 112 959 68 586 835 91 836 634 516 272 912 781 249 655 11 466 103 934 816 904 92 576 83 687 435 871 510 758 519 842 882 339 221 2 917 5 605 477 448 323 723 744 494 941 50 668 751 670 336 365 95 877 159 829 957 451 632 591 616 909 83 452 607 735 99 22 570 755 354 172 711 742 870 3...

result:

ok correct

Test #5:

score: 0
Accepted
time: 5ms
memory: 12192kb

input:

2 10 10000000
999
373 769 355 568 586 175 588 836 203 901 272 948 781 80 655 11 292 103 934 595 904 188 865 989 698 493 871 510 893 228 842 882 339 630 2 550 829 107 477 636 385 726 146 299 764 670 668 381 631 336 365 95 974 872 829 733 678 669 373 571 183 752 452 607 735 179 22 673 755 354 383 711 ...

result:

ok correct

Test #6:

score: 0
Accepted
time: 2ms
memory: 9980kb

input:

2 10 10000000
999
688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 68...

result:

ok correct

Test #7:

score: 0
Accepted
time: 0ms
memory: 13996kb

input:

2 10 10000000
999
688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 688 68...

result:

ok correct

Test #8:

score: 0
Accepted
time: 0ms
memory: 14200kb

input:

2 10 10000000
999
158 826 595 867 47 385 664 154 455 857 622 561 166 780 801 763 33 310 605 36 199 718 762 911 419 109 947 369 861 841 902 657 172 175 461 814 473 43 90 875 62 238 669 791 68 435 405 663 756 255 628 798 745 878 257 773 652 662 832 735 75 363 129 359 230 351 667 873 602 783 988 253 58...

result:

ok correct

Test #9:

score: 0
Accepted
time: 2ms
memory: 12196kb

input:

2 10 10000000
999
279 772 39 665 622 173 514 309 407 623 288 342 100 529 202 417 132 611 186 430 634 796 454 842 92 53 977 712 975 158 654 66 822 452 6 333 596 593 91 119 242 503 190 82 97 575 663 574 75 598 299 334 31 147 382 988 702 11 801 338 164 696 573 182 899 948 507 168 331 939 442 137 581 52...

result:

ok correct

Test #10:

score: 0
Accepted
time: 3ms
memory: 14372kb

input:

2 10 10000000
999
60 208 208 208 208 175 208 875 861 208 208 370 208 208 208 208 292 208 208 949 208 208 208 752 547 208 869 510 208 208 208 612 208 208 360 809 208 107 208 448 208 208 208 208 941 208 319 794 208 603 208 208 208 208 208 208 451 208 373 106 208 25 306 208 735 99 208 673 208 573 383 2...

result:

ok correct

Test #11:

score: 0
Accepted
time: 2ms
memory: 12100kb

input:

2 10 10000000
999
60 208 208 208 208 175 208 875 861 208 208 370 208 208 208 208 292 208 208 949 208 208 208 752 547 208 869 510 208 208 208 612 208 208 360 809 208 107 208 448 208 208 208 208 941 208 319 794 208 603 208 208 208 208 208 208 451 208 373 106 208 25 306 208 735 99 208 673 208 573 383 2...

result:

ok correct

Test #12:

score: 0
Accepted
time: 2ms
memory: 14056kb

input:

2 10 10000000
999
198 236 761 86 644 189 7 741 274 656 547 36 825 827 740 333 896 832 575 37 359 456 833 590 427 837 100 60 424 237 208 742 266 543 941 906 422 423 953 787 397 337 215 469 979 51 404 546 603 168 849 472 737 135 500 701 608 696 764 695 64 590 851 194 89 278 864 314 529 165 448 414 471...

result:

ok correct

Test #13:

score: 0
Accepted
time: 2ms
memory: 14060kb

input:

2 10 10000000
999
198 236 761 86 644 189 7 741 274 656 547 36 825 827 740 333 896 832 575 37 359 456 833 590 427 837 100 60 424 237 208 742 266 543 941 906 422 423 953 787 397 337 215 469 979 51 404 546 603 168 849 472 737 135 500 701 608 696 764 695 64 590 851 194 89 278 864 314 529 165 448 414 471...

result:

ok correct

Test #14:

score: 0
Accepted
time: 0ms
memory: 14136kb

input:

2 10 10000000
999
60 112 98 509 586 175 588 875 861 516 920 370 781 249 999 649 292 308 934 949 437 92 506 752 547 866 869 510 984 228 338 612 202 630 360 809 56 107 566 448 940 726 146 299 941 50 319 794 670 603 365 492 728 872 829 942 451 632 373 106 909 25 306 995 735 99 568 673 75 573 383 407 56...

result:

ok correct

Test #15:

score: 0
Accepted
time: 4ms
memory: 12128kb

input:

2 10 10000000
999
60 112 98 509 586 175 588 875 861 516 920 370 781 249 999 649 292 308 934 949 437 92 506 752 547 866 869 510 984 228 991 612 202 630 360 809 56 107 566 448 940 726 146 299 941 50 319 794 670 603 365 492 728 872 829 942 451 632 373 106 909 25 306 995 735 99 568 673 75 573 383 407 56...

result:

ok correct

Test #16:

score: 0
Accepted
time: 0ms
memory: 12136kb

input:

2 10 10000000
999
60 112 125 509 291 175 588 875 861 516 920 370 781 618 999 649 292 45 934 949 437 92 506 752 547 866 869 510 208 991 338 612 208 630 360 809 56 107 737 448 940 726 208 291 941 50 319 794 670 603 365 618 291 159 829 942 451 632 373 106 847 25 306 125 735 99 568 673 642 573 383 338 5...

result:

ok correct

Test #17:

score: 0
Accepted
time: 4ms
memory: 12140kb

input:

2 10 10000000
999
60 112 338 509 847 175 588 875 861 516 920 370 781 249 999 649 292 618 934 949 437 92 506 752 547 866 869 510 125 291 515 612 737 630 360 809 56 107 208 448 940 726 515 338 941 50 319 794 670 603 365 125 125 515 829 942 451 632 373 106 902 25 306 515 735 99 568 673 907 573 383 291 ...

result:

ok correct

Test #18:

score: 0
Accepted
time: 3ms
memory: 14196kb

input:

2 10 10000000
999
60 736 736 736 736 175 736 875 861 736 736 370 736 736 736 736 292 736 736 949 736 736 736 752 547 736 869 510 736 736 736 612 736 736 360 809 736 107 736 448 736 736 736 736 941 736 319 794 736 603 736 736 736 736 736 736 451 736 373 106 736 25 306 736 735 99 736 673 736 573 383 7...

result:

ok correct

Test #19:

score: 0
Accepted
time: 3ms
memory: 14044kb

input:

2 10 10000000
999
60 736 736 736 736 175 736 875 861 736 736 370 736 736 736 736 292 736 736 949 736 736 736 752 547 736 869 510 736 736 736 612 736 736 360 809 736 107 736 448 736 736 736 736 941 736 319 794 736 603 736 736 736 736 736 736 451 736 373 106 736 25 306 736 735 99 736 673 736 573 383 7...

result:

ok correct

Test #20:

score: 0
Accepted
time: 4ms
memory: 14380kb

input:

2 10 10000000
999
60 825 542 207 182 175 71 875 861 275 642 370 725 600 184 242 292 978 56 949 189 839 896 752 547 479 869 510 328 592 288 612 373 975 360 809 317 107 642 448 822 742 200 947 941 614 319 794 580 603 473 760 89 872 342 160 451 326 373 106 488 25 306 39 735 99 533 673 94 573 383 473 56...

result:

ok correct

Test #21:

score: 0
Accepted
time: 4ms
memory: 12420kb

input:

2 10 10000000
999
60 702 344 961 410 175 657 875 861 502 500 370 194 97 850 849 292 681 289 949 574 375 233 752 547 708 869 510 457 80 683 612 752 653 360 809 64 107 127 448 941 704 685 448 941 535 319 794 945 603 901 318 460 388 672 460 451 946 373 106 10 25 306 318 735 99 502 673 304 573 383 227 5...

result:

ok correct

Subtask #3:

score: 0
Wrong Answer

Test #22:

score: 0
Wrong Answer
time: 5ms
memory: 12408kb

input:

3 100 10000000
999
328 852 537 953 554 506 483 192 443 912 989 346 935 232 652 528 261 899 131 531 81 686 815 543 991 810 576 639 670 572 604 842 546 322 916 97 510 160 238 696 882 214 212 194 102 964 719 255 416 260 687 148 225 664 105 100 913 600 921 203 571 406 752 189 929 716 523 809 666 589 235...

result:

wrong answer 

Subtask #4:

score: 17
Accepted

Test #27:

score: 17
Accepted
time: 26ms
memory: 16264kb

input:

4 100 10000000
999
710 227 715 954 623 585 538 236 363 913 540 3 897 998 726 919 976 843 796 69 415 705 647 707 201 696 993 545 325 375 47 260 490 385 828 162 29 278 867 593 395 219 178 518 999 685 307 772 224 187 557 89 575 524 1 157 230 341 708 978 473 995 15 179 743 416 263 640 4 851 520 719 679 ...

result:

ok correct

Test #28:

score: 0
Accepted
time: 27ms
memory: 14116kb

input:

4 100 10000000
999
714 793 831 566 274 202 861 272 583 533 805 725 138 636 832 242 737 219 191 168 939 364 439 770 290 84 581 419 991 431 892 387 487 753 368 627 900 476 934 316 854 802 898 48 741 182 950 684 121 881 996 120 917 311 386 63 377 300 734 333 789 257 797 134 668 490 649 843 795 198 462 ...

result:

ok correct

Test #29:

score: 0
Accepted
time: 24ms
memory: 14352kb

input:

4 100 10000000
999
118 434 443 62 975 789 284 936 885 652 937 50 912 733 854 532 772 709 407 312 535 589 419 247 190 474 469 905 165 889 13 159 189 746 837 603 181 335 880 513 496 897 887 442 498 656 838 342 522 93 771 816 178 541 788 215 586 794 267 297 938 853 244 255 640 654 101 470 621 232 162 8...

result:

ok correct

Test #30:

score: 0
Accepted
time: 22ms
memory: 16144kb

input:

4 100 10000000
999
418 71 357 515 696 936 943 436 645 53 344 262 706 201 896 877 732 738 433 684 891 641 264 615 32 659 990 529 219 165 81 420 22 61 35 704 233 339 201 42 816 126 522 561 960 673 452 720 99 328 222 423 804 226 266 652 291 939 981 503 209 275 653 525 812 886 693 343 881 353 218 227 28...

result:

ok correct

Test #31:

score: 0
Accepted
time: 9ms
memory: 12140kb

input:

4 100 10000000
999
388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 388 3...

result:

ok correct

Test #32:

score: 0
Accepted
time: 7ms
memory: 16380kb

input:

4 100 10000000
999
195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 195 1...

result:

ok correct

Test #33:

score: 0
Accepted
time: 19ms
memory: 12468kb

input:

4 100 10000000
999
962 472 490 254 571 779 648 83 213 290 889 914 69 311 578 495 455 361 519 832 796 230 588 172 320 357 123 142 703 590 9 669 728 63 829 749 585 11 131 478 744 657 605 614 942 267 108 587 852 148 491 757 256 450 739 16 174 556 94 810 582 426 562 482 629 699 529 152 278 176 696 443 1...

result:

ok correct

Test #34:

score: 0
Accepted
time: 16ms
memory: 16144kb

input:

4 100 10000000
999
331 37 14 256 432 435 352 197 67 971 655 165 874 457 295 488 626 393 163 563 4 429 747 656 765 513 516 290 380 444 519 302 829 781 74 981 557 880 828 200 135 213 928 711 574 487 575 477 134 239 17 349 269 751 552 853 668 558 625 789 921 553 114 677 187 775 333 379 670 314 88 472 7...

result:

ok correct

Test #35:

score: 0
Accepted
time: 15ms
memory: 14092kb

input:

4 100 10000000
999
934 685 993 853 853 853 219 485 853 283 784 756 242 853 853 163 759 277 278 853 438 853 657 412 853 853 707 13 853 853 853 853 166 715 853 853 853 853 853 724 853 392 853 858 121 853 630 853 760 974 428 853 853 853 429 853 565 226 853 853 853 179 853 853 796 308 853 853 717 466 81...

result:

ok correct

Test #36:

score: 0
Accepted
time: 14ms
memory: 12160kb

input:

4 100 10000000
999
477 839 786 681 539 786 786 786 786 786 786 786 590 321 786 786 872 161 332 786 786 786 786 822 786 786 786 786 786 170 940 134 240 786 835 786 874 18 786 786 786 786 786 957 396 327 786 786 786 414 786 581 310 772 494 786 53 786 158 786 786 786 786 107 786 780 786 602 786 786 786...

result:

ok correct

Test #37:

score: 0
Accepted
time: 16ms
memory: 14056kb

input:

4 100 10000000
999
341 29 528 986 538 636 447 736 829 779 895 91 65 935 906 951 792 365 63 225 865 698 965 968 147 943 508 920 264 573 774 461 452 746 676 131 386 288 830 350 14 34 109 15 902 634 617 203 514 929 61 904 91 612 395 341 533 451 528 343 588 561 944 885 536 693 518 374 557 909 821 692 55...

result:

ok correct

Test #38:

score: 0
Accepted
time: 16ms
memory: 14076kb

input:

4 100 10000000
999
486 941 230 676 428 764 770 818 395 249 216 478 847 572 704 736 396 224 283 532 9 246 70 902 991 567 479 750 476 119 219 365 886 388 129 717 477 474 525 891 479 783 390 20 674 327 246 301 81 141 241 540 805 600 903 205 210 519 826 337 75 292 821 889 204 943 404 681 192 151 926 389...

result:

ok correct

Test #39:

score: 0
Accepted
time: 28ms
memory: 14180kb

input:

4 100 10000000
999
389 534 84 413 146 244 857 715 990 427 543 685 100 541 123 645 388 933 312 237 97 896 219 74 353 638 968 778 341 908 577 727 199 344 709 423 248 950 280 901 969 277 686 571 613 257 620 691 326 974 653 167 317 380 398 647 409 201 272 63 295 938 507 293 13 462 443 374 298 679 842 51...

result:

ok correct

Test #40:

score: 0
Accepted
time: 25ms
memory: 16128kb

input:

4 100 10000000
999
771 450 489 19 87 441 961 683 425 538 895 731 131 513 791 827 589 971 226 463 654 509 858 70 274 351 698 777 644 746 839 142 626 209 173 728 954 906 924 541 333 381 312 892 571 816 822 451 519 56 76 500 498 103 745 447 663 983 176 753 431 741 205 473 763 456 392 199 660 899 699 72...

result:

ok correct

Test #41:

score: 0
Accepted
time: 23ms
memory: 12136kb

input:

4 100 10000000
999
316 890 806 250 616 350 615 881 411 598 168 879 486 884 191 940 138 510 426 376 412 454 609 329 904 971 250 354 382 26 966 636 772 315 440 703 15 563 388 622 137 631 298 857 567 851 771 443 892 724 134 12 552 874 331 419 200 141 928 746 974 815 460 117 340 518 290 689 250 998 239 ...

result:

ok correct

Test #42:

score: 0
Accepted
time: 23ms
memory: 14372kb

input:

4 100 10000000
999
599 130 583 659 197 404 414 397 494 129 654 573 944 517 729 217 5 243 168 50 113 206 609 475 765 879 363 968 217 876 126 850 260 629 421 999 194 855 198 514 779 602 371 833 303 237 974 433 28 788 496 220 30 8 467 219 709 518 615 70 513 146 245 269 567 886 586 399 44 143 299 402 42...

result:

ok correct

Test #43:

score: 0
Accepted
time: 14ms
memory: 14112kb

input:

4 100 10000000
999
717 490 563 276 717 717 871 809 935 717 338 717 717 717 96 717 313 717 717 649 523 717 717 717 723 717 210 410 717 812 846 282 717 717 717 717 717 811 357 444 717 110 857 747 375 728 572 717 967 717 257 150 717 132 947 718 717 201 299 717 717 486 182 717 717 544 189 204 717 717 71...

result:

ok correct

Test #44:

score: 0
Accepted
time: 14ms
memory: 12168kb

input:

4 100 10000000
999
78 867 132 224 132 71 347 299 132 132 132 132 534 827 132 7 806 656 771 132 319 132 132 932 132 132 76 490 804 132 373 132 945 132 132 852 132 132 489 132 803 65 918 530 985 132 132 654 230 30 682 182 820 132 132 132 112 70 132 132 132 814 132 540 688 132 132 132 34 844 866 300 13...

result:

ok correct

Test #45:

score: 0
Accepted
time: 26ms
memory: 14396kb

input:

4 100 10000000
999
375 500 386 299 753 439 382 948 269 694 25 408 62 60 399 845 939 654 325 686 314 781 176 199 960 494 751 727 856 447 908 870 861 624 362 463 331 87 182 947 573 651 411 787 820 454 151 161 204 624 931 322 912 85 127 267 894 643 688 25 218 407 71 786 848 697 15 719 98 246 914 516 60...

result:

ok correct

Test #46:

score: 0
Accepted
time: 27ms
memory: 14116kb

input:

4 100 10000000
999
386 628 767 683 110 693 376 418 122 929 572 507 522 625 642 939 859 453 85 886 461 153 416 752 436 399 56 996 383 70 161 828 671 501 210 50 645 153 371 518 134 639 214 723 582 730 452 610 619 592 789 619 835 121 943 813 968 349 483 997 784 868 432 365 942 626 121 539 49 623 860 55...

result:

ok correct

Subtask #5:

score: 0
Wrong Answer

Test #47:

score: 0
Wrong Answer
time: 386ms
memory: 48800kb

input:

5 100 25000000
49999
3753 28650 36024 8322 47241 9061 43764 6338 45160 16765 40294 43358 37214 37535 38561 1997 7478 9543 11661 1953 7391 41171 43559 9981 24218 13155 22152 45216 30123 1843 20703 23601 42707 6449 40356 3761 32284 34584 32674 44391 41031 324 14845 6935 37071 38330 48041 1824 41182 46...

result:

wrong answer 

Subtask #6:

score: 12
Accepted

Test #52:

score: 12
Accepted
time: 280ms
memory: 17572kb

input:

6 100 40000000
9999
3929 7460 4617 7377 498 7572 4628 3661 2404 9179 755 4076 8531 6581 1929 9419 1498 4402 6412 712 4918 2628 798 6283 9427 9775 1472 5554 2146 9972 5228 5459 8417 6778 3121 7649 1031 7691 6270 2238 4885 6121 2099 3435 4615 9962 6384 8809 9169 4553 66 1939 8589 2029 4897 7334 2867 8...

result:

ok correct

Test #53:

score: 0
Accepted
time: 274ms
memory: 21548kb

input:

6 100 40000000
9999
3234 8857 2432 8719 9275 4386 9289 1618 6926 1459 2895 7304 8659 2496 301 2247 4005 3433 3746 8039 343 7038 7370 44 558 8034 5438 2934 1311 5743 2668 8493 8081 2248 968 4448 1148 6299 4078 8794 1317 5172 9487 6794 1184 1501 4564 7710 7754 7183 381 5002 2115 9361 7406 9929 3890 53...

result:

ok correct

Test #54:

score: 0
Accepted
time: 290ms
memory: 22940kb

input:

6 100 40000000
9999
8081 4107 1424 1165 6434 2326 5528 8697 6543 826 4274 210 1640 1277 1540 9677 5665 9386 1542 7906 1765 3085 7702 9076 7876 4395 1692 1342 6072 1247 517 4487 4463 8189 4891 4829 4775 3290 6530 9093 4119 5963 6310 7673 1873 4548 5578 9671 1418 1963 7601 9038 5798 1118 5482 6226 6 7...

result:

ok correct

Test #55:

score: 0
Accepted
time: 284ms
memory: 23188kb

input:

6 100 40000000
9999
9174 4736 9411 7268 2952 5267 5779 23 1147 8846 3476 7914 3821 986 4205 4730 2131 121 8423 3176 744 5917 65 7754 9258 6318 8799 1250 6630 7761 7956 8080 821 6801 5654 2608 3970 6701 3 1884 8942 9287 5900 8552 5783 5909 902 7080 8594 2359 7709 6834 2320 8287 956 1612 1250 7600 437...

result:

ok correct

Test #56:

score: 0
Accepted
time: 98ms
memory: 22760kb

input:

6 100 40000000
9999
1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 1465 ...

result:

ok correct

Test #57:

score: 0
Accepted
time: 284ms
memory: 19040kb

input:

6 100 40000000
9999
357 5319 1775 2944 6072 3665 3858 1462 8830 846 8614 8306 8206 3558 5676 7859 7383 2797 2775 9787 1321 1706 5916 8453 4000 9607 7609 8927 9847 3445 3373 6398 3845 4067 1327 8946 7256 5523 1075 5596 8680 3301 7712 598 8365 4242 6171 2329 3430 561 1977 1197 5373 3755 1971 1242 6643...

result:

ok correct

Test #58:

score: 0
Accepted
time: 268ms
memory: 23136kb

input:

6 100 40000000
9999
4554 7212 4923 7701 8070 448 1318 6584 3789 5066 7696 8446 7693 2033 3894 9583 4798 5778 2625 8375 3885 9009 3987 1943 4381 6088 5964 1466 8795 9111 6523 5914 8424 7632 5060 4661 7326 2711 255 1636 7877 6680 6514 4396 9229 5506 851 2293 1531 4350 6984 4710 6429 3573 2287 4735 544...

result:

ok correct

Test #59:

score: 0
Accepted
time: 173ms
memory: 17208kb

input:

6 100 40000000
9999
7617 4144 7901 9289 3432 7032 8979 4975 7828 3159 3957 439 9012 6717 7783 1386 1831 4685 5586 2986 4885 1541 489 653 4863 4513 8646 4160 9692 4007 1832 5993 5062 864 9041 3997 5594 6825 6906 4472 9080 751 3325 4792 3103 2407 9794 5931 181 3669 5156 9529 3852 7514 8981 9452 8998 7...

result:

ok correct

Test #60:

score: 0
Accepted
time: 148ms
memory: 21148kb

input:

6 100 40000000
9999
3994 6487 3994 4111 3994 3994 8738 9650 3994 3994 5182 3994 5586 4590 3994 3994 3994 4094 9785 3994 2987 2547 7117 3994 3994 4999 3994 3994 7532 3994 8095 6811 3994 4805 6374 3977 8420 3994 3994 3994 3994 6961 3994 2175 3994 6268 3994 3501 3994 8893 9185 5150 3994 3994 4460 3994 ...

result:

ok correct

Test #61:

score: 0
Accepted
time: 138ms
memory: 22940kb

input:

6 100 40000000
9999
285 285 3297 285 285 1093 285 285 4987 6580 285 3418 285 285 285 285 4492 7011 7763 353 9434 144 7829 285 285 285 1653 285 4548 285 285 5979 285 285 285 285 7394 5827 285 285 1407 5822 285 285 2881 7379 285 285 5535 3196 285 285 285 285 5549 2084 8407 285 6132 3781 285 1080 285 2...

result:

ok correct

Test #62:

score: 0
Accepted
time: 148ms
memory: 18816kb

input:

6 100 40000000
9999
2767 2318 584 2192 5536 692 582 857 9987 2020 7819 9408 1766 1251 817 9074 7465 107 928 8842 366 521 604 3060 5459 9132 6755 4263 4346 6995 9572 9764 7881 9398 3271 9767 8587 3528 7867 2084 4152 6829 544 6332 8643 1096 9577 1977 4923 6183 2803 9 7413 2458 4286 6489 1638 846 2494 ...

result:

ok correct

Test #63:

score: 0
Accepted
time: 158ms
memory: 18524kb

input:

6 100 40000000
9999
4371 9578 8506 5148 3474 8924 1157 6971 8562 4600 1823 876 2177 6802 5852 7872 1233 7796 8874 5374 1123 4440 5771 8082 7659 9824 3880 9920 2950 9896 5031 979 4106 7958 7274 8750 4288 1557 9203 3919 7318 3634 3850 5689 6175 440 6941 6370 3032 862 2703 1125 7715 4440 8326 415 3040 ...

result:

ok correct

Test #64:

score: 0
Accepted
time: 273ms
memory: 21320kb

input:

6 100 40000000
9999
8842 7789 1326 381 2859 7558 6866 3637 5652 9339 6922 7974 1488 6073 4567 8848 2517 1597 9297 6023 6316 7368 2286 5647 1362 5974 1891 8785 1670 2635 836 9908 9084 680 854 1384 8367 3210 7508 5007 9239 7353 7375 1121 8822 6183 6591 3290 5144 6914 1347 1137 195 9676 3448 4135 8276 ...

result:

ok correct

Test #65:

score: 0
Accepted
time: 267ms
memory: 19920kb

input:

6 100 40000000
9999
9632 271 3201 3698 65 3359 2259 2239 2516 9166 3641 6667 2857 1510 3529 3536 5506 3803 9198 2597 1309 5360 7366 1830 7524 5921 9819 7106 6829 1852 6405 1968 8581 929 4887 9971 9711 4130 7199 772 3811 3718 8263 5700 4212 4091 3293 2016 3029 8373 9833 4522 4910 625 2215 3168 337 59...

result:

ok correct

Test #66:

score: 0
Accepted
time: 245ms
memory: 19124kb

input:

6 100 40000000
9999
4773 5137 4104 2407 2609 6097 6877 1171 1012 3650 6626 9654 5452 9181 8534 6210 9210 9492 2036 724 539 3528 2310 5966 6855 5298 2037 3981 6938 2792 4689 4672 7957 4081 404 9882 7552 9489 2682 4672 8998 3361 9839 6484 6024 1496 9319 4376 9405 4015 8180 6751 963 8873 9967 9561 7552...

result:

ok correct

Test #67:

score: 0
Accepted
time: 241ms
memory: 19296kb

input:

6 100 40000000
9999
1185 2707 4359 4381 6661 266 8795 9312 6164 1266 1122 8156 6157 2670 3356 8456 3002 1773 7159 1773 430 154 713 7505 5656 6702 1773 55 7308 7656 6821 7147 7173 1767 1975 5364 9710 6123 3860 4910 6023 6269 1690 7475 7237 3356 8717 3390 6703 206 1773 4734 1199 9807 8733 3356 8079 35...

result:

ok correct

Test #68:

score: 0
Accepted
time: 158ms
memory: 21404kb

input:

6 100 40000000
9999
3680 8089 3680 3680 3341 3680 3680 3680 8076 3680 3680 3680 4130 3680 1984 4199 3763 3680 3680 3680 3680 6039 3680 2172 3680 3804 821 4557 6504 646 3680 3680 9483 4191 7948 3680 3680 3680 495 1970 3680 3680 3680 3680 3680 3680 1675 186 3680 3680 5798 246 3680 9885 767 3680 3680 4...

result:

ok correct

Test #69:

score: 0
Accepted
time: 160ms
memory: 19128kb

input:

6 100 40000000
9999
1833 3850 2091 4 6941 9623 6050 3162 3162 3162 6778 3162 3162 3162 3162 3162 3162 4978 1604 1758 9437 3162 871 3162 3162 7189 7029 9865 4110 212 3162 3162 3162 3162 6202 7989 7928 3042 3162 3162 7651 3162 3162 8138 4352 6684 3162 3162 3162 4917 9673 5217 3162 3162 3162 9569 3162 ...

result:

ok correct

Test #70:

score: 0
Accepted
time: 283ms
memory: 19176kb

input:

6 100 40000000
9999
648 2437 9020 3230 6528 6342 2218 1806 3571 1125 522 4151 6688 881 7548 3923 8187 4195 8904 1845 5479 9459 1473 514 1061 1868 9611 8445 8610 796 8957 2307 9362 4209 9394 2678 3105 6365 4524 8708 7984 2086 77 3625 1426 5239 8018 5578 6484 4215 81 2007 3420 4674 219 5890 6214 8493 ...

result:

ok correct

Test #71:

score: 0
Accepted
time: 286ms
memory: 20900kb

input:

6 100 40000000
9999
4676 1272 9040 7942 4662 302 5373 9068 8537 8466 2215 4712 7262 3206 3264 4653 6903 778 4057 6798 3398 1672 2665 4980 4994 3724 8418 4461 4959 3995 4089 9018 188 7296 8191 8678 2925 4227 3455 1987 1175 1167 7774 9324 7483 1488 3357 6785 2005 8361 9651 5696 7508 4712 1955 6728 490...

result:

ok correct

Subtask #7:

score: 19
Accepted

Test #72:

score: 19
Accepted
time: 436ms
memory: 26568kb

input:

7 50 40000000
29999
12447 18709 13054 17585 8337 14953 7985 1930 24383 1787 2543 26860 12198 2842 14256 8665 17034 6429 14773 8646 27093 6362 29357 18001 10667 8445 6671 21435 27163 14604 19875 745 20772 6696 16391 15560 16789 10983 6199 23133 13 13688 14547 8390 4398 21653 14460 690 24385 5358 2213...

result:

ok correct

Test #73:

score: 0
Accepted
time: 469ms
memory: 27396kb

input:

7 50 40000000
29999
18853 1170 5099 2983 22508 7615 3898 29334 11896 15475 25483 2740 17820 23902 1599 5947 24111 13870 1288 20548 4348 4969 667 24779 21291 13020 29038 21388 12182 14773 27707 18344 10290 23557 20131 708 567 12618 15853 20725 22483 17361 26356 20441 19667 11940 29712 13980 13544 221...

result:

ok correct

Test #74:

score: 0
Accepted
time: 434ms
memory: 25964kb

input:

7 50 40000000
29999
20280 25956 11258 14987 29660 27319 22202 21134 20288 22872 17199 29372 6706 1647 7845 1415 20253 23538 9292 1777 2078 18478 25820 2348 12758 3145 10532 15160 11372 10092 18898 1937 26444 24986 12037 15875 1507 19187 14731 4054 23232 5572 989 1732 11339 5294 27598 3247 22275 1580...

result:

ok correct

Test #75:

score: 0
Accepted
time: 483ms
memory: 24196kb

input:

7 50 40000000
29999
20450 14417 17450 16007 1997 2043 29165 24152 16307 4097 5876 22181 28340 9886 5138 12468 1348 6881 29796 7362 7994 5221 14804 10861 20089 1908 7168 22191 15533 21039 8546 16783 22671 10888 16236 8831 24638 5748 8770 23147 9905 13837 19069 26009 24232 11425 5143 18199 13890 18681...

result:

ok correct

Test #76:

score: 0
Accepted
time: 136ms
memory: 23828kb

input:

7 50 40000000
29999
16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 16575 1657...

result:

ok correct

Test #77:

score: 0
Accepted
time: 134ms
memory: 25048kb

input:

7 50 40000000
29999
23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 23282 2328...

result:

ok correct

Test #78:

score: 0
Accepted
time: 459ms
memory: 26140kb

input:

7 50 40000000
29999
9445 14439 9890 21490 24735 11276 13210 14997 3326 3916 16163 18185 15635 27474 8717 3480 22796 16276 11495 21479 20376 16381 21309 6442 8143 29348 20826 28071 23656 17571 24518 12317 21709 25292 29527 4169 28601 7061 26735 19262 8618 5400 1989 29402 11033 16723 12954 20366 20971...

result:

ok correct

Test #79:

score: 0
Accepted
time: 367ms
memory: 26064kb

input:

7 50 40000000
29999
11521 13614 18358 15111 20309 9964 12529 14687 24068 7408 14362 15322 17394 8622 18676 27296 7642 22161 4579 24480 7061 3729 12383 22951 10030 18292 2246 11146 26292 6210 19408 13734 24844 18172 1007 9268 6963 27605 9033 14065 11026 23649 14857 1993 1921 15373 10640 23766 18412 2...

result:

ok correct

Test #80:

score: 0
Accepted
time: 226ms
memory: 22332kb

input:

7 50 40000000
29999
5726 5726 5726 16385 5726 5726 6687 7020 5726 2153 5726 5726 25008 5726 5726 5726 5726 5726 5726 5726 23441 5726 5726 8456 25578 5726 5726 5726 3916 5726 18687 21281 25580 23108 21795 5726 14231 5726 20471 5726 4939 5726 5726 20440 5726 5726 8300 5726 5726 5726 8310 5726 20895 86...

result:

ok correct

Test #81:

score: 0
Accepted
time: 228ms
memory: 24940kb

input:

7 50 40000000
29999
25918 5568 2669 18538 25918 25918 27839 20019 25918 9793 12084 25918 9476 25918 25918 155 24879 25918 19820 26380 25918 25918 15891 25918 25918 25918 25090 28472 25918 1777 10222 25918 25918 20171 25629 25903 25918 25918 25918 25918 25918 10962 22017 19879 15802 25918 25918 20633...

result:

ok correct

Test #82:

score: 0
Accepted
time: 262ms
memory: 23028kb

input:

7 50 40000000
29999
7498 19278 20252 16181 2138 9746 13208 19462 21238 1268 9756 15251 1696 11463 24439 28942 5009 3487 24970 26510 26369 3503 25553 29108 16163 24442 22770 396 2075 7690 14937 14845 13323 9220 28308 16382 17978 14691 6545 8962 22504 22837 11319 28650 27877 25471 6398 10358 25144 190...

result:

ok correct

Test #83:

score: 0
Accepted
time: 218ms
memory: 24872kb

input:

7 50 40000000
29999
27323 12501 4959 24504 19986 13461 28936 6479 4013 17384 21806 19818 1167 3546 1923 14285 7794 15331 16974 11950 11202 121 534 23499 6781 11127 12704 5231 25964 23266 7508 5451 5599 15654 6370 6732 25364 15332 19949 4909 27266 14238 13317 21652 26541 26152 6284 24377 5002 4249 98...

result:

ok correct

Test #84:

score: 0
Accepted
time: 428ms
memory: 27492kb

input:

7 50 40000000
29999
21044 6643 21321 11056 4934 867 7572 9691 4862 21237 751 29133 25622 26464 29892 1592 27839 16297 10576 22221 12600 27395 23880 26845 265 20398 23700 23288 8520 24995 1886 399 1283 3526 24296 28202 1196 23533 6955 23562 29726 7972 328 15929 3929 6536 22777 11828 1779 19043 26160 ...

result:

ok correct

Test #85:

score: 0
Accepted
time: 416ms
memory: 27552kb

input:

7 50 40000000
29999
11303 734 2438 4376 22588 16441 8490 1628 3849 21435 19776 19968 15237 24223 26408 4388 17534 2690 26778 8213 10142 1726 3447 9150 4680 29427 22743 14130 23793 3315 1075 27357 24672 10850 4188 16536 24622 27468 10715 14827 24821 20736 21834 11522 7429 2047 24611 16771 14276 3180 ...

result:

ok correct

Test #86:

score: 0
Accepted
time: 385ms
memory: 27112kb

input:

7 50 40000000
29999
13587 23253 12852 2807 29273 11749 12443 4007 6649 11946 17563 21524 15205 10689 18244 9323 13898 11760 1472 2620 17746 5556 12470 7591 21201 18766 3047 26290 23522 17399 2271 5700 15563 4611 3047 12639 3047 5246 27743 26956 20939 27684 28384 844 24485 12716 29648 13387 10454 137...

result:

ok correct

Test #87:

score: 0
Accepted
time: 415ms
memory: 25804kb

input:

7 50 40000000
29999
15035 9027 18574 3651 5463 4653 26387 23128 25738 6368 19970 2766 6282 25432 15739 1619 20766 4901 334 29523 6436 26659 88 84 26183 18659 15379 25489 14125 16404 1641 22916 3860 16406 14146 24870 19788 22002 16406 19970 19539 12436 15727 25607 22413 28027 9466 25186 9516 22113 26...

result:

ok correct

Test #88:

score: 0
Accepted
time: 437ms
memory: 26112kb

input:

7 50 40000000
29999
28279 22586 12283 2128 10390 27510 3403 3223 2392 16843 22949 27537 21181 9144 10631 17434 6827 29052 12095 4547 18107 9293 18156 13271 13992 1532 19591 13329 12087 18938 7821 26592 26273 6003 25898 18041 19348 18883 27792 10309 10968 10256 27477 25224 11594 9990 3633 9167 22075 ...

result:

ok correct

Test #89:

score: 0
Accepted
time: 456ms
memory: 25912kb

input:

7 50 40000000
29999
27890 27943 28984 4189 798 15376 6357 26763 19389 15581 14065 553 28321 2846 20299 11133 7282 7598 22447 1789 13653 4591 105 22952 18223 25101 7937 16237 8400 27945 28240 9422 24210 4214 10312 11001 25244 7881 29300 16264 1497 7155 17445 2729 13580 5966 22784 14280 19457 3991 207...

result:

ok correct

Test #90:

score: 0
Accepted
time: 455ms
memory: 25108kb

input:

7 50 40000000
29999
13504 23802 6317 2972 25444 25357 10818 8558 26395 2096 3228 8684 1613 12397 1599 1519 4853 8761 2106 16624 29081 13543 11896 17404 23686 7677 23731 2839 13686 26812 289 5067 13072 29398 10888 11541 13630 20774 7469 24902 26785 16602 2335 18319 4303 10259 768 5354 10050 27985 244...

result:

ok correct

Test #91:

score: 0
Accepted
time: 497ms
memory: 25308kb

input:

7 50 40000000
29999
1088 5219 22465 13157 2342 1293 3338 22745 23653 26156 11614 25002 28544 10164 23652 6032 17597 26924 12672 19529 22161 7003 12623 23414 5314 19875 2167 29260 677 26074 2425 4042 28126 7205 29707 909 27880 5213 14749 6906 14105 23975 26223 6410 25832 24811 9182 12536 22197 9112 1...

result:

ok correct

Subtask #8:

score: 12
Accepted

Test #92:

score: 12
Accepted
time: 824ms
memory: 35620kb

input:

8 100 50000000
29999
8375 16777 16700 20953 11899 14682 20874 25860 28858 23241 5089 8044 25448 17746 5605 3087 9145 20179 1080 22944 27383 8384 19943 15371 27572 7882 23028 10474 18744 20202 15687 17001 7543 18709 23165 15713 17032 29011 22353 17455 26045 3484 20330 15159 21274 382 23927 20114 6303...

result:

ok correct

Test #93:

score: 0
Accepted
time: 830ms
memory: 35124kb

input:

8 100 50000000
29999
2128 17426 4451 448 11336 9326 20418 11167 17068 16547 3028 15925 15221 13503 28580 15199 5211 12929 8917 20639 7369 8551 24669 18017 16860 24191 25504 3855 340 20167 1085 4938 9413 5852 360 24570 23604 7723 20560 28875 12900 6532 26883 13473 19780 21660 13299 12284 71 17164 165...

result:

ok correct

Test #94:

score: 0
Accepted
time: 954ms
memory: 31784kb

input:

8 100 50000000
29999
7901 20661 29659 9428 14430 5189 29584 7154 9898 15802 16383 1877 4240 17890 19420 10730 7183 8795 23011 25809 9784 13484 6981 1228 8077 8089 22029 10153 19195 21336 1228 13868 16736 59 5374 17694 14052 58 18608 16275 19728 13890 17558 3178 24685 18860 9053 11152 1503 9853 13508...

result:

ok correct

Test #95:

score: 0
Accepted
time: 851ms
memory: 34376kb

input:

8 100 50000000
29999
1042 19160 15752 27895 21073 26710 20832 5703 6325 8917 18186 4790 20214 24043 9012 9993 16807 20448 15650 16490 16138 5011 13246 25803 18444 16775 10905 27059 6174 8773 22769 2230 15634 27940 2662 14278 9677 9762 303 7329 21813 5916 747 3426 20555 2608 10365 27645 17517 846 993...

result:

ok correct

Test #96:

score: 0
Accepted
time: 266ms
memory: 31312kb

input:

8 100 50000000
29999
15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 15852 158...

result:

ok correct

Test #97:

score: 0
Accepted
time: 268ms
memory: 33104kb

input:

8 100 50000000
29999
21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 21519 215...

result:

ok correct

Test #98:

score: 0
Accepted
time: 875ms
memory: 33328kb

input:

8 100 50000000
29999
22096 18242 19774 25964 19646 14137 18605 27300 11016 10931 21359 4972 19954 9390 17308 5624 18535 2292 18139 24192 18946 21601 29600 5474 22479 11136 10364 1187 7544 14004 9737 19215 25881 20592 9957 7707 27161 20176 10187 7052 17560 9108 6740 29141 27036 28832 438 16084 2338 1...

result:

ok correct

Test #99:

score: 0
Accepted
time: 818ms
memory: 33672kb

input:

8 100 50000000
29999
26911 14830 14402 7547 15211 4836 10285 10737 1061 23133 9157 4638 8796 5476 7097 21695 20685 7068 6750 6639 2195 6622 5121 15158 1342 18410 20000 19472 25589 3250 7277 18112 7645 12265 17876 2506 8055 553 28639 25664 27641 24598 10924 25822 18706 12253 23612 646 724 17847 14890...

result:

ok correct

Test #100:

score: 0
Accepted
time: 466ms
memory: 33368kb

input:

8 100 50000000
29999
901 11264 11264 11264 27062 11264 11264 16958 11264 11264 20763 29283 11264 11264 11264 2123 11264 19512 17777 7597 21590 11264 11264 11264 24107 11264 13821 11264 11264 11264 11264 946 12038 1605 11264 11264 29938 6626 18952 11264 17470 1046 18178 11264 26064 11264 11264 26869 ...

result:

ok correct

Test #101:

score: 0
Accepted
time: 457ms
memory: 34156kb

input:

8 100 50000000
29999
14736 16410 3994 3994 20328 3994 3994 3994 3994 3994 6267 3994 9329 3994 3994 3994 3994 3994 3994 21025 9683 3994 9700 24535 3994 3994 3994 3994 14514 3994 3994 29720 3994 3994 3994 3994 3994 9222 3994 3994 1503 3994 3994 3994 3994 3994 3994 11437 28435 900 11580 3994 10042 8294...

result:

ok correct

Test #102:

score: 0
Accepted
time: 463ms
memory: 32148kb

input:

8 100 50000000
29999
5371 24990 15681 351 18608 21624 20892 7007 29803 21644 14974 5516 26287 3187 23802 26824 28998 25627 7762 4957 29132 25602 21742 25093 16619 5899 6630 21110 6326 22493 19728 6887 29896 17669 27333 21049 28515 3716 11586 2484 2958 7122 19358 25195 16701 8871 8140 2724 11013 1197...

result:

ok correct

Test #103:

score: 0
Accepted
time: 471ms
memory: 32832kb

input:

8 100 50000000
29999
23314 25291 8007 28410 976 2676 29952 17887 5997 28913 20522 7126 12524 7761 20247 25446 13511 5262 12724 24574 24949 24066 6591 9773 23207 18220 16473 14021 27084 27117 27778 10289 5416 20161 9119 4343 18313 15790 12647 18564 5068 16412 27986 24409 2636 9857 24396 9807 17840 97...

result:

ok correct

Test #104:

score: 0
Accepted
time: 867ms
memory: 34588kb

input:

8 100 50000000
29999
16323 16655 2479 1219 15021 13051 15710 20454 22126 8598 15000 21795 24160 10760 27468 20551 1890 9794 25952 2659 15142 19645 26892 18131 16559 29930 3173 5472 1972 15277 28840 12018 21952 24344 19211 7593 2186 4945 15581 499 23021 2354 7441 19877 18964 3820 21957 14995 21469 80...

result:

ok correct

Test #105:

score: 0
Accepted
time: 765ms
memory: 35800kb

input:

8 100 50000000
29999
523 14861 21779 14297 20158 9028 8779 2824 29957 19757 15502 5747 16237 29379 19350 14999 1908 2569 11743 23819 22454 15271 4987 10369 12364 16606 27129 1007 28475 16495 29126 23308 26520 17452 4178 4836 19475 29110 21791 15447 11569 18316 2632 14011 16861 19963 25739 28528 2803...

result:

ok correct

Test #106:

score: 0
Accepted
time: 791ms
memory: 35068kb

input:

8 100 50000000
29999
11488 1695 7751 1094 10402 13633 7036 11847 29005 1320 2546 28909 6387 11242 19253 20384 20835 20968 2379 8499 10799 14417 11401 9815 14192 831 29248 13981 24708 18809 16634 19503 26211 1241 3130 28814 14076 22043 1445 8473 11242 21515 8875 1022 16988 12418 16384 21049 1346 2394...

result:

ok correct

Test #107:

score: 0
Accepted
time: 814ms
memory: 34876kb

input:

8 100 50000000
29999
16358 11702 1462 216 3468 26077 5313 15288 3224 25033 8539 20370 177 10229 275 15437 27830 9703 23348 9897 25228 23403 9941 29862 3804 2504 13438 2504 16100 25074 22840 8539 18037 29092 25962 22019 17718 18560 24884 10238 15068 22929 29976 1472 18318 6212 15039 3969 10108 23032 ...

result:

ok correct

Test #108:

score: 0
Accepted
time: 868ms
memory: 33104kb

input:

8 100 50000000
29999
17611 7148 9876 21564 8378 26021 15070 23405 18998 22549 19059 9141 25105 17084 24172 15464 10383 16453 9421 16827 4052 27949 10362 21372 5996 18002 2474 4455 16620 1238 7139 9697 19160 9628 20261 3022 14508 12901 5048 17279 20917 27789 25092 13653 6770 8382 14477 5841 3135 1809...

result:

ok correct

Test #109:

score: 0
Accepted
time: 781ms
memory: 34104kb

input:

8 100 50000000
29999
15282 22592 11732 28573 15953 18158 24278 18736 2649 5629 22172 8158 11599 5621 3270 6487 12353 18496 5522 23186 26446 11918 13619 15687 18671 4230 29901 14244 25564 21540 3780 29972 15564 20767 21922 13553 10326 27957 23711 20348 13361 3748 4178 28746 3338 27872 9671 791 17470 ...

result:

ok correct

Test #110:

score: 0
Accepted
time: 913ms
memory: 33376kb

input:

8 100 50000000
29999
5046 8651 6277 14595 24235 12862 10997 20229 15673 17315 23908 17655 15750 5465 9712 11843 14435 20494 19045 20335 26581 15988 7707 2430 18792 14447 26872 18868 17411 6144 4862 21477 6927 26783 17772 2865 4660 15617 17788 5261 23179 12481 12938 20650 13620 2469 6593 11709 16894 ...

result:

ok correct

Test #111:

score: 0
Accepted
time: 811ms
memory: 34272kb

input:

8 100 50000000
29999
15652 6420 15476 29806 28086 13132 25372 14885 807 3153 29281 1458 20871 1190 11525 24939 2929 19120 10982 21120 29634 14915 13486 19448 21497 8858 7904 20977 1298 1179 4195 25084 15448 18804 21051 18962 18707 14304 13475 8865 11038 7678 20638 15876 10607 15937 2928 18141 2972 6...

result:

ok correct