QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#100231#5447. 鸽子Crysfly74.118706 1715ms23200kbC++172.1kb2023-04-25 08:26:142023-04-25 08:26:28

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-04-25 08:26:28]
  • 评测
  • 测评结果:74.118706
  • 用时:1715ms
  • 内存:23200kb
  • [2023-04-25 08:26:14]
  • 提交

answer

#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define ll __uint128_t
using namespace std;

#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;

#define maxn 300005
#define inf 0x3f3f3f3f

bool add(ll&x,ll y){
	if(x<=(~y))return x+=y,0;
	return x=0,x--,1;
}

int n,k;
ll f[maxn];

bool chk(){
	if(n<=200)return 0;
	ll res=0;
	if(add(res,f[n]))return 1;
	For(i,1,k*2)
		if(i%(k*2+1)!=0 && add(res,f[n-i]))return 1;
	return 0;
}

void init_dp(int K){
	k=K;
	f[0]=1,f[1]=1,n=1;
	while(!chk()){
		++n;
		f[n]=f[n-1];
		if(n>=2*k+1)add(f[n],f[n-(2*k+1)]);
	}
}

int pigeon_num(int Taskid,int K){
	init_dp(K);
	return n;
}

string s;
void dfs(int n,ll x){
	if(!n)return;
	if(x<f[n-1]){
		s+='0';
		dfs(n-1,x);
	}else{
		For(i,1,k*2+1) s+='1';
		dfs(n-(2*k+1),x-f[n-1]);
	}
}
string send(int Taskid,int n,int K,ll x){
	k=K;
	s=""; 
	if(x<f[n])dfs(n,x);
	else{
		x-=f[n];
		For(i,1,k*2){
			s+='1';
			if(i%(k*2+1)==0)continue;
			if(x<f[n-i]){
				dfs(n-i,x);
				break;
			}
			x-=f[n-i];
		}
	}
//	assert(s.size()==n);
	return s;
}

int c0,c1;
ll res;

void add0(){
	res+=0;
	n-=1;
}
void add1(){
	res+=f[n-1];
	n-=k*2+1;
}

string cuts(string s,int o){
	string t;
	for(auto c:s){
		if(c=='0')t+=c;
		else{
			if(o)--o;
			else t+=c;
		}
	}
	return t;
}

ll receive(int Taskid,int K,const string&S){
	init_dp(K);
	k=K; s=S; c0=c1=0;
	n=s.size(); res=0;
	int sum=0;
	for(auto c:s)sum+=(c&1);
	sum%=(k*2+1);
	if(sum){
	//	cout<<"rsum "<<sum<<endl;
		res+=f[n];
		For(i,1,k*2){
			if(i%(k*2+1)==0)continue;
			if(sum%(k*2+1)==i%(k*2+1)){
				s=cuts(s,i);
				break;
			}
			res+=f[n-i];
		}
	}
	
	n=s.size();
	For(i,0,(int)s.size()-1){
		if(s[i]=='1'){
			++c1;
			if(c1%(k*2+1)==k+1){
				For(_,1,c0)add0(); c0=0;
				add1();
			}
		}else{
			++c0;
		}
	}
//	cout<<"c1 "<<c1<<" "<<c1%(k*2+1)<<endl;
	For(_,1,c0)add0();
	return res;
}

詳細信息

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 261ms = 2ms + 259ms
memory: 3976kb,13764kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 582
0 16139699431321585343 18446460949464874998 4304678663732330495 4593214079769862109 9042797028672768003 13174330760748693290 12791313657099153279 18154010076378011780 16140617388323897344 0
0 18343160268664111097 18446743592673213703 18421973732445650915 18438862569262252319 183...

result:

ok Accepted using 582 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 1594ms = 6ms + 1588ms
memory: 5292kb,23140kb

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 1308
542 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4194300 35184405643232 0
622 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 274877644800 2323857407723159616 67108800
967 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 812 9006494459161476607 268222461
190 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 86248234239 1578...

result:

ok Accepted using 1308 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 36ms = 4ms + 32ms
memory: 4232kb,6764kb

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 232
203 0 0 0 68181467112
962 0 0 0 25466265563
819 0 0 0 12865413876
336 0 0 0 188956169405
830 0 0 0 100893977050
984 0 0 0 50464798539
422 0 0 0 23609188212
453 0 0 0 45834616283
387 0 0 0 204380520382
409 0 0 0 180438182774
346 0 0 0 45276094164
809 0 0 0 205431757776
636 0 0 0 ...

result:

ok Accepted using 232 pigeon(s).

Subtask #4:

score: 7.16505
Acceptable Answer

Test #4:

score: 7.16505
Acceptable Answer
time: 29ms = 3ms + 26ms
memory: 4300kb,6712kb

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 232
70 0 0 0 11099
64 0 0 0 10836
6 0 0 0 104
927 0 0 0 1382315
765 0 0 0 769280
241 0 0 0 89566
419 0 0 0 344736
361 0 0 0 180191
494 0 0 0 357376
460 0 0 0 233408
527 0 0 0 245567
301 0 0 0 107455
151 0 0 0 44394
842 0 0 0 778228
614 0 0 0 426880
257 0 0 0 97470
326 0 0 0 177598
3...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #5:

score: 7.16505
Acceptable Answer
time: 47ms = 1ms + 46ms
memory: 4260kb,6712kb

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 232
113 11576694712669928430 13054730248919095205 18426458777031189154 778820744192
884 11576707906809462510 13055574673849227173 18426406000473055906 778810796032
991 11576707906809461691 13055574673849227173 18426406000473055906 778810754410
219 11560941459783384541 14852537315460...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #6:

score: 7.16505
Acceptable Answer
time: 48ms = 3ms + 45ms
memory: 4220kb,6684kb

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 232
901 3423236988658339967 12392241758312690648 18174136528612161023 390787485165
381 6148943233616296671 13672829422260384943 18399446707864516523 1052289029498
867 6058751862857269118 17216978273748101815 13402808517307352405 823224084522
239 5600937789192241663 15023998989047235...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #7:

score: 7.16505
Acceptable Answer
time: 46ms = 0ms + 46ms
memory: 4224kb,6664kb

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 232
499 7756700488798470846 13507944402552335038 13527176405322164310 1051184553899
960 12153702560178326146 13238905600264765417 9170813169139275197 959296764586
263 17274675407282896845 3424703752685943615 808628120067236094 832182055290
61 15222293113999144891 9434931512639226219...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #8:

score: 7.16505
Acceptable Answer
time: 65ms = 4ms + 61ms
memory: 4188kb,6660kb

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 232
196 18419070396708615608 4015440662464094146 17654073147843248381 824296008128
833 3384953782287727330 17870844067734307743 16077287716671848461 821869166004
7 4640963802072563920 17654373046301916682 10357623628390707195 527147827383
354 16191521205476451838 9114769265975369597...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #9:

score: 7.16505
Acceptable Answer
time: 51ms = 4ms + 47ms
memory: 4264kb,6652kb

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 232
592 18431926952830033123 18444382339651975156 1139317309477611517 1095224919805
181 17657487437107030189 7638525720018108584 12531638308559626581 458453647210
673 17137744597175106048 12132607877725206453 192221226246056272 749873397003
360 141737064795007700 575158938288127984 ...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #10:

score: 7.16505
Acceptable Answer
time: 52ms = 4ms + 48ms
memory: 4224kb,6660kb

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 232
601 4463310278655855541 16735323713008252126 7888558986954276861 956664070196
392 6722747564221521908 48976607136431444 12008311790889296 727921422312
990 15852560691782049792 15050959722288725390 49644171879602232 961795566599
713 18223247409746108442 2223098144856469963 172882...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #11:

score: 7.16505
Acceptable Answer
time: 50ms = 4ms + 46ms
memory: 4312kb,6712kb

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 232
823 1566414762667224831 18441941212572131497 8436881073295933787 1097344528042
205 6064683313079079098 9983304991563411264 12318657087014288127 388717591227
141 9087386255976052799 3864350417420681914 6817816641424317372 266078281439
313 10296214700069813343 15937253703761641459...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #12:

score: 7.16505
Acceptable Answer
time: 45ms = 4ms + 41ms
memory: 4248kb,6692kb

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 232
332 10737688236605770526 17997495646292979520 425651943360755211 781016865375
190 379792196913206623 14991069837622155098 12634836288306937781 749521425739
532 17654872547421771434 16933208004948208170 3122518515795862891 346416721854
828 13754000679315061247 1844336630284468198...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #13:

score: 7.16505
Acceptable Answer
time: 52ms = 0ms + 52ms
memory: 4256kb,6712kb

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 232
376 18444401976471941006 18027732869984528253 4318977049701099247 274816587767
405 9436442545837560188 143949994090519565 18419722297485393791 1086589955047
815 16969352255337528045 4003688678194010047 17185739751491649290 682085896218
121 18158442917912377940 630499865330263442...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #14:

score: 7.16505
Acceptable Answer
time: 50ms = 2ms + 48ms
memory: 4340kb,6720kb

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 232
852 17186475874337859605 210026692602426379 15839347817098296587 893377705405
12 17145153053481031468 8033825769566228734 18271102492664084462 814968453116
931 251954874128789037 14873414847056052039 6844910442146443230 683977408487
130 16908017124172813486 15282306441839770536 ...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #15:

score: 7.16505
Acceptable Answer
time: 55ms = 2ms + 53ms
memory: 4328kb,6712kb

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 232
753 9331433135946164020 2082892837181907168 9203738288686628890 255818471943
818 1709887570700885461 4806843798113737685 6185128647058453525 1053049612478
702 6077233838833922002 11555464053488683658 10738128175030992317 751527389279
60 6130852737429870580 13632191550091081711 1...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #16:

score: 7.16505
Acceptable Answer
time: 36ms = 4ms + 32ms
memory: 4232kb,6716kb

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 232
1 3222314514392807351 8600846138733461413 13041006043850087136 1094613392127
485 3205427665056037757 8893544925845487525 8753580227121126624 1081191942014
142 3079300488158510557 9037132349279502245 8465489506247125841 545092532212
728 3061311927225416631 13504667999688179651 84...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #17:

score: 7.16505
Acceptable Answer
time: 49ms = 4ms + 45ms
memory: 4224kb,6712kb

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 232
614 7790309733569662471 12514630334377082880 2076168103787486135 1013612241896
764 7650135469038507275 12496176079745556480 3121007555122289583 944892801021
921 7650135469038507275 12496176131283591168 3121007555122289391 1052267011581
851 6637319260373782023 1294203249466328678...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #18:

score: 7.16505
Acceptable Answer
time: 44ms = 4ms + 40ms
memory: 4220kb,6716kb

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 232
392 6340672064311049482 16815273927096922075 12129511664004234671 906092009280
985 6340672064512376075 12203587905448308699 12129511664004234683 906194715380
242 6340672064311049482 16815273927096922074 16741210875765849531 906192349940
265 6340672064512376075 122035879054483117...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #19:

score: 7.16505
Acceptable Answer
time: 42ms = 4ms + 38ms
memory: 4260kb,6664kb

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 232
581 13544493416650866538 13546669172287504470 17288557823951337307 1074470915066
207 13544493416650768234 12681978043833155670 17288557823951337307 1074468874282
457 8068151454139875164 8070274450399625269 13831552253860572635 1082816716888
209 13544529700299177820 8934983153860...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #20:

score: 7.16505
Acceptable Answer
time: 37ms = 4ms + 33ms
memory: 4184kb,6660kb

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 232
549 13817596671760397247 1147388899138172159 10349653664694621967 716611545453
334 13808592783949558751 1133838517971825919 10349666308541441679 856183254944
551 9197188240357190526 10370756538080670975 10349512858423318167 853505241792
159 9196906764826834399 114738450122380723...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Test #21:

score: 7.16505
Acceptable Answer
time: 38ms = 4ms + 34ms
memory: 4220kb,6696kb

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 232
447 18426485143442817485 576343911851589590 6117748392160590334 556155944695
52 18435492961726497486 576265554046730190 6442151738725759742 553999233119
828 18407349303688954549 864503918839709621 6150420378602370814 556122731867
189 18434370832179004110 864503592705294254 41316...

result:

points 0.59708737860 Accepted using 232 pigeon(s).

Subtask #5:

score: 6.87887
Acceptable Answer

Test #22:

score: 6.87887
Acceptable Answer
time: 52ms = 0ms + 52ms
memory: 4344kb,9116kb

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 314
677 0 0 0 0 166617088
352 0 0 0 0 24672799
645 0 0 0 0 165928956
611 0 0 0 0 182628320
42 0 0 0 0 98128
866 0 0 0 0 427451174
171 0 0 0 0 6807372
871 0 0 0 0 232171511
166 0 0 0 0 6681344
136 0 0 0 0 1046392
919 0 0 0 0 133622652
670 0 0 0 0 64847864
331 0 0 0 0 16254376
84 0 0 ...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #23:

score: 6.87887
Acceptable Answer
time: 72ms = 1ms + 71ms
memory: 4300kb,9060kb

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 314
173 18371295394229990991 5745636137023819686 3637328705756982239 18048726198701585021 257831052493428839
497 18403953813671481842 18216744382986219000 1128012059485552255 18074622704070072180 278800952327528603
807 18337518397024712271 8979783618422624166 3637328706763614719 180...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #24:

score: 6.87887
Acceptable Answer
time: 71ms = 5ms + 66ms
memory: 4396kb,9112kb

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 314
72 16318793523576959871 16035909249934032894 432336413447220160 17582892951065853527 125061201311757979
698 14992131718448676807 6918065720320162814 11349517529228525554 18374686477482122509 285323542285776576
205 6010083853289062571 24491069076569983 16519484495972104172 207806...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #25:

score: 6.87887
Acceptable Answer
time: 70ms = 3ms + 67ms
memory: 4304kb,9004kb

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 314
732 10382415651899126015 15491841285986638494 4447867336368553979 5144234406219508636 189254572799457978
178 9257717460085241855 1564754846362370044 12680658755505590275 8052180254603083743 217298602555079773
964 18442909842641231439 6862695918498430617 10649238933216335972 1843...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #26:

score: 6.87887
Acceptable Answer
time: 75ms = 5ms + 70ms
memory: 4336kb,9120kb

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 314
612 1871244779199659771 18346301019773330630 6794820231010189727 13831679242305093108 273004131629658111
497 17538705789797325178 8818276422192829196 17977782037046821694 5534920876761185889 166420562735998567
473 1976638026555588096 13258463889418091390 16345515738514817022 192...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #27:

score: 6.87887
Acceptable Answer
time: 79ms = 5ms + 74ms
memory: 4340kb,9000kb

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 314
775 12681286984498737636 4397536344151146355 11082654037620995333 18381094268874207596 107732339184836732
834 16139187691989563788 11456298154437311471 11186482954366451763 16996474210598495795 273707915748255335
735 17291068299454373876 17869120954375834491 18427986160490677104...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #28:

score: 6.87887
Acceptable Answer
time: 85ms = 5ms + 80ms
memory: 4300kb,9048kb

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 314
97 4210015048672934322 17979266155043556505 11500827868552557158 5479922080577179430 56724144823523835
710 17841009855108191199 4554965772347096959 17292964880759902156 3743450061101489983 278743844025924071
898 18329650929639964031 18391785998594669760 56731055217178573 1152831...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #29:

score: 6.87887
Acceptable Answer
time: 79ms = 2ms + 77ms
memory: 4308kb,9072kb

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 314
201 11954238957798993343 18129697550738885631 17419570793116858351 16141885683565723393 287261876461374207
267 18302591506164596703 17361991117175390208 13507953375208660997 12138270957739404670 2251797607573480
535 14816664986561869287 16703173509902859506 8732536800513261177 3...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #30:

score: 6.87887
Acceptable Answer
time: 87ms = 5ms + 82ms
memory: 4344kb,9008kb

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 314
522 4460786899442678936 226983042944804860 18212584930624076185 9071937726726261132 171361084063596526
35 9781842579435810053 18437649117233930240 432026836248028134 18377463791735012735 288223806987293298
733 7343061909639213257 18385606725233528783 2852924248113800729 89289192...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #31:

score: 6.87887
Acceptable Answer
time: 75ms = 5ms + 70ms
memory: 4304kb,9060kb

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 314
448 9130488004203249409 16748875819230482424 1985843201662500071 16899581679981232599 254307822288220926
705 2759808956134062717 17856595721000383683 4538207803086417740 893326348094 171365274878601710
146 16099502251613029105 17296626866017566687 17728298866622542079 1432595044...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #32:

score: 6.87887
Acceptable Answer
time: 75ms = 5ms + 70ms
memory: 4300kb,8968kb

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 314
7 3889825542847610863 18086947581374385826 18412684292015369180 1106161451418472558 180140399198932986
44 6192430135891964 105270301211752455 18439344083970162697 13830534532274782207 287795875785700349
435 17239385334978770927 18226739761991112703 16829100726991445753 177188497...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #33:

score: 6.87887
Acceptable Answer
time: 74ms = 1ms + 73ms
memory: 4340kb,9048kb

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 314
722 2334205081967381459 1872312076558368242 17643201717361180606 11011247625163702270 106664675208776188
906 18390025740216672039 10596121048673101415 16587426368305561060 18151223901088775127 230140532866148246
23 8351332600695567948 3671130751896383384 3630012129599815276 1142...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #34:

score: 6.87887
Acceptable Answer
time: 62ms = 0ms + 62ms
memory: 4424kb,9048kb

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 314
409 44891960246267149 17816222542280400205 18072945287263776767 9366325003499761599 285822380051779584
36 58458284465580441 17721607387014096089 18007643092438085630 7385329407706254335 287771113473372799
636 26449301961424021 13744942095152230155 18219312275217342462 7275529715...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #35:

score: 6.87887
Acceptable Answer
time: 84ms = 1ms + 83ms
memory: 4340kb,8964kb

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 314
998 4143310528515514364 15672477336708133679 17957624572941431775 4574803792717315706 273004234228940903
92 4177087268022755324 15671949571126801214 17957624572941431763 18409861847999479418 137896240350224127
238 3305637622710829054 10082988970402890174 15826449669262670259 184...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #36:

score: 6.87887
Acceptable Answer
time: 65ms = 4ms + 61ms
memory: 4308kb,9036kb

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 314
480 18446299782311508823 10376288026126711220 1726580700880436735 9173825843932757887 278767841065304221
812 18445033128709635706 8935070174526023590 3743364301705772535 18337517489200512895 286654086645160439
276 18445560894290983546 17581981459077132070 3743364301705773023 911...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #37:

score: 6.87887
Acceptable Answer
time: 58ms = 4ms + 54ms
memory: 4304kb,8996kb

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 314
394 16699340717332365279 5490720250025227007 14758225608652595193 4465798415433227852 7177609704165270
37 17077647825798364919 17306048438053902271 16734813260866240443 11239199058726020848 2216614569178576
843 18068439703017684957 17300286861027317727 17310711066501537785 10951...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #38:

score: 6.87887
Acceptable Answer
time: 83ms = 0ms + 83ms
memory: 4268kb,9124kb

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 314
317 18014419932460987741 17870142009197436933 8644307493746374376 986094183585609729 271053566057052156
413 17510023886603369849 9223360987648700422 6914696477902104524 1819159468532278790 87361256469665702
840 17510023367180762429 17870142392389021702 6914432595614754764 181915...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Test #39:

score: 6.87887
Acceptable Answer
time: 86ms = 4ms + 82ms
memory: 4364kb,9004kb

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 314
209 14700192287346294013 18445887306345190147 2739961419757975551 17581979277695123506 115397701859753112
515 14700192287346286335 16140044297131250435 2739961419750172671 17581979277569294386 115397702023171224
700 14700192287346294013 18445887306344944387 2739961419757944831 4...

result:

points 0.57323943660 Accepted using 314 pigeon(s).

Subtask #6:

score: 7.73196
Acceptable Answer

Test #40:

score: 7.73196
Acceptable Answer
time: 142ms = 1ms + 141ms
memory: 4516kb,13756kb

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 521
221 0 0 0 0 0 0 0 1542913786 511
533 0 0 0 0 0 0 0 33151220391 239
902 0 0 0 0 0 0 0 1700739893351 215
868 0 0 0 0 0 0 0 2370686012919 344
121 0 0 0 0 0 0 0 381568009 511
716 0 0 0 0 0 0 0 2131913877502 63
408 0 0 0 0 0 0 0 73008152600 511
722 0 0 0 0 0 0 0 68144545791 304
292 0...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #41:

score: 7.73196
Acceptable Answer
time: 203ms = 3ms + 200ms
memory: 4516kb,13732kb

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 521
781 18444404315104145407 13834884193258938287 18431826026577985279 5390773538445590495 12655172067335862761 8645187112743984383 18396640339993853972 17003336628052162230 127
876 17293616962570018815 18437557344773504687 18430488958191009773 5978246993032511486 444205497442736505...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #42:

score: 7.73196
Acceptable Answer
time: 207ms = 7ms + 200ms
memory: 4520kb,13804kb

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 521
907 18298125124949901311 13167082113728377376 288229122021273055 13510798845601873915 18251838030769723195 18446725241083264239 17832002724237934587 9218586962179294267 399
5 18446506575033024015 18376884963907223164 2305561465484967943 13943135642729586432 8941897059137458687 1...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #43:

score: 7.73196
Acceptable Answer
time: 187ms = 3ms + 184ms
memory: 4628kb,13812kb

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 521
800 427914530354348016 4751843514398957562 1116892974014168080 8970070946092220353 2303731913568815041 18433373910280833086 17888297716425754567 13943112010243739522 124
626 4755816108837421054 17816094646745430991 14717868294638269700 3454840330577244081 9241102692631969727 159...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #44:

score: 7.73196
Acceptable Answer
time: 202ms = 6ms + 196ms
memory: 4628kb,13732kb

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 521
221 67474835730591743 10348988269084486007 11593390225123966975 18209178917682544639 16843462606665531381 39961724146368446 8589277719710789631 7466936003370956267 256
861 252199283487662688 446659820543 8646876099632719870 4611822353561687935 18293551312130895847 14967396408401...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #45:

score: 7.73196
Acceptable Answer
time: 207ms = 4ms + 203ms
memory: 4548kb,13756kb

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 521
62 18446593327340453871 5764609085209575151 1830689196993406287 10160131127390502850 459364368652435637 17880837290514970581 9079205051472279551 18446743515363439606 32
244 18411875394673176641 17573327100717299711 18442238429662543631 18302611293442407967 17888851607486005187 1...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #46:

score: 7.73196
Acceptable Answer
time: 200ms = 6ms + 194ms
memory: 4548kb,13748kb

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 521
123 18441114573906782206 4609610123815387663 10340968328805216511 13988172264962490368 558798137921701886 9221119429572557951 17870142550600254591 17365880133075861247 479
938 16697090394688585727 16989819148894702591 15398000605309173760 138375738251280272 5346993899341847 1148...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #47:

score: 7.73196
Acceptable Answer
time: 196ms = 6ms + 190ms
memory: 4512kb,13804kb

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 521
540 18368058072674336671 12380072836480368626 17257182370570689121 14951773172349730748 9020695749233726091 4453760137382858040 16924500289554169859 12657286313624467191 465
145 18445582937613096959 17627088942003978170 6918043422678450176 53933247905660926 8176247738773502975 1...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #48:

score: 7.73196
Acceptable Answer
time: 194ms = 6ms + 188ms
memory: 4628kb,13788kb

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 521
480 9214638049336261651 18411840098558541183 16437891267502286846 18442376817688968703 11528792731564407825 18433229701414586305 17314086843280523240 18433369614285549564 159
139 17003193605939723002 14684760639077867256 16392468195354634218 12515890230771565440 3963158601081421...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #49:

score: 7.73196
Acceptable Answer
time: 195ms = 6ms + 189ms
memory: 4544kb,13732kb

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 521
588 9219009140323778308 18433232449929740287 17329834872407056895 10087992796540564479 13976852311692010239 13983672728398495719 18401703812598398955 18446713562001829953 480
662 18119112389138577407 17671558938312587507 18446724969695038463 18446532949760374743 1141117531008427...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #50:

score: 7.73196
Acceptable Answer
time: 209ms = 7ms + 202ms
memory: 4516kb,13752kb

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 521
883 18443437807884566232 54007113244932288 6845470059208900607 18437661214276013759 8592403268334475263 18380342309772506833 18155660909200465373 18122340838713064768 0
128 18302560680504453119 5763554188881527807 1296913543084113919 18446321796816052092 1729100781933536255 1440...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #51:

score: 7.73196
Acceptable Answer
time: 206ms = 6ms + 200ms
memory: 4508kb,13696kb

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 521
675 567180872083538943 10375803157162725250 1117984247689215986 1119075512946253817 2304857726529896386 2304153919877481503 18446744009282944767 13983540368319124479 159
32 9169891378920941630 1117472708297355264 279504587447205762 9216686939049033663 17312961974140658431 184445...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #52:

score: 7.73196
Acceptable Answer
time: 201ms = 0ms + 201ms
memory: 4572kb,13708kb

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 521
386 579555495258966517 17106536390531480574 14441331179535693431 9133010802699401488 15917164946979126655 18445472488746845367 18365116114634801393 16591261052994187636 383
695 323151414945509443 18393247301771378680 4607254984520614911 6915910486663643635 16178029104707140671 1...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #53:

score: 7.73196
Acceptable Answer
time: 203ms = 6ms + 197ms
memory: 4548kb,13752kb

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 521
794 18445617134424948309 18347694018959807484 6536974781678346879 17293783441614762528 8358667714260050247 18446744073504006976 18446705494971072359 18333555861457993919 210
491 18446731012722136063 1187960878567259171 18376938278986183295 17293558671278638051 162129454643932364...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #54:

score: 7.73196
Acceptable Answer
time: 194ms = 6ms + 188ms
memory: 4520kb,13700kb

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 521
396 18433796087212146687 17005486639830529279 14555565757229174911 16185937060769562367 13943110911234408352 17887744115284639743 9799445761065218172 558762989518421988 496
418 16139071429818529775 18302628713832382382 17292920694690872256 16546225030959202157 120907551507050654...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #55:

score: 7.73196
Acceptable Answer
time: 216ms = 6ms + 210ms
memory: 4616kb,13756kb

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 521
687 18441259974651726861 13771152947678101567 14958129734556972855 13821538283147483264 16816152863250842230 16757821366390485589 16138649254158662495 18403502480377511931 160
562 18411814518808387452 1296914088282159041 9214575879542194161 4608871002233964481 173140872554977401...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #56:

score: 7.73196
Acceptable Answer
time: 180ms = 6ms + 174ms
memory: 4620kb,13732kb

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 521
5 17942315625678366782 272953711256575 1440879472327784579 16141992879014804799 17942274944745635824 8943873981245302782 1728891806005059839 17328725732641209343 318
108 7779967100398296992 94008235522141 18171456410878934446 2306339910283327487 14943154669579402047 922389952723...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Test #57:

score: 7.73196
Acceptable Answer
time: 204ms = 6ms + 198ms
memory: 4520kb,13692kb

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 521
876 567598617783697403 18410706755278336767 14699540209889999872 139686351212531710 18446737476119675143 14953076387766992784 18437733609336020985 558719174278349439 511
602 445561837337968639 18266598743714254763 18373536116886794240 80603835925495291 18373490210899602394 13841...

result:

points 0.64432989690 Accepted using 521 pigeon(s).

Subtask #7:

score: 8.26116
Acceptable Answer

Test #58:

score: 8.26116
Acceptable Answer
time: 260ms = 6ms + 254ms
memory: 4624kb,13732kb

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 642
475 0 0 0 0 0 0 0 0 0 285989571387193631 3
563 0 0 0 0 0 0 0 0 0 182325347159637962 0
680 0 0 0 0 0 0 0 0 0 231750267719227135 3
680 0 0 0 0 0 0 0 0 0 195752411644589567 3
497 0 0 0 0 0 0 0 0 0 100046762012696447 2
552 0 0 0 0 0 0 0 0 0 15478923351030781 0
171 0 0 0 0 0 0 0 0 0 ...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #59:

score: 8.26116
Acceptable Answer
time: 328ms = 2ms + 326ms
memory: 4652kb,13760kb

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 642
920 16717328848496619536 18445635902420553727 16573240048715956743 18440006129015590880 4611598056960281599 17942336534710583359 9259682291804797055 18311635948523160831 18159657188585373695 18383693404040136688 0
185 18409505736590646650 15444530739505573823 1729380873528232952...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #60:

score: 8.26116
Acceptable Answer
time: 336ms = 7ms + 329ms
memory: 4620kb,13740kb

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 642
68 143556670526595327 18194541464321492991 17330130646336669695 16151034133592410175 18384256596701083667 18443375169549369295 18437877603488490488 648513982653923320 720568243782156232 1145031477884362688 0
249 10369497449882188623 14910288480670566968 1436634801343913055 11313...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #61:

score: 8.26116
Acceptable Answer
time: 310ms = 2ms + 308ms
memory: 4628kb,13700kb

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 642
408 143975034701512703 18445761110214180832 6917388848498083839 16176928839312083967 17906310058988151807 17582052944994369411 18446743953987338239 18446198715439118337 18159780327503950975 18338657132880596960 0
483 17261945206135844815 18445963009529446399 2859641659807230971 ...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #62:

score: 8.26116
Acceptable Answer
time: 328ms = 2ms + 326ms
memory: 4624kb,13736kb

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 642
384 74291871458722847 18437736463205384256 9151593727628660735 16357072747081235967 18239578079599521823 18435484945791877119 4647712650782056447 9331457878124412831 13853635369926369216 4647434431425148928 0
133 18379354986250274239 12997352452400271343 18446723655166590845 922...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #63:

score: 8.26116
Acceptable Answer
time: 318ms = 7ms + 311ms
memory: 4656kb,13756kb

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 642
120 18428392262569258742 17900682753893579799 6917501952170376758 1213828623978397 13535923683927457390 18152825265164644095 17846795141696499647 17811435259845935095 18446744071553318399 15978730787046391722 1
947 18446744056527845373 13789194099698398127 13820948831090567037 4...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #64:

score: 8.26116
Acceptable Answer
time: 319ms = 4ms + 315ms
memory: 4620kb,13760kb

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 642
619 2825867634088296055 17798225727359811557 17068642448548822973 6917510575387836373 995287958506469343 4611404505802642367 7512004260829937742 18158487309278772850 397407474136637439 7451390301438048253 1
424 9295425439000956927 14555625783682662384 5188129178343439359 1758204...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #65:

score: 8.26116
Acceptable Answer
time: 323ms = 4ms + 319ms
memory: 4612kb,13692kb

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 642
934 8935049263968668415 18408181898439753448 9652216541034315429 7973609369784740859 18441422124159326204 583708174401821679 18446482876837740511 8822462922044145172 3016257254460981210 10186981653931359409 0
755 142421974527807487 16158914374231048191 4899901551155871712 464750...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #66:

score: 8.26116
Acceptable Answer
time: 322ms = 7ms + 315ms
memory: 4624kb,13804kb

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 642
296 13907111285901738499 17888157669618089973 18446181089799037247 18381441776301883456 9222811354639933439 11601268448214188031 143024199810678782 216170600137220135 18438018345169911299 18446744023243637244 0
888 9221687584774700991 9277415232353992698 1152857732800446460 5764...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #67:

score: 8.26116
Acceptable Answer
time: 319ms = 6ms + 313ms
memory: 4716kb,13704kb

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 642
764 18304317702207942655 13925128954760273919 16717346423569382911 18160747909447057406 9295425782593880055 18442592313608763649 18158513697557872385 576432164967544897 18445626969365151639 18438897957257343039 2
129 18343161010623316223 18161891330706350079 11673326935542857719...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #68:

score: 8.26116
Acceptable Answer
time: 319ms = 7ms + 312ms
memory: 4684kb,13704kb

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 642
473 1152855533776011248 18445760006474302463 17302829562197966831 18439988674267455487 9295429630826250232 5764537463525875711 9804318660234284031 17303111228368878591 17437934475822514303 9151666282263740415 0
327 18434192114989830466 18433374103850761718 17919645927073873140 3...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #69:

score: 8.26116
Acceptable Answer
time: 313ms = 4ms + 309ms
memory: 4724kb,13696kb

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 642
215 9221683186994266111 6917529025493566463 17726163735217172543 9268407534911291390 13834779054198292478 9222861862553517311 18303750353402716687 18446743803126352127 18446737751503044606 288230376017492476 0
997 13807825041658216464 18398656583664893924 1158114944616968183 181...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #70:

score: 8.26116
Acceptable Answer
time: 329ms = 7ms + 322ms
memory: 4588kb,13804kb

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 642
412 17708026155761623168 1049184231204978688 47251590590353382 86641107659517919 17632436966085607399 6910099419202711551 17555942257369890581 5782585929718065087 11380505860023237883 18157746498739105661 3
392 16212954947674709952 9151877375860916224 571974881260602375 17579812...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #71:

score: 8.26116
Acceptable Answer
time: 334ms = 3ms + 331ms
memory: 4588kb,13804kb

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 642
48 1150687434410035199 16150471196792570879 18015515614361190911 17874786822249062399 10952741099399020127 18430981372201918511 18428800589421740559 18446743558312820732 18445670949292343249 18445899635894453240 0
854 794880506920428161 1152349655028702975 18404566807751354992 1...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #72:

score: 8.26116
Acceptable Answer
time: 316ms = 1ms + 315ms
memory: 4616kb,13748kb

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 642
643 18410715101018586878 16852052038026985739 18062133256310418171 18409870575533551549 18162792926882822649 18013413207477059487 18443471927105290242 6914960286554060164 5822876115523533 17992714733959895084 0
613 9223371491393671167 16177209410207219704 1188948120050843807 184...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #73:

score: 8.26116
Acceptable Answer
time: 318ms = 2ms + 316ms
memory: 4616kb,13748kb

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 642
696 9188046927277588476 4611474911137889359 18437736741310627838 9223134542076821631 72616150206513151 18445055192173903871 9511589218766290495 18446742561875034100 572096794981072641 18446181119460934648 0
453 18375812353808662524 1152921503549881439 18419722355685244927 691744...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #74:

score: 8.26116
Acceptable Answer
time: 322ms = 3ms + 319ms
memory: 4684kb,13724kb

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 642
627 10412342670140759535 18409568159422693339 15276209884500836845 17239800479012362743 7457933962883497983 17869230401510686546 4719772383148769280 377717609235218431 18338329503075327711 18406086298377909664 0
562 756641965998897151 15848694097250975454 13690942866920593327 18...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Test #75:

score: 8.26116
Acceptable Answer
time: 318ms = 6ms + 312ms
memory: 4624kb,13808kb

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 642
893 4607217602173861504 18307097439401607439 18430998929894023167 16140848424302952320 18446187720758786176 18304863162517667839 9263904300356879359 17298889101503627257 18445626918222692338 9223231299366290424 0
492 14570551739915697906 12105842854883096431 8024255100984999903 ...

result:

points 0.68842975210 Accepted using 642 pigeon(s).

Subtask #8:

score: 8.87503
Acceptable Answer

Test #76:

score: 8.87503
Acceptable Answer
time: 487ms = 7ms + 480ms
memory: 4908kb,13804kb

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 809
505 0 0 0 0 0 0 0 0 0 0 0 10709625759 2160305838080
258 0 0 0 0 0 0 0 0 0 0 0 551536632 299213192425
501 0 0 0 0 0 0 0 0 0 0 0 27153923342 1438799920128
29 0 0 0 0 0 0 0 0 0 0 0 740 1511828483583
884 0 0 0 0 0 0 0 0 0 0 0 579484962904 443989645952
808 0 0 0 0 0 0 0 0 0 0 0 7404...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #77:

score: 8.87503
Acceptable Answer
time: 535ms = 4ms + 531ms
memory: 4824kb,13664kb

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 809
922 18433233272948391744 1152920413693534719 9228157111193567231 3458763693481784831 18437807243165466655 18446190469604444671 18438027145518252031 2323857390811742175 18446744073583722493 18446726481515511807 16429694390068314111 144115119356347455 2198890094584
404 1844674402...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #78:

score: 8.87503
Acceptable Answer
time: 542ms = 6ms + 536ms
memory: 4832kb,13728kb

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 809
153 18429855574603595769 18446728680545320959 17005591918342569983 1154046373654462495 18446184422290751487 13844346729379528639 17294389917098444801 18428712100193894399 18412967075430530655 18446744073709551507 18446691297143422975 16357073846609609343 2198756933616
406 10805...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #79:

score: 8.87503
Acceptable Answer
time: 550ms = 8ms + 542ms
memory: 4892kb,13752kb

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 809
365 36028762678099966 9367487088699637664 9223372036852154367 18446741050052321279 18412967074894708735 18031990687399935 16140899984311580929 18446744073692782847 18442242675250954112 1729381709301939391 18445622709288045567 18429011150043087359 1108093178879
778 7412869975703...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #80:

score: 8.87503
Acceptable Answer
time: 558ms = 8ms + 550ms
memory: 4792kb,13760kb

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 809
591 17293259344271143401 4503458889881091063 18037483614020435935 8803411519225200571 13811975791857630719 13835240522471342078 11102566050753937261 7097777328732766207 18441950374726183025 87256658362499071 18365221998930864367 6305021885045217210 2199023216882
342 57640797572...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #81:

score: 8.87503
Acceptable Answer
time: 559ms = 8ms + 551ms
memory: 4788kb,13764kb

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 809
370 18441242701639798767 11385095045481746303 8606086296864554989 18104465406967152640 6236359302389946815 17798084988535271405 15851544730555982269 18218758139067744255 18442435912274036923 13835058053398454079 2161727821000998827 18245769135006427775 206158425587
42 951686656...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #82:

score: 8.87503
Acceptable Answer
time: 563ms = 5ms + 558ms
memory: 4856kb,13708kb

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 809
240 3503800510102757373 6294026759117209599 18446744068877680581 18446124351687212154 12069647001330100077 17900330757985927151 7750683949830946697 4192826854911507839 18398741501612916607 9196339435250053029 18266599813543845823 18212845059286499303 2055056457694
888 230557472...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #83:

score: 8.87503
Acceptable Answer
time: 534ms = 8ms + 526ms
memory: 4856kb,13696kb

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 809
149 16906073625591800 324259173170671615 18375530904333713407 16717361679360278655 18444494507278828031 18442310911545770115 18446673979843182719 18444494747796783103 18303895522928230392 9223364342420862983 18446744073692839935 17374887353855770609 68719452152
577 115040513265...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #84:

score: 8.87503
Acceptable Answer
time: 548ms = 7ms + 541ms
memory: 4804kb,13664kb

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 809
757 18446165738157703159 9150179738177108975 18446180228289006253 17293822154554469989 15185557227272667135 18446663804793126845 9151308486293323278 1882869544567958971 15851245721272416958 13109978377249021311 18446744071556798935 2251799794217912607 479753158656
763 201423489...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #85:

score: 8.87503
Acceptable Answer
time: 540ms = 2ms + 538ms
memory: 4800kb,13688kb

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 809
968 18445606947304818139 18446739332029890152 92068828479 16716728479658184704 4968556138468474879 17969081020684656573 14348484078124662775 12519618834304203177 4611599306261360095 18446558767346195766 7955187376961714135 18158513697289403836 1714280439
630 1844618112348795699...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #86:

score: 8.87503
Acceptable Answer
time: 535ms = 4ms + 531ms
memory: 4836kb,13736kb

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 809
154 1152640304239738752 1224979047105160255 18445767707375731711 18429011150043613183 18410732937596053503 18437736872307325057 18446735277611286527 148618787703226367 18430137049815449599 17293822294493232896 18446735329156132863 18419722472724102211 2199016980464
563 23058430...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #87:

score: 8.87503
Acceptable Answer
time: 553ms = 8ms + 545ms
memory: 4828kb,13812kb

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 809
128 18446603611367309280 360287944419831807 18437736870164033537 18410732886056487935 18437745662494245120 18446735286206455813 18446709441240758280 576460245497274655 18446471394817556479 18212556884504731903 13839561653567356801 18446709439093276671 1967095015423
48 172551898...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #88:

score: 8.87503
Acceptable Answer
time: 540ms = 2ms + 538ms
memory: 4832kb,13760kb

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 809
396 18446730467278122984 3550868043078827930 16470630290028492799 18437719007323750223 17870174799237968054 4755132703429282464 51451510719 18129820842119491410 17546019738718044160 3958357291129887811 8646897129730867199 18292495777075182591 2000778066431
858 18446722942528437...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #89:

score: 8.87503
Acceptable Answer
time: 544ms = 3ms + 541ms
memory: 4912kb,13732kb

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 809
272 17168566204492995579 17263282491196702996 4456311831203744768 355361539615878715 9222496414474108638 9367630702521812023 2774203125764808038 16067717570131525631 15267202736651436960 129433134432223 13835057488346480573 6907817041359403005 1477468733423
468 1646234548794388...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #90:

score: 8.87503
Acceptable Answer
time: 543ms = 4ms + 539ms
memory: 4792kb,13704kb

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 809
796 18446601190925381622 16645304222759916295 13469690272646021038 11235330362651443162 11491356661700211968 9934637312753120 13134572213589429759 18446744073570024671 7998384142115919043 10376150328727699419 18446741616902272683 10169690546840436670 2115122495169
387 184463017...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #91:

score: 8.87503
Acceptable Answer
time: 561ms = 8ms + 553ms
memory: 4884kb,13692kb

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 809
889 9057856287450080237 18282388478581503871 14519323446639820461 9043223653576569727 18373959977265779391 18302611293380542463 17187531641871798127 9147019731067141948 12859817349376901120 9618703641644892159 4021327155027859135 18158513697524285439 2164596402804
958 675088888...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #92:

score: 8.87503
Acceptable Answer
time: 530ms = 2ms + 528ms
memory: 4828kb,13732kb

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 809
939 18296435839128829951 18446724820140097531 13797832233022644205 13258597302911629279 17924326468162154495 18432984783856831233 17870124952971769725 18446742286868870864 3152504818443229975 18262414228383924079 18446741570087555774 13647506028951737252 1610584702976
554 18401...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Test #93:

score: 8.87503
Acceptable Answer
time: 506ms = 2ms + 504ms
memory: 4852kb,13736kb

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 809
686 94262772522516111 17226197355405498720 65735384653330335 18373554816992562575 15347211998915985424 4170333254859333023 18446462579403063274 18424183271984307902 18445878712785174463 9223372033309158599 17870283287046355967 18440797050799913981 802568658895
836 1421005284382...

result:

points 0.73958602850 Accepted using 809 pigeon(s).

Subtask #9:

score: 9.38393
Acceptable Answer

Test #94:

score: 9.38393
Acceptable Answer
time: 845ms = 8ms + 837ms
memory: 5036kb,23128kb

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 1017
223 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8589410320 4503599610789884
732 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4904173096959 144115188075855611
537 0 0 0 0 0 0 0 0 0 0 0 0 0 0 35182224670735 144115179504795520
109 0 0 0 0 0 0 0 0 0 0 0 0 0 0 67104768 18295873485193215
38 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #95:

score: 9.38393
Acceptable Answer
time: 920ms = 9ms + 911ms
memory: 5064kb,23072kb

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 1017
410 18446716513398224892 16140901044115226628 8569609974403805821 17293470724304831056 126098222279786500 5259913891533410159 18351082164214258943 18446743968970599685 11382845859138825963 18410693870016262143 17221181134390427634 18437655510594355109 13832806255198993279 1612...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #96:

score: 9.38393
Acceptable Answer
time: 919ms = 7ms + 912ms
memory: 5032kb,23136kb

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 1017
884 14922393107176619999 16140901064495726566 17868031280937433087 18446739108648318814 6879786713892566335 14984452181430607871 18446710558237142015 18293621675607818239 18446739632699731871 8628896885227110399 16716499730560974847 18440410878109678279 15701751683172256735 13...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #97:

score: 9.38393
Acceptable Answer
time: 944ms = 10ms + 934ms
memory: 4960kb,23188kb

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 1017
371 9223336854630039555 18442240611554689023 16221965857755242495 18446183322913603583 9295429630767923199 18384256628877754431 18446739959130882018 36028796884762623 18446251767378214016 9223372002564243455 18446744073451601919 18302910360610144255 18438299961847184929 184467...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #98:

score: 9.38393
Acceptable Answer
time: 921ms = 3ms + 918ms
memory: 5060kb,23072kb

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 1017
930 72057593770672127 18443366373984833599 18446740259778592704 4611686003462111231 16212958658332459007 17293963306590732287 18442310842826231823 18446744073709549603 18446743867567898623 17298889118681400831 18446726481523491839 18446691297151410175 18446200914965424143 1844...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #99:

score: 9.38393
Acceptable Answer
time: 918ms = 2ms + 916ms
memory: 5004kb,23084kb

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 1017
646 18445644562081767423 18446392229988433919 18446251492500055039 18446708889337446399 18446321861244225535 18446608833779331455 18446735621213913023 18446741874820509695 13835198801359929599 18158524692674111615 18446737476639782015 18446736377128155455 18446739694990393340 ...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #100:

score: 9.38393
Acceptable Answer
time: 925ms = 6ms + 919ms
memory: 5000kb,23072kb

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 1017
158 288226527995232255 9223654611343111167 18446727581035131903 18446717754149961473 1152921500448194559 18347664881883283455 18401708077402423359 18446739710024875904 72053196259852287 9259400833824456703 18392703077204353027 18446744073709551360 13835058038270066687 17582052...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #101:

score: 9.38393
Acceptable Answer
time: 954ms = 3ms + 951ms
memory: 5004kb,23036kb

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 1017
887 16113853485994266880 19237120769023 17870283321403201947 18270399949193608911 18437551257973948428 7888509940966862525 18363976678066814843 16140192979005456383 17149050252104660030 13827431704648744927 18446557376848519101 18410715169777719287 18229953888973225983 1787026...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #102:

score: 9.38393
Acceptable Answer
time: 942ms = 9ms + 933ms
memory: 5036kb,23080kb

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 1017
93 18444492273889050623 18410996820386774848 18446744043644780530 144115187808468991 18410724072783579139 18446743936278986240 4611404560630546408 18014398442381312 9222844269126025219 18442240474082246652 3377699716337663 18446673709260083199 13835198801359994876 225234956949...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #103:

score: 9.38393
Acceptable Answer
time: 943ms = 4ms + 939ms
memory: 5032kb,23080kb

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 1017
483 18445670950360778751 18446744073709422591 18446708897927397344 27021597731717183 18446739676200959999 18379190079294800127 18446726485826863103 17879360889404915711 18442521949058387967 18446532984656887744 6917529023882985470 306244774595133503 18375249395266879487 184110...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #104:

score: 9.38393
Acceptable Answer
time: 935ms = 9ms + 926ms
memory: 5000kb,23172kb

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 1017
721 18446446655814172600 8813320127388056537 18446354089536126975 18444451171075878911 18437171502139834367 3005350107781664831 17870283321406128127 18428729675048342129 18121323539217770468 6052968603630698239 18362706096822419455 18154003500860686335 16717361816799281151 184...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #105:

score: 9.38393
Acceptable Answer
time: 930ms = 6ms + 924ms
memory: 5008kb,23072kb

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 1017
682 18446744069481693183 13844082846722899967 18446251492500307967 18442803458393505776 18014398476976127 18446744073680191487 18374686479436873727 18438299824407707647 18428730774845915135 9230127436292161535 18410726271806859264 2305702340440621184 144115188075855871 1037629...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #106:

score: 9.38393
Acceptable Answer
time: 926ms = 9ms + 917ms
memory: 5000kb,23040kb

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 1017
53 14411518805977071615 18302664619761597503 18446740775241775103 16140980229333041663 18446708890415398911 18158654435045998591 18445635765988720641 18446743936287375359 18302628885101019647 18446709164215369472 9223372002496348159 18433374012315795455 18433237672873947135 18...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #107:

score: 9.38393
Acceptable Answer
time: 885ms = 9ms + 876ms
memory: 4996kb,23116kb

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 1017
478 306506456095522807 18446603336166670257 11529074307772710907 16104713662253233855 9115285645797584839 16064058056883761151 6880862513869618927 18446744062971019219 10978547462163142571 11529215046068432863 18446594538902827544 4909750149153693380 5744903170857336827 184467...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #108:

score: 9.38393
Acceptable Answer
time: 938ms = 9ms + 929ms
memory: 5052kb,23072kb

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 1017
939 18442239848623370731 18446744073093775288 18011264757524324223 12682136546111651839 18428652691392429713 12157467749038882515 7459455218890833919 9176693473288388673 7709598496894446031 13468999834111180783 17868909211078017001 18446744047935479807 16108882701778892031 175...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #109:

score: 9.38393
Acceptable Answer
time: 932ms = 9ms + 923ms
memory: 5032kb,23072kb

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 1017
468 576454704989468807 18446743545428574207 18446743798848421887 17299452068632725504 4611686001248108543 18442275675634139073 288230375086358527 18194544693467938688 72066390130917379 18446744039349813121 18446744022706814974 4683743612201074943 18158518095335931903 184464625...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #110:

score: 9.38393
Acceptable Answer
time: 964ms = 9ms + 955ms
memory: 5008kb,23084kb

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 1017
440 9295429630625316863 18413530026455760895 18444497771454005247 18446673842404327295 18446740775174664735 18446741943409966848 1125831189987327 18413037445248223231 18446638520593252607 18446728680680980479 9223654061587298687 18446735346340200192 67104768 461168601064275967...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Test #111:

score: 9.38393
Acceptable Answer
time: 914ms = 7ms + 907ms
memory: 5008kb,23088kb

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 1017
625 18374686479671361431 10515322388679749119 8909243389958922975 9137794527186095103 18446673694122047975 18446735277613907967 17581454517427875856 13029743 17249912192488663907 17572199825617169383 13492277071459377037 18445569790995855327 819627369512826879 9221120236613969...

result:

points 0.78199389620 Accepted using 1017 pigeon(s).

Subtask #10:

score: 9.82271
Acceptable Answer

Test #112:

score: 9.82271
Acceptable Answer
time: 1579ms = 6ms + 1573ms
memory: 5296kb,23200kb

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 1308
200 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 67108800 1125899906842112 34603007
725 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 92155699199 9005629561953483775 151913370
609 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1492835823 18067458362821704623 134180665
801 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #113:

score: 9.82271
Acceptable Answer
time: 1666ms = 7ms + 1659ms
memory: 5324kb,23124kb

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 1308
178 18446663885079589378 1924706030800520064 576460752303423488 602553400180882026 193654785980888819 15852648698107367423 17852233596790628319 18153996254818656895 8484781629246537597 18086438510796587005 12604269135378481087 18437736874454810621 16058147408188313418 17292994...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #114:

score: 9.82271
Acceptable Answer
time: 1668ms = 2ms + 1666ms
memory: 5352kb,23176kb

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 1308
569 12063955855079112703 18446742868433305567 4611686018427125759 18446741838933777399 18409553298647382011 18446744073692741631 18446743798814851071 17968165145039206143 13835058020915579072 9799832800422426235 10905379039292162050 4671909843675870472 10448351300201289599 183...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #115:

score: 9.82271
Acceptable Answer
time: 1676ms = 11ms + 1665ms
memory: 5300kb,23148kb

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 1308
892 144115179519475711 18446603336355414015 18444492274977996799 18446638524888252415 18374690882013102079 18379190079298993167 18446744073453699071 18446709439093276671 9802084588971882623 18446744072904245503 18442240508441886720 292733975779079679 18446744065187250175 18446...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #116:

score: 9.82271
Acceptable Answer
time: 1678ms = 6ms + 1672ms
memory: 5328kb,23180kb

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 1308
251 18446743525027545087 18446743008557694975 17906312084065370623 18446744067267108863 18446743936404815999 18445055223312417151 18446744071562461183 18446744073709551615 1688849860263455 18446744073457893375 18446612136609185791 18392700878181097474 9223372036846452735 18446...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #117:

score: 9.82271
Acceptable Answer
time: 1672ms = 5ms + 1667ms
memory: 5400kb,23088kb

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 1308
713 144115188071731199 18446744004995317759 18446735277616529404 4611686018425618431 18446743060097269759 18158531358463361023 17329851366121652247 18446744073642442751 18446462598732840832 576460752303177727 18446743942713049087 18419722484535255041 18446708889356337151 18446...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #118:

score: 9.82271
Acceptable Answer
time: 1668ms = 12ms + 1656ms
memory: 5300kb,23088kb

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 1308
510 17293820232338472959 18446596464273518333 14786909858483093998 13545629069722250463 3779487382709991370 1487570642528280575 18446744073691593316 4563973908562178047 18446742630581665791 17550109600435332351 18126318876109564659 14474267910949437165 7764709996444237819 1165...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #119:

score: 9.82271
Acceptable Answer
time: 1674ms = 11ms + 1663ms
memory: 5336kb,23176kb

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 1308
197 17042698665728 2814749767106239 18446744073709551615 18439988674268495363 18446744073642446848 9223372036850581503 18446726481523507192 1155173304420531263 18446744072635813888 144115188075724800 6917529027640066047 18446743534691155967 18437736874454802496 360287970189313...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #120:

score: 9.82271
Acceptable Answer
time: 1652ms = 7ms + 1645ms
memory: 5348kb,23116kb

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 1308
174 4611685917495656447 18428764859572158432 9223372036853727231 18446728682694246399 18420285425898749440 432345564227436548 288230376151453823 18446744071563378687 18446739967720816639 18230571566473674751 13839561659204497408 9007190664810511 18446744073441116351 1844674407...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #121:

score: 9.82271
Acceptable Answer
time: 1687ms = 13ms + 1674ms
memory: 5304kb,23076kb

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 1308
712 7493849010205456831 14841418748539133183 18302558516889517935 16707751535013519305 10898364477195924796 5596486392612782079 12681432853717403656 495157599865339387 16140575468273215782 12718087831970783024 15187878950895549437 9220412116921417206 8610882453172628411 151808...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #122:

score: 9.82271
Acceptable Answer
time: 1679ms = 8ms + 1671ms
memory: 5240kb,23072kb

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 1308
734 36028796884779007 18446743523955834911 18446744073306898559 18444501069980499972 4503599627366400 9511602413006226463 18446744073172697088 576460752302901247 18446744065656487935 18437842427571077104 4611686018425290753 18446744073677045759 18446735354925940735 18302699254...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #123:

score: 9.82271
Acceptable Answer
time: 1662ms = 12ms + 1650ms
memory: 5292kb,23180kb

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 1308
664 11831525611135735551 18446744073709551599 18446735070921195359 18442240473930905333 4006786277543059161 2022116232691466335 14967704284042207193 17870221424821993086 16139086496576368571 18446532279139284927 8480278016727702523 18371132858090651647 15994534076606181275 184...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #124:

score: 9.82271
Acceptable Answer
time: 1675ms = 8ms + 1667ms
memory: 5296kb,23052kb

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 1308
833 2305843007468863487 18444528557779582975 74766790688766 35184338534415 18446462599001276415 18444501069997277183 18446604435732824063 10376295740484878334 26388279066616 1188950301625778688 9007190664806400 36028762659241987 18446744073642442785 18446744073676000255 184467...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #125:

score: 9.82271
Acceptable Answer
time: 1715ms = 12ms + 1703ms
memory: 5296kb,23052kb

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 1308
938 16142026964402699264 1152922604117426176 262143 13835060254439636991 18444492291076259839 18446736377132351487 18446673708186599423 18433233274827439167 18446744072637907455 18446744065119621120 1152921504606126079 18446742974202249215 18446741874786959359 1844619981545380...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #126:

score: 9.82271
Acceptable Answer
time: 1667ms = 11ms + 1656ms
memory: 5332kb,23088kb

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 1308
162 36028793126649855 18444494541638598655 17293833564218982398 3458764513819623423 18446742974231511039 18446743523956359167 18446739675730149375 18446181123756130119 18446744073709551615 18445618448680615935 17005592192950870015 18446743944994750463 18444773749141012231 1844...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #127:

score: 9.82271
Acceptable Answer
time: 1662ms = 10ms + 1652ms
memory: 5384kb,23192kb

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 1308
15 17591651270654 35184372088818 144115188075727103 18446744069716574207 18446321861378703232 72057525318488063 18446744013647118335 18446744073709551104 4573968371548096 9799832789157691647 18446744069485887487 18446682509648330751 18303262204331294675 18446744073659236351 18...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #128:

score: 9.82271
Acceptable Answer
time: 1667ms = 3ms + 1664ms
memory: 5256kb,23084kb

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 1308
992 4503599618985983 18446744073709551615 18086456103519862784 2305843009211597855 18446744073575333887 18445635765988753393 18446744073694871567 18446744073476767743 18446708992416677887 17873661021126655519 18446744073189458175 18446744069951455231 18442240477303406591 18428...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).

Test #129:

score: 9.82271
Acceptable Answer
time: 1674ms = 7ms + 1667ms
memory: 5300kb,23180kb

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 1308
535 8559656103644490673 18404978670352535682 11475163049556694734 8917127261925146622 17939315059275857919 15276121974921155026 14798374204155592703 18437736271127771602 16136327095855874044 8677609662322282127 18328330005576155136 2452969745645002718 12680992989577735935 1214...

result:

points 0.81855912290 Accepted using 1308 pigeon(s).