QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#105777#5447. 鸽子zaneyu#42.522315 2034ms42396kbC++233.4kb2023-05-15 12:51:022024-05-31 13:35:38

Judging History

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

  • [2024-05-31 13:35:38]
  • 评测
  • 测评结果:42.522315
  • 用时:2034ms
  • 内存:42396kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-05-15 12:51:02]
  • 提交

answer

#include <string>
#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;
//#pragma GCC target("avx2")
//order_of_key #of elements less than x
// find_by_order kth element
using ll=long long;
using ld=long double;
using pii=pair<int,int>;
#define f first
#define s second
#define pb push_back
#define REP(i,n) for(int i=0;i<n;i++)
#define REP1(i,n) for(int i=1;i<=n;i++)
#define FILL(n,x) memset(n,x,sizeof(n))
#define ALL(_a) _a.begin(),_a.end()
#define sz(x) (int)x.size()
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()),c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
//you may define some global variables, but it does not work if you try to transfer any information from function pigeon_num or function send to function receive through these variables.
//you had better not use the same global variables in function send and in function receive.

/*
Taskid:         The index of the subtask. If it is subtask 2, then Taskid=2.
k:              The time threshold. Suppose the i-th pigeon taking off is the p_i-th one to land. It is guaranteed that abs(i-p_i)<=k.
return value:   The number of pigeons Little E will use.
*/
int pigeon_num(int Taskid, int k){
	return (k+1)*128;
}

/*
Taskid:         The index of the subtask. If it is subtask 2, then Taskid=2.
n:              The number of pigeons Little E will use. This equals the return value of function pigeon_num.
k:              The time threshold. Suppose the i-th pigeon taking off is the p_i-th one to land. It is guaranteed that abs(i-p_i)<=k.
msg:            The content of the message.
return value:	The order of the pigeons taking off. The length of this string must be n. return_value[i]='0' means the (i+1)-th pigeon taking off is black. return_value[i]='1' means the (i+1)-th pigeon taking off is white.
*/
std::string send(int Taskid, int n, int k, __uint128_t msg){
	string ans="";
	REP(i,128){
		int z=msg%2;
		REP(j,k+1) ans.pb(z+'0'); 
		msg/=2;
	}
	reverse(ALL(ans));
	return ans;
}

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

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

/*
Taskid:         The index of the subtask. If it is subtask 2, then Taskid=2.
k:              The time threshold. Suppose the i-th pigeon taking off is the p_i-th one to land. It is guaranteed that abs(i-p_i)<=k.
msg:			The order of the pigeons landing. Its length is equal to n. msg[i] denotes the color of the (i+1)-th pigeon watched landing by Little F. '0' means black and '1' means white.
return value:	The content of the message. It should be correct.
*/
__uint128_t receive(int Taskid, int k, const std::string &msg){

	const static Init init;
	int n=sz(msg);
	__uint128_t ans=0;
	set<int> s[2];
	REP(i,n) s[msg[i]-'0'].insert(i);
	s[0].insert(n),s[1].insert(n);
	REP(i,128){
		int z=min(*s[0].begin(),*s[1].begin());
		if((*s[0].begin())==z){
			REP(j,k+1) s[0].erase(s[0].begin());
			ans=ans*2;
		}
		else{
			REP(j,k+1) s[1].erase(s[1].begin());
			ans=ans*2+1;
		}
	}
	return ans;
}

详细

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 610ms = 1ms + 609ms
memory: 4424kb,13944kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 896
0 9079277739760943614 140720103384710144 3742561658031996912 2296941906321485831 16143082630873602079 10954970926184153087 13978679563171954432 8971188046422540412 287130999815430145 17437972524940910608 32987492127728 4611650696648853472 6953100436144390174 287667511833387260
0...

result:

ok Accepted using 896 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 1900ms = 10ms + 1890ms
memory: 8164kb,41744kb

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 2688
556 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 1167307261 18446744073709551615 18446744073709549989 17754763372315803647
363 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 213096415 13815854714294302583 184467440737...

result:

ok Accepted using 2688 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 148ms = 2ms + 146ms
memory: 4912kb,9160kb

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 256
713 0 0 0 1584627978752
757 0 0 0 43025173324
908 0 0 0 1237348219698
656 0 0 0 65437380851
884 0 0 0 83449557594
185 0 0 0 23967738
280 0 0 0 1594109990540
307 0 0 0 184734122995
96 0 0 0 923673113306
91 0 0 0 1238164758167
914 0 0 0 1314642573005
707 0 0 0 274872369139
662 0 0...

result:

ok Accepted using 256 pigeon(s).

Subtask #4:

score: 6.60583
Acceptable Answer

Test #4:

score: 6.60583
Acceptable Answer
time: 167ms = 2ms + 165ms
memory: 4908kb,9164kb

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 256
609 0 0 0 670725
210 0 0 0 93330
545 0 0 0 1184261
19 0 0 0 783
715 0 0 0 880975
725 0 0 0 750381
542 0 0 0 787450
412 0 0 0 246760
203 0 0 0 61623
730 0 0 0 849362
262 0 0 0 295002
866 0 0 0 1497618
887 0 0 0 1498847
741 0 0 0 1276493
436 0 0 0 374472
230 0 0 0 64572
245 0 0 0 ...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #5:

score: 6.60583
Acceptable Answer
time: 153ms = 2ms + 151ms
memory: 4588kb,9180kb

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 256
105 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709528282
724 18446744073709551615 18446744073709551615 18446744073709551615 18446744073708833487
428 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709303055
438 18446744073...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #6:

score: 6.60583
Acceptable Answer
time: 172ms = 2ms + 170ms
memory: 4868kb,9180kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 256
705 5600140472875272574 14842201826862620307 3947827284551794381 12934233911814165298
753 18446387918912078655 266542705844368873 7732680566573105365 8290317695917755482
318 12831719079728245024 1317619569705633793 2651951683812293408 6910853179585835520
986 1707824662852626432 ...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #7:

score: 6.60583
Acceptable Answer
time: 189ms = 2ms + 187ms
memory: 4588kb,9424kb

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 256
944 12907633597348833374 9223689010273138380 14741240436971017014 15709842258721562312
37 14974398666936290352 918783888169284352 13889382314288607235 15550524047677038677
254 81241746000315376 17580779775301988375 12827374692361808407 4226064966757650199
54 1628050950822303743 ...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #8:

score: 6.60583
Acceptable Answer
time: 187ms = 3ms + 184ms
memory: 4588kb,9164kb

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 256
313 18160097389694430195 13906903778566649121 8941638631743868925 7819270721365883584
718 5194565326630251936 1404721073213743487 16719030869334649988 15790017684546363415
604 14941902589224285140 1050570119207468863 6863207865051494016 418429374171693056
620 1383523397795112454...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #9:

score: 6.60583
Acceptable Answer
time: 180ms = 2ms + 178ms
memory: 4880kb,9164kb

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 256
353 408768517348789493 1084559645096542440 1082451553551645773 11575922557777359045
34 4327874577902391276 13547689422230394876 288215790839140306 4371869363723813175
152 329326959725660453 11556235073409389078 9573379579366079336 21869365195290600
997 4328880456617218044 453964...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #10:

score: 6.60583
Acceptable Answer
time: 172ms = 2ms + 170ms
memory: 4876kb,9168kb

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 256
668 17564753448359150228 18216835981888442172 6646240196684690380 18158530442775886399
107 86528810262016606 16037882480828063745 7576662706032139116 14411939757336461330
653 6831292150983744005 11630645017990340631 17127772221072891903 17143031538203042152
682 11554965052519780...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #11:

score: 6.60583
Acceptable Answer
time: 186ms = 2ms + 184ms
memory: 4692kb,9264kb

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 256
251 1723047832585857097 7925918389960913412 10520493229026346113 4033952129580401792
708 18365628706170095688 14054925416330503167 12395025496738697921 3684225763739302652
837 13152114078397333408 6809548112384759497 2391995462393391414 16139291481017206802
780 17285376095134054...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #12:

score: 6.60583
Acceptable Answer
time: 181ms = 2ms + 179ms
memory: 4688kb,9184kb

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 256
918 1709115671945594970 5539109548326990412 16120535576633415660 9309508638377343493
410 1298621559793360918 15733913065720217221 17148099343741221759 11936127263425031296
250 13883540560692638671 936704397574091600 1084646501962956511 4607196712129921274
57 6571717227235958422 ...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #13:

score: 6.60583
Acceptable Answer
time: 175ms = 0ms + 175ms
memory: 4904kb,9176kb

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 256
862 6587860648963074124 14842200265816703336 1722647055762381622 10520509310295862477
228 405329325369851826 6593169640862418430 16120634841634734080 5290828904969422943
287 18420059317905915981 18115835053001407341 11554652031620369555 7514676876453791821
982 657266687579111279...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #14:

score: 6.60583
Acceptable Answer
time: 187ms = 3ms + 184ms
memory: 4624kb,9140kb

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 256
720 11637276601093511757 16798842539638498738 6815795693311992173 18116145427339805919
823 5620386884619244123 7919581516593195098 427257986104300032 5620170631165384320
886 1647919996224308442 5296132653206174231 11530566125975535639 18441340738941012058
598 1678935454069976244...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #15:

score: 6.60583
Acceptable Answer
time: 189ms = 2ms + 187ms
memory: 4616kb,9164kb

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 256
767 11940951465913014875 2712534139486581266 6835176259178176876 14742131371158064274
352 14987117595369704528 725922868914606652 14726765425340241150 9496965972732738560
950 18352878765022904503 17570579344923819031 6035234306718841876 4336967128733388544
416 132582543532950019...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #16:

score: 6.60583
Acceptable Answer
time: 145ms = 0ms + 145ms
memory: 4608kb,9216kb

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 256
522 1317703740700267314 5291087035076519350 9229731297939764955 3947431358992370906
280 1317703740700267314 5291087035076519350 9229731297939764955 3947431358991489608
526 878601136221883596 2950939263068317134 9227620340304262876 14902428690703594444
804 1317703740700267314 529...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #17:

score: 6.60583
Acceptable Answer
time: 146ms = 2ms + 144ms
memory: 4608kb,9156kb

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 256
387 13240648952683693050 5866853085292171824 12680683610504082058 3548836522681512773
558 13231674738878318074 5290849618158850633 4033877911281257618 5269211588490874056
684 14961059160485790714 5292644132701770801 4033904265194326796 5269211588488852236
440 1496102178567828377...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #18:

score: 6.60583
Acceptable Answer
time: 143ms = 2ms + 141ms
memory: 4556kb,9244kb

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 256
304 13175942621083186834 410471019399911400 1400030244106758234 6486850873099026725
390 13203494181715031820 417788922117689328 931092900156076092 6630974857133708287
760 13175942621083186834 410471019399911400 1400030244106758234 6486850873099414661
963 13175942621083186834 410...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #19:

score: 6.60583
Acceptable Answer
time: 147ms = 2ms + 145ms
memory: 4616kb,9448kb

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 256
159 5599883404586803126 10540754403144653695 12853174302838521878 10608222635972699354
86 3158906016158990255 875994315355733247 12988315311508750351 916478298919293299
870 5599883404586803126 10540754403144653695 12853174302838521878 10608222635974118893
170 5599883404586803126...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #20:

score: 6.60583
Acceptable Answer
time: 148ms = 2ms + 146ms
memory: 4612kb,9176kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 256
532 6491839499645388269 12912383101329566078 15790990841170436403 7919903098150659583
263 4327857815391994869 13027787835212624255 6711840095289295180 16999052194753258252
45 4183742626778743787 14747599949491399039 4414898180310769868 17721846949638625216
390 649183949964538826...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Test #21:

score: 6.60583
Acceptable Answer
time: 142ms = 0ms + 142ms
memory: 4628kb,9456kb

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 256
171 14055669102955249916 286962312574707104 4565700099555606287 5404583451267693820
612 14055632235525783932 431641111903126464 6862008178435571471 3783278798448864351
971 11860129092186874234 431077612193392032 6835092127210954390 14736173829200839034
569 14055666861015343484 2...

result:

points 0.55048543690 Accepted using 256 pigeon(s).

Subtask #5:

score: 5.69577
Acceptable Answer

Test #22:

score: 5.69577
Acceptable Answer
time: 234ms = 3ms + 231ms
memory: 4628kb,9168kb

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 384
14 0 0 0 0 0 6132
808 0 0 0 0 0 3435946368
841 0 0 0 0 0 3438358681
76 0 0 0 0 0 2893712
756 0 0 0 0 0 3330268688
19 0 0 0 0 0 68815
955 0 0 0 0 0 3485268943
21 0 0 0 0 0 29463
83 0 0 0 0 0 5337199
411 0 0 0 0 0 429497295
961 0 0 0 0 0 3488808979
532 0 0 0 0 0 1744856768
252 0 0...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #23:

score: 5.69577
Acceptable Answer
time: 244ms = 0ms + 244ms
memory: 4684kb,9236kb

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 384
712 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744072820742655
538 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744071964689047
477 184467440737095...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #24:

score: 5.69577
Acceptable Answer
time: 283ms = 3ms + 280ms
memory: 4696kb,9248kb

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 384
186 16239918481028415276 9223417128621832195 16746635742674711019 6971185074758751678 396524295799665369 18234476765269402367
192 420944310356606978 11542708523411381168 1886071847191234 7421460466088017919 16930721780794654467 18441536758857305611
20 6241997744336273520 9163692...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #25:

score: 5.69577
Acceptable Answer
time: 281ms = 0ms + 281ms
memory: 4848kb,9452kb

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 384
653 7376899552579210462 7378718960616784830 16249577016694038727 2079589956985683552 29272504442814364 8683853645021183980
923 7137307761287629883 16602520026297975363 439601910459662352 17753338934527131596 29219604159429825 10268193076653169024
777 7050810946799255545 11096815...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #26:

score: 5.69577
Acceptable Answer
time: 280ms = 3ms + 277ms
memory: 4616kb,9244kb

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 384
464 17978357492877947844 11527452528929259567 2475924266463934976 450360018173164733 468376480746528409 15027101466743537663
387 18416819765636 14836813411620502646 16280406000309646335 11395285769790141235 4388757823826200131 3742265890745431039
630 13618666435425547148 1475744...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #27:

score: 5.69577
Acceptable Answer
time: 276ms = 3ms + 273ms
memory: 4904kb,9472kb

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 384
889 10962820913811996672 6679544037478 6924734788264239101 14065639277570949529 10432853079301812019 3494807381452770511
368 18412447947790491560 9223576471326422019 18246721740068614245 12960818741512501519 13849806178500042801 1073741423
116 11068046877121524486 73535291022582...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #28:

score: 5.69577
Acceptable Answer
time: 276ms = 3ms + 273ms
memory: 4680kb,9252kb

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 384
138 5962764483890771200 85002204561065472 13834667982277945347 3872933544338651649 17006712635498760191 18357502326779936000
218 15019574902249929487 3301153921447053830 16432764121110679084 7010838696455359 16862590951720263635 18428959327235523232
479 2022104132720779544 91694...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #29:

score: 5.69577
Acceptable Answer
time: 274ms = 0ms + 274ms
memory: 4652kb,9140kb

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 384
385 18347839798824527040 858639423168290821 4661201701362934655 18025600609223422150 18446744069425629948 9010296191395296317
673 18165480203191562364 9318070780774121706 4640960053518777199 5477099525620576255 17237011077234948479 10348663375394767016
67 922337149271933343 1844...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #30:

score: 5.69577
Acceptable Answer
time: 278ms = 3ms + 275ms
memory: 4592kb,9184kb

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 384
586 7446147810099711729 11239994387951801431 18131492087084906887 18393095712109283069 697067213546309600 1128120919458315864
795 7142164097060042655 4465213475759645623 11061694128747185791 18371305440534173744 9223372917185452543 18008980339464077312
713 16154976513786116623 1...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #31:

score: 5.69577
Acceptable Answer
time: 272ms = 3ms + 269ms
memory: 4920kb,9456kb

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 384
229 80006616431751620 13979212303461989886 7378699234939871231 11028418279419733606 9194135953952682051 2444541479831261055
874 7417571632379617569 10503393263329464217 11470668463769385369 11068095704419058075 14959156522364143385 11524486269459498598
305 2294420732644560025 68...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #32:

score: 5.69577
Acceptable Answer
time: 278ms = 3ms + 275ms
memory: 4612kb,9468kb

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 384
175 881350984365884300 1750840325634122252 2766912634246198137 11061966639704546400 13982590731656003481 902422925066580784
664 13561408238965603387 8762068071197448310 17581939825240637634 7479371738493347571 18215076960365760499 16140826435195436848
263 11068127733313044868 14...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #33:

score: 5.69577
Acceptable Answer
time: 277ms = 3ms + 274ms
memory: 4652kb,9180kb

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 384
811 18437191572508590079 16573699407539114465 3746880544024454672 5159382683462791942 1387101878564786657 15839045763181902227
56 6991416153755291343 8989635119262254876 2313152149762187128 4726978168986661632 14958713003765384984 6975968961856380908
904 562924189894679 14234189...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #34:

score: 5.69577
Acceptable Answer
time: 231ms = 3ms + 228ms
memory: 4684kb,9160kb

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 384
232 1709794031779791 2134423892839570496 461162808797459395 2220130311902071840 14354055582277422531 15703939338084343404
918 915572551679985 12383491349229642944 210567532333976514 15416380904519502400 3276788742781574486 13609835468039333136
312 1180139799379947 56066994040855...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #35:

score: 5.69577
Acceptable Answer
time: 236ms = 3ms + 233ms
memory: 4620kb,9460kb

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 384
750 7378725721254856710 9072071471569731571 320284658535864774 608527734051280947 18216162269429201399 2032036555916213228
182 7378725721254336518 9072204375036755955 440474473575586246 896476635226282035 18216162273455733235 14344877931002384230
793 4000040868323352577 18403840...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #36:

score: 5.69577
Acceptable Answer
time: 239ms = 3ms + 236ms
memory: 4628kb,9164kb

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 384
432 5119695283418434764 14067128882183798241 57688131549266992 605283405386282592 7133454561075 3742280156601922559
396 7029221525423525068 14343528513220640225 57950365072491568 605283405386282592 7133689442099 3742280156249514959
801 7044983987754110156 14275974518810082545 57...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #37:

score: 5.69577
Acceptable Answer
time: 239ms = 3ms + 236ms
memory: 4628kb,9164kb

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 384
826 4833771561841857304 15588381421973880436 8119894684445998964 12970416404381136627 18363183208009933341 18308821334070661119
379 6999019366400803619 9683192403797863907 9570036539257757500 7133859313924241139 18295422933902758460 17985688035613180928
94 1877441427587738661 40...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #38:

score: 5.69577
Acceptable Answer
time: 241ms = 3ms + 238ms
memory: 4612kb,9128kb

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 384
999 10953936332369280032 1873497444983930878 8935029070580875280 13944270792360321478 4438754829583568119 14700624813803578416
335 10953936392722947168 1873497444983930878 8935029070700281872 13944270792108601799 2132911820369874407 14700343359814251312
842 10954463196231613472 ...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Test #39:

score: 5.69577
Acceptable Answer
time: 236ms = 3ms + 233ms
memory: 4576kb,9164kb

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 384
689 18366538003965018109 196610265262907391 4825607068032778399 225844060661755682 6450984313336987701 4580439260209398160
98 18400032698070728702 233272380121563135 2443765935533875295 739518309550010241 7675118978060582939 6890922682347181773
868 18404543173270044668 932860849...

result:

points 0.47464788730 Accepted using 384 pigeon(s).

Subtask #6:

score: 4.21856
Acceptable Answer

Test #40:

score: 4.21856
Acceptable Answer
time: 473ms = 2ms + 471ms
memory: 5080kb,13848kb

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 768
551 0 0 0 0 0 0 0 0 0 0 1 9231818210544459775
274 0 0 0 0 0 0 0 0 0 0 0 160036126537553460
855 0 0 0 0 0 0 0 0 0 0 0 11095577098990518271
408 0 0 0 0 0 0 0 0 0 0 0 87804939123359744
533 0 0 0 0 0 0 0 0 0 0 1 13838998730742435833
641 0 0 0 0 0 0 0 0 0 0 1 9362987885910820367
14 0...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #41:

score: 4.21856
Acceptable Answer
time: 486ms = 5ms + 481ms
memory: 5088kb,13948kb

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 768
370 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 17906242162518269903
267 1844674407370955161...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #42:

score: 4.21856
Acceptable Answer
time: 538ms = 2ms + 536ms
memory: 5160kb,14164kb

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 768
60 29439696796778352 9239275298371657728 281303178448345 7594194871654195968 5742579417743366 18446684689343617919 18422258700010815489 8492803735903721471 18352044631343611903 15912343381907335987 18434251835006894408 52917295621603327
350 21954751113723904 13254696699160706047...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #43:

score: 4.21856
Acceptable Answer
time: 528ms = 5ms + 523ms
memory: 5164kb,13940kb

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 768
273 8944148859957776380 9222826645130313729 17321116879037263968 18194261568817002503 13979164715635433720 8734503174414336 1971420590505487 11459409251844227070 1117029063139647551 9660218993356602399 16428572854515146502 4607743307068473343
630 6919640094265442800 920534046705...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #44:

score: 4.21856
Acceptable Answer
time: 529ms = 3ms + 526ms
memory: 5152kb,13960kb

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 768
966 126116715711823872 18295600689176688 1152222111084838015 9510491906262433796 69805927469914113 16147660855540850681 9507167516212823039 144122893215727495 18338521275531624703 9660114582311419967 9257694941583245310 1116892724784007043
863 1855482827971313604 929537026155085...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #45:

score: 4.21856
Acceptable Answer
time: 547ms = 5ms + 542ms
memory: 5056kb,14164kb

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 768
287 18320608645766840223 18446251430759629436 2305706667624243193 9799377557246641695 17301070609915084675 16646421333488431200 18435553252690885663 18411814522029882881 17321116845757972416 2278820878466793456 7493461910751264825 13839000766649212927
83 14726861753785022 632755...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #46:

score: 4.21856
Acceptable Answer
time: 553ms = 5ms + 548ms
memory: 5160kb,13944kb

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 768
39 681558806047490046 16912911684518412280 4615789815925926032 16321045049590677649 10229923134241242414 2630102182445179911 6341068274029502353 9226635927406928116 4611963436702631280 2318227874411568247 1026819923196083087 18412967683495034879
648 2904252034237516404 154248858...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #47:

score: 4.21856
Acceptable Answer
time: 551ms = 2ms + 549ms
memory: 5056kb,14164kb

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 768
343 18373569308207880199 9240269320878030848 559007242056097807 17797663292812886055 71000964335665665 13839135047065931679 11190296236722175 18446735543921311617 18338521222985260031 574771387045116031 16251234883119091200 558872930456968719
368 21052210784880640 20870948601256...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #48:

score: 4.21856
Acceptable Answer
time: 531ms = 0ms + 531ms
memory: 5368kb,13880kb

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 768
549 2449954934472314331 2864133129263364095 18394864648401994065 13409614091152971760 3340809810214912 97952952594169855 17374895193077059295 18344094767907864538 4641083473451300351 18446409822174707713 4321334784051249152 12978036785162986112
533 23637714542919987 922027738406...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #49:

score: 4.21856
Acceptable Answer
time: 547ms = 5ms + 542ms
memory: 5088kb,13880kb

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 768
147 8647333505344272391 13944253022429789816 108156826373062680 575475056772120576 18049555029295104 558481092529746031 18165339397832982783 13979164721083842560 558872962149900312 286012695426073072 4595918987392344313 17587924933477363
148 2576048816393289652 165988828307413 4...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #50:

score: 4.21856
Acceptable Answer
time: 541ms = 0ms + 541ms
memory: 5376kb,13876kb

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 768
148 6919640098294266112 9216608389062754183 18334136507549090176 8943021886569185287 9241246380909411840 432477538917162976 17870316311016632359 13945391873908564217 17294385519064258622 34111703089145 18411824134167192063 11529083097727239040
69 1126965058748431 114591275105470...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #51:

score: 4.21856
Acceptable Answer
time: 537ms = 2ms + 535ms
memory: 5164kb,13876kb

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 768
408 18446744065379664368 6988740032020340984 504466863367786392 286048698119618559 16211252697389702919 17887871214626564032 716178959021900286 6987343351669865985 9240827881301731072 17329818372442948080 9191842857894740024 558457074267194399
623 18306991756100564992 3152916595...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #52:

score: 4.21856
Acceptable Answer
time: 510ms = 5ms + 505ms
memory: 5104kb,14168kb

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 768
402 8725550725012704 9365233024228630664 34830329754224151 18446489099620581377 10370885524800929792 7745695754131369280 2754290991912450161 8864687575724457152 114592059872764704 2666130928938305132 18443936891400224762 9822341991201197608
40 139751913493100545 1145940265272868...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #53:

score: 4.21856
Acceptable Answer
time: 512ms = 5ms + 507ms
memory: 5372kb,13924kb

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 768
166 18442240491261647627 10370358303325682749 9190985535806504959 18446034917346843727 18443558130458558476 18353886468752501577 13835416702484480000 43950245216256 61924072492393770 1513208375497330120 529172910582005760 151204845526486871
282 18438299974732028191 1142977480022...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #54:

score: 4.21856
Acceptable Answer
time: 520ms = 0ms + 520ms
memory: 5388kb,13872kb

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 768
381 18374618030786209791 18446744071627538687 2297110620773285888 139614302997854208 2236029517400407999 17329849234190909424 18165338383004566503 9231393524875248003 18401982888250306687 9504778843842932863 13952143399225129359 18194410546738896799
993 18429802755132334079 1844...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #55:

score: 4.21856
Acceptable Answer
time: 514ms = 5ms + 509ms
memory: 5088kb,13884kb

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 768
982 11526976457037344771 9258301596989645048 136443594162161 18307098398722820088 4502504479461458307 16149633523173810200 1148424502051276303 10377391954586499128 549164824244258307 17295967742318362639 9258310116258578430 18428740603744354303
344 15698015961909038768 279356176...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #56:

score: 4.21856
Acceptable Answer
time: 519ms = 5ms + 514ms
memory: 5080kb,13888kb

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 768
567 343047627856380 486175254784389433 18444312916059578371 4611686018427035762 18079184345921417360 97486813 18446744049407744126 3850577679749218304 622598515836596 13842279647653417066 15996636424885403599 8716946381873148484
685 2183630092731388 4595637550869383166 230133514...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Test #57:

score: 4.21856
Acceptable Answer
time: 490ms = 5ms + 485ms
memory: 5148kb,13912kb

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 768
2 139752325806686215 9230673341736816576 2304083724037257278 72125763758850528 9153020335139880959 17942270717450248223 576434226845482008 4502474277251997945 13838998738267530752 8786663602158305776 6987880729388006913 17321116845754843075
812 139752325806686215 138378557605370...

result:

points 0.35154639180 Accepted using 768 pigeon(s).

Subtask #7:

score: 3.5881
Acceptable Answer

Test #58:

score: 3.5881
Acceptable Answer
time: 663ms = 0ms + 663ms
memory: 6316kb,23524kb

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 1024
287 0 0 0 0 0 0 0 0 0 0 0 0 0 0 377 1441165830812336127
709 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6293503 13943423724406448071
631 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2143288 4719209431175004159
333 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3842 13513772118184742247
324 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2641 891723...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #59:

score: 3.5881
Acceptable Answer
time: 673ms = 3ms + 670ms
memory: 6100kb,23332kb

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 1024
128 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 1...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #60:

score: 3.5881
Acceptable Answer
time: 706ms = 7ms + 699ms
memory: 6060kb,23348kb

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 1024
627 9151737748334412030 8323456 18338377861204836097 9295003020884508160 9151877390756995583 18410994554523353025 18410995033814565375 18410995098132151296 4609996687526723459 18442803424035573759 3941195160026751 108365667017687103 17879274582003711745 9511587019837406976 4323...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #61:

score: 3.5881
Acceptable Answer
time: 698ms = 7ms + 691ms
memory: 6000kb,23280kb

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 1024
428 18411839046285361406 18031988548468481 9511587017712861184 35749518934703873 9295006327497620992 35465874966183808 18446041477189500673 11529076507603369983 9295005219505045504 127 143975550065573823 18375249427494232064 9115006369844428799 9295006327505944448 1830262888764...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #62:

score: 3.5881
Acceptable Answer
time: 715ms = 7ms + 708ms
memory: 6064kb,23260kb

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 1024
584 18446604429273726848 18338377994365583329 9294866683070087422 35749518934671360 35747867504144390 123146342498400 35605485084148097 18444494475049926911 9258961030271140224 18302629431128096767 18446743798814966014 139644435955199 9294866680947605506 31525463687889407 18411...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #63:

score: 3.5881
Acceptable Answer
time: 708ms = 7ms + 701ms
memory: 6280kb,23264kb

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 1024
740 9151737746211930623 18446605535143788543 9294867161979682943 143976641037467768 18007255978607228 4011022679539839 117092492943425535 9294866683070119815 18437771927847075328 575792232070389696 71634288520363776 144115189686500976 18010010931969663 117093047014916096 915187...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #64:

score: 3.5881
Acceptable Answer
time: 730ms = 7ms + 723ms
memory: 6028kb,23488kb

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 1024
355 10376225369727427007 17293891284310687681 18412966947655253888 18430980925291495424 9151737746203639553 9294867226425425913 9294866682549960640 2197475151774220542 139646566630398 287105575488454656 9079326942896881152 9079263721799812095 9332021351021282303 144114655498993...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #65:

score: 3.5881
Acceptable Answer
time: 705ms = 7ms + 698ms
memory: 6280kb,23232kb

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 1024
430 815151531703647227 2305845911672061952 413205265648189465 4467550283227987968 259418696147548177 4095423428188703963 18446733928795471855 1180660737920457136 88078028116066378 8788245120525795327 4201 16140901156309827618 15564432152363449245 18441904659702480895 1735641230...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #66:

score: 3.5881
Acceptable Answer
time: 700ms = 7ms + 693ms
memory: 6108kb,23332kb

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 1024
61 467240675052617733 18014398508801302015 18446740511033622528 419080617863413759 18446740149652946917 6807190348753272831 18445681282280062516 6917501093386455109 11385061547511948539 18036459110517435391 16903137272254693375 14604777369376915462 14513719530078865895 18445143...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #67:

score: 3.5881
Acceptable Answer
time: 706ms = 7ms + 699ms
memory: 6036kb,23268kb

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 1024
888 11524711991918624513 13834778779328708480 18334154351444066558 6922032086102540542 9151877390639431680 33777128185102590 35749519186444799 9367350876900843520 9151594264264703879 18374966872249990913 9294866680947605631 9367487222816686110 2113930876 4080294109773920 360265...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #68:

score: 3.5881
Acceptable Answer
time: 690ms = 0ms + 690ms
memory: 6100kb,23320kb

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 1024
680 32111583594 4845565119084855 17735752816707753145 13188791788685492224 20065404527391 13915992257678278655 18446738140818973742 9512357021580528809 11479749718404763471 18446721671507213392 1589979713110027 4323455642272359424 4679240012837932436 424792433516873328 12646536...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #69:

score: 3.5881
Acceptable Answer
time: 720ms = 7ms + 713ms
memory: 6044kb,23260kb

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 1024
277 17398777550467654768 6286091518738425 4899970278836467711 18446744073079792908 5316443165871633561 9052657463479762944 2102033393137998664 4697008121082316800 9708687193155249 4615266027914264576 997390213349372 2892653550369393938 61936641 16005793075674871802 288391338352...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #70:

score: 3.5881
Acceptable Answer
time: 734ms = 7ms + 727ms
memory: 6092kb,23232kb

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 1024
934 18446744073709551488 18302752033083064574 9151876847294742401 9295427431861190648 144254832511680638 4497002557571326 9151323170299380096 18379189529652167041 18445054708451246079 18415217777049534848 18302629431094705921 18446604427151015950 6917667567179988480 91518773906...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #71:

score: 3.5881
Acceptable Answer
time: 695ms = 7ms + 688ms
memory: 6044kb,23524kb

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 1024
561 8646946458202669056 18015497981262851 18410718008290705408 8649145560881791230 9151877391159624191 18419721932648611964 4079188248035839 18411841116467855614 18015491561882176 71494644092371964 576179341759609219 18158793518997372416 2080378495 143975541509193728 3546588139...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #72:

score: 3.5881
Acceptable Answer
time: 695ms = 3ms + 692ms
memory: 6312kb,23276kb

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 1024
522 1913607669294521799 13759059733187133440 277024153930571681 9369026540351262449 17807243363392900711 13169651211035263679 17546588074169335807 17050528222952816640 959261773169413406 17870278426217135037 3308523463417327615 18235081800516896856 13271571480996481451 11272720...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #73:

score: 3.5881
Acceptable Answer
time: 692ms = 3ms + 689ms
memory: 5984kb,23360kb

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 1024
715 7102843987804154 13846970782732779520 10384034236463422 12102069400399773695 18441418039384604740 15852670676332603103 18446733697069640866 820028862895324629 2017612634479863822 630011366322585050 13989485356756503739 18374686480240865495 17005588393985017934 1066452406682...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #74:

score: 3.5881
Acceptable Answer
time: 722ms = 3ms + 719ms
memory: 6096kb,23328kb

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 1024
556 9151876847283732543 18014266567583334399 18446638518479355779 18442664885067153919 18446744072097890815 17402188781599326192 8646981642591664639 9295006327497621501 18446743528215181312 18438299278921171006 9151316641846403064 72022418255804416 2234064691137085470 349029572...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Test #75:

score: 3.5881
Acceptable Answer
time: 687ms = 0ms + 687ms
memory: 6324kb,23264kb

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 1024
574 9151877390639463424 2304014521109184512 9151876847284191743 18410996743069040128 139646566662016 18336410263707614977 18446612131810871295 9227452333095387008 18329651024563798016 9151737748283985535 108365669090725496 71776256458292736 9151876911729868679 18438229180802793...

result:

points 0.29900826450 Accepted using 1024 pigeon(s).

Subtask #8:

score: 2.86417
Acceptable Answer

Test #76:

score: 2.86417
Acceptable Answer
time: 925ms = 8ms + 917ms
memory: 5972kb,23356kb

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 1408
203 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1520156530 5773910444001312767
546 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 63050403339571192 105557394456590
701 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4607239859218847 18014398509288110575
907 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #77:

score: 2.86417
Acceptable Answer
time: 945ms = 9ms + 936ms
memory: 6096kb,23292kb

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 1408
509 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #78:

score: 2.86417
Acceptable Answer
time: 1034ms = 9ms + 1025ms
memory: 5996kb,23296kb

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 1408
185 7387 18446433401629431789 12091816008726178918 6033697600759107680 1591474361729023 14845519020605571004 10106128155220639748 15812138289626873856 1967850935811885 1472795825405951 18275607287869472768 184629992504444937 17448143424159875128 11563653949273288652 9523739665...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #79:

score: 2.86417
Acceptable Answer
time: 1025ms = 9ms + 1016ms
memory: 6332kb,23360kb

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 1408
726 9214373633693057023 17293821470429937536 1152781181582833727 18302769520009314303 18446744073709551615 18001200074983424 1098438674431 18412404675769794584 2251795525009423 18230500991562686456 17979214162559999 18014397436788735 4504148846837759 18446462873409355839 18302...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #80:

score: 2.86417
Acceptable Answer
time: 1025ms = 9ms + 1016ms
memory: 6040kb,23360kb

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 1408
521 933176771870720 14603926720543 15754818045543198892 3201401827107012607 18446743303434065399 16078862014251558356 2466195784917535745 11462861718355445283 1050464613084168192 9406871730316032 161044361856 146297455 14610096301614825471 18395184125192437760 3777611902006407...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #81:

score: 2.86417
Acceptable Answer
time: 1023ms = 9ms + 1014ms
memory: 6316kb,23280kb

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 1408
469 9232372570337042432 284843880346025984 575898231842537487 17870283321406135808 288160557154967551 18437745661958944768 27022696203157376 2304153610134421567 17293963169152172032 4092 72049072822553600 18428729675200069632 2303592893026927600 281061586109388 70265631408144 ...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #82:

score: 2.86417
Acceptable Answer
time: 1036ms = 9ms + 1027ms
memory: 6028kb,23360kb

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 1408
765 9799832243697352703 18446181123219783647 18446181673511944191 18302769519505965555 18374756840094301696 108090784811582463 4035225813732556544 3461016296458289183 17870709931913576440 144115104323991559 18428747253427471358 2181843401976 72056495599943679 16140936244841414...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #83:

score: 2.86417
Acceptable Answer
time: 1002ms = 4ms + 998ms
memory: 6096kb,23248kb

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 1408
224 2942644842786193407 18446683133636308735 9430413911340476167 6681089124859904285 5314529783958074562 13378787118034166236 16699347356627238983 1160066170580107263 18446744073702672256 1314125772790 7464294168553485775 18446743470413515167 18446310610587319295 1829970860066...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #84:

score: 2.86417
Acceptable Answer
time: 1010ms = 3ms + 1007ms
memory: 6316kb,23360kb

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 1408
297 9151314580249051135 17298326168730075135 18446744073709519871 18428940850100699199 18302908161591339006 36028797017980927 17302828669918707712 18444496671875270655 9223934986808213488 288230360045583366 35993612646875136 4499205875826687 17293821469591699456 57644370985652...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #85:

score: 2.86417
Acceptable Answer
time: 1019ms = 3ms + 1016ms
memory: 6044kb,23280kb

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 1408
311 9295429566468194303 16212958589948461248 2305772777906503679 18303191835100594163 18374756848411611132 18428747267385589632 2248363840372704 1152886457606799423 17293822569132064771 18446603319058087936 2080768 274715179225186559 13838470939341750271 18446744073642508239 1...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #86:

score: 2.86417
Acceptable Answer
time: 1009ms = 9ms + 1000ms
memory: 6032kb,23536kb

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 1408
925 18442244868639035388 72048806530646047 16712858221198442511 13835062350215905296 35993647002681343 13871086850162032512 280912027293057151 16143152589699809304 36024403267387423 18374756779704582145 18445620355646223359 13545978959494399 9223378633924673024 814518215521075...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #87:

score: 2.86417
Acceptable Answer
time: 1008ms = 9ms + 999ms
memory: 6028kb,23288kb

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 1408
73 1453811962650631 7370426684006480583 18446744073709551615 18446743352693188757 288230604090777797 10718778219414852002 0 75149417671207033 17693517036030143462 13835058055279903681 1170795165627961632 51755769430956 8075136238902839407 18446744073590178373 13891717951041444...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #88:

score: 2.86417
Acceptable Answer
time: 1019ms = 8ms + 1011ms
memory: 6096kb,23292kb

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 1408
83 9214371436815188160 1125893464129791 17888297703004143743 18437737870853701631 18446744073707454462 36028797018963967 16140898867619825663 18411840627378487264 1152920407241654304 17592253120515 18374695267181264768 2305561534771757311 13839561654641360703 17294684581932302...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #89:

score: 2.86417
Acceptable Answer
time: 967ms = 4ms + 963ms
memory: 6308kb,23284kb

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 1408
730 18127111301854807046 12838922512729374719 3548838585132119732 9242454054616563712 7963489870911158335 18445850577662226791 3258115521745616862 13114482114902884352 16922275595724914688 3306619230943 18446744073655038024 12173863111494214127 15541922289138171903 18438004986...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #90:

score: 2.86417
Acceptable Answer
time: 994ms = 8ms + 986ms
memory: 6328kb,23252kb

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 1408
616 9214373632686391299 18446675903988629503 18446743937344338944 720435314560065549 18446708915115649022 27303072476692479 13979173105951580159 17293826965538537535 17546024182460989312 1152851135896223745 17577153660926 8935141935578382332 561300149502079 1614090119978785176...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #91:

score: 2.86417
Acceptable Answer
time: 1006ms = 8ms + 998ms
memory: 6020kb,23540kb

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 1408
626 65156395725026 18117969068849733631 18426904487172898634 59506118817284389 9222849081637181922 1153004724927033343 17992522671665695789 18434389272791344548 18120232280654872889 16140639920149495572 7961521142190077817 18446744073709278996 148944977919 9708757492248026067 ...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #92:

score: 2.86417
Acceptable Answer
time: 978ms = 8ms + 970ms
memory: 5968kb,23292kb

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 1408
762 18446741876831682815 9223378633924672512 2301339426497757199 18158795138309029772 72004800316700679 18446603344812175360 4602678885744901888 288090463565307904 143691876100161520 288230376143331320 2095105 18446741876831682560 1124801200783136 562400197640160 5764607179772...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Test #93:

score: 2.86417
Acceptable Answer
time: 1022ms = 8ms + 1014ms
memory: 6312kb,23168kb

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 1408
511 458752 1152918756364254208 72053745680187343 9223512772262748167 18302628889929187320 562812578414592 279224274261116543 16143152589699809311 17870705671175929856 8589942783 18356689656170412033 9232370441081847823 18428731874223452160 72050996834074609 1844667370550172083...

result:

points 0.23868046570 Accepted using 1408 pigeon(s).

Subtask #9:

score: 2.16195
Acceptable Answer

Test #94:

score: 2.16195
Acceptable Answer
time: 1319ms = 9ms + 1310ms
memory: 6088kb,23368kb

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 1920
350 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 279763 9680435250366046143 6917529027596871944
655 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 208933945 18436916639048925322 17644118177619116031
636 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 9081...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #95:

score: 2.16195
Acceptable Answer
time: 1319ms = 11ms + 1308ms
memory: 6024kb,23324kb

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 1920
526 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #96:

score: 2.16195
Acceptable Answer
time: 1406ms = 11ms + 1395ms
memory: 6108kb,23304kb

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 1920
950 2208587647 18446744073210291864 11709816428000444416 37059608921505792 57697422423359485 17322540752562910207 18446744073709551615 18446741225433202688 0 576026554006916 5278004536488886409 17068642455806541824 142726 10175749748993017120 2883739826781811 16226223028806676...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #97:

score: 2.16195
Acceptable Answer
time: 1442ms = 11ms + 1431ms
memory: 6060kb,23312kb

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 1920
930 4461396230142 18239716705373482986 17002866774053148048 4134742056713224388 2 5283567414829636599 8184070991361182033 2133580323466772479 18446723937017545793 18430317702007451647 3027580033871904803 12659618552538443388 9013382358283649539 4549005128958518979 206430133312...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #98:

score: 2.16195
Acceptable Answer
time: 1433ms = 11ms + 1422ms
memory: 6308kb,23368kb

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 1920
171 9227875636466417663 18442241023837986879 18437745670480756735 18444633010310545404 18158513698630000640 562949752094208 576460752303419392 4611474907900092415 18437736874585880576 138538481875968 900719908294754303 16141323285550465016 6755536873717632 108088589945930751 1...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #99:

score: 2.16195
Acceptable Answer
time: 1414ms = 11ms + 1403ms
memory: 6096kb,23592kb

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 1920
146 9227875636466155535 18433232999962148863 18444498871099844607 68719345663 18446181158113771520 274861130496 288217181743755295 18446741874686558209 17870287719452115071 18446743532543672288 864708719567446015 9223794257909252099 18158515896572706816 2161728920582361087 178...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #100:

score: 2.16195
Acceptable Answer
time: 1414ms = 11ms + 1403ms
memory: 6328kb,23312kb

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 1920
430 9223934952448458759 18437737355491147520 288228177262665728 1008806320825827328 9221401712018849743 18428730774703309311 18014328140746194912 9223301672405303297 18444492411333771327 18392699778736586751 18446744073575333887 55834050575 18437736874482073472 144115188042303...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #101:

score: 2.16195
Acceptable Answer
time: 1401ms = 11ms + 1390ms
memory: 6104kb,23304kb

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 1920
949 625738664437088251 16666939497744695247 13573237106346193990 668025731317493668 5691638266872893493 7464190515160809472 10165799968831996 9759290436777672355 10364364664933974015 18446744073709474863 13432126940727953346 7189811811157037568 0 75849122447359 184467395889665...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #102:

score: 2.16195
Acceptable Answer
time: 1400ms = 11ms + 1389ms
memory: 6056kb,23568kb

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 1920
783 10283764314112 4951584644991549439 18446111274703011765 2551727833920841738 16429095746390720512 188325154972937 5188146770731458130 1463673366681787544 3103465411072609151 18446591244948733956 3523417135483191235 4578243763423412224 2599542522631946240 2156740 50432729637...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #103:

score: 2.16195
Acceptable Answer
time: 1401ms = 11ms + 1390ms
memory: 5968kb,23380kb

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 1920
769 9222809121260832767 18428747267381919744 288232557995098367 18445724826430599171 18446744073709027359 18419721926189776832 263882790670335 13835269165809401857 18444492411333771327 18392699778719810559 17293822569371123712 18446638520559730688 9223090566164643903 281474943...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #104:

score: 2.16195
Acceptable Answer
time: 1419ms = 5ms + 1414ms
memory: 6312kb,23300kb

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 1920
208 18446744073709289599 18446735690201825279 288228177396891584 17908707956359167 1688884218429184 16765404840959 18442253670369196032 9223090836755939334 2251696732373119 18446744073709551615 18158548881929404423 18374688665809715215 18446744007137558272 9007190799024127 178...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #105:

score: 2.16195
Acceptable Answer
time: 1416ms = 11ms + 1405ms
memory: 6040kb,23384kb

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 1920
774 9218868437243133952 4503324762046719 18158515896446883840 2305737453950074879 576460683583963135 18185535845077352463 18014389713925828623 18446742980642471935 18307132450903424896 9007207844675552 864761497199075328 9222809091196059663 18444492411326431295 922337217429370...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #106:

score: 2.16195
Acceptable Answer
time: 1368ms = 11ms + 1357ms
memory: 6024kb,23564kb

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 1920
698 18446462667450220799 18302633283680190848 144106392049938432 4611650836202682368 140668768878592 9006649524109311 18445631402301978624 8795955583255032 1121501860347806 1125899873289728 576434363487510559 18446741887571460080 68715282624 2305843000757976064 115285113586268...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #107:

score: 2.16195
Acceptable Answer
time: 1320ms = 11ms + 1309ms
memory: 6316kb,23304kb

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 1920
298 7 18410715285280457088 144115119358468096 1152851140157603841 18446744004990074879 18446743798848421056 4397635469312 576179277326770176 562846872109152 36026598012484608 1152921504606838785 18446743953450336263 18437736942100545539 18446739675663040511 1844672648259719987...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #108:

score: 2.16195
Acceptable Answer
time: 1390ms = 7ms + 1383ms
memory: 6088kb,23588kb

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 1920
814 18341968312163942643 1878849902494081023 18446744073705718700 9223373210386431999 18446716608821854208 493 12339512520080353107 18112656572256627011 9263411585906573312 44548968447 18446743688399290368 29869849706495 18446736424370866196 1297036692682702848 662833456994 44...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #109:

score: 2.16195
Acceptable Answer
time: 1397ms = 7ms + 1390ms
memory: 6016kb,23372kb

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 1920
192 2952106336159 9319986123587452911 11590224794166165500 15459133875317311754 7959388376948733444 10220864355962575752 12049929665482827677 16005793075674740684 4530941467870363648 4265783 13835058055282163711 18446744073687846379 1585216290174271488 4553919961129919 4464180...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #110:

score: 2.16195
Acceptable Answer
time: 1384ms = 11ms + 1373ms
memory: 6088kb,23376kb

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 1920
474 18446721857085276499 13546805980665086165 2305843009215851949 18440707892312015404 5378856100495884290 4266057901990598655 18370715614405106531 9223369278420420733 15330180761025480747 16539311301843746815 18446743952913825792 0 80349 1724727006292237709 137802776801625672...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Test #111:

score: 2.16195
Acceptable Answer
time: 1378ms = 3ms + 1375ms
memory: 6036kb,23404kb

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 1920
983 9223934952448718848 562881234468479 18302635482837673983 16141041801984212991 18446744073709551600 18013573842206720 1873488649295765503 9223372038868042239 18446462736171794400 288230375145078783 18446744073442164735 18375249429624914431 18446709164213796863 1841071857737...

result:

points 0.1801627670 Accepted using 1920 pigeon(s).

Subtask #10:

score: 1.38794
Acceptable Answer

Test #112:

score: 1.38794
Acceptable Answer
time: 1874ms = 13ms + 1861ms
memory: 7892kb,41920kb

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 2688
814 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 274877644800 3458765613331382268 274877898752 18446741883276222464
220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 291767938782850872 13706030503100940287 18418275...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #113:

score: 1.38794
Acceptable Answer
time: 1912ms = 11ms + 1901ms
memory: 7892kb,41800kb

input:

encode
9 20 1000 575991170
4398046511103 8796093022207 8796093022207
4398046511103 8796093022207 8796093022206
4398046511103 8796093022207 8796093022205
4398046511103 8796093022207 8796093022204
4398046511103 8796093022207 8796093022203
4398046511103 8796093022207 8796093022202
4398046511103 8796093...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
525 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #114:

score: 1.38794
Acceptable Answer
time: 1986ms = 15ms + 1971ms
memory: 7868kb,42064kb

input:

encode
9 20 1000 798012561
3682631568653 3399195689483 3631890219187
3682631568653 3399195689483 3627595251891
736127494099 8140413827208 4229463991299
736127494099 8140413827208 4229396882435
3686269198035 7287260168981 7123884190751
3686269198035 7287260168981 7123884188703
2922224510321 359088190...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
36 0 18446673704965374009 18446708889371017212 70368693321728 8795958804495 18158513697558101888 280925220896799 18446726481523637760 240 268433408 1023 18428729692379936768 36028762659225600 17179852800 216172850833211391 17293822569103622144 0 0 549755289600 6926536226895814...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #115:

score: 1.38794
Acceptable Answer
time: 2017ms = 11ms + 2006ms
memory: 8204kb,42396kb

input:

encode
9 20 1000 954377859
553174998546 6663598266287 6299028184480
553174998546 6663598266295 6299028184480
1843987794232 1410644580157 2804054364875
1848282761528 1410644580157 2804054364875
1478429591215 4851490558765 3250541883641
1478429591215 2652467303213 3250541883641
652258010768 3401201287...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
404 4397778075648 4468415255281664 17587891077121 18446744005040406543 18446462598732840960 31 16140901064504246271 18430418526134075391 18432107375994338304 1072693248 17585743589376 1125899638413312 36028771249152000 144115170896003071 18230571222876341247 184467429741979238...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #116:

score: 1.38794
Acceptable Answer
time: 1972ms = 7ms + 1965ms
memory: 7908kb,42096kb

input:

encode
9 20 1000 917949227
4224775616400 5487522053033 2441822435282
3626688338583 7661697987225 8174151133864
2516443392352 8188798485166 147897628720
2283957806509 318483104237 4327361062334
2943014875112 7119266833557 7979305042865
725364215182 8545634026022 4677926961696
456295322011 24431083056...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
524 9223380832941506558 26388287455224 8796093022215 18446603336221196288 70368677068848 281474708275231 18446181123756130623 16140901064497954304 255 13835058055286355968 4503595332406527 18446744069414590464 36028771249152000 144115170898083839 18446708992416743423 184467431...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #117:

score: 1.38794
Acceptable Answer
time: 2013ms = 15ms + 1998ms
memory: 7900kb,42384kb

input:

encode
9 20 1000 98600014
3925018020832 6253298270631 3219988633630
456262095205 6930742286471 6423359245989
2487969559709 8596780879064 196211848701
2528392366228 8094647791936 6727598283169
1240245025701 4640287936155 3978981316691
1471463806157 5991060281944 6083763622666
2841659525553 1464987982...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
126 43696189631 18446744073709403431 1567127274257370778 4983241822682038601 6929071722315370495 18446637935151061930 12972159714930140687 6809440160584138580 8624393286401295089 1549238271815450625 8782362011695063685 16041535999670484991 18446744073709551605 1224761830096869...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #118:

score: 1.38794
Acceptable Answer
time: 2023ms = 11ms + 2012ms
memory: 7892kb,42132kb

input:

encode
9 20 1000 170129178
2859601897585 8444990058425 5445579594119
1524367868090 5516415054260 2717534941739
265927080295 6793952772501 5187329563456
2938286300758 940733212827 8732984145613
3135670202405 3240613246459 3285776196704
3906118291148 2087541176684 7059315369112
3230763057491 756007572...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
8 9223380832941506432 70334384447487 18374686479673720816 16777200 281474943156255 18446321844064616448 287385942631645184 141863388530605824 4503599627370495 18444492411334819839 16154411867672932352 8866461767434239 9223372041149743103 16285016252571705344 144115084996608000...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #119:

score: 1.38794
Acceptable Answer
time: 2015ms = 15ms + 2000ms
memory: 7868kb,42096kb

input:

encode
9 20 1000 150207222
335812402080 8713888255945 5822771857615
3141456854090 3154178655587 5931152170090
3817564754623 1500904288451 5236809489500
3095592757149 6380875551310 6230235282487
3477778672307 3445570116250 1845087048271
876331205234 5726171999360 1760082656645
1054204618675 293429170...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
697 0 586973730031271935 18446743911748208208 116064738718 11450535648218316800 2328260512217603574 4796988831044713983 18446744073709466903 88892045787228 17867273953482231365 9817922289023650326 36028797018963982 13299139561570360959 3458764513820540825 7779393749907420178 1...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #120:

score: 1.38794
Acceptable Answer
time: 2024ms = 16ms + 2008ms
memory: 7976kb,42396kb

input:

encode
9 20 1000 932602816
1967177490745 6956290244092 2536105473252
1388790652897 603423966795 8733301433629
4279582033654 1386794420322 6220620956345
2468084375065 3444874666600 5631576241530
2701734700889 7858315237697 3746231805512
1965494252777 3699056243208 5559185619304
325489584463 271972654...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
95 451316584364417156 327309471910994056 37138418433 4949456000843352671 11713189223203086336 734218130632207632 5926742630536261884 81065916023341055 18446744073574932800 10493387131773255680 271350063 4575657219258577223 15430461027470268672 16507454876574286025 151121625262...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #121:

score: 1.38794
Acceptable Answer
time: 1998ms = 15ms + 1983ms
memory: 8208kb,42068kb

input:

encode
9 20 1000 894266983
1226305641029 5619723386853 3841218999711
230102840328 4009893046951 992818373043
3859644771963 195320355587 3603682560396
1213896496041 4527883913906 2729927904441
3861954416487 7686649635143 398559607805
471154770901 632275165548 3842648436417
4254290765995 677458113674 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
664 578444687725273220 2399028453518063304 10954232037393349639 1923108827240596405 8254116652343866367 17463043315211461000 17892811533149273855 18446601805575740632 4686232608588275999 17144480023575527423 18446744073709551615 18446744073709551614 6900644927141807582 1801439...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #122:

score: 1.38794
Acceptable Answer
time: 2007ms = 15ms + 1992ms
memory: 7932kb,42092kb

input:

encode
9 20 1000 164785191
58020633647 5063185755856 2800867716271
522986898645 5262797120919 1242767027478
1174187773214 3498399298010 2979865266432
764043059795 6940889414871 5172670169984
3604161685580 6467542390217 5950691500174
556491238811 828055217349 4769713069988
2419919492223 4585566426615...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
229 9223363240770142207 17592173461500 70368744177660 2251799813683224 281474976710463 18446603336355413904 268435200 268435200 4503599107276799 18446462601954328575 18446739682107588607 18446708902222368767 18374686488244781056 1152921504338440191 18446744004990140415 1832064...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #123:

score: 1.38794
Acceptable Answer
time: 2003ms = 15ms + 1988ms
memory: 7972kb,42144kb

input:

encode
9 20 1000 329702287
3684699437389 7545678811739 8158932321464
2467485826325 2859504757156 5640693825124
3010885681358 2605510429230 1763626721612
1121228677648 7673741782456 6882654839224
653088567949 589411294214 8693931192903
3385140201311 3733215833663 1708339578335
1981353293343 677272240...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
544 331018508 2278617378893856767 18278357475495889809 1014440809060763241 1705397791901813056 9841190599295 17670809926189973504 8894314624983 14822153139221269481 15848809349606551465 17797622204947775488 269639595 4607145923680400624 203242662810091520 0 3582760785805311 18...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #124:

score: 1.38794
Acceptable Answer
time: 2002ms = 15ms + 1987ms
memory: 7844kb,42336kb

input:

encode
9 20 1000 181068066
2543862971707 307273714413 6041453358192
2543862971707 307273714413 6041453358193
2543862971707 307273714413 6041453358194
2543862971707 307273714413 6041453358195
2543862971707 307273714413 6041453358196
2543862971707 307273714413 6041453358197
2543862971707 307273714413 ...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
140 9223380832941375488 2251799813619712 492581209243648 35183298347008 17803154837995520 4611685468671704960 63 18445618174608015615 18442240474619051520 9007199254740991 18442240611521134080 140724603449344 72057585452187647 18446673756504997887 18158513697557856255 18158513...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #125:

score: 1.38794
Acceptable Answer
time: 1997ms = 11ms + 1986ms
memory: 8212kb,41828kb

input:

encode
9 20 1000 531071951
3924378006837 3001048624338 5754478500723
3924378006837 3001048624338 5754478500724
3924378006837 3001048624338 5754478500725
3924378006837 3001048624338 5754478500726
3924378006837 3001048624338 5754478500727
3924378006837 3001048624338 5754478500728
3924378006837 3001048...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
681 18446744073707454465 18446715486407229441 18446673704973762552 105553653137407 18437948530443157503 9223934986741088319 18445899640189485567 17293822569111092736 255 18442240477303410687 18411278226643943424 4385161605120 54044295039811647 18446744071562067968 922224613708...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #126:

score: 1.38794
Acceptable Answer
time: 2034ms = 16ms + 2018ms
memory: 8160kb,41812kb

input:

encode
9 20 1000 517039479
1019364332405 6502235108075 2048979575289
1019364332405 6502235108075 2048979575290
1019364332405 6502235108075 2048979575291
1019364332405 6502235108075 2048979575292
1019364332405 6502235108075 2048979575293
1019364332405 6502235108075 2048979575294
1019364332405 6502235...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
373 4398042316803 18446735278690271231 18428782451774980095 70368744169487 18446708889404571640 492581209243584 879609302220768 1688850397134463 17293822569371140032 36020000925942015 18433233270532475905 18446744073676005375 18433233274827177984 4503599593840640 5764607523029...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #127:

score: 1.38794
Acceptable Answer
time: 1972ms = 15ms + 1957ms
memory: 8188kb,42192kb

input:

encode
9 20 1000 301786476
3158685203012 2200406400907 5609966204769
3158685203012 2200406400907 5609966204770
3158685203012 2200406400907 5609966204771
3158685203012 2200406400907 5609966204772
3158685203012 2200406400907 5609966204773
3158685203012 2200406400907 5609966204774
3158685203012 2200406...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
586 18290852537076447727 13826555530985682287 18446744073709551614 13240206593709792223 18446726149291281408 2 177171052089419008 4220711430325796863 18446170520731808784 411790606663155710 14705922096298861317 2594100247571708009 38317517 676032800192725268 484385802321238425...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #128:

score: 1.38794
Acceptable Answer
time: 1973ms = 15ms + 1958ms
memory: 7940kb,42100kb

input:

encode
9 20 1000 481004598
2144975281912 1223951139349 1797260812630
2144975281912 1223951139349 1797260812631
2144975281912 1223951139349 1797260812632
2144975281912 1223951139349 1797260812633
2144975281912 1223951139349 1797260812634
2144975281912 1223951139349 1797260812635
2144975281912 1223951...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
24 9223363240770142207 18446744073705357315 18446691297134641164 144115188075724824 9223372036586340415 17293822569119481759 18446181124293001215 18446744073441120255 18446603336288305024 1125899906779135 18446744071562070015 18446744056529682431 18446744065119625215 183026288...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).

Test #129:

score: 1.38794
Acceptable Answer
time: 1962ms = 15ms + 1947ms
memory: 7904kb,42384kb

input:

encode
9 20 1000 135495143
2905525429145 8306037090562 6070231918803
2905525429145 8306037090562 6070231918804
2905525429145 8306037090562 6070231918805
2905525429145 8306037090562 6070231918806
2905525429145 8306037090562 6070231918807
2905525429145 8306037090562 6070231918808
2905525429145 8306037...

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2688
390 18338700528959962148 11765363350385680416 2965396080432931904 1242263027199 18446744073709551615 18446742666865795053 8966655584350971136 116951132688875519 18446744073692649383 17123416432496390144 17673778888703 18442234244970643484 2133420206998312801 230922763976559820...

result:

points 0.11566170710 Accepted using 2688 pigeon(s).