QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#317771#5447. 鸽子IIIIIlIIIl24.992315 566ms41880kbC++142.1kb2024-01-29 17:25:592024-01-29 17:25:59

Judging History

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

  • [2024-01-29 17:25:59]
  • 评测
  • 测评结果:24.992315
  • 用时:566ms
  • 内存:41880kb
  • [2024-01-29 17:25:59]
  • 提交

answer

#include<bits/stdc++.h>

int pigeon_num(int Taskid,int k){
    if(Taskid==0)return 5;
    if(Taskid==1)return 10*(2*k+1);
    if(Taskid==2)return 60;
    return 128*(2*k+1);
}

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

__uint128_t receive(int Taskid,int k,const std::string &msg){
    if(Taskid==0){
        __uint128_t hi = 5281683694948011861llu;
		__uint128_t lo = 3195384480471073102llu;
		return hi<<64|lo;
    }
    if(Taskid==1){
        int b=2*k+1;
        __uint128_t res=0;
        for(int i=0;i<=9;i++){
            for(int j=i*b;j<(i+1)*b;j++){
                if(msg[j]=='1'){
                    res=res+(1<<(9-i));break;
                }
            }
        }
        return res;
    }
    if(Taskid==2){
        int b=2*k+1;
        __uint128_t res=0;
        for(int i=0;i<=19;i++){
            for(int j=i*b;j<(i+1)*b;j++){
                if(msg[j]=='1'){
                    res=res+(1<<(19-i));break;
                }
            }
        }
        return res;
    }
    int b=2*k+1;
        __uint128_t res=0;
        for(int i=0;i<=127;i++){
            for(int j=i*b;j<(i+1)*b;j++){
                if(msg[j]=='1'){
                    res=res+((__uint128_t)1<<(127-i));break;
                }
            }
        }
        return res;
}

詳細信息

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 4ms = 0ms + 4ms
memory: 4220kb,4600kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 5
0 21
0 11
0 26
0 21
0 14
0 26
0 21
0 11
0 26
0 13
0 28
0 11
0 19
0 19
0 14
0 26
0 25
0 13
0 25
0 25
0 28
0 14
0 7
0 13
0 19
0 13
0 13
0 11
0 13
0 22
0 22
0 19
0 26
0 22
0 14
0 25
0 26
0 7
0 13
0 26
0 26
0 26
0 19
0 14
0 14
0 28
0 11
0 14
0 13
0 19
0 11
0 22
0 13
0 25
0 22
0 13
0 2...

result:

ok Accepted using 5 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 40ms = 17ms + 23ms
memory: 5080kb,9244kb

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 410
556 8796093022210 35184372088836 0 2251799813686273 0 549755813888 2048
363 12582912 16 0 3377699720528384 4294967296 0 0
851 9223372036858970112 35184372088848 0 3377699720527872 0 16384 0
640 0 2305843009213693952 1073741824 0 2251799813685248 32768 16384
116 8388608 0 2048 0...

result:

ok Accepted using 410 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 11ms = 3ms + 8ms
memory: 4576kb,5180kb

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 60
713 594620359362281472
757 2252074691724304
908 576461611837030944
656 10144096761938690
884 9082071544823880
185 10813051680
280 306812124271788064
307 19140573361345281
96 585751695368392800
91 576478346117169188
914 585468571132411972
707 23156436574455042
662 5866312348943011...

result:

ok Accepted using 60 pigeon(s).

Subtask #4:

score: 3.6233
Acceptable Answer

Test #4:

score: 3.6233
Acceptable Answer
time: 29ms = 12ms + 17ms
memory: 5260kb,9468kb

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 0 0 0 0 0 134610948
210 0 0 0 0 0 8654864
545 0 0 0 0 0 537001985
19 0 0 0 0 0 4129
715 0 0 0 0 0 143656969
725 0 0 0 0 0 143134786
542 0 0 0 0 0 268453008
412 0 0 0 0 0 25183488
203 0 0 0 0 0 2361380
730 0 0 0 0 0 546325000
262 0 0 0 0 0 16777480
866 0 0 0 0 0 336101408
887...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #5:

score: 3.6233
Acceptable Answer
time: 49ms = 17ms + 32ms
memory: 5260kb,9128kb

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 10432890011616621090 10489192574648214064 14452693959178490978 3541044568685357253 878417848867949640 14200492921311989856
724 3608267517499573826 7000355554548326800 14433058347957917772 9661079441528402505 875460884146185360 14493751595826808865
428 4990851801257488659 145...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #6:

score: 3.6233
Acceptable Answer
time: 50ms = 18ms + 32ms
memory: 5024kb,9180kb

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 294999115761780224 292743098357975040 13998314161340563488 9372272927812886656 4914008839952731264 153423667005523976
753 9557496064857606436 1261044222501849224 2343138516659348544 9516387487610603008 4611690487613491264 290825120645408
318 2341880774661308433 2983722714231...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #7:

score: 3.6233
Acceptable Answer
time: 42ms = 18ms + 24ms
memory: 4976kb,9472kb

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 4758053143764860992 5279345079796891680 36063981399490625 1170944905368322560 4611969744042460161 18582021421994112
37 2346974777155072024 577023977143271428 4613938471680348160 2308095437300568072 82190712539980032 13855465553809899585
254 2252349607247888 46117588618828267...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #8:

score: 3.6233
Acceptable Answer
time: 46ms = 18ms + 28ms
memory: 5260kb,9180kb

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 10412323575437459985 2310426067883674628 10394735168966395904 10520445022061735952 9168965709332864 153175447356966912
718 1152931417693618177 2316002496688490752 9244799358119969377 9511606966886138370 6931110199663132816 217316342951313444
604 9385818300243517504 472091813...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #9:

score: 3.6233
Acceptable Answer
time: 51ms = 19ms + 32ms
memory: 4960kb,9176kb

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 5101753416585410 4612258056566212640 576467427219474496 54048144543027200 86131637079245200 74309496931092484
34 612502883125174272 9241976881840915458 2594082323460858504 19294797526205000 356379290503168 708361460910097
152 4512395854610435 1134700831728690 462069820105218...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #10:

score: 3.6233
Acceptable Answer
time: 43ms = 14ms + 29ms
memory: 4996kb,9284kb

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 10383050049021280264 81135301900248080 1306325366983409760 1189055871939514896 4616209549127319554 1179978870929096972
107 1135263078940864 9148563951984640 289361241246269440 9800961443213607059 2596616573007429700 13880094052931600400
653 1207036305830117376 49027311540100...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #11:

score: 3.6233
Acceptable Answer
time: 43ms = 18ms + 25ms
memory: 4972kb,9196kb

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 149252727298428929 40532673944504576 4683761205861548033 36028814471987712 72127963331758128 9225922973087580160
708 3499457718337421378 6918655478381676608 18581783289275537 9295432452686348320 144398862629601361 1738991988572979784
837 9263908971134586881 37321822772920324...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #12:

score: 3.6233
Acceptable Answer
time: 43ms = 18ms + 25ms
memory: 4968kb,9108kb

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 149191791235838465 649645380389118214 1225124234181869636 1303802538692707457 160807870668800 1170955798487367684
410 144119723611930626 162129664171614210 4613942224886304772 5783483955882852368 9333854317437256320 4611846551456718848
250 2306977776619522056 241622092854070...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #13:

score: 3.6233
Acceptable Answer
time: 46ms = 14ms + 32ms
memory: 4956kb,9184kb

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 613757354955014660 685673322578644992 11529355801307120384 55309835077685248 650216043842633745 310757172028383490
228 10133100254298648 1478906945494125600 1193526505863398482 1230630885981685768 9367487224998019600 2380227170393915556
287 2961117306905722888 92233731430946...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #14:

score: 3.6233
Acceptable Answer
time: 46ms = 18ms + 28ms
memory: 5024kb,9472kb

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 9224112575258578946 76702210930638985 18155415330104328 328773770062860290 11691349589868429381 72064298481893473
823 1171652922137397282 5332544019109543936 324867207400259848 10205960078115848 1153062242366296584 9385578666697756672
886 76715134151575556 237797220921511436...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #15:

score: 3.6233
Acceptable Answer
time: 52ms = 18ms + 34ms
memory: 4964kb,9132kb

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 2312638008254013507 73747579921367312 9819113859575742472 342379331224113161 2603083887521303552 9244080238920482848
352 2459678464196741408 72621093780719752 11529356629942239376 4648009832522068040 9259550719644010496 27030411174543360
950 5818722187944804416 4441602528272...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #16:

score: 3.6233
Acceptable Answer
time: 48ms = 18ms + 30ms
memory: 5252kb,9156kb

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 144256270235861544 72624976465035905 2449958233798878241 18694451497088 36627516568403968 14429534410296795424
280 72198675394199832 288373347157426560 10520408764975157794 13203066194048 36381260301533185 4773816811966038144
526 72339241082814612 144405493639824417 25940733...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #17:

score: 3.6233
Acceptable Answer
time: 49ms = 18ms + 31ms
memory: 4960kb,9440kb

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 9377057417090564608 6917602007994138898 1733886960512139520 2396768781400604676 1443438933932376064 635520141001218
558 9374242650143588481 2305869809876926726 1299289043930054912 2455341546074800136 653039675661352960 318860000510016
684 9377057399909646848 5188184566577529...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #18:

score: 3.6233
Acceptable Answer
time: 40ms = 14ms + 26ms
memory: 5016kb,9176kb

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 9313734339126657296 1333417402143608848 147528359964984448 74382133418397968 9243639403560043556 2305845208236951556
390 4692909180049178896 1315367819264788488 581386857544206400 74454735546091680 4631953453776634180 2305845208237490850
760 2360176501581709600 2459141352767...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #19:

score: 3.6233
Acceptable Answer
time: 44ms = 18ms + 26ms
memory: 4964kb,9248kb

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 299509235165726208 2432265757949968 18031990830826252 4647869297404822545 2449958270312909104 9241393067869618464
86 294998986928981504 5139272000667664 18031991232694348 9367597314656707649 648518385029751186 18019384966776900
870 293336576874784256 4716943546269712 7206199...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #20:

score: 3.6233
Acceptable Answer
time: 44ms = 18ms + 26ms
memory: 5032kb,9176kb

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 1188964045923844232 2377980872465975296 1126724543709961 1297600761743549960 4647717152715063328 5206161448415269449
263 324272505856491650 2594100879607465984 1126724550002980 1299292968926086659 36031031010328704 1801439920223424520
45 1297074213919662600 25941528342243655...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Test #21:

score: 3.6233
Acceptable Answer
time: 46ms = 19ms + 27ms
memory: 5024kb,9280kb

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 4616202949902206464 612494359687350309 4648365762845612032 1243310293943070724 9802243004815114312 633602237139104
612 2310386329774461440 612492057584486532 13854356693044971520 1315156781747965955 577797900244877348 1161187970547977
971 9241426156297654400 2341880911564916...

result:

points 0.30194174760 Accepted using 384 pigeon(s).

Subtask #5:

score: 1.36901
Acceptable Answer

Test #22:

score: 1.36901
Acceptable Answer
time: 61ms = 31ms + 30ms
memory: 5572kb,13944kb

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 0 0 0 0 0 0 0 0 0 36896
808 0 0 0 0 0 0 0 0 0 564050001952768
841 0 0 0 0 0 0 0 0 0 299084343148548
76 0 0 0 0 0 0 0 0 0 1074267136
756 0 0 0 0 0 0 0 0 0 281518068994048
19 0 0 0 0 0 0 0 0 0 16777284
955 0 0 0 0 0 0 0 0 0 564084378960400
21 0 0 0 0 0 0 0 0 0 1049616
83 0 0 0 ...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #23:

score: 1.36901
Acceptable Answer
time: 68ms = 31ms + 37ms
memory: 5504kb,13940kb

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 9512201720128626952 1190147133052160130 1158560919081719872 4902733896355160136 9313586005187626500 2594656169520005666 432770113702233105 2378061138459953217 293862633340406786 9277419630699219216
538 9370029334605104148 360886449322656064 5199441108942201872 98032457444040...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #24:

score: 1.36901
Acceptable Answer
time: 71ms = 29ms + 42ms
memory: 5492kb,14168kb

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 576746900221853952 1225335374805467136 140738059042834 3298539077632 2341871857780655360 9223655713069859348 279239983360 6755541177090112 2341874177054672896 9148079013896452
192 4538802286645252 2251799814733828 180144156893790212 580964351931318528 2891310996205340672 923...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #25:

score: 1.36901
Acceptable Answer
time: 60ms = 33ms + 27ms
memory: 5528kb,13864kb

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 18577348463428352 13836183965926694912 9367628168644526080 9226784938127278080 306279967891652864 585749460894617600 9224511139491086340 2324068513956037125 324261406553671810 36029900976824576
923 72127967102238720 288230513727111168 6926888225374081026 1125899975001089 144...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #26:

score: 1.36901
Acceptable Answer
time: 70ms = 32ms + 38ms
memory: 5784kb,13952kb

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 648562404120068612 432486577130711076 11258999068426244 565149044834304 35253159198720 562949953422080 10169385226342400 17867605017601 144185694292544512 9241386478450524200
387 16777216 4294984193 2308099207109541920 1153488854762915856 5189309023240914000 5854679859179110...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #27:

score: 1.36901
Acceptable Answer
time: 66ms = 25ms + 41ms
memory: 5756kb,13868kb

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 9223380833485193232 13848568854164275200 70370958835840 105553116334081 36591748063430160 288239447122911232 432345568530927616 146366994331998212 2309220743293960225 1100619972644
368 873698602621870336 2449958609740627968 10133305328403520 9223376744147353601 5809643693958...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #28:

score: 1.36901
Acceptable Answer
time: 71ms = 32ms + 39ms
memory: 5504kb,13924kb

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 18296441227198728 13519869853040768 2312598479526039680 2305843113400271872 1188951402212229120 594493309951410704 4620983763630039040 2310487415116005504 1189022940293762048 36609340267298816
218 576478353348362768 432490700035068032 140737555529858 2267742797891 1803199176...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #29:

score: 1.36901
Acceptable Answer
time: 78ms = 32ms + 46ms
memory: 5488kb,13824kb

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 869194729173286912 4613946631513964864 144115188210073792 2199056891906 140738830540833 4899916961649000449 292769162300818444 2380188145783160832 2310487898233765888 9241386469859266576
673 9241395232263127576 144537404844277768 72057596252657664 2253998870495232 1153485555...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #30:

score: 1.36901
Acceptable Answer
time: 70ms = 24ms + 46ms
memory: 5464kb,13812kb

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 288802122215718928 9223662316787077248 4683884487394721792 2306972209806082144 1729399849097887745 9241949660464037904 4503612646490368 4683884556250648768 1155173338848430113 37155848012169728
795 288511868308554496 9433810173169676 72268844151998464 2341943276635979776 577...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #31:

score: 1.36901
Acceptable Answer
time: 74ms = 32ms + 42ms
memory: 5444kb,14156kb

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 281750131441664 285877318197248 140874931568772 1189055855849374753 18014948266378288 576742236139291144 288512134596538496 2251943762397188 1125934268743681 1125899941462544
874 18581746517803040 4398054899968 9259403032897142912 2884555647498584064 144185608898084872 57660...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #32:

score: 1.36901
Acceptable Answer
time: 79ms = 33ms + 46ms
memory: 5444kb,14128kb

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 567416719409682 4504701286486016 2306443347947950592 2305851805390602272 144132780396265488 576742227280138256 144431916144164864 144119586122367042 81065068204130307 4575070030929920
664 9232381443739500546 290279672251400 18019900362653696 73185695657107457 900940042548022...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #33:

score: 1.36901
Acceptable Answer
time: 72ms = 33ms + 39ms
memory: 5784kb,14160kb

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 2596606677335674944 13835071284924416000 72200564909803520 72620548826365952 140742320197632 18159542635069696 4516793767952512 4911176495373748224 73184595637731328 40814009145917444
56 36029074065391617 140755744195584 10133099295801345 18049582881710208 518934303938396979...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #34:

score: 1.36901
Acceptable Answer
time: 76ms = 32ms + 44ms
memory: 5572kb,13940kb

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 274878431752 9152347678703880 2380222776106553348 1152921505682686016 36029931998150688 577305195218731264 137438961792 4616330355610288256 2379027604820723712 1747977197593837600
918 17181967364 72067498769909888 1164250889599848464 1152921504757842944 36038151491322368 461...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #35:

score: 1.36901
Acceptable Answer
time: 70ms = 29ms + 41ms
memory: 5468kb,13884kb

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 144678215407108096 4620702013779355649 1155173447262277696 2459035765825863808 292734113226489888 9007753372631040 2392537369430016 148689156581622304 306386611728318722 54060839522665984
182 27021881257492480 4620702013779476736 6919781033751744576 2413999769082921024 37154...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #36:

score: 1.36901
Acceptable Answer
time: 63ms = 34ms + 29ms
memory: 5448kb,13820kb

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 18295882345087488 432345701934964744 2305988144748560578 73183493978390592 1152974281164996608 9007474669519616 432631445840723968 4604209135682 37154732361416801 576478344489993264
396 18049583972614656 2341871815896400000 144260323610722465 576601489825399809 3628388372480...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #37:

score: 1.36901
Acceptable Answer
time: 73ms = 32ms + 41ms
memory: 5528kb,13876kb

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 288239172245258240 432345839113994240 4683813981209493634 73184593490051072 1154049054872175617 18014399054766336 4508135251382276 144119654978224192 36065083051215875 54043229888709680
379 144117387099635712 2323858507251712004 36046389205009408 3459890963516850176 11551777...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #38:

score: 1.36901
Acceptable Answer
time: 73ms = 32ms + 41ms
memory: 5572kb,14168kb

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 4611686155866867776 2307109680968631328 4761448641972469776 9386629756799289344 4899920809805479952 281474976973840 4685995691456070272 18227740341698561 288337028779638800 288230925941081088
335 9223372311741079568 4612108239482392704 6924291030598746178 1155278860760188928...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Test #39:

score: 1.36901
Acceptable Answer
time: 69ms = 32ms + 37ms
memory: 5496kb,13820kb

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 603482900091896064 4644625012752392 4683891015747108992 3461088882508955648 37156346730119216 563224856510464 288230659619815680 2305843078067390464 1127002639728705 36591747005940736
98 9241958181444255872 2396944492134418 6828035932160513 1171501052369829888 37157445738430...

result:

points 0.1140845070 Accepted using 640 pigeon(s).

Subtask #6:

score: 1
Acceptable Answer

Test #40:

score: 1
Acceptable Answer
time: 163ms = 100ms + 63ms
memory: 7004kb,23120kb

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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 274877906944 4611686019502178306
274 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16777216 18014398511579136
855 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 17592320262208 2251799818403841
408 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 25165824 1...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #41:

score: 1
Acceptable Answer
time: 168ms = 100ms + 68ms
memory: 6944kb,22896kb

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 13512998979109632 2253449349562560 576461027382657072 140840584355840 72092804179824642 18027594797547520 13835060255916032256 3458765338588545024 864691334647119896 70403120705536 54043204124672001 9223376438123036928 2306969458876743744 576461027382689808 140806241411072 ...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #42:

score: 1
Acceptable Answer
time: 171ms = 97ms + 74ms
memory: 7064kb,23076kb

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 549755822336 281509338546176 140874994417664 4683743612465315840 36029346774777856 1152921508901822464 32 32768 288230384741646336 71468272615424 4611703748052418561 9224497936761619456 288265560523800576 1441151880758558728 35201551974464 52776558137345 567349073674240 1383...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #43:

score: 1
Acceptable Answer
time: 187ms = 102ms + 85ms
memory: 7260kb,22920kb

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 4433479992064 2814766946979842 288511851132616704 4096 72057594040025088 4504149383708672 288230410515646464 402718722 83902464 65666 17179869184 67109120 9024928880001024 2533276971434017 282026884202496 17184063488 4503599629729792 4539333755273216 1266671754936384 288230...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #44:

score: 1
Acceptable Answer
time: 174ms = 99ms + 75ms
memory: 6948kb,22944kb

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 549755814144 2251799813685248 281475043819536 17592187092992 4611967493404103168 1126174918967296 9223372036854775808 68719476736 8804682956800 9223372036855300096 4611704712272543745 2305845208236949568 2533283380346880 67108868 142936545165321 9007199523176448 87966301552...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #45:

score: 1
Acceptable Answer
time: 177ms = 97ms + 80ms
memory: 6948kb,22952kb

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 4613937818375291136 36591746973433988 563224831426560 18014398511579148 36028797027877888 4611686022789464064 10376294640973250624 144115188344291330 131112 8589935616 274877908993 2251801961168896 72620543991627776 1729382256910532864 9232379236109524992 922337203685477580...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #46:

score: 1
Acceptable Answer
time: 169ms = 99ms + 70ms
memory: 7000kb,22932kb

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 4399120253184 3377700525965312 563224831393792 144185556853587968 35192962023425 2097152 0 549756010496 576460958461886480 70368744177664 8594128896 13512997906416128 4611686568451637248 274877972512 144115188109410304 36028805613092864 4294967296 9230127436296093824 5498900...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #47:

score: 1
Acceptable Answer
time: 175ms = 98ms + 77ms
memory: 7292kb,22924kb

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 9223376435975028992 1099511627776 1153202979583623200 0 108103983242942464 9007201402225664 4611686018427388032 274877907008 281474976743424 35184372092928 8594128896 9007199255790080 549756076160 1729382669227130880 144115188109410316 36028797023158273 8796095120384 922337...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #48:

score: 1
Acceptable Answer
time: 178ms = 99ms + 79ms
memory: 6996kb,22928kb

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 70371025879040 72057594038976640 4573968371615744 288230445953318920 9008298766369280 1099512676352 562951161380896 36028797018964992 4611703610613432320 545260544 67141888 72057594038452288 268435584 1152922604118474753 598138620477444 33554432 35189203959936 0 68853694472...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #49:

score: 1
Acceptable Answer
time: 172ms = 101ms + 71ms
memory: 7300kb,22832kb

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 4503599627370496 3377699720527936 563087392374800 140737488371712 17179869184 2147483648 9230127436295831552 64 422212465065984 16781314 2097153 4503601774854656 2251800082120704 1153484866877161472 4 35192962029568 2147484160 2251799814209536 2306405959167246432 1374725079...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #50:

score: 1
Acceptable Answer
time: 173ms = 94ms + 79ms
memory: 7000kb,22908kb

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 70368744177664 576461851815053312 72198332063154208 140806241394692 2199023259648 288230376151728160 3298534883328 274877915136 8804699734016 134217728 9007199523180608 524288 2305843009750564864 1441151949478035456 144132780261902336 0 288793326105133056 140874927570944 97...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #51:

score: 1
Acceptable Answer
time: 170ms = 103ms + 67ms
memory: 6948kb,23000kb

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 2308095908673225216 4611686018427453440 1152925902661746688 2306001338888093698 12582916 9223372036856872976 5497558269960 36169534775754752 720575940647714824 72058143793741828 36028805608898561 2415919104 536903680 1152921504608944164 18014398509481992 18014398543167520 4...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #52:

score: 1
Acceptable Answer
time: 171ms = 98ms + 73ms
memory: 7056kb,22884kb

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 2149056512 2305844108725583872 576742227414384640 288230444871188480 108086391056893952 6442452480 1073741824 268566560 0 35201551962114 18014398511579136 4503599628419072 3377700257398912 576460889742376976 140806207832064 72057611226185730 9007199254742016 922787783550540...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #53:

score: 1
Acceptable Answer
time: 173ms = 101ms + 72ms
memory: 7080kb,22908kb

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 2308094809027379201 288234774200320000 1188950301894311952 144185556828430336 70377334112258 1152934700893995012 281474980904960 2305843560043380740 1099511627776 72057628398714880 549760008193 268435456 2251799813685248 4328521730 0 90080788640694274 562949953683712 576460...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #54:

score: 1
Acceptable Answer
time: 166ms = 97ms + 69ms
memory: 6992kb,22924kb

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 13510799955853824 2305843010019131392 1729382669294272512 70368760954888 72057594046320640 0 9223372037928517888 134283296 140737488388120 51548000256 8800387990528 4505798651150336 1125900443713536 1153202979650666496 70368777740288 72057602627866624 8800390086656 67554005...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #55:

score: 1
Acceptable Answer
time: 171ms = 102ms + 69ms
memory: 7004kb,22924kb

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 9223372041149743616 8388608 8830452762640 4503668346847232 558345748482 2305845208304074752 9007208113111040 4612812468090052608 576478344489472000 144115188075864576 1126999418470400 576460754450907136 137439215616 144115188080050192 70368752566272 43980465373184 439804651...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #56:

score: 1
Acceptable Answer
time: 169ms = 101ms + 68ms
memory: 7260kb,23140kb

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 1073742592 2253449081257984 576461027181395968 68719501316 17592198627330 2098176 13835060255379947520 824633786368 288371182359560192 0 8796097217536 9227875639703896064 2253449081257984 563225032654880 0 35184372090880 18014402804449792 0 1152921504875413568 1407375219097...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Test #57:

score: 1
Acceptable Answer
time: 152ms = 96ms + 56ms
memory: 7064kb,23072kb

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 2149056768 2305843009213693952 1152921504741130272 68736253956 36028805613094913 8796093022208 9223372036854775808 562950087704576 49160 70403103924224 18014407099416576 9227877835506450688 268566528 274877906944 140806207840256 4194306 4294967296 13837309856169590784 5632248...

result:

points 0.08333333330 Accepted using 1408 pigeon(s).

Subtask #7:

score: 1
Acceptable Answer

Test #58:

score: 1
Acceptable Answer
time: 229ms = 160ms + 69ms
memory: 7676kb,22832kb

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 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 32 0 1170938102143778817
709 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 1024 35184439197696 4294967360
631 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 131072 274877911044 274878431234
333 0 0 0 0 0 0...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #59:

score: 1
Acceptable Answer
time: 254ms = 159ms + 95ms
memory: 7644kb,22904kb

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 9223372062624841728 13510936325259392 4398180734976 1152956688979034113 34361311232 18014948282073856 144115188344303616 211108380082176 2251902892900448 1099545183232 864691128992030720 4611686027017584652 206160527360 72059793161847808 576478345026338817 92233720540354314...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #60:

score: 1
Acceptable Answer
time: 253ms = 157ms + 96ms
memory: 7884kb,23076kb

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 1100585369600 2251799822073856 0 2684354560 70368745226240 68723671040 268435457 4096 4611703612760915968 37154765653671936 16384 2305843017803890688 35184372219904 144117387635982336 4503600701112448 17196711936 274890489856 4672932806720 72567767433220 131080 2097280 0 28...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #61:

score: 1
Acceptable Answer
time: 254ms = 166ms + 88ms
memory: 7668kb,23132kb

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 36169534507450368 566935683072 134217984 131074 140741783322656 0 18014398845026304 1099578736640 85899362304 0 576460752304472128 288230376420155392 16 2199027450880 2253998836973569 36028797018966016 0 0 1024 36029071896936448 2305843563264475136 2305851839666462720 68719...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #62:

score: 1
Acceptable Answer
time: 263ms = 164ms + 99ms
memory: 7660kb,23116kb

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 9223389631188303872 17592194433280 134742016 1152921504606916608 0 4611690416473899008 72057594709016576 0 2251800082120705 0 288230376151711744 140737488355332 128 72058143793741824 17592186077184 576460752303423504 17301504 0 2314850210649505792 9223442405607342082 562949...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #63:

score: 1
Acceptable Answer
time: 256ms = 165ms + 91ms
memory: 7592kb,23120kb

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 281474977234944 137443147776 216172782248003584 105553116364800 524288 768 144115188075864064 131072 3377699720527936 549755813888 17592186044416 12884901892 68719476864 108086391056891904 17592722931712 281474976972808 256 72059793061183488 2305843011361210368 17180393472 ...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #64:

score: 1
Acceptable Answer
time: 259ms = 166ms + 93ms
memory: 7700kb,23140kb

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 562958543355920 9007199263129856 4398046513152 1152921505680588802 1125917086711856 549772591360 4398046511104 65536 2251799813685248 1099545182208 8796093038592 281483566645248 4194368 33554432 32768 262152 4503599635759232 2199023257600 1 1048576 18014398509481984 2882303...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #65:

score: 1
Acceptable Answer
time: 251ms = 158ms + 93ms
memory: 7584kb,23132kb

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 281474977497088 9007336693694720 4096 0 1125934268153856 8388864 8796093022208 4 68721573952 549755814400 288230376151711744 422216760164352 137445244928 72057594037929984 576460753914036224 281474976710680 0 216172782113787904 3458764515968090112 0 16777216 8192 2147549186...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #66:

score: 1
Acceptable Answer
time: 256ms = 160ms + 96ms
memory: 7700kb,22828kb

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 17180393480 128 6597069770752 2305843012434919426 1125934266581040 256 4398046519296 6917599398532808706 3145728 36029896530592768 864691128723570688 13835198792770781188 68719476864 36028797119627264 17592186044416 9223653520421421056 274882101376 2199023259648 230587819465...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #67:

score: 1
Acceptable Answer
time: 248ms = 159ms + 89ms
memory: 7592kb,22968kb

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 9223372045444710400 9007199258935424 134221824 2305913380105420800 562949953421312 27021597764222976 288234774332440576 6917529027641147392 2251868535259136 0 576460752571867136 8 4503737068421120 108086391056893952 576460752303439872 17179869184 9007611571601664 4398046515...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #68:

score: 1
Acceptable Answer
time: 260ms = 160ms + 100ms
memory: 7888kb,22996kb

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 0 13510936321064960 134217728 70368744275968 17180393472 18014948265296384 8192 0 1125899908939776 36028797052518400 576469548664881152 13835058068167065608 137438953472 72057594071482368 1 17179869200 274882101248 216172782248001536 105553116266496 562949953421312 512 4323...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #69:

score: 1
Acceptable Answer
time: 260ms = 164ms + 96ms
memory: 7648kb,22908kb

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 562950490292240 9007199388958720 134218240 87961467092992 16777216 140737555464960 4504149383192576 4503599627436032 2251799813685376 2251799814733824 0 8392704 562950490292352 67108864 2199023255552 8589942788 4194304 134348800 2305843009213693952 34359738400 4503599644147...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #70:

score: 1
Acceptable Answer
time: 258ms = 162ms + 96ms
memory: 7748kb,22916kb

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 9223372062624579608 412316860672 4096 1152956688978935809 562949954469888 18014673387389440 8796495679488 4294967296 68721573888 549755813888 576487140850925568 9223372036855037952 4503599629467712 67109888 536887296 25770065920 412316860672 216172782113787904 2147549184 32...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #71:

score: 1
Acceptable Answer
time: 237ms = 155ms + 82ms
memory: 7668kb,23004kb

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 281474976710680 0 2199023257600 1152921504606912513 32 256 4398046511104 4611826755915743238 103079215136 1099545183232 288239172244733952 8589934596 192 36029896530591744 1152956690589548544 8589934592 4503599627370496 144115188075855872 2147483650 562949953421344 90071992...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #72:

score: 1
Acceptable Answer
time: 245ms = 159ms + 86ms
memory: 7752kb,23152kb

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 17179869192 137438953728 72059793128292352 1 0 18014673387388928 144119586122375168 70368744308736 1125899908939840 1099545182208 268435456 4611686027017322496 4503599631564928 108086391056893952 576460752303423488 17180393472 4503737066324096 4398180728832 2305913380105388...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #73:

score: 1
Acceptable Answer
time: 243ms = 163ms + 80ms
memory: 7756kb,23140kb

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 1052672 9007199523176704 549755813888 0 4398046773249 2251799822073872 512 9007205697257472 0 549755814912 2341871806249435136 4611703610613694480 262144 17179869248 288230376160100416 0 140737488355328 1152922054429769984 1100048498688 34359738368 17825792 1024 11529215047...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #74:

score: 1
Acceptable Answer
time: 255ms = 163ms + 92ms
memory: 7684kb,23116kb

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 25770065920 8388736 6597069768704 70370891759617 34359738416 824633721088 8796227239936 211108380082178 1125934266580992 36029346774778880 8796361457664 4611686018427650048 4503737066324160 2199023255552 1729382257984012289 844433520066576 256 6597136875520 2147483649 0 549...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Test #75:

score: 1
Acceptable Answer
time: 235ms = 153ms + 82ms
memory: 7720kb,22960kb

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 25770065928 4194304 72057594172147712 0 1688867040133120 9007199279907072 4398180732928 0 1125899908939840 54043195528446464 536870912 281483567038464 2251799819976704 36028797018963968 1729382258520883201 8589934592 0 72059793061183488 70368744210432 1125899906842624 18014...

result:

points 0.08333333330 Accepted using 1920 pigeon(s).

Subtask #8:

score: 1
Acceptable Answer

Test #76:

score: 1
Acceptable Answer
time: 364ms = 266ms + 98ms
memory: 9496kb,41756kb

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 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 526336 4096 549756338176
546 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 131072 0 2305843009213693952 2097152
701 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: 393ms = 267ms + 126ms
memory: 9520kb,41628kb

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 9223372036861067265 12582914 17592186044424 105553116266512 140737555464240 140737488355424 281474976710848 562949953421696 1073742336 4503602848596480 4503599627372544 27021602059192320 18014407099420672 36028797018980352 216172816473538560 206158462976 288230513590665216...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #78:

score: 1
Acceptable Answer
time: 390ms = 265ms + 125ms
memory: 9500kb,41876kb

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 0 4194306 17592186044416 33554448 67108864 134217760 281475110928384 1125899906842624 1073742592 2147484672 2048 18014407099416576 17179869184 16384 216172782113783808 32768 412316860416 1152921504606978048 1152922054362660864 6917529027641081856 0 6291457 0 35184372088832...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #79:

score: 1
Acceptable Answer
time: 392ms = 265ms + 127ms
memory: 9504kb,41636kb

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 6291456 17592194433028 35184380477444 16777216 70368744177696 201326624 64 805306368 3377699720528384 4503602848595968 2147483648 0 8192 72057611217797120 144115188075855872 68719476736 274877972480 0 2305844108725846016 524288 0 9223376434903384065 4194304 0 7036877773211...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #80:

score: 1
Acceptable Answer
time: 391ms = 270ms + 121ms
memory: 9476kb,41720kb

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 2097152 0 8 33554432 140737521909760 64 281474976710784 1125900712148992 2251800887427072 3221225472 4294970368 0 36028822788767744 16384 0 144115188075855872 0 0 2305844658481135616 0 4611686018429485056 0 8796093022210 12 35184372088856 0 0 562949953421376 268435456 256 ...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #81:

score: 1
Acceptable Answer
time: 385ms = 265ms + 120ms
memory: 9800kb,41700kb

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 8796093022208 17592186044420 8388608 0 70368777732096 134217728 0 256 1073741824 4503602848595968 9007199254740992 9007199254740992 8192 72057628397666304 72057628397666304 288230376151711744 274877906944 0 0 2305843009214742528 9223374235879079936 0 0 16777224 33554432 14...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #82:

score: 1
Acceptable Answer
time: 372ms = 267ms + 105ms
memory: 9504kb,41760kb

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 17592186044418 17660905522176 144115188092633088 4611686568183332864 68721573896 140737488617472 562949953421312 576460752303423488 1153484454560333824 2251799813685248 1048576 9223372036854776064 0 1101659111424 70368744177664 34359738369 131328 9007199254740992 230696890...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #83:

score: 1
Acceptable Answer
time: 368ms = 259ms + 109ms
memory: 9512kb,41880kb

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 4194306 8388614 17592186044416 35184372088848 67108896 140737488355328 844424930131968 268435456 512 2251799813685760 4503601774854144 18014402804451328 18014398509481984 16384 49152 206158462976 274878038016 0 1099512152064 4611687117939539968 4398047559680 92233764349033...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #84:

score: 1
Acceptable Answer
time: 394ms = 265ms + 129ms
memory: 9452kb,41596kb

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 4194304 72057731476881408 281479272202242 4398050705412 17592186175488 4504149383184400 4398046511104 35184372088832 2251799947902976 268435712 4294969352 4352 4398046511104 4503599627370496 144115188142964736 144115188075855872 0 549764333568 562949953421328 2199023255552...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #85:

score: 1
Acceptable Answer
time: 374ms = 265ms + 109ms
memory: 9496kb,41592kb

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 8796093022211 8796097216512 35184380477440 33554448 70368744177680 140737555464192 562950087639040 1125899906842752 1125900443713536 4503599627371008 4294969344 18014402804449280 8589934592 34359738368 144115188075905024 0 0 1152921504607240192 1152921504606846976 0 1 2097...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #86:

score: 1
Acceptable Answer
time: 388ms = 268ms + 120ms
memory: 9492kb,41580kb

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 9223372036858970112 8388608 35184372088840 33554432 67108864 0 562949953421376 0 1125900443713792 1536 4294969344 9007199254740992 18014398509481984 17179877376 68719476736 65536 274877972480 576460752303685632 262144 1099511627776 4398046511104 13194139533313 0 3518437208...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #87:

score: 1
Acceptable Answer
time: 381ms = 265ms + 116ms
memory: 9552kb,41660kb

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 2 17592186044418 4 16 140737555464240 140737555464192 562950221856768 562949953421312 512 1024 0 18014398509481984 0 0 144115256795332608 288230444871188480 576461164620283904 576461027181330432 3458765063576354816 1099511627776 13835060254305419264 2097152 4194304 8388608 ...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #88:

score: 1
Acceptable Answer
time: 389ms = 266ms + 123ms
memory: 9508kb,41688kb

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 549755813904 0 18014398510006272 4398046642176 9007199254741040 549755813888 9223372036854775808 18014415689875456 576531121047601672 67108864 11259001215909888 289356276058587136 17179877376 144115188075872256 562949953945600 288230513590665217 137438953472 0 3602879701902...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #89:

score: 1
Acceptable Answer
time: 393ms = 266ms + 127ms
memory: 9580kb,41580kb

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 8796093022211 0 35184372088836 35184388866048 33554448 134217728 402653184 128 1125899906842624 2251800887427584 3072 4096 18014398509486080 36028797018963968 0 98304 288230376151711744 0 1152921504607109120 2305843009215266816 4398046511104 9223372036854775808 8388610 251...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #90:

score: 1
Acceptable Answer
time: 375ms = 264ms + 111ms
memory: 9500kb,41828kb

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 137438955520 9223372036854784000 536870928 70368777732112 36099165763207168 2147483648 70368744701952 34393292800 34359738880 4194304 18014398509485056 562954248388608 8796093022336 8589934592 70866960384 4611686018427404288 0 549755817984 0 34359738368 2147483648 27487790...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #91:

score: 1
Acceptable Answer
time: 392ms = 270ms + 122ms
memory: 9508kb,41832kb

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 2 8796093022210 16777216 35184372088856 0 281475110928384 402653184 256 2251799813685248 2251799813685248 4294967296 27021602059190272 8589934592 34359754752 72057594037960704 288230444871188480 576460752303423488 549756076032 1152921504607633408 1099511627776 1 9223376434...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #92:

score: 1
Acceptable Answer
time: 379ms = 266ms + 113ms
memory: 9456kb,41600kb

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 13194141630464 0 35184372088832 16777216 67108864 32 281474976710784 562950221856768 536871168 2147483648 9007199254740992 9007199254740992 36028797018963968 34359746560 68719476736 144115188075855872 274877906944 576461027181330432 2305844108725846016 0 1048576 8796097216...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Test #93:

score: 1
Acceptable Answer
time: 375ms = 260ms + 115ms
memory: 9576kb,41720kb

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 0 512 16908288 16 8592031744 18014398509481984 562950020530176 1152921521786716160 0 4503599694479360 17179869184 9007199254740992 8192 2147483648 144396663052566528 2147483648 576460752303423488 0 134217728 576460786663161856 4096 4611686018427387904 8388608 3518437208883...

result:

points 0.08333333330 Accepted using 2688 pigeon(s).

Subtask #9:

score: 1
Acceptable Answer

Test #94:

score: 1
Acceptable Answer
time: 521ms = 390ms + 131ms
memory: 11436kb,41688kb

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 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 0 1099511628800 0 4503599635759104 432345564227567616
655 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 32 ...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #95:

score: 1
Acceptable Answer
time: 565ms = 399ms + 166ms
memory: 11764kb,41828kb

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 34359738432 2199023261696 70368744177664 9007199279906816 1610612736 68719476864 4398046523392 524288 18014398559813632 2147483652 206158430336 4398046519296 1572864 67108864 3458764513820540940 137438953472 26388279083008 3145728 201326592 2305843009213693976 274877906944...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #96:

score: 1
Acceptable Answer
time: 550ms = 395ms + 155ms
memory: 11796kb,41700kb

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 0 134217728 140771848101888 1024 0 0 549755813888 0 8796093022208 1729382257044488192 0 9223372037391646720 562949954502656 67108864 2308094809027379200 0 0 0 35184372088832 17592186044416 18014398509481984 8796093022210 0 0 0 18014398509482240 8589934592 262144 9007199254...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #97:

score: 1
Acceptable Answer
time: 543ms = 399ms + 144ms
memory: 11580kb,41828kb

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 32 4096 140737488486400 0 576460753377165313 64 0 281474976710656 0 0 137438953600 4398046511104 281474976710656 0 2305843013508661256 412316860416 17592186060800 0 72057594105036800 8589934592 0 98304 6291456 134217728 17179869184 549755813888 0 4503599631564800 0 1717986...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #98:

score: 1
Acceptable Answer
time: 565ms = 394ms + 171ms
memory: 11504kb,41712kb

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 9223372036854775808 2199023259648 211106232532992 4503599627370496 1610612737 0 6597069766656 281474976710656 33554432 1073741824 256 16384 844424930656256 18014398509481984 8 274877907200 0 562949953421312 0 2305843013508661248 274877906944 98304 0 402653184 16 2048 0 225...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #99:

score: 1
Acceptable Answer
time: 566ms = 398ms + 168ms
memory: 11800kb,41724kb

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 9223372036854775808 2199023259648 131072 4503599627370496 288230376688582656 0 4398046515200 524288 27021597764222976 0 128 16384 0 54043195528445952 1152921504606846976 256 0 1125899908939776 108086391056891904 12884901888 0 65536 2251799813685248 134217728 32 0 351843721...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #100:

score: 1
Acceptable Answer
time: 550ms = 401ms + 149ms
memory: 11768kb,41752kb

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 576460752303423488 0 2199023255552 9007199254740992 578712552117108738 0 536870912 70368744177664 4096 0 576460752307617792 18014398509481984 67108864 562949953683456 4294967296 0 17592186077184 1125899906842624 281474980904960 2305843009213693968 1152921504875282432 10995...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #101:

score: 1
Acceptable Answer
time: 545ms = 398ms + 147ms
memory: 11480kb,41700kb

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 134217728 9223372037391646720 1125899906842632 2251799822073856 131072 1152921504606846976 8192 290271069732864 33554432 2147483648 1152921504606846976 0 137439477760 18014398509481984 4328521728 72057594037927936 2260595906715648 17592186044416 72092778410024960 4194304 0...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #102:

score: 1
Acceptable Answer
time: 528ms = 403ms + 125ms
memory: 11512kb,41712kb

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 0 2199023255552 393216 25165824 288230376151711744 34359738368 8192 262144 33554432 0 384 0 0 67108864 2147483648 0 17592186044416 1125899908939776 72057594037927936 4294967296 274877906944 35184372088832 2251799813685248 134217728 0 0 65536 4194304 0 17179869216 4096 1407...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #103:

score: 1
Acceptable Answer
time: 552ms = 403ms + 149ms
memory: 11508kb,41872kb

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 96 4096 262144 4503599627370496 1 64 8192 524288 18014398559813632 576460752303423488 256 4398046511104 0 33554432 4294967296 0 26388279083008 0 201326592 0 512 98304 2097152 134217728 0 2048 35184372088832 4503599631564800 1 34359738400 0 140737488355328 0 536870912 0 0 2...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #104:

score: 1
Acceptable Answer
time: 548ms = 401ms + 147ms
memory: 11476kb,41700kb

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 34359738432 3298534883328 70368744308736 8388608 1610612736 34359738368 0 281474976710656 18014398543036416 4 128 0 562949954469888 18014398509481984 4294967296 412316860416 0 1688849861312512 36028797018963968 4611686027017322512 1024 65536 2097152 268435456 1383505805528...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #105:

score: 1
Acceptable Answer
time: 555ms = 402ms + 153ms
memory: 11464kb,41672kb

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 64 0 0 9007199271518208 1 128 4096 140737488617472 0 1152921504606846980 137438953600 0 1048576 54043195528445952 1152921504606846984 512 17592186077184 0 134217728 2305843009213693968 274877907456 0 2097152 268435456 9223372036854775808 2048 131072 4503599635759104 268435...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #106:

score: 1
Acceptable Answer
time: 557ms = 398ms + 159ms
memory: 11580kb,41644kb

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 34359738432 4096 70368744177664 4503599635759104 0 192 2199023255552 0 18014398509481984 0 256 8796093022208 844424930131968 67108864 8 0 8796093022208 0 72057594037927936 4611686027017322496 1024 35184372121600 4194304 0 32 1099511627776 105553116266496 4503599627370496 0...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #107:

score: 1
Acceptable Answer
time: 525ms = 398ms + 127ms
memory: 11516kb,41872kb

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 0 0 17592186044416 562949953421312 576460752571858944 0 2097152 281479271677952 2251799813685249 18014398517870592 146028888064 0 562949953421312 1125899906842624 0 32768 0 2305878193585782784 0 549755815936 35218731827264 0 2251816993554432 9223372036854775808 4294967296 ...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #108:

score: 1
Acceptable Answer
time: 546ms = 399ms + 147ms
memory: 11796kb,41596kb

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 288230376151711744 8 0 35184372088832 585467951558197248 562949953421312 0 281475110928400 274877906944 0 0 131072 35184372088832 2251799813685264 0 512 32768 0 67108864 10737418240 2199023255552 0 2147483648 162129586585468928 134217728 0 0 0 549755813889 0 0 262144 0 144...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #109:

score: 1
Acceptable Answer
time: 547ms = 395ms + 152ms
memory: 11456kb,41740kb

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 32 17179869184 17592186060800 2251799815782400 0 1152921504741064704 8192 524288 17592186044416 288230376151711745 2147483648 2199023255552 140737488357376 0 2308094809035767809 0 9223372036854775808 0 0 281474993487872 35184908959744 576461302059237440 4194304 17592186044...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #110:

score: 1
Acceptable Answer
time: 552ms = 400ms + 152ms
memory: 11468kb,41672kb

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 51539607552 0 211106232532992 16777216 0 128 4398046511104 262144 0 0 137438953472 8796093038592 562949953421312 100663296 1152921504606846976 137438953728 0 1125899906842624 72057594172145664 4611686027017322512 549755813888 0 0 0 0 1649267441664 0 6755399441055744 268435...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Test #111:

score: 1
Acceptable Answer
time: 539ms = 397ms + 142ms
memory: 11572kb,41872kb

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 34359738368 2048 131072 0 1073741826 64 12288 140737488617472 50331648 576460753377165312 128 0 281474976710656 36028797018963968 0 274877907200 8796093038592 2097152 201326592 8589934616 274877906944 65536 2251799819976704 0 9223372062624579584 3072 0 4503599635759104 1 6...

result:

points 0.08333333330 Accepted using 3712 pigeon(s).

Subtask #10:

score: 0
Wrong Answer

Test #112:

score: 0
Wrong Answer
time: 1ms = 1ms + 0ms
memory: 4160kb,4388kb

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.