QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#152952#5447. 鸽子AbdelmagedNour#41.426958 2728ms23432kbC++201.8kb2023-08-29 01:42:582024-07-04 01:52:19

Judging History

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

  • [2024-07-04 01:52:19]
  • 评测
  • 测评结果:41.426958
  • 用时:2728ms
  • 内存:23432kb
  • [2023-08-29 01:42:58]
  • 提交

answer

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

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

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

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

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

詳細信息

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 1ms = 1ms + 0ms
memory: 4048kb,4200kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

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

result:

ok Accepted using 1 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 64ms = 2ms + 62ms
memory: 5360kb,22936kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

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

result:

ok Accepted using 1024 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 426ms = 3ms + 423ms
memory: 4588kb,9288kb

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 255
713 13524882331533312 0 0 0
757 3805542510969749504 0 0 0
908 5539090988103892992 0 0 0
656 15496178496165642240 0 0 0
884 6500171796812136448 0 0 0
185 4606002642823413760 0 0 0
280 5289576800911884288 0 0 0
307 13231893606647726080 0 0 0
96 6571652809148596224 0 0 0
91 1682417...

result:

ok Accepted using 255 pigeon(s).

Subtask #4:

score: 6.62913
Acceptable Answer

Test #4:

score: 6.62913
Acceptable Answer
time: 427ms = 3ms + 424ms
memory: 4592kb,9104kb

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 255
609 13852034514815025152 0 0 0
210 5275544750999470080 0 0 0
545 13846396219187789824 0 0 0
19 16798426610091950080 0 0 0
715 17048033341783146496 0 0 0
725 15334519236684939264 0 0 0
542 6890586594714058752 0 0 0
412 1135927452887941120 0 0 0
203 17047954176945946624 0 0 0
730 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #5:

score: 6.62913
Acceptable Answer
time: 425ms = 0ms + 425ms
memory: 4548kb,9072kb

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 255
105 4378624737710964735 18446744073709551615 18446744073709551615 9223372036854775807
724 17494610984520646655 18446744073709551615 18446744073709551615 9223372036854775807
428 16803598712789008383 18446744073709551615 18446744073709551615 9223372036854775807
438 118586463219362...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #6:

score: 6.62913
Acceptable Answer
time: 440ms = 4ms + 436ms
memory: 4560kb,9144kb

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 255
658 18019806863316803582 9629017612060981836 9573285565160829750 7904983602212749156
293 5269632538007869366 9230125787425954686 14518338251608550889 1328548899523293145
482 13891918753566503106 14992217683197673669 15199649568594686955 8647341648730227175
677 775532898785951528...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #7:

score: 6.62913
Acceptable Answer
time: 426ms = 2ms + 424ms
memory: 4588kb,9132kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
378 12827603749897142632 87813595966316544 5289800707997546495 8399847400058274415
105 283163557933141244 1352704897734135744 1135121578229401010 542259764516493318
123 5533074486075064325 11631819194834771674 5514074610794869609 1155458068220477593
121 14983754084307963893 4197...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #8:

score: 6.62913
Acceptable Answer
time: 428ms = 4ms + 424ms
memory: 4584kb,9120kb

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 255
36 430756077590839660 15713622070761900126 14742454136766858657 1842774613184846838
527 17619766369877933116 12832990374532383031 17395170398254627376 8784235995080975652
242 16738975446898276886 9228755653269071337 8816464767606086504 3245135713860799487
770 415443803072650970 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #9:

score: 6.62913
Acceptable Answer
time: 434ms = 4ms + 430ms
memory: 4564kb,9376kb

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 255
537 3472499705416419843 17311418079207736296 4610349927920551363 813990995891822110
642 5214825707437897366 9228445085338560603 3705576389710807038 4787276294549337855
803 17657769460632646412 233078652785605827 18392472180068371497 2416470067820647776
902 16825421839287056973 1...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #10:

score: 6.62913
Acceptable Answer
time: 448ms = 4ms + 444ms
memory: 4528kb,9292kb

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 255
638 6510839461619269253 11615762101055469490 5189414978795858227 1366390109158516335
946 13848638821518704642 10881816409509662717 7561801635588195279 7132892105768301648
367 5532777670785292894 9224658562492772869 12912800339920717239 8412681235243689581
305 1836535766684699267...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #11:

score: 6.62913
Acceptable Answer
time: 428ms = 4ms + 424ms
memory: 4544kb,9092kb

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 255
160 13170862872131904640 1708698813276487703 11880078653886226409 1196620700097442816
228 107029275453849663 1045747145163675267 17567681215639204036 5142266848246586982
119 1146167480417255171 17581775524388280271 14055417774674754601 2442778014309221678
994 1706854363160898280...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #12:

score: 6.62913
Acceptable Answer
time: 428ms = 2ms + 426ms
memory: 4548kb,9072kb

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 255
70 1323972939642943104 1322707226246854366 9249021753369161210 2644751869921198090
604 1627967055692464420 15708661048225636442 1298308593182737828 7219220685355220405
990 6630159405897767948 1441155017311601653 18229502154295106096 8545790875592589206
60 16802522512033883122 15...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #13:

score: 6.62913
Acceptable Answer
time: 426ms = 4ms + 422ms
memory: 4780kb,9072kb

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 255
382 2888148573147104197 18342896707999676172 341915388687483648 7363184290440226977
45 427252647282076895 18102212496846001868 14518238271608623999 6619152976817635508
4 11534603595714008798 9649384098729801434 1378444121687462405 9009735670267116846
266 4589062467996155899 8357...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #14:

score: 6.62913
Acceptable Answer
time: 460ms = 4ms + 456ms
memory: 4744kb,9196kb

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 255
947 18176162002332441764 12776664850144068403 868437381791036669 4468282766633467394
735 71208775939194903 1509777620652771844 10088908002218164128 2277099526822744820
969 14973197098197909696 12308113306668843023 281672956711829562 9178300862106293767
22 17123106753940257375 17...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #15:

score: 6.62913
Acceptable Answer
time: 437ms = 4ms + 433ms
memory: 4576kb,9364kb

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 255
997 5275862729441359849 7581730493690077111 16803572657931573765 8409359546810037392
141 4341467017216261888 3743389528177804127 14069028425869234161 2838499221104523674
959 5987268680742922298 13785762788865023 12920724784958141907 2017521509418408053
129 17122706912897382309 1...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #16:

score: 6.62913
Acceptable Answer
time: 429ms = 3ms + 426ms
memory: 4824kb,9084kb

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 255
522 4275147396720102636 15918817571675140096 16988869720670449292 1898376043456857368
280 1458277805554930420 13471533513533091840 17709014102769391370 1830822066159846948
526 5598642737213084524 15811153521965361153 7900605122914137746 2766497648396159268
804 71353803784328437 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #17:

score: 6.62913
Acceptable Answer
time: 424ms = 3ms + 421ms
memory: 4536kb,9364kb

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 255
387 14182745981921002252 3545303231950045172 10101849015172544140 2296868898724512249
558 1498847876179035404 3507447046597730290 10101849014769856274 2296886490977665526
684 5861430747830682386 5858323850914381803 732252961433669388 3449790403398468342
440 6894690202963412108 5...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #18:

score: 6.62913
Acceptable Answer
time: 478ms = 0ms + 478ms
memory: 4828kb,9092kb

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 255
304 14015202383987982428 6633535056638889776 1146535283148862912 2628686533248294265
390 18432107581093167162 6633394312573865768 1725247706425863616 1781728328326913658
760 13920521204337197146 4327701393139816240 1148760703315490208 2934650107810618745
963 1703706770636513370 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #19:

score: 6.62913
Acceptable Answer
time: 417ms = 5ms + 412ms
memory: 4828kb,9192kb

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 255
159 4378219275792413993 7494408899221912627 18400063259782810697 4250835233743993317
86 13155602587369598153 7494406734155741773 18364069673006404169 3962323450244740825
870 13243819025194021680 17294098888906767413 18364069638512053289 4178777708358646246
170 138584373577425846...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #20:

score: 6.62913
Acceptable Answer
time: 424ms = 2ms + 422ms
memory: 4668kb,9376kb

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 255
532 18429585782705819567 3063308934816023900 18342880843464192853 7773417024744780830
263 5270875262951921590 14737069763062342875 9121620383793958093 6615988402931299374
45 426937204366153654 14737069763062342875 9121620383793958093 6615988402931299373
390 11619299270945050575 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #21:

score: 6.62913
Acceptable Answer
time: 430ms = 2ms + 428ms
memory: 4664kb,9068kb

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 255
171 6836364890145718579 7600491322835000186 406615444665851808 3405394413295432849
612 18036333378299920691 7600491322835000186 406615444665851808 3405394413295432849
971 4503828067018277202 17364260095839657212 270936225194393536 3423465917753981009
569 1728095440149578035 7600...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Subtask #5:

score: 5.72958
Acceptable Answer

Test #22:

score: 5.72958
Acceptable Answer
time: 607ms = 4ms + 603ms
memory: 4740kb,9180kb

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 382
14 7479353081155551232 0 0 0 0 0
808 111520384913768448 0 0 0 0 0
841 16253654839462985728 0 0 0 0 0
76 922325328959897600 0 0 0 0 0
756 645138314453581824 0 0 0 0 0
19 17517313700610965504 0 0 0 0 0
955 17843048362551541760 0 0 0 0 0
21 16805744959486427136 0 0 0 0 0
83 1751999...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #23:

score: 5.72958
Acceptable Answer
time: 605ms = 4ms + 601ms
memory: 4652kb,9100kb

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 382
712 18415045406883839999 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 4611686018427387903
538 11269835438417772543 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 4611686018427387903
477 25224029568594083...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #24:

score: 5.72958
Acceptable Answer
time: 637ms = 5ms + 632ms
memory: 4580kb,9288kb

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 382
651 18445037630792460287 3486647277105440268 18144988828308349337 10952781108059596390 1171817273351937088 14634390005431547
934 10952757814992332384 14357177573967184486 7223098261935480344 14757188551076874363 3677484644261986844 1846472329573432953
352 18360680354093631231 18...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #25:

score: 5.72958
Acceptable Answer
time: 616ms = 4ms + 612ms
memory: 4528kb,9196kb

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 382
732 16415339031251910678 4552470640627777509 3427615632741963264 2251802519566027072 6369356506292011008 780803004452514500
952 716100924348569859 9223368934814631932 16098116844614787134 8059050778922478056 632175841327386655 4182436680271192101
76 3458223542288452349 164490930...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #26:

score: 5.72958
Acceptable Answer
time: 618ms = 5ms + 613ms
memory: 4648kb,9072kb

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 382
731 7378648385751717888 14984327518923679678 6917530786840638446 1809905213758380032 1222670196992638963 875524575600207836
202 14446109031078561888 1441068310475900252 3168748943297769472 2022822662304107007 14360853315955967649 2847497604707016512
323 147389828959481 142674106...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #27:

score: 5.72958
Acceptable Answer
time: 612ms = 4ms + 608ms
memory: 4556kb,9192kb

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 382
991 4883241647900065791 18443141180263766215 11068044904910289304 5485412486775718662 9062244174290746560 75663985665796095
933 17988873692443183856 4042572656593092597 11310870823110223935 2252258187895844836 11527689244721173072 3458022895759654935
352 713833540238563032 41279...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #28:

score: 5.72958
Acceptable Answer
time: 621ms = 4ms + 617ms
memory: 4544kb,9288kb

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 382
901 10953942801410375679 18214944927252512769 11529136293977595408 4842492159884394911 3610866626318828351 4496395131049266227
84 18043673829061427200 6894448079548121032 1921130466249850370 8989175223861307191 14796479337771131327 4107652296508720765
996 18392815241047564415 15...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #29:

score: 5.72958
Acceptable Answer
time: 642ms = 4ms + 638ms
memory: 4592kb,9076kb

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 382
931 15044275654474334356 6917526829142343452 14555353342866223871 13111421078269329184 6903713942520371145 1148433297563448973
66 17843258389933563430 9070770268495704268 14946918078072609155 3689360271996680191 16695692907712341504 9429411821728563
230 35959375315094565 7661700...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #30:

score: 5.72958
Acceptable Answer
time: 613ms = 4ms + 609ms
memory: 4528kb,9072kb

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 382
554 18432335633632524239 1182137727597885667 9511709209516625469 17842067941884300320 1747824149674367390 1017817034222734591
755 17542830271637880944 6903434549191661811 12710474307534828 256607976989654763 17762056233439289344 378394729152708720
415 3457427452159742989 7499931...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #31:

score: 5.72958
Acceptable Answer
time: 613ms = 5ms + 608ms
memory: 4652kb,9076kb

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 382
257 253186741084894927 16958938156065618623 15276649748407287454 4893948243909540367 17485442569419848383 1025195070288055335
712 11061970157278534863 8989612042286479432 8682940107758623104 4885954851764171743 4355508501095638540 4494820709909679308
869 18158599072913555458 174...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #32:

score: 5.72958
Acceptable Answer
time: 634ms = 4ms + 630ms
memory: 4576kb,9212kb

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 382
25 645140199945928652 1854634015597031875 467473651073648400 6990780244639029519 8992628526631079868 4597205580776076254
203 35196492486074701 3891079559526219804 8070502346737014783 12959952215283232594 12952335015258363137 2832642626814574415
218 17519424818661821691 965572428...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #33:

score: 5.72958
Acceptable Answer
time: 606ms = 2ms + 604ms
memory: 4572kb,9136kb

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 382
188 280540967332237847 11635830959779610592 1768508586020831391 16372815967270535161 9238890132436980064 3448970639098856447
124 14473584040008910296 3192155267177381228 15003742606202616967 18446181259616462083 9223369889189199168 3098969960097331
307 892248407989131297 1109641...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #34:

score: 5.72958
Acceptable Answer
time: 629ms = 4ms + 625ms
memory: 4544kb,9076kb

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 382
232 6231733938550471037 11796542830015298930 99079342155313076 6578351477904521088 64575764078512088 2233676167626397696
918 252764082461865790 14192388519589899925 234187260126247889 11273494895244091200 61207343584467866 3891058288044879872
312 2269829605266160542 653830837776...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #35:

score: 5.72958
Acceptable Answer
time: 610ms = 4ms + 606ms
memory: 4664kb,9212kb

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 382
750 2302183726965933614 4587998167922885311 16721267282155427168 3079640289982720576 6917361901694317823 2306192413661585595
182 7384630102052358259 14960619416846545727 14706953183976213552 7176926690471251040 14987684890564063038 1731103646315157918
793 11068018742842412083 14...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #36:

score: 5.72958
Acceptable Answer
time: 627ms = 4ms + 623ms
memory: 4588kb,9284kb

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 382
432 18434360140565000164 14877501214544625664 142565768965333328 225182958131330048 5980762713078671722 499912618375218827
396 17802585023073609676 14769098164138934272 463657985456367120 873701846123000576 9781761216258928867 922140171015342201
801 18638547253196 14769098436869...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #37:

score: 5.72958
Acceptable Answer
time: 615ms = 4ms + 611ms
memory: 4824kb,9068kb

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 382
826 18432134093912119711 8126881032166598591 16028038618230620358 4393806504098657059 14354031941781144163 229852459180253489
379 10343334589489503 14629564778843142399 16859964145557831731 10664031209401480726 12230210883488424476 1805114281391309589
94 17661837771720861887 142...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #38:

score: 5.72958
Acceptable Answer
time: 614ms = 4ms + 610ms
memory: 4832kb,9104kb

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 382
999 604670653938319411 17236127345702181276 8759289017515651202 1729601100955910110 9223077367738531736 76401888197744641
335 922112463505244211 17236127345702181276 17352157106538557571 576618023697907663 9222945426343198616 80622921941391361
842 18410715282351226903 1804874560...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #39:

score: 5.72958
Acceptable Answer
time: 644ms = 4ms + 640ms
memory: 4580kb,9132kb

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 382
689 604661334057733371 9656012380123181838 2766912356127483411 3676658713659205222 9219929207176031425 2882275210197878687
98 13574922395695500537 16285442973007884828 7378598374556836915 3676131076926891622 9219929222208539841 2882275210197885855
868 18335223786972695803 965601...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Subtask #6:

score: 4.26804
Acceptable Answer

Test #40:

score: 4.26804
Acceptable Answer
time: 1102ms = 4ms + 1098ms
memory: 4996kb,13896kb

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 763
551 18446394477934298680 0 0 0 0 0 0 0 0 0 0 0
274 796297848042904704 0 0 0 0 0 0 0 0 0 0 0
855 18444562435946825231 9223372036854775808 0 0 0 0 0 0 0 0 0 0
408 259251757771392 0 0 0 0 0 0 0 0 0 0 0
533 16662216725936218893 0 0 0 0 0 0 0 0 0 0 0
641 15654512304817615149 0 0 0 0 ...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #41:

score: 4.26804
Acceptable Answer
time: 1141ms = 5ms + 1136ms
memory: 5012kb,13884kb

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 763
370 10375274259940637727 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 576460752303423487
267 3834237563395455 1844...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #42:

score: 4.26804
Acceptable Answer
time: 1152ms = 5ms + 1147ms
memory: 5052kb,13980kb

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 763
670 13826057461150678040 4501349476824260359 17906172343530027071 17730565108245069327 11459409118566289404 44761185408777312 18010035647342968575 13979164717913440280 540571697388722238 8329887743 16211252765152902145 521300315723530272
63 18446619514994145204 17980614081990655...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #43:

score: 4.26804
Acceptable Answer
time: 1137ms = 5ms + 1132ms
memory: 5048kb,14052kb

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 763
744 18439995624599322720 17304297092797170399 18423231512127209473 17582170321643888864 4151223557027376 3743439213454923008 2697658924829376511 18078290285662412064 119398604769357565 1152944124074126733 18446728743768940024 144176921463227943
377 16607023618064384 177373867209...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #44:

score: 4.26804
Acceptable Answer
time: 1113ms = 6ms + 1107ms
memory: 5056kb,13820kb

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 763
12 9504778310861848319 13843785428859095030 4607608924093225023 17730531003797594127 11458881460460552316 36030721407061760 18417751902268554767 9223380564577361670 1117029184468553631 504334507441290264 4502508778590076926 35474434919530270
576 15253168571040014336 482025897617...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #45:

score: 4.26804
Acceptable Answer
time: 1145ms = 6ms + 1139ms
memory: 5064kb,13828kb

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 763
621 7339867 12372468996313743360 6555763536088268800 2920546661492378501 13546827177361218561 279233294696652666 7636726290565363548 463867789930923695 18413041568416145408 2691115800607059256 5908740303278648072 81660216180735
540 18426478165296581710 15780726893759692799 18446...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #46:

score: 4.26804
Acceptable Answer
time: 1134ms = 6ms + 1128ms
memory: 5120kb,14020kb

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 763
620 9502595746392709120 27030385234779910 1125627194647249904 9151489299525402616 4467852850820554503 18014258855952254848 1729382257040393184 1161920337131577094 4607745335440211905 18306991756100564996 72013881941196924 71811272428892412
403 972777519504405794 1588455652851299...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #47:

score: 4.26804
Acceptable Answer
time: 1145ms = 6ms + 1139ms
memory: 5132kb,13892kb

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 763
430 15614639555721068 13339679173761826811 2592417208627676716 22043076221321220 3107484258281629696 7456201849356893600 6278017825438609407 18442640688263199516 14164489211098431152 26312650060877847 18446744073608890798 463870797588481231
744 8944148859840235516 70615041612625...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #48:

score: 4.26804
Acceptable Answer
time: 1167ms = 6ms + 1161ms
memory: 5028kb,13980kb

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 763
907 18446744073707585027 9223917942295953471 16134141300297957376 8942037256399880688 8069359683434971136 504683535878064065 18306991747772735495 9223376503555751811 16699839932927049696 18437736599316856335 11457192636402630657 432468776103174398
939 18416828561329500436 949776...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #49:

score: 4.26804
Acceptable Answer
time: 1144ms = 0ms + 1144ms
memory: 5248kb,13824kb

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 763
282 17608830092263 283761830168101878 18159638602072584319 18374617828646862863 10953316693930115184 260934998951858079 436846956778194942 6989058793887243900 1746835633873125216 17870317440496204800 11457192637477388412 1398793406743024
68 370907265023 18446418382581439637 3881...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #50:

score: 4.26804
Acceptable Answer
time: 1132ms = 6ms + 1126ms
memory: 5012kb,13808kb

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 763
785 8944148859957804799 16308506186448897 17329851365718753729 18417541002188228600 4593918043668611168 540568432165257184 17870283733857074703 11458863346401475593 17329849234190897149 9511435253146844703 13978926952720866304 521872198991333438
249 8941965643222153712 918843395...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #51:

score: 4.26804
Acceptable Answer
time: 1127ms = 6ms + 1121ms
memory: 4996kb,13972kb

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 763
27 4206145653035237375 14852977124205680647 9838359283606724865 13835058055024213994 13868694314987010036 9239919684738947967 18446736335350260983 9165742234398092250 16138342864666574961 10231667658051289087 18438616485147441024 14474249430619
956 70368732646151 179004539275625...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #52:

score: 4.26804
Acceptable Answer
time: 1137ms = 5ms + 1132ms
memory: 5120kb,13792kb

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 763
402 8649147691200282499 17437656013831913982 2303600038812579902 6922001824173982176 2236028687264905440 575895670171361286 8071469813769160207 9223372037930613123 16140902714274750463 9503722178940601312 1154046751647195385 540986332467425776
40 5249013899713 134026577557607516...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #53:

score: 4.26804
Acceptable Answer
time: 1179ms = 5ms + 1174ms
memory: 5252kb,13868kb

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 763
166 17901575771298907424 14763948864 2188837818031669128 800690662981753920 304916771110912 6107593703426 6793657635346922171 10664528893682507263 15495511697020092415 18446717394617985918 6232980298893844469 270589811503400719
282 9504284579138208736 133278195961 92319526282660...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #54:

score: 4.26804
Acceptable Answer
time: 1119ms = 2ms + 1117ms
memory: 5116kb,13816kb

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 763
381 10375308372598718207 13944269796473291199 13839552858808379329 18307025858665055807 17402999744547798784 7476401880344434751 16176755013136154175 17437392334971986168 4573419126391680 34110892345337 18159049992944222207 576214324795416571
993 9502595488889732127 184118406268...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #55:

score: 4.26804
Acceptable Answer
time: 1140ms = 0ms + 1140ms
memory: 5060kb,13812kb

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 763
982 18446744071310624632 18446370188216443392 1614540535071018091 5062055541324195914 14730546009608450312 7850671351998335403 4612158727745028098 12102369681518439442 18445981010946756607 15915292891523055616 391813152521521664 312577961811942728
344 15240181143685767636 115291...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #56:

score: 4.26804
Acceptable Answer
time: 1171ms = 5ms + 1166ms
memory: 5024kb,13788kb

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 763
567 8072685010485708543 13978887374528085891 17311274017666630032 1151902223093995520 8529805043710 568014578621874175 13830661073922949120 2018173932673173478 1125627227958935520 17872466951381436408 4602784501171249407 292716383592783616
685 532609105663 13978644932214161343 1...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #57:

score: 4.26804
Acceptable Answer
time: 1160ms = 6ms + 1154ms
memory: 5060kb,13884kb

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 763
2 15472477159645574865 9230655201861862815 11096869713769124101 2405265205694039825 10475272127951455747 18384820761089015805 4611817605491767135 18446556057226311034 9835861586177348224 540431953487194836 4009893033614246122 72060643464707776
812 18446741171788057469 1615588960...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Subtask #7:

score: 3.64364
Acceptable Answer

Test #58:

score: 3.64364
Acceptable Answer
time: 1440ms = 0ms + 1440ms
memory: 5996kb,23276kb

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 1017
287 18446744073480175668 9925933578724573184 0 0 0 0 0 0 0 0 0 0 0 0 0 0
709 17967306048510500849 12088103403536777216 0 0 0 0 0 0 0 0 0 0 0 0 0 0
631 18446604435699237118 4611965294380843008 0 0 0 0 0 0 0 0 0 0 0 0 0 0
333 15128637786000380052 15655075254693265408 0 0 0 0 0 0 ...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #59:

score: 3.64364
Acceptable Answer
time: 1445ms = 6ms + 1439ms
memory: 5952kb,23148kb

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 1017
128 18446744073709520895 16285016252571713535 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 1...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #60:

score: 3.64364
Acceptable Answer
time: 1473ms = 6ms + 1467ms
memory: 5936kb,23424kb

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 1017
790 18413666660070875136 2406442137849393151 18432738359644563455 18446727440240048719 18446744073590843840 5054248352320260274 2988701288459544376 1873511652398627835 2553540972344509367 18446744073269673984 490865026211513055 17158408213218197517 4460419683300634623 172276509...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #61:

score: 3.64364
Acceptable Answer
time: 1498ms = 7ms + 1491ms
memory: 6152kb,23432kb

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 1017
817 9151316641840103424 35747588332191744 27056644705648385 18446743798814867968 4620675627618337279 18410995098138443648 18338377861211095166 33777126054330112 2161795992469405248 72054849528594816 18302768532200333311 9367487224930631679 18428728575730319744 18337531842875391...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #62:

score: 3.64364
Acceptable Answer
time: 1479ms = 7ms + 1472ms
memory: 5936kb,23172kb

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 1017
881 540703388627627103 10368685951445893120 534380243285180416 10019915631975605 8767945524443003871 1616781330724225012 13469140585557725250 16223091757695703444 308280712 18302628873195487231 15768897935182170624 2748505677794856447 18442893662812897280 352573796609228799 184...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #63:

score: 3.64364
Acceptable Answer
time: 1473ms = 6ms + 1467ms
memory: 6232kb,23392kb

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 1017
163 885828415568895 18446722976993502008 3780120728758271 18439795160302864384 382918263733946368 809240558043054 10824286496181809073 18435018881711899552 8169027795648 1571337480630271 18440921060243144661 14123780710348619775 18033790948250296685 5874965944811388928 49314077...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #64:

score: 3.64364
Acceptable Answer
time: 1468ms = 6ms + 1462ms
memory: 6148kb,23392kb

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 1017
821 9799799801678561025 18446605535139593985 18446744071578745856 1150676847323906048 35465872835378945 18446604435690946528 4609891478028550144 8323487 17870564247700373503 9294866680947605951 18375109783058382848 35749518934671487 126065613775838720 9151737747814252032 915131...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #65:

score: 3.64364
Acceptable Answer
time: 1475ms = 6ms + 1469ms
memory: 5940kb,23272kb

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 1017
964 8646944815386263136 72050996968161279 18410995093810347008 1044553652531823103 9294866682550943617 18410995093814108545 18445055221718482689 18410995098130120192 9151737748334419967 71494706344886271 9295006325492547646 9151877390891090431 13979173241227214593 1841127768541...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #66:

score: 3.64364
Acceptable Answer
time: 1491ms = 0ms + 1491ms
memory: 6060kb,23156kb

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 1017
946 2860344806792495103 18236902279548502015 18440585861511373762 1494062871368558583 1152921504606846976 5805816050612172182 12790801017082216447 15766809824216375227 5188156750657753623 3351510933994147990 607220761918488951 14139071886850509268 261879480575143152 15312197770...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #67:

score: 3.64364
Acceptable Answer
time: 1494ms = 3ms + 1491ms
memory: 6152kb,23432kb

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 1017
415 18446716637519282175 14581576319683788799 18446744072956640246 13835058070418620422 17719389068617609762 8070404095061524489 16258035027500066670 3455596709151759916 11439156117224030189 13835058055282163712 1751 18446729831598010518 3238049096429480975 8110003710710630781 ...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #68:

score: 3.64364
Acceptable Answer
time: 1451ms = 7ms + 1444ms
memory: 6064kb,23276kb

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 1017
337 16542356536644075520 17977575825341639677 294490995270032893 1155010504758922664 1130403444766347650 10038831686879703 18446706757663891604 1826209648808558611 11173298400613376545 15832398742429843566 11802483225868221343 18446744049148200130 4821103377162174446 9925913375...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #69:

score: 3.64364
Acceptable Answer
time: 1481ms = 0ms + 1481ms
memory: 6152kb,23168kb

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 1017
782 2487522737009197105 4975351688337965055 13204027794253172736 5699868099264511 18445200359824029490 17580253955252813823 18446743896993824767 18446736477791450464 2711542389589572601 8342508569774082795 14592811756560642005 17737216017710451577 18446743986737197020 161409010...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #70:

score: 3.64364
Acceptable Answer
time: 1449ms = 3ms + 1446ms
memory: 5964kb,23388kb

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 1017
934 6968361101217279 23707912813467 13732961167918229674 9243602845063442 828917419232591871 18231699018239442967 3737847128529743871 18446712393359686947 12679066828213119547 7923599821051434160 2139772772953256656 7205782390111731719 5578583349753448127 13338911917620590754 2...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #71:

score: 3.64364
Acceptable Answer
time: 1493ms = 6ms + 1487ms
memory: 5936kb,23352kb

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 1017
561 35465872843604223 9367486949515886080 2130837376 18336406011687993344 35748975578972223 17978932391768489728 279256162245832704 4499096296145028608 9151877390639562239 18410995033684475648 144254832562139647 18415218610029953278 9151738853235605534 123146350755855 288196909...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #72:

score: 3.64364
Acceptable Answer
time: 1446ms = 6ms + 1440ms
memory: 6152kb,23184kb

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 1017
522 18410994552644075008 468094552716181758 27022138937444351 1689395346341472 35466388231847681 18410995033713926535 18438299549513678783 18375109785189187838 70643588562881 18446605526671195905 9295359528436530945 9295427429738643201 9295006327497621118 2247410365431810 54549...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #73:

score: 3.64364
Acceptable Answer
time: 1455ms = 0ms + 1455ms
memory: 6188kb,23356kb

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 1017
715 9294866680939282556 3940651804754175 16158908320441172094 4496590232485761 18444915577282658049 9294866683019660927 112589724388947968 9110782312458485887 112589722517209094 6917667568237019135 10376223720359329664 18302628885642019327 18446604427151212929 18445054811264024...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #74:

score: 3.64364
Acceptable Answer
time: 1502ms = 3ms + 1499ms
memory: 6056kb,23152kb

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 1017
556 9151877390639464193 9367480112462823423 9294866682549927424 8646944269904383998 8444251432028096 4609436417645281282 9079263991343055870 35466392559943679 9511587017712893697 18419721933705641987 17365811447933632899 18437807114349969407 18419721378577092607 139791729684634...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #75:

score: 3.64364
Acceptable Answer
time: 1436ms = 3ms + 1433ms
memory: 5936kb,23260kb

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 1017
574 18410994554774880255 11529074319300886400 18302765233657184767 18014292954251755774 35749005667351552 4503036703195201920 18334154351444066558 1610645119 144115185945050880 2297398485017821183 9294998624473718399 144115185945018368 35749518934801919 18410995098138411262 138...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Subtask #8:

score: 2.92626
Acceptable Answer

Test #76:

score: 2.92626
Acceptable Answer
time: 1935ms = 0ms + 1935ms
memory: 6196kb,22820kb

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 1398
203 18446073769091207179 6250361606882983936 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
546 1311973386347352540 4670232875128342784 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
701 9232379231814549263 18446462871463272192 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
907 1844252193187915264...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #77:

score: 2.92626
Acceptable Answer
time: 1979ms = 7ms + 1972ms
memory: 5932kb,22888kb

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 1398
509 1099549629646635008 43821039615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 1844674407...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #78:

score: 2.92626
Acceptable Answer
time: 2004ms = 6ms + 1998ms
memory: 6192kb,22816kb

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 1398
646 8646911830549070335 11526965445009866496 16391 18446603473660142079 18437789925890590716 140728898420735 13839558287655696384 2303591209534095456 2305841085034823648 71987294005362672 71916858688668671 18012268197314687 9224489140676591488 2305570330321747967 1832064326703...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #79:

score: 2.92626
Acceptable Answer
time: 1974ms = 3ms + 1971ms
memory: 6060kb,22796kb

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 1398
206 8646912384056164863 9223372584463107840 504403226716565504 71846419140444128 1055531166855171 18001066931257340 13853072436613083136 142989837924040679 18446603336355414016 35150045900803 18392630509497743360 22513604384785407 18410722148638785520 70931831435919391 1787028...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #80:

score: 2.92626
Acceptable Answer
time: 1985ms = 7ms + 1978ms
memory: 5932kb,22924kb

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 1398
290 4499204803132416 2269814245682053183 16716799416601640991 17870283355732344831 18446744073705361404 8998411750605823 4607186816310181503 16143152623791341664 575897870935261287 18302769623122046979 18374695267183099903 13835053660458975224 31525197391593472 575898352105816...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #81:

score: 2.92626
Acceptable Answer
time: 1990ms = 8ms + 1982ms
memory: 5996kb,22860kb

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 1398
950 2181843401983 9223653444185621503 18429576299151491056 288001682027577344 18446664908863971327 18001200078128127 1098437918688 4602678827225776064 1152780904423227399 18302629435148337024 144114105742002174 4499204835631104 2301902360076091455 17294684584071413711 18158795...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #82:

score: 2.92626
Acceptable Answer
time: 1990ms = 8ms + 1982ms
memory: 5980kb,22980kb

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 1398
281 18446744073709551615 18445688542479778048 281200308514816 2305702280314749171 18374740355740344319 18001200078129151 18374699674343833603 13835620455882948576 9223091111566823423 18374792067114074113 18410741673551200768 18014384551885824 549219336319 16429131715257040911 ...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #83:

score: 2.92626
Acceptable Answer
time: 2043ms = 5ms + 2038ms
memory: 6076kb,22868kb

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 1398
790 976859495084851200 134387322536965 6579759055587535959 5012507067625871477 7867788549017017354 433479039517199869 18446744073709494008 6485160669975937021 11643960276538461061 18158513697557839871 18446743434277875663 2377900657654915072 296390951433039705 9223371968002129...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #84:

score: 2.92626
Acceptable Answer
time: 1960ms = 8ms + 1952ms
memory: 5996kb,22932kb

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 1398
741 3377700792680448 1152785130805329664 128849027008 33285997555 18374756840362729472 1116892707587883008 2249602401566208 1151796704211632127 18446744007137556511 18446708923663646721 17575008264192 130599994402013152 6919779176039843584 280925221289984 143974553935085571 18...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #85:

score: 2.92626
Acceptable Answer
time: 2005ms = 7ms + 1998ms
memory: 5936kb,22940kb

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 1398
747 18390449107758927991 15395731248026484752 16910940928410121443 8817127882370290911 18240390455808884188 7206074247198672093 17077649786988920829 12128569697482448563 15292488149576689555 18446744073211773993 17582052945254416248 11434367092878160205 14690701426393345797 17...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #86:

score: 2.92626
Acceptable Answer
time: 1980ms = 7ms + 1973ms
memory: 6072kb,22832kb

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 1398
155 16098425807348131839 18446744073700126976 29972598226944 8809877439 4685911110711439847 18445889304744643026 16002578103727806463 18318746626585264134 1067353101993958911 18446744073704298560 5115294201585521 4179340548540203007 18446178994526161630 656225238882811388 1818...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #87:

score: 2.92626
Acceptable Answer
time: 1981ms = 3ms + 1978ms
memory: 6192kb,22856kb

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 1398
948 9214371572100366399 9224496838323732479 18446744073642573823 16573387228789587983 18410750461041709055 9227858044297148416 2161763005443735551 16142591013866962943 18158795172400332799 18446744073709551615 18428747250206244864 536936447 17293875346734578880 184456182079600...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #88:

score: 2.92626
Acceptable Answer
time: 1979ms = 7ms + 1972ms
memory: 6048kb,22816kb

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 1398
83 1040187423 9223372586074144767 17871128020945764320 432486301581737984 33777065923706892 18428747265305739136 4035366003479150464 2304153610134487015 18444492411330674703 18230500991571062787 18374693076758165511 18445624773017862399 131941931679744 288239171171008511 17870...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #89:

score: 2.92626
Acceptable Answer
time: 2006ms = 3ms + 2003ms
memory: 5964kb,22808kb

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 1398
730 9187343270973277055 18444493923699654656 67043383 18446603440374152207 18410856010018191363 18012200556821504 18444494471307984896 4611686293037121535 18160765488782114783 18379190075037578239 18410715328232259584 562945559669768191 16143152829966057472 281200367206431 178...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #90:

score: 2.92626
Acceptable Answer
time: 1975ms = 3ms + 1972ms
memory: 5936kb,22996kb

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 1398
616 18200471357053992959 18433373366996959231 18155217361702743615 18439694399952853072 394064208622459396 2470604010592438495 16960028431095955456 5644287 12578222020266819584 1151931344054483346 4555281006398899328 632547673668207180 75968226789 6199204935276634368 766963016...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #91:

score: 2.92626
Acceptable Answer
time: 1963ms = 7ms + 1956ms
memory: 6192kb,22800kb

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 1398
626 9232370441089188608 4607182693694701552 1801439782497157119 18303754783393316352 2161745138446229504 13835128423896317440 9216614440537751551 17296074111218335840 18446726756372054012 288195226105806849 18410750461062676479 9232370441081847823 18433232725608496832 11517957...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #92:

score: 2.92626
Acceptable Answer
time: 1991ms = 7ms + 1984ms
memory: 6076kb,22860kb

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 1398
762 257663677865392 1240240320038305790 12246659605238644735 18446744073700724154 9648928419968163839 18442150383323751267 7457739177929474048 18485539241981 13690942867212629571 2315360037964496896 420629970943 17158433105304879104 21884679439253498 17584345292286997573 13842...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #93:

score: 2.92626
Acceptable Answer
time: 1996ms = 7ms + 1989ms
memory: 5956kb,22996kb

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 1398
511 18446335450521010176 124891392929791 18446738285052585088 9789677405775822847 18188045961403804596 13763000461158723103 18084517561627596996 1422193173258777246 18446733403532436471 113152940637741970 18170503064404955647 18324302459007424479 12242560756897284096 423100132...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Subtask #9:

score: 2.23032
Acceptable Answer

Test #94:

score: 2.23032
Acceptable Answer
time: 2609ms = 6ms + 2603ms
memory: 5936kb,22844kb

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 1906
350 9222809121261092856 1152921435891564288 554153860399104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
655 18446744073709548522 18014398622205054 6719302027639259136 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
636 281457797890047 18446743936278986367 16140...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #95:

score: 2.23032
Acceptable Answer
time: 2612ms = 5ms + 2607ms
memory: 6248kb,22996kb

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 1906
526 9223934952448720880 18014398509481856 144115187807420415 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 184467...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #96:

score: 2.23032
Acceptable Answer
time: 2674ms = 8ms + 2666ms
memory: 5964kb,22808kb

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 1906
881 16850484620126312221 5141039935658131456 150196077687 6524982485804131061 1801914839971467848 17300555671293329413 13081795833231034582 16978590490555072471 18446744073708960992 13666137880467524162 10926014170994991556 1046560742183009869 162167856856560107 77015824316979...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #97:

score: 2.23032
Acceptable Answer
time: 2660ms = 4ms + 2656ms
memory: 6228kb,22816kb

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 1906
1 9222809121261092863 18446743936278986367 18302637681726715904 2305737453950042367 18446726550242721791 17293822573372497920 72053195992449024 2305702280315207683 18443366305273741280 36028522157833984 72031205222015231 18446726498703278079 18444492480058490687 18374689778273...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #98:

score: 2.23032
Acceptable Answer
time: 2669ms = 9ms + 2660ms
memory: 6008kb,22804kb

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 1906
154 6652099028134 9692893371636930523 9223372006163669503 13757535265451986960 197083516507281420 13425322848168181763 4359594610038632608 3274079992345678239 14114281232178543426 7493989779945863247 9222750263029268480 75701663067275467 16068750332498280448 662717211869119 48...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #99:

score: 2.23032
Acceptable Answer
time: 2675ms = 8ms + 2667ms
memory: 6000kb,23064kb

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 1906
158 3054664876489048249 2306417843817860780 18157753552685649305 3286501828039944192 233250448926941313 18407410239764712250 1454647041930194990 3111300963752859101 4008167506949845478 5971773114723432200 9313636068883847087 18446744073709551615 18044005254235684863 1844674392...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #100:

score: 2.23032
Acceptable Answer
time: 2668ms = 9ms + 2659ms
memory: 5912kb,22808kb

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 1906
124 1 52717473409224811 17852228409283060323 17924957675347881847 18288766243030700423 13835058050725152789 490933728009468445 18217055784479065412 4322053785296781183 18446591797792618151 18428477612159401984 98004524946495231 18446744073709551615 7045177929579364408 32075071...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #101:

score: 2.23032
Acceptable Answer
time: 2672ms = 9ms + 2663ms
memory: 5984kb,22996kb

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 1906
672 18446744073709551615 18446744070748378624 230364815710 10033044728737431676 11488682645120899072 13342480078538411591 7171643105893941291 9786321990276083079 4583051537339183185 10952754293765913751 14987979509832122566 15266076836819067904 2631901345870774274 786493988618...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #102:

score: 2.23032
Acceptable Answer
time: 2701ms = 9ms + 2692ms
memory: 5936kb,22808kb

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 1906
180 280925221945336 8383709052928 4323455642342719488 4398044363751423 18014398443946015 18419721926223068943 18446739675671167039 18446735284059111416 1055531162927007 18374686479872950272 0 4611404556335841267 18442240680244805439 18374690053083889671 18446462598736985984 87...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #103:

score: 2.23032
Acceptable Answer
time: 2652ms = 8ms + 2644ms
memory: 5992kb,22948kb

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 1906
786 8589410335 18442381211570012544 144108590871877632 2305736906341744608 562949693374456 36028797010575871 17870287710862704671 9223442401304182787 18443366236554199040 2305842940561325568 576425567931334656 4611404560630415367 18437736874456899584 558551940202496 1796155323...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #104:

score: 2.23032
Acceptable Answer
time: 2656ms = 4ms + 2652ms
memory: 6072kb,22984kb

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 1906
491 18446600777101216318 12467107103917871114 5471407354324975615 18446726193941044492 3742552313240088984 15849283093018968063 18428053578588367048 584268057922332352 182246251326983012 8910162342438432881 13835057761338769824 16789419410850610687 15776461892776967163 1490161...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #105:

score: 2.23032
Acceptable Answer
time: 2675ms = 9ms + 2666ms
memory: 6060kb,22884kb

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 1906
386 18446743493891073563 12646107734445039482 17293491016644403199 18446744073709551615 18446714959829139456 75408442604182 18446744073709551517 1240741697344712511 18446681145392126148 13181262467124307757 13942068778222223290 719916810131454783 17908077385322897788 922337203...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #106:

score: 2.23032
Acceptable Answer
time: 2687ms = 8ms + 2679ms
memory: 6068kb,22816kb

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 1906
698 18446744073709545138 12666791731721023434 3084471958255913732 3641034430142975 17776215520296388672 3066945848681168895 18408425062698212898 2232422075977562999 18446744072427060172 12682136534515939524 9726367516367781887 18446742128483013224 8025691612904423423 184343386...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #107:

score: 2.23032
Acceptable Answer
time: 2663ms = 4ms + 2659ms
memory: 6192kb,22928kb

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 1906
298 4151910875168 69603031031 16285517976457158616 11440250768516323316 13042424520864956415 18445617625120636968 6316579952363831183 15060600103880359936 2320475034645721088 14563444843961696256 534607709039724 9504951467170049972 12682844986423589328 3631203121436518658 1178...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #108:

score: 2.23032
Acceptable Answer
time: 2641ms = 9ms + 2632ms
memory: 5984kb,22820kb

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 1906
814 18249133521773790893 13269295551117000704 17 6776197336141006591 14699749181491003840 865962050273280 59 1612996197802000512 159770034266603779 800735427714613286 9330332375724246779 18415719900000354779 7100703271209468544 12970367133885221960 9223372036854777879 67193296...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #109:

score: 2.23032
Acceptable Answer
time: 2675ms = 8ms + 2667ms
memory: 5992kb,22996kb

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 1906
192 18217078072872871968 661991748125468168 1036398312527936064 4031762818046859552 317033789785243007 18446743935368431616 487382274537490 9360694940227434512 10815127551 18446605396715520021 11529215268931207167 18120517427747016936 1648294372656087043 1354535242556421699 10...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #110:

score: 2.23032
Acceptable Answer
time: 2657ms = 8ms + 2649ms
memory: 6068kb,22888kb

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 1906
474 281457796841504 4362862147403775 9511602412939382783 14987838822416909311 17870283390117224447 18446181948406627328 144106392385503231 18445899648779419646 72057593772638271 18374686754549531647 17293831364658880512 9222949815800168455 18439988536835833983 1833865548374684...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #111:

score: 2.23032
Acceptable Answer
time: 2728ms = 10ms + 2718ms
memory: 6060kb,22888kb

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 1906
983 9222246136951078919 18437737286780059263 18302628885969235968 4611650836202651648 562915595255935 18446708897860292607 13835066851375067136 4611404545598029830 2251696732373119 18446743524222173120 287667701072003072 9223231300439760896 1125899369979648 1022 17592169281536...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Subtask #10:

score: 0
Time Limit Exceeded

Test #112:

score: 0
Time Limit Exceeded

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:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2668
814 2487654592293109759 18280007739283644439 2391412126074392447 18281017061171789824 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
220 86511643775 18446743845485369707 18273348887439266304 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

result: