QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#152945#5447. 鸽子AbdelmagedNour#24.992315 177ms41840kbC++201.6kb2023-08-29 01:20:542024-07-04 01:52:18

Judging History

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

  • [2024-07-04 01:52:18]
  • 评测
  • 测评结果:24.992315
  • 用时:177ms
  • 内存:41840kb
  • [2023-08-29 01:20:54]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
//#include "grader.cpp"
int pigeon_num(int Taskid, int k){
	if(Taskid==0){
        return 1;
	}else if(Taskid==1){
        return 1024;
    }else{
        return 128*(2*k+1);
    }
}

std::string send(int Taskid, int n, int k, __uint128_t msg){
	if(Taskid==0){
        return "1";
	}else if(Taskid==1){
        string s=string(msg,'1');
        s+=string(1024-msg,'0');
        return s;
    }else{
        string s="";
        for(int i=0;i<128;i++){
            if((msg>>i)&1)s+=string(2*k+1,'1');
            else s+=string(2*k+1,'0');
        }
        return s;
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

class Init{
public:
	Init(){
		//you may do some initialization for RECEIVE function here
	}
};

__uint128_t receive(int Taskid, int k, const std::string &msg){
	const static Init init;
	if(Taskid==0){
		__uint128_t hi = 5281683694948011861llu;
		__uint128_t lo = 3195384480471073102llu;
		return hi<<64|lo; //this value equals 97429867398990605044182047185430790478
	}else if(Taskid==1){
        __uint128_t res=0;
        for(int i=0;i<1024;i++)res+=msg[i]-'0';
        return res;
    }else{
        __uint128_t res=0,one=1;
        for(int i=k,bit=0;i<msg.size();i+=2*k+1,bit++){
            if(msg[i]=='1')res+=one<<bit;
        }
        return res;
    }
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 5ms = 1ms + 4ms
memory: 4120kb,4244kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0 1
0...

result:

ok Accepted using 1 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 58ms = 0ms + 58ms
memory: 5664kb,22804kb

input:

encode
1 20 1000 429620070
0 0 720
0 0 312
0 0 746
0 0 460
0 0 449
0 0 778
0 0 877
0 0 951
0 0 40
0 0 836
0 0 436
0 0 440
0 0 694
0 0 3
0 0 124
0 0 123
0 0 812
0 0 848
0 0 569
0 0 46
0 0 144
0 0 930
0 0 703
0 0 830
0 0 198
0 0 1023
0 0 291
0 0 804
0 0 356
0 0 122
0 0 77
0 0 162
0 0 337
0 0 461
0 0 3...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
1 20 10000 1024
141 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

ok Accepted using 1024 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 25ms = 3ms + 22ms
memory: 4596kb,9228kb

input:

encode
2 1 1000 436825046
0 0 600068
0 0 609400
0 0 1024294
0 0 791018
0 0 906125
0 0 350192
0 0 938169
0 0 978316
0 0 498345
0 0 859442
0 0 990072
0 0 996124
0 0 1013379
0 0 383142
0 0 355230
0 0 636760
0 0 138612
0 0 1014140
0 0 116388
0 0 286851
0 0 689038
0 0 996312
0 0 872409
0 0 137655
0 0 165...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
2 1 10000 384
713 492595408995304 0 0 0 0 0
757 2047378612218243584 0 0 0 0 0
908 3074549704946614440 0 0 0 0 0
656 15415880346246675456 0 0 0 0 0
884 2270596102373714944 0 0 0 0 0
185 3458671974052528128 0 0 0 0 0
280 3033068998860559848 0 0 0 0 0
307 15419482142647866688 0 0 0 0 0
96 341072...

result:

ok Accepted using 384 pigeon(s).

Subtask #4:

score: 3.6233
Acceptable Answer

Test #4:

score: 3.6233
Acceptable Answer
time: 19ms = 0ms + 19ms
memory: 4688kb,9236kb

input:

encode
3 1 1000 387247419
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
0 0 5
0 0 6
0 0 7
0 0 8
0 0 9
0 0 10
0 0 11
0 0 12
0 0 13
0 0 14
0 0 15
0 0 16
0 0 17
0 0 18
0 0 19
0 0 20
0 0 21
0 0 22
0 0 23
0 0 24
0 0 25
0 0 26
0 0 27
0 0 28
0 0 29
0 0 30
0 0 31
0 0 32
0 0 33
0 0 34
0 0 35
0 0 36
0 0 37
0 0 38
0 0 39
0 0 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
609 14988529427372048384 0 0 0 0 0
210 2023873802026352640 0 0 0 0 0
545 14988718612091502592 0 0 0 0 0
19 18162454347231789056 0 0 0 0 0
715 18061790389806825472 0 0 0 0 0
725 16381350152817868800 0 0 0 0 0
542 3457920269279035392 0 0 0 0 0
412 287676016132882432 0 0 0 0 0
203 ...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #5:

score: 3.6233
Acceptable Answer
time: 26ms = 2ms + 24ms
memory: 4848kb,9228kb

input:

encode
3 1 1000 713192400
4398046511103 8796093022207 8796093022207
4398046511103 8796093022207 8796093022206
4398046511103 8796093022207 8796093022205
4398046511103 8796093022207 8796093022204
4398046511103 8796093022207 8796093022203
4398046511103 8796093022207 8796093022202
4398046511103 87960930...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
105 2255749259452219391 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615
724 18062426646262054911 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615
428 1816223018429867...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #6:

score: 3.6233
Acceptable Answer
time: 32ms = 4ms + 28ms
memory: 4596kb,9216kb

input:

encode
3 1 1000 645075111
4246499090569 7193484617445 1510706984766
4246499090569 7193484616421 1510706984766
277774756708 6376504105378 5077007084953
277774756708 6376504105378 5077006036377
2169844955743 2934781145354 222052734700
2169844955743 2934781145354 153333257964
1832565011110 407610944436...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
705 3074447266408659624 864667677218045909 4804214902472660906 12256534657803310591 11542722913633850704 213210709263826260
753 2252292418549633024 480775062152019971 9367065012465931614 9511097614981391189 6817462478684621820 9221151036134129663
318 752040183607104 605452669751...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #7:

score: 3.6233
Acceptable Answer
time: 32ms = 4ms + 28ms
memory: 4592kb,9132kb

input:

encode
3 1 1000 796959971
757876296036 803151227108 5906999289291
757876427108 803151227108 5906999289291
414948469704 2976884394850 4112975556107
689826376648 2976884394850 4112975556107
2550229927214 632225161890 3388963947500
2550229796142 632225161890 3388963947500
3575646418173 3779536410297 44...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
944 238682877749416833 11623792789965873155 4739647182726762040 15388737254562923840 504403164699574271 10808920031027556807
37 15366294941981126487 11635823331915096016 12129320521024186378 9229376997055015445 6053025503445688362 13645906046499864491
254 18021048378713189055 18...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #8:

score: 3.6233
Acceptable Answer
time: 31ms = 2ms + 29ms
memory: 4596kb,9084kb

input:

encode
3 1 1000 693059695
4048401499258 4987348031799 3275997589762
134993019813 7423310534504 8175994939428
2365792583990 619504649447 278990350194
2186070068696 87980415538 8540777555842
312290816283 4681173122127 3515380653989
1091271851038 7859252399813 5032803532911
4224470394765 5800962600676 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
313 48119030055086760 851203825996900992 1540184801292190462 9271410250030765399 17690112998867031087 6314098629696029439
718 18158526754497062384 4539824109005979423 17420204822369402943 18442248187575533441 13907099843852853023 9223618869514076212
604 8779282309967 13906128287...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #9:

score: 3.6233
Acceptable Answer
time: 27ms = 2ms + 25ms
memory: 4684kb,9156kb

input:

encode
3 1 1000 996974621
1465918033995 8457101583533 2732887869300
2047477281607 457558740065 82047769421
3369612178778 5142868648775 7112435514295
1676953693797 8303977116040 3379317631238
1270351245252 8087071185611 3752267838689
1099073829021 3918060109511 196597372399
1805633566742 231697456066...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
353 15035359718124040000 6904202997535014864 26975405589141408 425590348395577512 768452668118704133 18446368774973734144
34 18205814496881008640 12501396150534144 9196384860569075200 2305772844701974655 13934139398426699525 9225623775666110968
152 432253024861432322 12381873119...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #10:

score: 3.6233
Acceptable Answer
time: 28ms = 4ms + 24ms
memory: 4548kb,9392kb

input:

encode
3 1 1000 467567359
1075396360258 2757333265695 4398049088394
3728381695575 7402391548472 4514883918814
1374799011090 7647171217921 190123995147
44790216706 5313744955794 3750821258544
3674429288572 5398376745208 3178068241044
1260815866700 2230538451318 1717701836490
1044427370366 52834961469...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
668 18411278022258139031 13835060248340944901 10373196767903580920 2256246101269085310 6123886137994251232 8070700678673104191
107 3026420595639201623 18338658049166341503 18420138193007454302 9223385208092709032 11848292191349376 1702782770120140800
653 283738888328650560 37486...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #11:

score: 3.6233
Acceptable Answer
time: 32ms = 4ms + 28ms
memory: 4852kb,9416kb

input:

encode
3 1 1000 598036788
3547997613716 7162316100081 8474994690705
4217635124842 180044937399 6937652241686
408564532613 557239564866 425308736666
2835923397344 4287732741367 456253791399
3227938616436 6128713171348 7177177432788
1374104573980 5915479646691 6151311367707
3059957757246 6306455341132...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
251 5911155257473538 18352168114316443984 189203227877573281 5765358142662903125 108083498484522629 4638706894612332448
708 3452853333157477055 18338845331932488016 1513578923585176235 18445911399412880704 768449821349532719 18233526790326802431
837 1873559911225883648 635007544...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #12:

score: 3.6233
Acceptable Answer
time: 20ms = 4ms + 16ms
memory: 4620kb,9136kb

input:

encode
3 1 1000 28894740
1443566967277 1002989687681 1829524951402
2602826929142 3747227685123 5901648707775
4033961264703 2505460965674 954993702922
197504067048 6474213203300 591897838873
397555092326 6176213152642 6542025690412
3023274830786 7743011454513 4574767952956
970089917475 7440994416681 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
918 14988822902486599054 12508048102760451 4753580730020036600 16375557186834596751 17942224608258184575 4755749254578618304
410 6262635729190925 563088526244773845 5622744067531079231 14994733861701163543 13848431385045371872 12109022643179487648
250 3452009317675302890 1153090...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #13:

score: 3.6233
Acceptable Answer
time: 28ms = 4ms + 24ms
memory: 4620kb,9092kb

input:

encode
3 1 1000 153075579
2304211383706 293736539527 7132134054812
1741814038249 7432048048225 3566201720196
3995524894037 6019268388144 2122308190778
991763611900 7426700545379 6238866569725
1785152478736 8261949307035 7941066811713
1698097536347 6572651164624 728515473256
2495922753108 73793558276...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
862 16381386245579223017 17870285251900209402 25050734445985696 427843598567276567 13844063282668781562 12810101563093019384
228 18392797755467538318 4099947296538493157 17308512044449562613 9222528711214706574 576445325225492476 9199727649184841216
287 15222264595168088983 1833...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #14:

score: 3.6233
Acceptable Answer
time: 24ms = 4ms + 20ms
memory: 4888kb,9092kb

input:

encode
3 1 1000 894332930
2955022174032 3761127475788 6784502660817
1358878196429 7041902343860 5015929060416
285458360642 2724603455779 7746008164623
2279314129864 6384657611867 2131794287371
257082688144 5238759256510 2566576491022
2169514347865 3464239198787 8180660151008
2545389745640 3215011118...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
720 18414655943543882626 18376352239082015743 16733155208816498680 1908690611239060290 18374809899105384784 12699733032760766475
823 6650029934544362 17690136398553849898 12132696663304568064 3404825244739818984 1685957992685951 18257586292491550036
886 2251862898563361982 64007...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #15:

score: 3.6233
Acceptable Answer
time: 32ms = 4ms + 28ms
memory: 4600kb,9212kb

input:

encode
3 1 1000 870750617
2049300775717 3418691816781 170555247826
2138475130880 5872645360995 1575658908453
640612892047 8076474179327 4264407368088
887395543201 1149225882701 2807256545780
944441053874 6589872600342 4383690630196
2114663508024 5302653587328 6229477040546
3336805585458 774686815837...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
767 1877531415743037314 11636191174723636223 17311830431722590200 2018078811765597169 17933472285512037587 18304876288356941323
352 562042376822656 7456892153613061 18320221561304351431 2252300297630810127 18382570802735325408 1150700492177801127
950 6651312378740904 14809913278...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #16:

score: 3.6233
Acceptable Answer
time: 23ms = 3ms + 20ms
memory: 4688kb,9392kb

input:

encode
3 1 1000 247578299
632583137590 7703348930412 784707894348
632583137590 7703348930412 784707894349
632583137590 7703348930412 784707894350
632583137590 7703348930412 784707894351
632583137590 7703348930412 784707894352
632583137590 7703348930412 784707894353
632583137590 7703348930412 7847078...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
522 3410724857931892223 11530718811549837952 213211520836435969 8844236813464764607 12382058198715769168 13808082728786412192
280 379135068362245631 11530718811549837952 213211520836435969 8844236813464764607 12382058198715769168 13808082728786412192
526 3079710285320160767 1153...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #17:

score: 3.6233
Acceptable Answer
time: 27ms = 3ms + 24ms
memory: 4616kb,9392kb

input:

encode
3 1 1000 274474902
3167682591029 7992474326625 3651930268966
3167682591029 7992474326625 3651930268967
3167682591029 7992474326625 3651930268968
3167682591029 7992474326625 3651930268969
3167682591029 7992474326625 3651930268970
3167682591029 7992474326625 3651930268971
3167682591029 79924743...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
387 16190910355903078400 193755035817212 8070866215408500646 9476349319320706175 17934442247785152559 9349503621202476999
558 402571886741409792 123386291108092 12682413694833917862 9458053444762873023 17934442247785152543 4737817602707980235
684 3030148490914684928 193738090362...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #18:

score: 3.6233
Acceptable Answer
time: 28ms = 4ms + 24ms
memory: 4616kb,9420kb

input:

encode
3 1 1000 18588105
3133225748585 1596243425390 5250091065049
3133225748585 1596243425390 5250091065050
3133225748585 1596243425390 5250091065051
3133225748585 1596243425390 5250091065052
3133225748585 1596243425390 5250091065053
3133225748585 1596243425390 5250091065054
3133225748585 159624342...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
304 15035267356020441109 6904021476546993797 6338106192620284576 432241479940569768 6064867656611638266 1705316159088187307
390 18445992007800193045 6904021476546993797 6338106192620284576 432241479940569768 6064867656611638266 1705316159088187307
760 14993995881401810965 690402...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #19:

score: 3.6233
Acceptable Answer
time: 24ms = 0ms + 24ms
memory: 4848kb,9140kb

input:

encode
3 1 1000 845512879
1567990344849 585423451066 7710202686455
1567990344849 585423451066 7710202686456
1567990344849 585423451066 7710202686457
1567990344849 585423451066 7710202686458
1567990344849 585423451066 7710202686459
1567990344849 585423451066 7710202686460
1567990344849 585423451066 7...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
159 3408387665215095617 18445813618369888511 10754547523193356967 18442790418880398208 4036212356894685184 143699023880814132
86 16422437630802134401 18445813618336334079 10250161957181031079 18442790350158562688 4036143089805424640 143696549979520312
870 15419574707077514562 18...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #20:

score: 3.6233
Acceptable Answer
time: 26ms = 3ms + 23ms
memory: 4688kb,9216kb

input:

encode
3 1 1000 51521257
1711052453544 163643731485 4994453213835
1711052453544 163643731485 4994453213836
1711052453544 163643731485 4994453213837
1711052453544 163643731485 4994453213838
1711052453544 163643731485 4994453213839
1711052453544 163643731485 4994453213840
1711052453544 163643731485 49...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
532 18445911216552412669 758290695313689221 16933112489347951349 9216720541658992640 12009604028105082 12297783281926669044
263 3032343092825949693 758290695313689221 16933112489347951349 9216720541658992640 12009604028105082 12297783281926669044
45 35966245467587581 79432045413...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #21:

score: 3.6233
Acceptable Answer
time: 26ms = 3ms + 23ms
memory: 4880kb,9200kb

input:

encode
3 1 1000 695519242
2535264499835 7394105938009 7092345870659
2535264499835 7394105938009 7092345870660
2535264499835 7394105938009 7092345870661
2535264499835 7394105938009 7092345870662
2535264499835 7394105938009 7092345870663
2535264499835 7394105938009 7092345870664
2535264499835 73941059...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 384
171 3452853336322854912 6809466093448983599 16744007381766068212 53210340843836759 18352165183803624106 212841352276874507
612 18393452921536368640 6809466093448983599 16744007381766068212 53210340843836759 18352165183803624106 212841352276874507
971 2301340388806086656 45396528...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Subtask #5:

score: 1.36901
Acceptable Answer

Test #22:

score: 1.36901
Acceptable Answer
time: 25ms = 4ms + 21ms
memory: 5356kb,14112kb

input:

encode
4 2 1000 104801283
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
0 0 5
0 0 6
0 0 7
0 0 8
0 0 9
0 0 10
0 0 11
0 0 12
0 0 13
0 0 14
0 0 15
0 0 16
0 0 17
0 0 18
0 0 19
0 0 20
0 0 21
0 0 22
0 0 23
0 0 24
0 0 25
0 0 26
0 0 27
0 0 28
0 0 29
0 0 30
0 0 31
0 0 32
0 0 33
0 0 34
0 0 35
0 0 36
0 0 37
0 0 38
0 0 39
0 0 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
14 1873440270381481984 0 0 0 0 0 0 0 0 0
808 1774143670267904 0 0 0 0 0 0 0 0 0
841 16862009193782026240 0 0 0 0 0 0 0 0 0
76 58489674640916480 0 0 0 0 0 0 0 0 0
756 26507026306404352 0 0 0 0 0 0 0 0 0
19 18388252666451984384 0 0 0 0 0 0 0 0 0
955 18402271002424729600 0 0 0 0 0 ...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #23:

score: 1.36901
Acceptable Answer
time: 36ms = 4ms + 32ms
memory: 5064kb,13884kb

input:

encode
4 2 1000 66331895
4398046511103 8796093022207 8796093022207
4398046511103 8796093022207 8796093022206
4398046511103 8796093022207 8796093022205
4398046511103 8796093022207 8796093022204
4398046511103 8796093022207 8796093022203
4398046511103 8796093022207 8796093022202
4398046511103 879609302...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
712 18444945225483329535 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615
538 17454967543024599039 18446744073709551615 1844674407370955161...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #24:

score: 1.36901
Acceptable Answer
time: 37ms = 5ms + 32ms
memory: 5076kb,13848kb

input:

encode
4 2 1000 12437286
3164361319777 6786891624731 227951509421
3164361319777 6786891624731 227951508397
1230006084290 4045001029920 8621280727007
1230006084290 4045001029928 8621280727007
4046842697365 1390215476350 5393775095343
4046842697365 1390215476478 5393775095343
4097065576578 85543456262...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
186 18446182635560762112 8994020147351309 18315009390851260064 68119138083536897 18444826523853594670 9799295694861763071 9223387018103095317 18086667202236601344 2033130143742 1116927858673942559
192 17582598852777083391 18446475792871916159 18440129407467945990 182688518884284...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #25:

score: 1.36901
Acceptable Answer
time: 45ms = 5ms + 40ms
memory: 5152kb,14116kb

input:

encode
4 2 1000 831242687
2670751381596 6623724975677 5092794651405
2670751381596 6623724975677 5092794127117
1139436948020 3121545543053 885256774465
1139436948020 3190265019789 885256774465
974698645962 3392494041520 6639045777535
974698645962 3392494040496 6639045777535
2184536160052 917915127054...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
653 864691127934125296 9222879463779737599 18446737476646076415 14987979563110232577 17328162517277473878 10205157579316658124 8725739065048397 3458770977740220543 16144276754054457919 18445113772843499440
923 1827802332581836 936748695420928831 17978827095354749951 109527545171...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #26:

score: 1.36901
Acceptable Answer
time: 46ms = 5ms + 41ms
memory: 5316kb,13920kb

input:

encode
4 2 1000 803182167
1426439266935 7147157177216 7945335051695
607249308402 1447808532116 3736648115736
207234513439 5004460544995 5537073429154
3074118080154 4079481191752 3706576729333
975146501509 7461545836951 5502998616237
3030364550217 4251411057338 6934111764745
1020239981246 33761119032...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
464 18446744073655077298 7853390651254938431 3912516456406417408 226875971293151024 3743335715275117312 1774145307750400 887071835133952 14519605198642904684 18446515591867849215 14813294486817238271
387 18446686953247473664 935862515249485849 3459221477939740671 111798516002920...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #27:

score: 1.36901
Acceptable Answer
time: 42ms = 2ms + 40ms
memory: 5160kb,13844kb

input:

encode
4 2 1000 991085096
563753021851 4784678900190 3335506497405
1644840097098 5351993830124 231790270157
671666314877 2993478336278 4903634741739
3843280623293 5733732638419 3778094461242
4305486882696 2994888978439 4760928801966
632426533134 5845320353043 4547375939696
1935637722766 306974945046...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
889 18401734465206616079 17942340923765817109 18446533207861325942 230811674557286398 54008012229051345 9223371240809940223 9239119242408740864 251826641376673792 65535 18392811738835714135
368 18420707638363787264 641024 12466199070365257539 12682242035189540353 183938267437868...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #28:

score: 1.36901
Acceptable Answer
time: 46ms = 5ms + 41ms
memory: 5088kb,13824kb

input:

encode
4 2 1000 805069258
3326421976718 3625496974456 1828193797217
1065612397495 5942441121524 4539471530132
2525415247779 6676587972998 2521601996734
2365770894474 8404715583823 4641885655005
818212274148 2502581781005 7593117904883
3101233769607 1680947096591 5400949677747
760263215344 2483586456...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
138 1829585658263116 935861650685165542 453751522955001843 7311202787000313 12966711217362988284 13835113497322980990 7825919146203283481 3927138874631290867 7259802599539343158 9109826845443779736
218 25193384804352511 9232098448326742015 13835065737912129532 5629497501235201 1...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #29:

score: 1.36901
Acceptable Answer
time: 41ms = 5ms + 36ms
memory: 5088kb,13780kb

input:

encode
4 2 1000 645417977
2004661301788 8305084308581 7644592639657
1753411802060 8128520264301 5913333382220
273811111551 3017605920161 1213137986977
503199548839 6496884379990 1792439764221
1282564453374 7519802584808 1460238637289
2186643520750 7786551400276 1522926324983
2484806968152 5269299725...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
385 16630020956991048114 6918415261903944921 3472943829730983935 18446737143249757903 14699752648967195903 18444916271324147713 10621738827826528256 14973343293818012051 7486671437318055625 9226920432265961471
673 1814950649883183489 10621712026359037145 18432107821583977484 182...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #30:

score: 1.36901
Acceptable Answer
time: 42ms = 5ms + 37ms
memory: 5080kb,13840kb

input:

encode
4 2 1000 185343146
1478720025915 3075643605492 6970909005046
1312075357012 5361785272194 8235932608943
3008983260685 7314822992164 7133191994541
4105205953227 6142229368998 6606851662014
1069656976274 1155535082911 7285720569718
1806146471357 7230378573782 8187177095087
4042494159151 75859574...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
586 1816780237177278463 17539241053972883430 14987979559875804780 11179630271601518080 3633449590272925695 16575074429418473087 18446743208273614873 3459207617429536364 18439647499035076102 9109937509676982168
795 25165780 421961209479160 4503468623527936 2078769936447 173838082...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #31:

score: 1.36901
Acceptable Answer
time: 42ms = 5ms + 37ms
memory: 5012kb,14112kb

input:

encode
4 2 1000 29604663
1371036480781 4889043449636 7723873546637
32044687684 5517188585754 1114662443016
965930312361 4258588579758 6716222248695
1339896583368 3799297789470 1471023232170
184296716854 8606997530794 906346322433
1613210366866 1547107939122 409322094349
3444207503641 4064011960589 6...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
229 18444971605131053490 6918442955007891456 14987979559875791872 7493982640091637455 14816842770562572391 18446742288693512627 18417499235543941094 14987536010449406976 7089867546371584 114240924049408
874 1871667857639210956 935862516093838553 3927125027656728160 7493768221372...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #32:

score: 1.36901
Acceptable Answer
time: 37ms = 5ms + 32ms
memory: 5088kb,13916kb

input:

encode
4 2 1000 713687453
2383867188749 7057439171668 7628477556170
4115168701479 3052137979956 8157903548674
1644862632766 3976177853114 2122216960597
3079626480602 6610931908901 3022623848174
165634141718 3104656224912 774808611371
4027407955150 6122686031528 7528652348904
3762003432157 6948539156...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
175 58489674695440819 17510023046010791935 17978369712476225939 7089657743933232 3743335715278315623 16631737980199241293 10592494882986852377 3926695771881065875 226869047799260678 9219712865643893504
664 58546741011546113 10621739721126903807 3458778374753734035 23418696425768...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #33:

score: 1.36901
Acceptable Answer
time: 38ms = 2ms + 36ms
memory: 5152kb,13816kb

input:

encode
4 2 1000 260896627
3172912227189 2469961514725 8682356929489
1787732982182 6079564684574 3342761373868
1898890950377 2827440158445 2343608444745
4359234975989 2621421141815 3301614944521
2646411140702 8719064543979 4136930809142
496415326337 6287785164698 6464256243721
2877009541956 407864720...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
811 16575076161929478092 29272532115561254 453751942573096959 18212778444897379840 3633557009233505432 56718992770412544 29273396706319142 454180779589008992 7318349394264271 18443084902396329983
56 576460203084479275 17676628262563040839 14046867738905673728 5764537154390717503...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #34:

score: 1.36901
Acceptable Answer
time: 36ms = 4ms + 32ms
memory: 5016kb,13780kb

input:

encode
4 2 1000 505721487
80192402644 864317530628 3128268922446
80192402644 864317530628 3128268922447
80192402644 864317530628 3128268922448
80192402644 864317530628 3128268922449
80192402644 864317530628 3128268922450
80192402644 864317530628 3128268922451
80192402644 864317530628 3128268922452
8...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
232 1871724976462102526 6946801559756643135 3926695325204905580 18219646550823403520 3629904872967762788 15651782904561141324 907503884300190502 14534227617316339699 7486893205481118006 5589922341674024960
918 17451998311088128 8460011496276222207 14050992002854682442 1834083911...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #35:

score: 1.36901
Acceptable Answer
time: 36ms = 4ms + 32ms
memory: 5068kb,13876kb

input:

encode
4 2 1000 1003007062
1782849581023 728320270385 7922299235072
1782849581023 728320270385 7922299235073
1782849581023 728320270385 7922299235074
1782849581023 728320270385 7922299235075
1782849581023 728320270385 7922299235076
1782849581023 728320270385 7922299235077
1782849581023 728320270385 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
750 864666252002877412 9223091015861862374 6909647962379196406 72057490960806912 1098468850688 1554585334791036888 279489655995629567 18090959703143213183 14537617398134379515 1125899848171488
182 1871724978152355405 11528301118676074470 14973343293831230451 234186957291775488 3...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #36:

score: 1.36901
Acceptable Answer
time: 35ms = 4ms + 31ms
memory: 5084kb,14044kb

input:

encode
4 2 1000 675725573
1437082497085 456885847788 31252739935
1437082497085 456885847788 31252739936
1437082497085 456885847788 31252739937
1437082497085 456885847788 31252739938
1437082497085 456885847788 31252739939
1437082497085 456885847788 31252739940
1437082497085 456885847788 31252739941
1...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
432 18446686899157730943 18445857866466000089 17978383573395800064 6972719097 12966707863689990912 56717207861669938 7825918252878175039 18432107374934216083 7266892473417341433 9336920798192102552
396 18420664207629353471 18446049181958799111 18050431510199762944 3755114494 172...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #37:

score: 1.36901
Acceptable Answer
time: 40ms = 4ms + 36ms
memory: 5348kb,14108kb

input:

encode
4 2 1000 126767270
1245962653741 2691797900845 8133405178197
1245962653741 2691797900845 8133405178198
1245962653741 2691797900845 8133405178199
1245962653741 2691797900845 8133405178200
1245962653741 2691797900845 8133405178201
1245962653741 2691797900845 8133405178202
1245962653741 26917979...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
826 18446686900795265023 18446715514323690688 14534228050033869215 11186941258022725120 3746991424738954395 2796733637723605426 6946801532711770943 3912502176291336812 10959850868439521785 9223482812756921496
379 25593686238079 18446722098509008640 14747029489070145887 162489873...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #38:

score: 1.36901
Acceptable Answer
time: 37ms = 4ms + 33ms
memory: 5320kb,13920kb

input:

encode
4 2 1000 880983702
2279931903967 6541908512490 6184273749181
2279931903967 6541908512490 6184273749182
2279931903967 6541908512490 6184273749183
2279931903967 6541908512490 6184273749184
2279931903967 6541908512490 6184273749185
2279931903967 6541908512490 6184273749186
2279931903967 65419085...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
999 56718940369323597 10620824928351394623 3459221910657695328 7486893198713503737 12970252577621041155 2738188627583829630 6946802424373837823 17993006411251974143 18439425731083101897 12966818531306897511
335 31498809113050625 4203688040087937407 11529672442905624352 403140452...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #39:

score: 1.36901
Acceptable Answer
time: 40ms = 4ms + 36ms
memory: 5016kb,13844kb

input:

encode
4 2 1000 477333384
4004115610927 5230001698956 5641579845491
4004115610927 5230001698956 5641579845492
4004115610927 5230001698956 5641579845493
4004115610927 5230001698956 5641579845494
4004115610927 5230001698956 5641579845495
4004115610927 5230001698956 5641579845496
4004115610927 52300016...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 640
689 48133157321687807 4899424088227235840 136234335203229884 70032299519901757 3096175855098114 9196351934678196208 28565840068607 11665460896280346438 18338660981187539968 1693355023291940863
98 16630019280263444914 7853363849786595328 453738108697969043 227090389794291913 9227...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Subtask #6:

score: 1
Acceptable Answer

Test #40:

score: 1
Acceptable Answer
time: 56ms = 6ms + 50ms
memory: 6004kb,22916kb

input:

encode
5 5 1000 711903075
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
0 0 5
0 0 6
0 0 7
0 0 8
0 0 9
0 0 10
0 0 11
0 0 12
0 0 13
0 0 14
0 0 15
0 0 16
0 0 17
0 0 18
0 0 19
0 0 20
0 0 21
0 0 22
0 0 23
0 0 24
0 0 25
0 0 26
0 0 27
0 0 28
0 0 29
0 0 30
0 0 31
0 0 32
0 0 33
0 0 34
0 0 35
0 0 36
0 0 37
0 0 38
0 0 39
0 0 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
551 18446744007070465544 4467570847003172864 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
274 25849793259892288 3697111203840 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
855 18446744007102972407 13909331199601664000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
408 14361296000 154107435160698...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #41:

score: 1
Acceptable Answer
time: 68ms = 7ms + 61ms
memory: 6004kb,22816kb

input:

encode
5 5 1000 791198466
4398046511103 8796093022207 8796093022207
4398046511103 8796093022207 8796093022206
4398046511103 8796093022207 8796093022205
4398046511103 8796093022207 8796093022204
4398046511103 8796093022207 8796093022203
4398046511103 8796093022207 8796093022202
4398046511103 87960930...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
370 18413289233406099456 11186991173468159 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 1844...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #42:

score: 1
Acceptable Answer
time: 70ms = 7ms + 63ms
memory: 6024kb,23004kb

input:

encode
5 5 1000 535217819
3574057992359 4693833240049 463843292570
3574057992359 4693833240049 463843293082
2224581939326 2871155568889 472434410278
2224581939326 2871155564793 472434410278
891165833039 7350590981033 2367089640277
891165833039 7350590983081 2367089640277
3237831868001 4921476337187 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
60 18446744073709551615 18446744057049776129 17312390851019670496 9506962473936764664 4610594736493821951 17888007723723784176 9074825781519048955 16212958658529720257 558446353794958335 13974669644251266947 17258373764597547007 18446607663467855864 4537446993319948412 85256421...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #43:

score: 1
Acceptable Answer
time: 75ms = 7ms + 68ms
memory: 5960kb,22916kb

input:

encode
5 5 1000 110074396
2968020431340 38984439043 7275650730137
2968020300268 38984439043 7275650730137
1185947152669 8770585115014 2990225539406
1185947169053 8770585115014 2990225539406
3258847114832 4181426866311 7556487401761
3258847123024 4181426866311 7556487401761
951573334697 4098135621266...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
273 18446744073709535735 13979173226706378750 1116892707589915679 8939783732223540999 13835058588394979265 17852831739636909024 139684120799723520 34938081484210175 18446744073709551119 9225555666947538943 17329271107181608960 66606579215 18446709954489352193 173298513619567257...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #44:

score: 1
Acceptable Answer
time: 72ms = 7ms + 65ms
memory: 6288kb,22816kb

input:

encode
5 5 1000 400304125
2156827574045 5407530234022 3227929724972
3693626111528 4595861400898 209273779787
92376227684 2666552272197 8123808387370
109086633168 6770077943846 2404536236556
2133788303408 5944552740164 6210620276521
381439508678 8477426294036 4585666874388
2778847816527 216266566829 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
966 18416344776234200448 262143 18446744073709551615 17618082966276292058 158329674356992 170573809053530624 47609446531071 18433490766706769919 12434948297888628736 2430633566393073663 18410715452241097215 18429322586845347835 7509116311163634299 2161728843339759616 2017124679...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #45:

score: 1
Acceptable Answer
time: 79ms = 7ms + 72ms
memory: 5956kb,22904kb

input:

encode
5 5 1000 898188916
3878446307109 2396812392805 7101232002678
3881061351875 572883397645 885364698700
3003131767797 3767454439383 1825722117276
2643936216100 5232352415318 5006988551046
929309205322 3315389050860 2530814119358
1384100499309 453690506315 2024419621034
3710839897486 181225812081...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
287 18446744007070465544 4467570847003172865 17312390851021703167 18442378945974779640 4610594203641315327 18446471253161114640 8935141660703072007 18411805992229408767 18446739808808043519 18446743008004538243 16140901331052201951 576324342029189127 13909331182950027139 184467...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #46:

score: 1
Acceptable Answer
time: 75ms = 3ms + 72ms
memory: 6296kb,23088kb

input:

encode
5 5 1000 500454374
3312790545165 4557461412414 7180280654085
1922567612595 4597750034542 8761274881778
1575944042691 7747642172296 4842659453140
3197757136485 5464257420615 743307696075
1902328569801 5878792039013 4223197164876
3289342996616 3753252022410 8067764853368
1264408740396 807007851...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
39 18446744073707587839 720575943432732671 17295228063453069343 18446743939009392675 18446398827098275839 18277859140289691648 41658283402196624 5153089682288 1711367481575879680 316659254427668 18446744073709551612 13835113580618317824 261892 3170534137668391239 18446743738853...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #47:

score: 1
Acceptable Answer
time: 76ms = 7ms + 69ms
memory: 6256kb,22832kb

input:

encode
5 5 1000 930865139
909024793026 5633250233978 1332163280805
3474760071737 2015997535219 2127496234497
2579761482170 1874432151955 4332144410332
3639396157914 5308015461843 7171592353847
2785493575599 1920767525047 2697360050233
3532892093207 1867251199260 1107121348016
2189508091185 434345299...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
343 18167375832077581832 4537446976660176896 17460510937056224 9506962472896545031 16071095270271487934 1152921371393720304 9074825748215775231 18411823043509618750 4264902524927 18446744073188933632 1118018340938381344 17870419798254387207 13909297097041240064 1746051093908790...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #48:

score: 1
Acceptable Answer
time: 71ms = 3ms + 68ms
memory: 6288kb,22960kb

input:

encode
5 5 1000 105331868
1221991789537 2784871244705 7549310962661
2007825932327 6143229357921 704857807653
226215068463 3412096137518 5362855844359
3267646524610 7655426147107 3903753025114
3824279079955 2959338746126 6281427644685
1035910540483 5387336353026 3491616008000
585764946760 13031552144...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
549 136476848259079 13979139140789460992 8529803017184 9506962472896036864 62 1152921504606815200 68205120855812 2233802474785865727 558446355875397104 9223370970629144700 2305297101690566719 18446744007070449671 13979173226698244096 4162911200 18442376813524533759 162117986737...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #49:

score: 1
Acceptable Answer
time: 67ms = 7ms + 60ms
memory: 6024kb,22904kb

input:

encode
5 5 1000 712057975
1283979386558 2609422068442 5285193667955
756524240173 3368701023121 1369187775744
168245944855 6336603892336 7168943311456
3564637026654 3440693096145 4466745678963
3577984468520 3043241172299 1720380983588
4056958796356 6275759978846 8562610527000
3935114052347 5539740755...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
147 18351053564536127487 18425914927293988864 3422733312546218255 18446743712982583347 13600906025777751061 11351925371818737665 6917529023919603711 14123288431433875456 6178129976475254783 18050655902914060284 35964002605462530 16140852136228422399 18442384233885335552 2013262...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #50:

score: 1
Acceptable Answer
time: 81ms = 7ms + 74ms
memory: 6100kb,22948kb

input:

encode
5 5 1000 622225847
3497369552679 2767458853429 5246462616862
2215456413244 6637798977651 2480057975510
1145522644021 6633348800256 7785783111836
739572316904 3739623167821 4635647760209
2239007143165 4521276479650 5092531650674
2078929325187 1123870503901 821408880249
3014496347660 6431665589...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
148 4392679636989 6355142024173190220 6701356245527298047 17474243459450667007 18446154820839499264 14942201 7493989779944505344 4029666138337050560 510774295551 17883794508940877211 4752313555619938316 13258597265937266240 10159510257664 2040693579991040 1855342547175473152 16...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #51:

score: 1
Acceptable Answer
time: 79ms = 7ms + 72ms
memory: 6084kb,22828kb

input:

encode
5 5 1000 731098172
1677991285089 3707368468273 342406967541
2338031201397 446210047252 5713965210034
152118072003 5566436451294 5122703555139
3867380872582 1462447917661 2994773719172
4333383201887 7379835531150 2597887481777
641313233377 2883824405889 2499326469948
3228625904946 633428176499...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
408 18167239421835886088 4467604932911955969 17312382325381597183 9506962473936764416 533112815553 17852559052301598735 9511602379703197947 16178020577053642751 18446739808807027184 9221189472467025920 545907393036319 296956167036321295 18376867927400906750 1116901233230022655 ...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #52:

score: 1
Acceptable Answer
time: 75ms = 7ms + 68ms
memory: 6020kb,23008kb

input:

encode
5 5 1000 175009391
1018901702544 3575263163726 1556803598696
1018901702544 3575263163726 1556803598697
1018901702544 3575263163726 1556803598698
1018901702544 3575263163726 1556803598699
1018901702544 3575263163726 1556803598700
1018901702544 3575263163726 1556803598701
1018901702544 35752631...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
402 13506412378324991 18446741051861779159 18446740990527012529 1394180743731399 4377498837825093631 18446667107915786435 10367571115714495807 8070450534085033983 11385100235756847020 1544356674263842802 4611738219773287424 122428558171176959 18443368298131111936 213 1759132402...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #53:

score: 1
Acceptable Answer
time: 73ms = 6ms + 67ms
memory: 6084kb,22792kb

input:

encode
5 5 1000 26325440
3424931987370 8043695849576 2037732278383
3424931987370 8043695849576 2037732278384
3424931987370 8043695849576 2037732278385
3424931987370 8043695849576 2037732278386
3424931987370 8043695849576 2037732278387
3424931987370 8043695849576 2037732278388
3424931987370 804369584...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
166 18273944410768733824 5359078998016 180223 18446743734407244730 360456204084223 18446685799607562531 12393895249200545791 8070450532247929255 13548428567798349824 92920 2305891354976190466 16076166217897345024 3935432261762880 263297115 15213300278745729551 12925418707985602...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #54:

score: 1
Acceptable Answer
time: 75ms = 7ms + 68ms
memory: 6288kb,23092kb

input:

encode
5 5 1000 907208564
3762363875476 2024970990243 3520251812416
3762363875476 2024970990243 3520251812417
3762363875476 2024970990243 3520251812418
3762363875476 2024970990243 3520251812419
3762363875476 2024970990243 3520251812420
3762363875476 2024970990243 3520251812421
3762363875476 20249709...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
381 18167375898716667896 4537446993311821699 18429283562772496383 9506962472896545031 16071095270271614913 17294095522864268256 139752292617297671 18411823051831373824 8730257549983216 4751298673101250304 1117472966527879135 297092577278001159 13979173243349888899 1844673554806...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #55:

score: 1
Acceptable Answer
time: 65ms = 6ms + 59ms
memory: 6024kb,23016kb

input:

encode
5 5 1000 276723199
2890978670427 5304738912554 5296974444905
2890978670427 5304738912554 5296974444906
2890978670427 5304738912554 5296974444907
2890978670427 5304738912554 5296974444908
2890978670427 5304738912554 5296974444909
2890978670427 5304738912554 5296974444910
2890978670427 53047389...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
982 18446744073709551608 4467604932920090623 18446735548069445631 18442376813524533511 13835058588394852224 558736483198894080 139684120815984888 34921030199932865 567176609263485455 9225555666426920960 266426316832 17870283388045214199 13979139124137824131 18429275037130357728...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #56:

score: 1
Acceptable Answer
time: 72ms = 3ms + 69ms
memory: 6260kb,22944kb

input:

encode
5 5 1000 717493508
544191931388 7395963008496 606133336307
544191931388 7395963008496 606133336308
544191931388 7395963008496 606133336309
544191931388 7395963008496 606133336310
544191931388 7395963008496 606133336311
544191931388 7395963008496 606133336312
544191931388 7395963008496 6061333...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
567 85237585136192878 12682141773352714559 18446740956855042048 828662331311623144 4611686018427387946 7773213039765751775 18422255750740766288 0 9763803992139235044 10623815769831505912 9952955176488796159 18395520025991118848 0 15131252994504392624 5142600721320857600 1981583...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #57:

score: 1
Acceptable Answer
time: 60ms = 7ms + 53ms
memory: 6024kb,22756kb

input:

encode
5 5 1000 79034960
1066466211968 6080920718470 2307407471363
1066466211968 6080920718470 2307407471364
1066466211968 6080920718470 2307407471365
1066466211968 6080920718470 2307407471366
1066466211968 6080920718470 2307407471367
1066466211968 6080920718470 2307407471368
1066466211968 608092071...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 1408
2 18167375832077565952 34119212064768 17469040742105087 9502597346202500608 533112815615 17887734903175315471 9511534174566088707 16178020585379461182 2081455104 4472073363753271420 1188370309242159072 17870283388045214192 69842060407996415 18446735543904501760 8944146728547270...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Subtask #7:

score: 1
Acceptable Answer

Test #58:

score: 1
Acceptable Answer
time: 62ms = 0ms + 62ms
memory: 6288kb,22816kb

input:

encode
6 7 1000 618359561
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
0 0 5
0 0 6
0 0 7
0 0 8
0 0 9
0 0 10
0 0 11
0 0 12
0 0 13
0 0 14
0 0 15
0 0 16
0 0 17
0 0 18
0 0 19
0 0 20
0 0 21
0 0 22
0 0 23
0 0 24
0 0 25
0 0 26
0 0 27
0 0 28
0 0 29
0 0 30
0 0 31
0 0 32
0 0 33
0 0 34
0 0 35
0 0 36
0 0 37
0 0 38
0 0 39
0 0 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
287 18446744073709551615 18326835733630839835 17877038720847183872 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
709 18375247213489549312 34911641633022 18303196199273889792 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
631 18446744073695117617 18446744073634316...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #59:

score: 1
Acceptable Answer
time: 82ms = 4ms + 78ms
memory: 6260kb,22824kb

input:

encode
6 7 1000 963145103
4398046511103 8796093022207 8796093022207
4398046511103 8796093022207 8796093022206
4398046511103 8796093022207 8796093022205
4398046511103 8796093022207 8796093022204
4398046511103 8796093022207 8796093022203
4398046511103 8796093022207 8796093022202
4398046511103 87960930...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
128 18446744073709551615 18446744072644165377 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 1...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #60:

score: 1
Acceptable Answer
time: 86ms = 8ms + 78ms
memory: 6084kb,22828kb

input:

encode
6 7 1000 379899771
4129154388645 7176964400535 681528072488
4129154388645 7176964367767 681528072488
4326044618039 7899397033929 2799696336628
4326044618039 7899397033929 2799696320244
3600506131201 7310829483401 42098213051
3600506131201 7310829483403 42098213051
2857486474248 4960267306436 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
627 1618481116086271 18250556015033188351 18230601905153769472 969724 292628422662815743 18093501378893674584 5291114495 4655628858151365596 1152921504606847721 18446741943405791095 18446138242802647046 8501710436654120959 18446744073709550168 2375648803437914881 10808639105688...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #61:

score: 1
Acceptable Answer
time: 90ms = 8ms + 82ms
memory: 6000kb,22856kb

input:

encode
6 7 1000 522524894
2322447211607 5399107409573 7363157453891
2322447211671 5399107409573 7363157453891
3078056273631 7232754012656 8791138899322
3078056273631 7232754012657 4393092388218
3848510722931 592391727717 5436709718104
3848510722931 592391726693 5436709718104
1952449397777 2758003613...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
428 18375245031578535920 1161893245693657088 558569219948544 8323583 18446744073709547551 13835127878565494783 18446744073709551584 4575657766886177792 285996168524070911 13870945023891079167 18444509796829757439 18410994552644042752 0 7 17298361078228418815 1844674407370955161...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #62:

score: 1
Acceptable Answer
time: 92ms = 4ms + 88ms
memory: 5956kb,23008kb

input:

encode
6 7 1000 48272751
2062414128330 7495157981650 4641994530339
3534201123281 2526341319313 501726249120
1903046134961 6352616488247 8376657310653
39004661029 1212410409551 8692706041506
1037182881908 684700520785 2248228120600
120911301601 8258926923892 6459381357183
1603549253305 2984245164153 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
584 2181911017456 2305808097572060929 142989288169533456 2296765990970589183 18303745989447520224 2323716670234885634 285978576338026496 17874760532753923 18156279489663844352 4261675004 574191497742647295 18446744073709551615 17874751736661409792 9151877384246919175 1729836107...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #63:

score: 1
Acceptable Answer
time: 80ms = 9ms + 71ms
memory: 6092kb,22860kb

input:

encode
6 7 1000 249678103
4103185220504 4250478558214 2763498567302
3280792168879 4710470704443 8203941123310
4306095510703 7134716015185 7427349368959
1887698562197 4620506264378 3836638614196
2234320794615 2027609146142 1659740199251
3011180842709 485981056681 7597045465464
3616635120379 627095109...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
740 71499042131015695 16140901064495890177 143547874435661823 18446743800962351104 4363955204127 16123027401343893505 18159648324839268384 4593531436446777852 290464583779352576 139642304987139 17874786852846698559 9259681200782703608 580946623379521663 9151598099637205007 1844...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #64:

score: 1
Acceptable Answer
time: 92ms = 8ms + 84ms
memory: 5992kb,23020kb

input:

encode
6 7 1000 1000690120
1307949810595 2976967260492 6673392767864
3252745431186 5893544760884 8012798774669
3394927031820 6800140094294 8236984502335
4119865901883 2588450658670 8656412787796
801131260317 5962203649480 6685205008630
3215071792117 8163302212045 3355572768107
984910658015 252970422...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
355 18446743972249796607 18446744073709542752 824129320736784379 6088866696206077951 18446742714631282687 18446744073376511819 11286325230911181376 13763000444675857324 13957000200888255655 16105153742453649653 15208989347309186932 16717361816799281163 18433797444237863221 1492...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #65:

score: 1
Acceptable Answer
time: 90ms = 12ms + 78ms
memory: 6000kb,22812kb

input:

encode
6 7 1000 525626337
4368177976263 4297245566448 1488160185846
821700421701 3600321199561 2384695383366
775053646473 8392810541945 6684683995193
3312571886853 5952439973623 3098902549890
334950800011 8035269183885 4394146201843
3582869874866 1347914161951 6995697314888
1655610574528 54658967448...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
430 18446741891731947520 1143984674096283647 18446744056662851599 16149978355486162943 18446739709887516703 16123027403474665981 18159648324839268415 18446743528215150592 285987440613654528 139642304987136 0 35749521065508863 18446726618421428223 9294866680939542543 18442275519...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #66:

score: 1
Acceptable Answer
time: 90ms = 8ms + 82ms
memory: 5996kb,23008kb

input:

encode
6 7 1000 671642030
2725185712531 8287031153418 2168001911516
42180464211 8415647569490 7011443191176
1456741816579 6573676380351 5894036118213
1878311534883 5357783419471 4042768830739
3330548673030 8475609299195 6478334521337
111829624275 2664958288490 783177279095
1629993756818 749185387300...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
61 18375245031578535920 2305808098637447167 18446744073709551600 2287828610704211968 4363822030848 2287969348192502268 1040416 4593531436446777344 285987440880001087 13799310733239910396 574191429555847231 9295429630859410424 1152921504074153856 18446464789099317232 44686901331...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #67:

score: 1
Acceptable Answer
time: 94ms = 8ms + 86ms
memory: 6084kb,22820kb

input:

encode
6 7 1000 714310700
3399285342196 2131813727775 3574919175759
693021286815 1602089810507 7516515999839
3960118063172 726977278309 1798928144745
3767941837204 7298695589988 8621339884667
2875300645854 4878081346468 7596442354273
2978865913521 947246253599 5763842742283
3411892386923 82077816703...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
888 308796858368 129193513911844864 1279022294173220863 18446325197225236480 1268625964498 3774966923264 1130377393068834816 376777 11603506847734038527 18446740500362794264 5 12393905565110353876 4662771740392418642 2655997880241750011 9970969593653444937 12086289209358401160 ...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #68:

score: 1
Acceptable Answer
time: 91ms = 8ms + 83ms
memory: 6020kb,23088kb

input:

encode
6 7 1000 461300612
725425529391 4652484046177 6556279836547
4365645457046 1395283792020 713846736954
4314584863798 7519042796100 6421081411030
558963142230 5821645669542 6621773351165
4073558392493 52776970461 2991744437775
3072399285427 8304777644491 5738093007523
3421756419281 287114582459 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
680 18446741891798534159 17284885737526722560 17046179808 8937107527500033 18158518061513043999 16122957580191464963 18446744073709551615 18428869313176797692 576460752303423487 18446604427142889472 68184719232 1090988801031 17293840024923537407 18446464789099317239 17298361214...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #69:

score: 1
Acceptable Answer
time: 99ms = 9ms + 90ms
memory: 6300kb,22884kb

input:

encode
6 7 1000 336835934
2757207542626 2257222291912 8218773069248
2083963673170 7830719682208 6769908871065
451718913121 7217074850493 4298702984378
951152278488 8553867212999 4343294711377
2312304358705 3301336951864 406364525144
1374586517735 7784561000690 7546597166448
2056467527536 25833544533...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
277 18440072346673872297 4620691433473240416 14271 18446022794082706943 18408551437807124480 3152355131392 10895594532527669248 1163228 9223372036935892784 42786464184344 14609458424304018176 171 11529215045909905408 215022847570054719 18446744069515247616 260370391040 80737219...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #70:

score: 1
Acceptable Answer
time: 83ms = 8ms + 75ms
memory: 6004kb,22824kb

input:

encode
6 7 1000 192911013
4382373901410 8565950446177 2071323137310
4382373901410 8565950446177 2071323137311
4382373901410 8565950446177 2071323137312
4382373901410 8565950446177 2071323137313
4382373901410 8565950446177 2071323137314
4382373901410 8565950446177 2071323137315
4382373901410 85659504...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
934 473245876224 11233486959208 1470103550 7025808932741686293 15845371180971196415 18446738662050758656 1963056652798132226 4322481474975294380 13835058055291600895 18446744073584771073 6141628410931183616 21493253297819648 8721128725217279 18446744073709536352 152041523420024...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #71:

score: 1
Acceptable Answer
time: 80ms = 8ms + 72ms
memory: 6028kb,22872kb

input:

encode
6 7 1000 398598519
1514867349999 3377920774229 3625034198291
1514867349999 3377920774229 3625034198292
1514867349999 3377920774229 3625034198293
1514867349999 3377920774229 3625034198294
1514867349999 3377920774229 3625034198295
1514867349999 3377920774229 3625034198296
1514867349999 33779207...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
561 130721878016 1606293129791 18446744073709521986 12573909971885883392 1047 18446744073582149632 5872540119902191616 3 18446743547576058159 18181657919106310977 1431962168142828810 4536835823698974720 2237 18161328447522066704 2748474504249344 5031365208702975 183224141485514...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #72:

score: 1
Acceptable Answer
time: 94ms = 8ms + 86ms
memory: 6304kb,22960kb

input:

encode
6 7 1000 906922901
1296024528502 768615439834 3922131708537
1296024528502 768615439834 3922131708538
1296024528502 768615439834 3922131708539
1296024528502 768615439834 3922131708540
1296024528502 768615439834 3922131708541
1296024528502 768615439834 3922131708542
1296024528502 768615439834 3...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
522 18446741891731947520 1065386238 558586266128367 16158915190258139136 142993720306827264 2287899527040008700 34093400032 4575657766886177792 8727644061696 4575938696385004536 2234276881875071 18410995643632844799 17874769192482242559 9295145974072346608 4468690129026816 6658...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #73:

score: 1
Acceptable Answer
time: 85ms = 8ms + 77ms
memory: 6020kb,22960kb

input:

encode
6 7 1000 919904950
1015772028675 7405788239716 1679014321718
1015772028675 7405788239716 1679014321719
1015772028675 7405788239716 1679014321720
1015772028675 7405788239716 1679014321721
1015772028675 7405788239716 1679014321722
1015772028675 7405788239716 1679014321723
1015772028675 74057882...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
715 18375245031578533888 32513 142989288169013263 16158915190266462465 18301511781686697984 2130772477 18160765463279165503 18446743528231797759 18160747905185480704 4575938692123459584 68184719232 35749521032215544 1152921504074153856 9294866689462372336 127 144113006164840447...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #74:

score: 1
Acceptable Answer
time: 86ms = 8ms + 78ms
memory: 6292kb,22796kb

input:

encode
6 7 1000 307505929
1974606868459 1835892878920 2891622509426
1974606868459 1835892878920 2891622509427
1974606868459 1835892878920 2891622509428
1974606868459 1835892878920 2891622509429
1974606868459 1835892878920 2891622509430
1974606868459 1835892878920 2891622509431
1974606868459 18358928...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
556 71499042131017727 17302759400678686719 143547874435141615 16158915463005339393 18158513697557843936 2323716670234885634 285978576338026527 13853212637246127104 266346559 13799171090934793208 2080832 9151315533772355584 571992337048125567 9151598099636944903 1730282976835744...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #75:

score: 1
Acceptable Answer
time: 93ms = 8ms + 85ms
memory: 6032kb,22956kb

input:

encode
6 7 1000 139288815
2085773865084 5763106081944 5138784248741
2085773865084 5763106081944 5138784248742
2085773865084 5763106081944 5138784248743
2085773865084 5763106081944 5138784248744
2085773865084 5763106081944 5138784248745
2085773865084 5763106081944 5138784248746
2085773865084 57631060...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1920
574 18446743461810929664 338755134471274495 15891029624491081731 7818248953112790016 170717135059 18446740251410431999 18446634274103754751 18446471394825863257 8646906428020223912 204877224283757031 17302829768357535615 18445761110317678502 4611687246788033128 0 13931525020060...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Subtask #8:

score: 1
Acceptable Answer

Test #76:

score: 1
Acceptable Answer
time: 98ms = 10ms + 88ms
memory: 7900kb,41776kb

input:

encode
7 10 1000 211479294
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
0 0 5
0 0 6
0 0 7
0 0 8
0 0 9
0 0 10
0 0 11
0 0 12
0 0 13
0 0 14
0 0 15
0 0 16
0 0 17
0 0 18
0 0 19
0 0 20
0 0 21
0 0 22
0 0 23
0 0 24
0 0 25
0 0 26
0 0 27
0 0 28
0 0 29
0 0 30
0 0 31
0 0 32
0 0 33
0 0 34
0 0 35
0 0 36
0 0 37
0 0 38
0 0 39
0 0...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
203 18446744070885048372 4610534005119386141 10952754293152710656 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
546 734885523554304 986496869 432345564227567863 3885542975798771712 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #77:

score: 1
Acceptable Answer
time: 126ms = 8ms + 118ms
memory: 7960kb,41620kb

input:

encode
7 10 1000 717484047
4398046511103 8796093022207 8796093022207
4398046511103 8796093022207 8796093022206
4398046511103 8796093022207 8796093022205
4398046511103 8796093022207 8796093022204
4398046511103 8796093022207 8796093022203
4398046511103 8796093022207 8796093022202
4398046511103 8796093...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
509 149514996924416 0 852 4611686018427387903 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #78:

score: 1
Acceptable Answer
time: 121ms = 8ms + 113ms
memory: 7900kb,41608kb

input:

encode
7 10 1000 827784394
514735864053 3549782390950 5376884663210
514735864053 3549782390950 978838152106
3308246509869 6149758902427 416789217834
3308246509869 6149758902427 416789283370
4375034511123 2440063209409 2384754529222
4375034511123 2440063209409 2384754528966
3161033729510 699365202109...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
185 8998407460878334 18031973515661308 36063947031322616 144115153749655536 144255788125290464 576460752303358015 17869720646598787072 1151796154992164864 1098438410751 9223372036854775808 9214369239939414017 18446735286202265603 18446744073709551615 18446744073692790768 70300...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #79:

score: 1
Acceptable Answer
time: 124ms = 9ms + 115ms
memory: 7900kb,41640kb

input:

encode
7 10 1000 276584934
4081922575829 7559385287274 5945501906848
4219361529301 7559385287274 5945501906848
4189638566395 3297304534628 584777042114
4189639090683 3297304534628 584777042114
428090427728 2456346958677 7884734456565
428090427728 2456363735893 7884734456565
2313158316651 72474318821...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
726 18446683325912972786 16141279192070488064 1331988412563456 22755080331591679 18443969467808869134 13835058055282163712 48388407226793983 18446744073709551615 18446744073709543704 9223372036854775808 0 9290838070335111166 18293621686378954752 1224416148689215616 17440735 18...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #80:

score: 1
Acceptable Answer
time: 117ms = 8ms + 109ms
memory: 8164kb,41772kb

input:

encode
7 10 1000 670206878
2977326359105 5804770168216 8757960133411
3247832747454 355514014765 8626273435563
96077062687 4706768007092 7084289919811
506841959952 1900949252398 6665556423309
1679099807551 147138997685 6824222445444
2952224667142 6670625680632 3836919411172
2346703799568 519814711191...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
521 18437745666248675327 18428747250206244864 35993647006605319 18302628919959912447 18446744005057118208 137304866815 17870845721603735552 1151796154992426752 4611684919988977152 4616185220008247296 4393755738111 18446735286202265602 35993612646875139 18374721698386657288 143...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #81:

score: 1
Acceptable Answer
time: 130ms = 13ms + 117ms
memory: 8160kb,41560kb

input:

encode
7 10 1000 642392893
3741748491399 4561401992404 5452373285989
4166828925798 4646257241036 7175150600376
4081126671930 4553965739124 8681728445507
45931383332 3608345852268 988075061632
1642036883715 2436119157687 5849740210055
4322966802055 5192108208310 7382472725671
1960394699147 7021903100...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
469 989148148137983 18446744073354608640 9595983293874176 39638906009810386 5778465482701537399 17293822558806212608 1031798783 18446743742313398272 34608115571752960 71160295023744758 18446742917054726144 548697358691467264 9760104583681540096 126398 15169953132338449087 1689...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #82:

score: 1
Acceptable Answer
time: 131ms = 13ms + 118ms
memory: 7808kb,41776kb

input:

encode
7 10 1000 997705422
3152624187216 2775131366267 3322508449560
666594228475 8742959935889 39725113875
1150730957879 8526393020879 330876702426
356960004654 1544811367411 2809568944245
2460025749425 2831542347817 5452958102200
2398002089812 26321691163 2161600083328
2616351921434 8007227680302 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
765 59236188946431 18437609674940088319 18446392539875770367 18446050291275923455 18350609648924491839 16121413320405155840 3422010405 9540025888096124927 18301502985726908182 18276346159683338240 632192510071930880 2533239378591875072 205417903152 784863170720 130414393584280...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #83:

score: 1
Acceptable Answer
time: 131ms = 13ms + 118ms
memory: 7940kb,41624kb

input:

encode
7 10 1000 371958993
764189210063 3970504211432 3353833419233
3828835392294 8413013967796 6677447414970
2191699906106 4876446911513 5876243643433
244987735687 6018919015467 2432770870918
3402261940969 2713137256561 5668542941386
2645455216631 6214524479810 3261597519661
1389118481564 131956173...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
224 18437745661957898240 0 35993647006613503 18446744073709551615 18446744073709518879 18158232360154169344 575898352105816063 18446744073709289727 16138651463704904191 13830556656824482816 18446739679955908609 18446744073709551615 18446744073709551612 71987225293750272 15 181...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #84:

score: 1
Acceptable Answer
time: 124ms = 8ms + 116ms
memory: 7876kb,41560kb

input:

encode
7 10 1000 110149027
3567116936952 1432238051665 8666227966386
369441606169 1711163063339 2469835063742
4242523121467 8673545879712 3665112940954
2040848013742 6631244203986 977581764890
2129973352940 295637567886 3184666259494
2651559472586 7521341866419 4719496136038
3005276363714 6998739617...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
297 279765579726450 6090711264399458225 4900314413160350354 16140901064495856497 311501519851628647 15564440312192427809 5781704379090316260 174164279295 17574356363859984384 555627839487 18446744073709505608 0 0 10101573964191453696 2668785303551 9750309831691993079 651220655...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #85:

score: 1
Acceptable Answer
time: 117ms = 9ms + 108ms
memory: 7960kb,41768kb

input:

encode
7 10 1000 595503445
2331995655030 4228638622205 5530282314490
621967825175 8129419996365 5893446861429
1845962905658 3388953795189 2106007228577
3732788120452 2230049726225 2926463586884
3987170665027 5511374216323 2652570347959
1490519353267 8065470377688 2208024085401
34171147625 5409475154...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
311 18446744073070313472 6986522623 18446744072825864192 2506031103 18442913512637333504 24096616791408640 22905026229755558 85920095278208762 13818028819191174015 7985110979467792580 429497 18446744073709501440 3330519 13414534440077900271 18446744073709551615 104956389315889...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #86:

score: 1
Acceptable Answer
time: 104ms = 8ms + 96ms
memory: 7936kb,41640kb

input:

encode
7 10 1000 484021511
433825512805 7720939337023 4380178108816
2113401314606 1115254791303 4849455714646
338626768154 8750821914343 3047839466077
2549772699946 6942697255753 5495051107509
3332131896595 839285649778 7047679864061
992452871192 1733670525623 38304580091
3160101408443 935580371813 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
925 283095039 18445839382189686411 9583660007612612421 6923514766561673216 21086470143 18430112863741801873 9223372036854775808 49343 13835058055282153541 34757761577254911 18033864821664552642 2419575155464 3661108506733522751 18446744073709551614 15606661558699032576 2 50800...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #87:

score: 1
Acceptable Answer
time: 128ms = 12ms + 116ms
memory: 7808kb,41636kb

input:

encode
7 10 1000 13188011
1083493333359 7294475794357 552853580751
1027648479364 6559601145193 3058356478960
141992131873 5000732177882 4136587752882
950687741778 3715291654497 263875446672
859551589885 3660885812003 5969321744088
67331949319 5983976657854 1108064311820
1857737525525 8468380354884 4...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
73 18446744069418776574 18031973515657216 17163100167 18302628919959912447 18446744073709551615 18446744073709486143 17869720921208389759 16140901613715063039 13835058055282687488 4616187416886116351 9232370440018589697 18446744073705361405 18410750461062676476 719872253105111...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #88:

score: 1
Acceptable Answer
time: 107ms = 12ms + 95ms
memory: 7976kb,41840kb

input:

encode
7 10 1000 920445191
1696220569565 4209752963503 2017730115005
1696220569565 4209752963503 2017730115006
1696220569565 4209752963503 2017730115007
1696220569565 4209752963503 2017730115008
1696220569565 4209752963503 2017730115009
1696220569565 4209752963503 2017730115010
1696220569565 4209752...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
83 0 17996814921752576 8184 144115153749655536 288230307499278336 137304866815 17870845996213338239 16140901064495857664 2303592309984853504 4616185220009294848 18446744073707456510 18428738479878828034 36011187669827583 18446708923663646727 18302769623122051071 18446603473592...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #89:

score: 1
Acceptable Answer
time: 121ms = 12ms + 109ms
memory: 7872kb,41776kb

input:

encode
7 10 1000 437613373
3065774291798 241316231006 673065926360
3065774291798 241316231006 673065926361
3065774291798 241316231006 673065926362
3065774291798 241316231006 673065926363
3065774291798 241316231006 673065926364
3065774291798 241316231006 673065926365
3065774291798 241316231006 673065...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
730 50560106954752 9347223225630188 5193190368006372631 3458764513820540928 0 3896119453003236 4939231631853485315 88154444268568575 18418878607876124856 196117690022603922 1268677962182426624 2466565220915478527 17116071121310332349 8203588196232069120 9725953441791 184467440...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #90:

score: 1
Acceptable Answer
time: 109ms = 12ms + 97ms
memory: 7956kb,41772kb

input:

encode
7 10 1000 388784557
2027131083733 3922417372204 52801510673
2027131083733 3922417372204 52801510674
2027131083733 3922417372204 52801510675
2027131083733 3922417372204 52801510676
2027131083733 3922417372204 52801510677
2027131083733 3922417372204 52801510678
2027131083733 3922417372204 52801...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
616 18444440459410407633 13510798882111487999 18434495688218574847 18446744073709551615 18434185726775001088 7916483719987199 18079565500033007615 17824974646248756075 9223372004510472938 17264971383990421363 17132027234052210688 246501710854326296 0 0 5857055 1844674326733015...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #91:

score: 1
Acceptable Answer
time: 134ms = 12ms + 122ms
memory: 7880kb,41556kb

input:

encode
7 10 1000 611892990
742599828939 4061868789485 7590353819583
742599828939 4061868789485 7590353819584
742599828939 4061868789485 7590353819585
742599828939 4061868789485 7590353819586
742599828939 4061868789485 7590353819587
742599828939 4061868789485 7590353819588
742599828939 4061868789485 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
626 18437745661957898240 17996823503302659 18374686479671631864 72127928388845567 18302769554335531007 18446744073709551615 17870845996213338239 17292697219488022528 1098438410751 9223372036855823360 9232374833772232703 18446735286198075393 18410750461062676476 720223753396551...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #92:

score: 1
Acceptable Answer
time: 100ms = 8ms + 92ms
memory: 8096kb,41540kb

input:

encode
7 10 1000 290705354
3884008138914 6914632849679 113728531618
3884008138914 6914632849679 113728531619
3884008138914 6914632849679 113728531620
3884008138914 6914632849679 113728531621
3884008138914 6914632849679 113728531622
3884008138914 6914632849679 113728531623
3884008138914 6914632849679...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
762 2653024255 18446744073519792128 408983965794303 18446744073709550822 577252398465025075 18446744073709551615 18446744073709551615 18371872840807867142 9325243342528727995 9223372036854775807 15414203043373666783 16405522915082108927 17605767212042289152 1 36163905007785082...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #93:

score: 1
Acceptable Answer
time: 126ms = 13ms + 113ms
memory: 8128kb,41608kb

input:

encode
7 10 1000 771223351
96044864649 6803600523962 5694840158980
96044864649 6803600523962 5694840158981
96044864649 6803600523962 5694840158982
96044864649 6803600523962 5694840158983
96044864649 6803600523962 5694840158984
96044864649 6803600523962 5694840158985
96044864649 6803600523962 5694840...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 2688
511 18446744073401368576 0 833584948 9808976190415831039 18446744072923644127 13254432352932726999 9223372017269507822 4611686018427382278 4733050111901302783 17750660921283313663 18446744073708829316 394979761067059268 341710261100478464 180143847959510447 1797500948251619330...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Subtask #9:

score: 1
Acceptable Answer

Test #94:

score: 1
Acceptable Answer
time: 109ms = 6ms + 103ms
memory: 7880kb,41836kb

input:

encode
8 14 1000 963380543
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
0 0 5
0 0 6
0 0 7
0 0 8
0 0 9
0 0 10
0 0 11
0 0 12
0 0 13
0 0 14
0 0 15
0 0 16
0 0 17
0 0 18
0 0 19
0 0 20
0 0 21
0 0 22
0 0 23
0 0 24
0 0 25
0 0 26
0 0 27
0 0 28
0 0 29
0 0 30
0 0 31
0 0 32
0 0 33
0 0 34
0 0 35
0 0 36
0 0 37
0 0 38
0 0 39
0 0...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
350 105917584506879 18446744073709551615 18142317960016656607 18200454570115333102 9435181956829544448 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
655 18446744073709551615 18446744073642446847 13835058055282163719 1...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #95:

score: 1
Acceptable Answer
time: 153ms = 14ms + 139ms
memory: 7940kb,41720kb

input:

encode
8 14 1000 605060241
4398046511103 8796093022207 8796093022207
4398046511103 8796093022207 8796093022206
4398046511103 8796093022207 8796093022205
4398046511103 8796093022207 8796093022204
4398046511103 8796093022207 8796093022203
4398046511103 8796093022207 8796093022202
4398046511103 8796093...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
526 18446730725353848832 731883 18446744073709551615 18446744073709551612 16234350848283246591 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #96:

score: 1
Acceptable Answer
time: 160ms = 19ms + 141ms
memory: 7832kb,41544kb

input:

encode
8 14 1000 661983807
3231798265249 6985324481100 5168906965630
3231798265249 6985324481100 5164611998334
672410575384 1497162578575 4201442002018
672410575384 1497162578575 4201173566562
2478903083444 7918596206278 2156610798716
2478903083444 7918596206278 2156677907580
2611943318172 123039075...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
950 562915595780095 18446744073642446847 16140760331302731760 511 17870300914665881598 1125968624222080 72061991950213120 9223372028265365487 18428730224989435904 35182224670723 18444492136461107455 18158513697557839872 9222809121261092863 18446742974265030655 1614097143753487...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #97:

score: 1
Acceptable Answer
time: 154ms = 15ms + 139ms
memory: 7880kb,41660kb

input:

encode
8 14 1000 949265882
1704514330496 6188091860716 5993934986878
1704514330496 6188091860716 5993800769150
1406502191565 6956544326642 5309725515728
1269063238093 6956544326642 5309725515728
333738894301 6422675463224 7634157575236
333738894317 6422675463224 7634157575236
1852204496066 574238342...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
930 0 67104768 4611686018427387903 18446743798848421375 17870300914665881598 2251799811588223 18302628885767905280 4611967476224229376 0 0 4194048 288230376151711743 9223934969627279423 18446744073709549568 2305772636174811135 18442240748943310848 288212785039409151 1125831187...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #98:

score: 1
Acceptable Answer
time: 171ms = 15ms + 156ms
memory: 8160kb,41664kb

input:

encode
8 14 1000 517195582
1941386072680 8023570462603 6774413666179
1327706040641 4397366997098 1434522901863
745795240902 3234503965265 3234297772153
2560534692929 544591456433 6959630982862
199046287909 98778942434 5067171006442
3169451284295 786706196864 6835820037314
409014825003 2168150013925 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
171 54669 2305843009204460186 1079670751 18446743931909627976 14541560246825909787 11826469187155394559 18441021392998527459 18446744073709551613 16767361008560766978 12565039528556368096 15564426310758762895 17293822569102704639 18446744073709551615 18446744055927865344 0 305...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #99:

score: 1
Acceptable Answer
time: 163ms = 15ms + 148ms
memory: 7896kb,41548kb

input:

encode
8 14 1000 918921663
1135464064092 4168339712923 2081870853388
806509234642 5994768749097 1733235608220
2618227946777 5242441735407 5041359575998
145018738024 8351768679756 6044894767406
4301111154115 5332113744701 1870541350212
349668824714 6909365690292 2056269417873
2631699605483 4694593658...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
146 18446734669895434240 2186590 18442919974567534287 18446744073709551598 8322933586357391778 7924083544358385472 288246866678644735 18366058646832199679 18446743974693777408 2224639705010 9241465930913404439 0 403826122388668398 5754545104101830525 12182246408751415295 18446...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #100:

score: 1
Acceptable Answer
time: 171ms = 15ms + 156ms
memory: 7960kb,41624kb

input:

encode
8 14 1000 310160528
3526330351681 4968772129784 6924688973717
1520091681659 3893581752601 240713530078
3841558379621 7172835952888 135029017314
1023822415062 6928742746258 2470080114396
1329188393798 218058894669 3429975780960
3062812158703 7670010192764 2632691831185
1061764581073 3267367682...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
430 18446744073709551615 18410717475579625472 2305702280315273208 9006924360057855 18446726482597216254 1125968624222080 72061991950213120 9223372036854775807 18446743523987290112 35182224670723 18442240474086375168 288230375883292671 9222809104082272223 18410717475713843199 1...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #101:

score: 1
Acceptable Answer
time: 176ms = 11ms + 165ms
memory: 8164kb,41624kb

input:

encode
8 14 1000 325990870
1772779597806 582454201044 3645926295915
1370340779531 26245764877 7004146250249
1823151671338 8365485967803 5254740579456
2599219510059 8612846665236 7475963017104
2069101495776 3546114793208 681572407314
3684498739753 1016407215487 3011633868095
2236002810478 18624758573...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
949 18446744073708503103 18410713077734445055 13835058059576868879 18446744073709551615 18446726482597216254 1125968622125056 0 4611404560630546431 18446743523987291135 17293857755622146048 2251662383120383 18446744073441132543 9222809104082272223 18410716376269322239 16141041...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #102:

score: 1
Acceptable Answer
time: 169ms = 11ms + 158ms
memory: 8168kb,41692kb

input:

encode
8 14 1000 128876684
2914127130681 4935124425122 4004906973192
2273224442809 5425551323008 8358547827953
177877099226 5509247387825 3819987747383
2240117442888 607109272057 1899196010997
2808575402664 4074938625940 4021249994955
2018133509222 6334179077957 8642025962096
3090118103449 322601939...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
783 18446181158113771520 67104768 2305983742406819855 18446743798848421375 17870318505778184193 18444492273897963392 72061991950213120 4611967476224229391 18428730774711696384 1152851135862669312 0 144106392251285503 9222809121261092832 36027697440229376 2305772636174811135 18...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #103:

score: 1
Acceptable Answer
time: 163ms = 15ms + 148ms
memory: 7880kb,41624kb

input:

encode
8 14 1000 620488000
367977389913 398629451486 3584468374450
702741503478 6966562037837 1668265174076
676781470085 444598195458 7588511843184
1699410726787 5845811284029 921603585810
2159706224958 6305411379319 1874343106850
635929733204 8604906130647 8259284023930
2874776556246 3815046783613 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
769 18446181158114820032 36030995975106560 2305983738112114688 274861130751 18446726482597183488 0 0 8589410335 18446744073709551615 18446744073709551615 18444492411326431232 144106392251285503 0 0 131064 9007199246352895 17870283321942966273 18446744073709551615 1844674187482...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #104:

score: 1
Acceptable Answer
time: 152ms = 15ms + 137ms
memory: 7968kb,41544kb

input:

encode
8 14 1000 414893142
2842742983238 5158709369145 8190192127641
2678261685551 4598634923318 5555443661595
2501192986185 3417260517359 6074484433366
3815895818317 577472143140 3080343259951
1831922776548 8292173568105 7010724854293
364370766994 3604969772963 3382104976604
777091534114 2252558732...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
208 18446744073709551615 18446744073709551615 18446744073635108194 382436532419559417 10560378310665043967 18446744073709417776 1333306071750400524 0 2 7204632761302263845 10952754293765046271 18441913386552786944 2310694775 2149941118264918013 189725712983518821 5476965470395...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #105:

score: 1
Acceptable Answer
time: 155ms = 7ms + 148ms
memory: 7900kb,41656kb

input:

encode
8 14 1000 394195535
809355407421 1465074462497 1082089120809
1863569178062 1863444016728 8780519618373
409262738266 8172528619999 1870960937893
2708395716207 7151111730031 6838810236495
983940113663 8325076927653 3259629472735
2805752287024 7003216675256 5454170265675
3659510829069 8210524017...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
774 18446744073709551615 18441777203362285355 13835058055282163709 16073549380224811017 8969410480688869385 8790885199878627566 18297531658175250432 0 26406614990 12362383355999158271 18446701746420996990 12393906174513437220 56611327 18446744044342878208 0 0 5378397481257512 ...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #106:

score: 1
Acceptable Answer
time: 147ms = 11ms + 136ms
memory: 8168kb,41664kb

input:

encode
8 14 1000 676499574
3668858819109 5327606529726 6453855996597
3668858819109 5327606529726 6453855996598
3668858819109 5327606529726 6453855996599
3668858819109 5327606529726 6453855996600
3668858819109 5327606529726 6453855996601
3668858819109 5327606529726 6453855996602
3668858819109 5327606...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
698 18446744073709551615 18446744073708062612 1156553157153652733 18195074658686467029 17595704578529427455 18446651487149883392 783930238166020 9305543866557923326 17195895681133240271 11821386071894133350 11421128655011577855 18446744073709551615 18438335214938750976 7250478...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #107:

score: 1
Acceptable Answer
time: 143ms = 11ms + 132ms
memory: 7904kb,41660kb

input:

encode
8 14 1000 94018479
96888197272 8643078329578 1753361602650
96888197272 8643078329578 1753361602651
96888197272 8643078329578 1753361602652
96888197272 8643078329578 1753361602653
96888197272 8643078329578 1753361602654
96888197272 8643078329578 1753361602655
96888197272 8643078329578 17533616...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
298 1048512 36030995908001792 7 18437737424210624000 576425567931367422 2251799811588223 18374682081893548031 13835339521668415519 18446744073709551615 18446744073709551615 18444492411326431232 268419072 18446744073709551615 18446742974265028608 0 8388096 576460751766585342 34...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #108:

score: 1
Acceptable Answer
time: 149ms = 14ms + 135ms
memory: 8132kb,41568kb

input:

encode
8 14 1000 900993988
2369874122913 7762085972315 658213084387
2369874122913 7762085972315 658213084388
2369874122913 7762085972315 658213084389
2369874122913 7762085972315 658213084390
2369874122913 7762085972315 658213084391
2369874122913 7762085972315 658213084392
2369874122913 7762085972315...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
814 18446741207359946752 5440510 9149757534351917056 0 0 19278 17292382830576695695 9046929317169662975 18446744073709551515 6128554667921113088 68407636490753 10664523917613334528 0 34875564012 10433724713471048842 2504001392819101944 18446744073705784520 201118590 1589362529...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #109:

score: 1
Acceptable Answer
time: 170ms = 7ms + 163ms
memory: 7960kb,41656kb

input:

encode
8 14 1000 280024755
955272490816 8774804383388 3168225513893
955272490816 8774804383388 3168225513894
955272490816 8774804383388 3168225513895
955272490816 8774804383388 3168225513896
955272490816 8774804383388 3168225513897
955272490816 8774804383388 3168225513898
955272490816 8774804383388 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
192 18446695455931781165 18444401104625074176 120670954471817215 15749941667693592596 16886809558536945664 285006781867717 2306286370097725439 18410029181434855424 14150281438306273348 8303511812964351999 18446744073708829346 2882303761517117440 2336441312396494848 10319664127...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #110:

score: 1
Acceptable Answer
time: 169ms = 15ms + 154ms
memory: 7900kb,41636kb

input:

encode
8 14 1000 801753362
3522696027351 7697439575244 2438884314474
3522696027351 7697439575244 2438884314475
3522696027351 7697439575244 2438884314476
3522696027351 7697439575244 2438884314477
3522696027351 7697439575244 2438884314478
3522696027351 7697439575244 2438884314479
3522696027351 7697439...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
474 1048512 36030995908001792 4294705160 9006924360057855 18446744073709551615 18445618242517991424 72053196125642751 13834776588895911919 18428730224989436927 17293857755622211580 4503599623176447 18158513697557839872 9222809121261092832 36027697440231423 18446744073709551615...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #111:

score: 1
Acceptable Answer
time: 177ms = 15ms + 162ms
memory: 7940kb,41724kb

input:

encode
8 14 1000 240002913
2377800376699 8512007177514 6486295604875
2377800376699 8512007177514 6486295604876
2377800376699 8512007177514 6486295604877
2377800376699 8512007177514 6486295604878
2377800376699 8512007177514 6486295604879
2377800376699 8512007177514 6486295604880
2377800376699 8512007...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 3712
983 6200255008748 0 1178099891386187775 8058066732784287774 9397884153263882240 73365993816063 18446744073692742914 0 383770623 18446739457311937554 10952706308310324301 18434012103800405470 17814295090902064895 18446743755136962560 2644 18140499299048334988 7760791 1844674407...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Subtask #10:

score: 0
Wrong Answer

Test #112:

score: 0
Wrong Answer
time: 2ms = 1ms + 1ms
memory: 4004kb,4128kb

input:

encode
9 20 1000 49682627
0 0 0
0 0 1
0 0 2
0 0 3
0 0 4
0 0 5
0 0 6
0 0 7
0 0 8
0 0 9
0 0 10
0 0 11
0 0 12
0 0 13
0 0 14
0 0 15
0 0 16
0 0 17
0 0 18
0 0 19
0 0 20
0 0 21
0 0 22
0 0 23
0 0 24
0 0 25
0 0 26
0 0 27
0 0 28
0 0 29
0 0 30
0 0 31
0 0 32
0 0 33
0 0 34
0 0 35
0 0 36
0 0 37
0 0 38
0 0 39
0 0 ...

input:

espacezwz8hs9sw4krngnnjo3xas6knz0vybwaxu0tnw99b6zv9gdh44f4g1f5dauh1poou0o3eicdrctps322pg6aw46ywf06b5fo4ev99a4oklvtbibvhgobunkwwp5jfd1wm61a7vt8d6mr8sgdy2zzeu0sxcthrhkdqpt5ft4ecs9s7867afryivwe1rgxehl3srl7rk6g0515el791ckoiog04szk5dufeidikspckn9tjp074mfx23da9atel72l9vrl9s4jzcmy8amyh0zlco10w6w0olwu9nyihq...

input:

espacezwz8hs9sw4krngnnjo3xas6knz0vybwaxu0tnw99b6zv9gdh44f4g1f5dauh1poou0o3eicdrctps322pg6aw46ywf06b5fo4ev99a4oklvtbibvhgobunkwwp5jfd1wm61a7vt8d6mr8sgdy2zzeu0sxcthrhkdqpt5ft4ecs9s7867afryivwe1rgxehl3srl7rk6g0515el791ckoiog04szk5dufeidikspckn9tjp074mfx23da9atel72l9vrl9s4jzcmy8amyh0zlco10w6w0olwu9nyihq...

result:

wrong answer Invalid number of pigeons.