QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#105780#5447. 鸽子zaneyu#42.890075 2056ms42412kbC++233.5kb2023-05-15 12:54:342024-05-31 13:35:38

Judging History

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

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

answer

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

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

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

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

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

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

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

详细

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 599ms = 0ms + 599ms
memory: 4180kb,13912kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 890
0 698357469369397454 2652688881073260210 1182054164403801625 8276337254542311426 4219593708543639268 208121363407831039 18065803380101028965 869700190927847509 1206611503499711126 9231286332158708832 2926596792491 13835055062793060510 17898995920809230346 189631193143836663
0 45...

result:

ok Accepted using 890 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 1895ms = 13ms + 1882ms
memory: 8008kb,41832kb

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 2668
701 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1152920405096267775 18446744073709027359 17592152752127
649 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 130560 2199023255296 9223370937344196607 1
660 0 0 0 0 0 0 ...

result:

ok Accepted using 2668 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 145ms = 3ms + 142ms
memory: 4636kb,9492kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
2 1 10000 255
672 0 0 0 23898478969
515 0 0 0 41269407707
774 0 0 0 412822544377
104 0 0 0 196445196865
10 0 0 0 821460430800
881 0 0 0 438213905305
608 0 0 0 48330918757
788 0 0 0 785214013295
62 0 0 0 86404716711
751 0 0 0 783522976502
500 0 0 0 193877519762
418 0 0 0 618485474313
648 0 0 0...

result:

ok Accepted using 255 pigeon(s).

Subtask #4:

score: 6.62913
Acceptable Answer

Test #4:

score: 6.62913
Acceptable Answer
time: 147ms = 2ms + 145ms
memory: 4884kb,9256kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
788 0 0 0 737892
904 0 0 0 774288
304 0 0 0 100224
50 0 0 0 2953
974 0 0 0 784574
168 0 0 0 39312
422 0 0 0 186670
29 0 0 0 758
5 0 0 0 37
239 0 0 0 48575
977 0 0 0 784769
257 0 0 0 147457
859 0 0 0 497367
389 0 0 0 188442
533 0 0 0 590437
518 0 0 0 589869
180 0 0 0 39780
253 0 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #5:

score: 6.62913
Acceptable Answer
time: 151ms = 3ms + 148ms
memory: 4640kb,9196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
547 18446744073709551615 18446744073709551615 18446744073709551615 9223372036854183668
251 18446744073709551615 18446744073709551615 18446744073709551615 9223372036854726692
161 18446744073709551615 18446744073709551615 18446744073709551615 9223372036854749950
972 18446744073709...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #6:

score: 6.62913
Acceptable Answer
time: 175ms = 3ms + 172ms
memory: 4724kb,9252kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
166 5513771621071375870 10540676189292541572 10849759294304265650 212956709799631151
682 3679440483324347597 6810521240563629263 283783933964523471 6928298640924469880
582 3516407578065104332 18432160219205522431 14744851361065595120 9182154364184168785
848 18021074642310455273 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #7:

score: 6.62913
Acceptable Answer
time: 172ms = 3ms + 169ms
memory: 4632kb,9204kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
12 14971284661955182952 325368806975581188 9227595742066078479 3450185567563709990
67 17580770313199312127 17559464800176588972 14973357625889876979 7458391881435225082
977 14119693853865807488 325670550696279235 882352855174614268 2891283791485081701
194 13203431588436653490 87...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #8:

score: 6.62913
Acceptable Answer
time: 172ms = 0ms + 172ms
memory: 4700kb,9184kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
234 12827518786948538747 3704548401878274870 10606935917434536297 3909177097890522149
772 4502898529059008 5421267160949868795 8894678394793264127 567486952374638776
898 102701553494579784 5618904065945782654 10846356747711788979 4560376484447960511
868 11853811989268117215 1810...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #9:

score: 6.62913
Acceptable Answer
time: 173ms = 0ms + 173ms
memory: 4940kb,9260kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
753 217836806857653096 890995844285726778 18260125751917652773 143684809163587582
980 1097980215057449748 12574071371603065918 14992077656841785018 1860524486894781087
255 6579503140229215213 91567521685245900 18262904083549732848 2304999007841264641
128 1641563629998858220 1614...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #10:

score: 6.62913
Acceptable Answer
time: 180ms = 0ms + 180ms
memory: 4672kb,9196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
948 11617010093513511428 9554302399888208388 15730425097297160264 651061556195816459
474 4557364818947282560 17094561158268926976 18391272843696393376 9222859389357129000
380 5620490705094107131 2312597073760354011 7520930588972790273 3949706517963526288
876 6859404379458028483 ...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #11:

score: 6.62913
Acceptable Answer
time: 183ms = 3ms + 180ms
memory: 4648kb,9188kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
93 18428733076496958211 17296917903727182847 15276465284730520287 9189034591340373551
407 5476108929909194097 9007094607539512817 8121292013014141135 6204268769106717506
584 17352154746953375804 13257472717431766271 13240600290443215509 4177533296979214836
440 138893370974636615...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #12:

score: 6.62913
Acceptable Answer
time: 178ms = 3ms + 175ms
memory: 4592kb,9196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
471 18365361383721135610 6830027060094079560 350883704865816653 9172664327689994048
870 17375947068665941771 9152726975557443659 2950124951201039265 4496738571684125103
66 1125998869318118910 15069462373815238592 13902880071287547387 4605917973960433652
7 4607199317551124468 930...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #13:

score: 6.62913
Acceptable Answer
time: 185ms = 3ms + 182ms
memory: 4648kb,9188kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
574 1303707973122390910 15810307389781237381 12826276498619343212 5424919990585077748
818 12913735151979225011 7838600584382460435 2306240153779999614 5473168330178156944
829 11893980499585216527 18375107438069824673 9007115090461283119 6917960028013565959
182 373312123896669388...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #14:

score: 6.62913
Acceptable Answer
time: 184ms = 3ms + 181ms
memory: 4672kb,9256kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
415 1728986102625361896 102934105017684556 14513172643605420013 9182047179889396699
121 1083878654783 6544922130234982688 18217978598667326334 5025464233387620857
876 18375584087919079169 5696730482406831345 7514256865240508623 1449702206656866207
272 16739310364574851360 657299...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #15:

score: 6.62913
Acceptable Answer
time: 172ms = 3ms + 169ms
memory: 4640kb,9196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
83 18100846825868418778 86216795442488524 14512854824635573741 6413928082599762788
329 4598174187760455676 3504118255806779208 865602622319705379 7754768322868444708
515 11874063345019224059 9203001832811901458 5214825417524080108 7408473349379964196
743 18262801173683585008 165...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #16:

score: 6.62913
Acceptable Answer
time: 144ms = 3ms + 141ms
memory: 4712kb,9136kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
741 732101622953609938 3527391219287114679 4248200370245309 2851913208719952705
678 734354006748630348 5867583109183095758 9227620202898837308 6603411715566501769
342 878462013641266386 5255058375488644015 6350466636132156 6600034015778626054
679 878462554807243468 3527391219278...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #17:

score: 6.62913
Acceptable Answer
time: 136ms = 0ms + 136ms
memory: 4608kb,9484kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
619 14961021811313738746 3561432314346933296 14986658561106850580 1756403866841113218
151 13231674738878318074 5290849618158850633 4033877911281257618 2634605794244877301
822 13231674738878318074 5290849618158850633 4033877911281257618 2634605794251777780
607 1323167473887831807...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #18:

score: 6.62913
Acceptable Answer
time: 146ms = 3ms + 143ms
memory: 4640kb,9260kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
756 13175942621083186834 410471019399911400 1400030244106758234 3243425436549706933
75 13175942621083186834 410471019399911400 1400030244106758234 3243425436448803108
281 12626503464270679698 275371379962056688 933916480384331868 3315483305347907398
377 13175942621083186834 4104...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #19:

score: 6.62913
Acceptable Answer
time: 144ms = 2ms + 142ms
memory: 4636kb,9196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
236 5606612447994593230 10110660535651155199 12411854550481174543 461616866372648459
736 3724107666281217967 885001480385084159 14726671773560930319 461616935092533679
690 5599883404586803126 10540754403144653695 12853174302838521878 5304111317986941329
168 6039098577911832535 1...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #20:

score: 6.62913
Acceptable Answer
time: 142ms = 2ms + 140ms
memory: 4656kb,9252kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
106 6633736008977777645 13027224885393420543 4378412536184750284 8788864798433116009
512 4330144799584060907 14784191696329566591 4369827551567757524 8788883472969392231
231 6491839499645388269 12912383101329566078 15790990841170436403 3959951549073682250
427 4183744825802032627...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Test #21:

score: 6.62913
Acceptable Answer
time: 152ms = 3ms + 149ms
memory: 4612kb,9288kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
3 1 10000 255
308 11860129092186874234 431077612193392032 6835092127210954390 7368086914598514543
16 11860129092186874234 431077612193392032 6835092127210954390 7368086914598069835
827 11860129092186874234 431077612193392032 6835092127210954390 7368086914600284158
596 11860129092186874234 431...

result:

points 0.55242718450 Accepted using 255 pigeon(s).

Subtask #5:

score: 5.72958
Acceptable Answer

Test #22:

score: 5.72958
Acceptable Answer
time: 222ms = 3ms + 219ms
memory: 4932kb,9208kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
429 0 0 0 0 0 83159538
522 0 0 0 0 0 562039011
583 0 0 0 0 0 563134879
681 0 0 0 0 0 624244836
734 0 0 0 0 0 180252670
367 0 0 0 0 0 27780095
812 0 0 0 0 0 657515492
233 0 0 0 0 0 4188257
548 0 0 0 0 0 704811112
915 0 0 0 0 0 870736179
230 0 0 0 0 0 13623483
798 0 0 0 0 0 865095...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #23:

score: 5.72958
Acceptable Answer
time: 230ms = 3ms + 227ms
memory: 4612kb,9260kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
989 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 4611686017555109923
955 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 4611686017556070668
323 18446744073709551...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #24:

score: 5.72958
Acceptable Answer
time: 271ms = 4ms + 267ms
memory: 4648kb,9196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
969 610396903830241695 3487981616391788953 11470741918627817087 17524613581108985860 3486067659092787102 4496421575753669664
817 1826050362509710 1305755572454292931 10312372123833833859 898637010325602303 8790597456930543681 2882078400792703963
79 18445338621202935793 144095504...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #25:

score: 5.72958
Acceptable Answer
time: 278ms = 3ms + 275ms
memory: 4704kb,9268kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
287 16900538369921515415 18262392334108396638 15312328953143355896 4035155078036847104 177540341123908287 3819565429144215679
650 10952901629195566112 13981557548140560486 6917643232933837184 7173783413200413455 8989222116095919616 922731287587649139
29 661967479021706603 124659...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #26:

score: 5.72958
Acceptable Answer
time: 274ms = 1ms + 273ms
memory: 4724kb,9260kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
909 432345557248457928 10955850517980364958 17545963035118963806 9259400822271107074 18374786529505703937 2882219872005562559
525 16203485268437683840 6056252971275206656 1713338286316633362 9286330055742521343 18362441897277734880 3603002820297745323
302 11394125529792855648 14...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #27:

score: 5.72958
Acceptable Answer
time: 272ms = 0ms + 272ms
memory: 4656kb,9208kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
477 35053805520491952 11520235387324260307 18446418522487208287 18159921072026621442 18437765521430524290 3792586826818617238
740 12534292578241020200 995337303306550659 16429158996111261696 9853428066948999 9221401986274948105 4581427595601574934
949 18044956136641230253 922057...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #28:

score: 5.72958
Acceptable Answer
time: 273ms = 3ms + 270ms
memory: 4672kb,9484kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
670 13557645993149726769 13998032176739739238 6975162815774564217 10966514811172556031 16573541311797915545 2806712075116144228
23 12537581397551886870 11516803204811047294 14049260512326520824 3424443587462005867 5332279516677054080 3375332499942514699
868 18446740538441448480 ...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #29:

score: 5.72958
Acceptable Answer
time: 272ms = 3ms + 269ms
memory: 4928kb,9160kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
614 16427632750464335876 17708018490597326816 2738295714101142699 12898421110494998190 5046917025382465311 4323524223910810411
224 18356742246968741889 7774775028294910206 13864606700108331734 13594219196731948954 10677119866985528759 4184655845602426657
659 11417132926676815097...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #30:

score: 5.72958
Acceptable Answer
time: 273ms = 0ms + 273ms
memory: 4672kb,9484kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
806 874956450855649668 14007996389179523073 905012392777011068 14762257755726125062 7350169370936077799 4609875087852964067
831 448004257395519403 18338711562908004351 17414585967712399954 3458766227484745263 14014093320876090368 2262228728365581311
212 17524631997633659295 1657...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #31:

score: 5.72958
Acceptable Answer
time: 279ms = 0ms + 279ms
memory: 4928kb,9480kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
266 11150912877705310724 18268231774507107703 2350456896101337962 13107788423068485632 11529170511558525002 2018173703973390656
987 36015603136802815 18266626425526183936 13835029399447798899 58547892560527581 22517768892928246 231921416266162302
74 18446530767581560783 89915492...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #32:

score: 5.72958
Acceptable Answer
time: 267ms = 3ms + 264ms
memory: 4724kb,9164kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
873 11069690431112481851 16652354368108368691 3709277097338969136 7417688896219257102 3610085352976691977 2392312138639030028
381 6251557425397104642 5943180813339197221 174797382054003392 6262132342714782528 4611642690797307648 276716290381968154
761 115267575540088838 89926899...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #33:

score: 5.72958
Acceptable Answer
time: 276ms = 3ms + 273ms
memory: 4880kb,9208kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
281 7176908219243086233 16659905723369777032 3709268016697953305 17843259417029707824 17274748131459436351 4536247151326413619
199 14465554276501420413 93801810779181696 15894276677875006977 2882304122323836071 14411514960541614027 3980619146235675319
459 112139633083574265 1426...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #34:

score: 5.72958
Acceptable Answer
time: 228ms = 0ms + 228ms
memory: 4708kb,9492kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
578 1182096094609358 8763722784847108288 461162808797460710 4381858133039908960 14354055582780616163 2806848779641315584
734 917357135626215 5470184450500667008 389105152180574867 4391993704693368352 14482131643793239885 1113503600486812648
94 1181134050803678 416048101572104096...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #35:

score: 5.72958
Acceptable Answer
time: 223ms = 3ms + 220ms
memory: 4644kb,9208kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
266 7378725721254795270 9004634987464392691 439597063296620998 896476635226282035 18216162273455717879 508009138920360058
690 2252644221518532609 18399146490220183542 128128476927524038 687342651674451983 18377472369809672187 2643683126034217494
642 7378725721254795270 900451747...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #36:

score: 5.72958
Acceptable Answer
time: 225ms = 3ms + 222ms
memory: 4712kb,9144kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
929 3562417559136503536 7544329407994789658 17562948545282848 685096941914070912 3291757015989 719801880699469824
373 3135736700290466792 5108409912609471860 26769364787135584 252749182354241216 3844465687225 287772976097380016
455 2985956567464281044 14243104137659547221 312894...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #37:

score: 5.72958
Acceptable Answer
time: 240ms = 0ms + 240ms
memory: 4592kb,9140kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
190 3608651244638840104 15282839166523240261 12727138812798877620 6413242966626482087 18390100214883193177 4495436851334632463
914 4841513669913633072 16305016575241735409 14181722579227090800 17366099239961163387 18227867015347835452 4496422014605564319
253 4841513669913625392 ...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #38:

score: 5.72958
Acceptable Answer
time: 237ms = 3ms + 234ms
memory: 4932kb,9192kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
751 10954464097952446560 1873497444983930878 17581940355118465040 13944270792360259982 8762210471859244519 3675093536642375372
995 10954463067158461472 1873497444983930878 17581940355244294160 13944270792108663198 2132911820369874407 3675156203451123712
311 14988631758564350272 ...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Test #39:

score: 5.72958
Acceptable Answer
time: 229ms = 3ms + 226ms
memory: 4712kb,9492kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 382
667 18370342038850371577 9455201855440408574 7378585260578840780 14710478162468300388 8668338677080948833 4020813926173248766
0 18396648676560207867 71072428568436735 2518638209616453695 369704162043113345 14342909367107321956 2301461648108813335
318 18366119916212977657 9455201...

result:

points 0.47746478870 Accepted using 382 pigeon(s).

Subtask #6:

score: 4.26804
Acceptable Answer

Test #40:

score: 4.26804
Acceptable Answer
time: 469ms = 5ms + 464ms
memory: 5376kb,14168kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
749 0 0 0 0 0 0 0 0 0 0 1 434588842288755192
551 0 0 0 0 0 0 0 0 0 0 1 540449599026094335
861 0 0 0 0 0 0 0 0 0 0 0 315224384820214584
670 0 0 0 0 0 0 0 0 0 0 1 540462807075782623
604 0 0 0 0 0 0 0 0 0 0 1 504459250505871856
704 0 0 0 0 0 0 0 0 0 0 0 363225582462304256
653 0 0 0...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #41:

score: 4.26804
Acceptable Answer
time: 472ms = 5ms + 467ms
memory: 5372kb,14196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
163 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 576337026800941424
360 18446744073709551615 ...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #42:

score: 4.26804
Acceptable Answer
time: 544ms = 2ms + 542ms
memory: 5416kb,14004kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
123 82190693172899698 693248678579607552 24905268536868863 18439988840697847853 11531014405068206998 9173840441825573375 18408463476898306938 8656432795404991179 13750558591673737556 14627301124799610880 1959411024384 1975753672818688
691 2489505433780224000 3306808810668130 501...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #43:

score: 4.26804
Acceptable Answer
time: 528ms = 3ms + 525ms
memory: 5408kb,13904kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
560 2449958151017824256 754092903497453712 3170534137511615231 15087234643727220819 17969362528106410191 9311223966369751608 10664522895402997348 642844063 15132095332077493366 8069594423958182090 659169304742230001 298186586413985792
751 126237137588711427 9257150683360026873 1...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #44:

score: 4.26804
Acceptable Answer
time: 538ms = 6ms + 532ms
memory: 5172kb,14192kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
703 3592648847525936858 9569403177795654 4809838417060823036 9887763166845206438 13572019688316674560 128685247105 16140830742958999508 8073217658108702617 6133894678068389375 18446017139874111050 14987979513986550127 572449976081211135
346 42631948489586959 18203550736061629319...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #45:

score: 4.26804
Acceptable Answer
time: 523ms = 5ms + 518ms
memory: 5404kb,14192kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
784 2183621771132921 18302875309516062592 6917530131380822016 8327854087 9230135964221595896 136443569379390 8944131233445066767 9258302420818059512 558872826874698239 9798705819737454592 2235491440715100551 572810165409824766
215 18446738301675429185 13809150829732624526 419763...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #46:

score: 4.26804
Acceptable Answer
time: 541ms = 5ms + 536ms
memory: 5372kb,13848kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
628 18446709962817206768 567488737421279631 17297899695136835072 8755138172511191136 545774245494793 17321116875819059137 18311629487818653440 4609434085335990520 4594098213490788320 8649094502199392752 279337257737879551 562945559686037503
472 139718215044495616 446811660889250...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #47:

score: 4.26804
Acceptable Answer
time: 540ms = 6ms + 534ms
memory: 5376kb,14200kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
432 32929548618195781 10996629205333983744 345668863603507199 18431262951198425087 18427028726416932864 155157308474756280 2791873740495892224 409827566090609664 1920785241167887345 5131168917634547754 2197576312384819325 504399755307176912
209 1749608872814836842 18446555511755...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #48:

score: 4.26804
Acceptable Answer
time: 546ms = 5ms + 541ms
memory: 5080kb,13916kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
502 18444773501895211488 432354091950151681 18401985428740382719 11527103450632357880 4467579358074110076 2017332242556379167 576460743981793272 4607226132944617596 70364359283457985 9504284586525196294 71951907643965471 344523447332764927
33 515662415872 18031443022178302 22990...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #49:

score: 4.26804
Acceptable Answer
time: 544ms = 5ms + 539ms
memory: 5116kb,13964kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
222 1640885174109470719 14244885597406920718 16139528874010485327 30818959335 2435180756717274224 13835070974200381794 7933970352915259903 6014376089093143209 11709359031163295370 501374903212752 15132098365308764679 53813986008761947
985 17149843720429895681 5215097999750851818...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #50:

score: 4.26804
Acceptable Answer
time: 535ms = 6ms + 529ms
memory: 5404kb,14200kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
610 9511461667188244487 13944243690604093688 558455183198382017 18446709982402544608 1154046725900597759 17887736902413336561 18307009356731908088 9080356092036760063 17887734770482692081 18444560856067703776 33794316644155516 54605600828420351
356 9502629325447395824 7484999623...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #51:

score: 4.26804
Acceptable Answer
time: 540ms = 6ms + 534ms
memory: 5100kb,13848kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
678 18445451081388572671 18446700993476023913 3168714497464234879 16645304271307321386 7741687759205131264 12255420486031769596 11545540473586188225 13371187334670712832 16514150531062 17365880163066129668 8097473907821687903 576459831012294654
145 12381669956777472 893505520730...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #52:

score: 4.26804
Acceptable Answer
time: 524ms = 5ms + 519ms
memory: 5108kb,14212kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
836 139751913492184579 11459400730477985912 558872827135256513 18444560976201121799 13960877636159799297 17321125503884165150 6922023873865027520 18379049472742121720 432626609439635470 8944148326847021119 9188442483162251262 35149221019496572
480 139751844840730627 114594048496...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #53:

score: 4.26804
Acceptable Answer
time: 503ms = 2ms + 501ms
memory: 5120kb,14192kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
270 18306992280884475919 16257986339685789692 1801167104410910719 18445617078452850672 9189592892230860924 1765376007516590076 578150125076873216 545787230650368 559007379362930694 8944114748791093249 11459409118566023168 9147803599106300
97 18422256075542350107 1339636828800548...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #54:

score: 4.26804
Acceptable Answer
time: 517ms = 5ms + 512ms
memory: 5116kb,13960kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
555 18443115673143885823 18446744073376311534 6917037352263090176 23177779870732288 198157167145910247 7349872886886128481 14825646333882266658 7719675193869883365 16860931956316053375 18159173404533285799 15270349539059490815 437977498451633271
83 18320627613963372543 184467440...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #55:

score: 4.26804
Acceptable Answer
time: 495ms = 5ms + 490ms
memory: 5148kb,14196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
613 11511761400099782671 9258303519255945464 136446812229629 18311620674956814328 4502501213113663875 16149633660478545944 558514523516896783 10377391962034528508 116818847712413568 4325600815491342343 9258310116727881615 568579386332692447
0 15687249999853258510 112231562241408...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #56:

score: 4.26804
Acceptable Answer
time: 514ms = 3ms + 511ms
memory: 5404kb,14200kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
600 2183630092731377 18412542669177160700 2297117147488575519 576460752301390320 7493431167876587576 520495097 18446743558288281537 18412967074421800960 7882261941092288 1801508020669136911 18302083047902707647 541416568429510535
351 2183630092731384 18412474221357106172 2297398...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Test #57:

score: 4.26804
Acceptable Answer
time: 499ms = 5ms + 494ms
memory: 5400kb,14196kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 763
806 139752325806686215 9230673341736812796 9214804627218757694 135114585890882016 1145620197675139071 18014117480133550111 576427749900581912 4485602271323775225 9231816319467513792 716213069910376944 6987880729388007036 54588587689083168
610 95138542124007425 729598917589817421...

result:

points 0.35567010310 Accepted using 763 pigeon(s).

Subtask #7:

score: 3.64364
Acceptable Answer

Test #58:

score: 3.64364
Acceptable Answer
time: 637ms = 6ms + 631ms
memory: 6052kb,23372kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
199 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 69661826925099007
770 0 0 0 0 0 0 0 0 0 0 0 0 0 0 241650 83316593106363115
864 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3515886 133507010770501632
898 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3460095 120656007985628123
598 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6291582 67571449166...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #59:

score: 3.64364
Acceptable Answer
time: 648ms = 7ms + 641ms
memory: 6344kb,23584kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
786 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 1...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #60:

score: 3.64364
Acceptable Answer
time: 701ms = 7ms + 694ms
memory: 6044kb,23236kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
430 75463682047 18444246040937758683 9522069763702915071 17737048312408707709 17455287886582765189 1008820455469563902 4611699487113871401 11319920751708778139 18444267308340740096 210019957064466437 3132930561702132861 18303191835803223512 7881293652103276322 39541950387280819...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #61:

score: 3.64364
Acceptable Answer
time: 704ms = 4ms + 700ms
memory: 6336kb,23340kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
7 3069203101492720533 18027143774618996495 18437041983106154460 15825076794777667165 144115188627308544 410133461017625600 19591761761464 9803009859145165300 12853279347965621706 15852670688344049316 10668040155603405671 18441820510298277910 6922028228977608691 8126142086967111...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #62:

score: 3.64364
Acceptable Answer
time: 694ms = 7ms + 687ms
memory: 6112kb,23296kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
668 1309184113539463644 6629298628105282048 2031746158944362 12001233747195494391 9232498335639900226 4610349012289139092 5295247999369205 3461408435558660061 11535192623814282489 18444162695282962944 668831840342 9220754821130824459 16717361816576940526 6644509326452795307 181...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #63:

score: 3.64364
Acceptable Answer
time: 702ms = 7ms + 695ms
memory: 6116kb,23288kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
988 14242081668034793483 3629269709687164946 16717341679886680206 435602317669507071 18446737785991038992 16139801552869695832 2794958450851840 1533933128341082112 835574109995007 18446744072876459439 15685558649748222976 754352937584154166 144115188232439840 113418230803232403...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #64:

score: 3.64364
Acceptable Answer
time: 696ms = 7ms + 689ms
memory: 6048kb,23292kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
320 9294972238350090495 18267162497368735359 143975549159342110 8935157599326863105 13826051405741358704 17996867526786684 4080294629966208 18302768532200329215 13979172762304908800 9151876877307609025 18410995033948553230 9151877391159624191 9295006323076888576 909727234034090...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #65:

score: 3.64364
Acceptable Answer
time: 701ms = 7ms + 694ms
memory: 6108kb,23316kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
464 35748975571138560 2196630780510339071 9511567501365739632 17591092991917825 11528089277141358592 18446042576717774593 9294937053944873087 110335992887509119 110338053465210625 11529076507603369856 18336406432326483968 35749519454863871 9295426886383370624 183383778612131271...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #66:

score: 3.64364
Acceptable Answer
time: 705ms = 2ms + 703ms
memory: 6088kb,23584kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
196 9079263991334764032 35465872835378945 9294998622846189574 8935157599353960448 4502473789723902528 1152852789424914686 9151331966350360831 18302505739291197439 18446743528223474175 11529076095269734015 144114642581454975 144114655497815678 71919055564504672 35465847073866239...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #67:

score: 3.64364
Acceptable Answer
time: 705ms = 6ms + 699ms
memory: 6128kb,23580kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
575 18434178511229100544 773901075375104 6038724018175 18446712668966354845 2269244390602219167 18446744073709551615 17745308431746951362 2621019440156164437 10004715676691874026 9367487337307051581 18446743777558136301 18445761110318700510 6845900243304434012 9878333030403 892...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #68:

score: 3.64364
Acceptable Answer
time: 704ms = 7ms + 697ms
memory: 6120kb,23308kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
233 18410995098138443651 18158793248456303103 112589441062506495 9225061432209408254 35749521065508863 9294867161979682943 108365667018670591 18411841114454114303 144114646909583359 9295426886379241983 35605493632204672 18338378406690881024 9151771831065108510 70373012931071 16...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #69:

score: 3.64364
Acceptable Answer
time: 707ms = 3ms + 704ms
memory: 6108kb,23404kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
764 9151737748334444447 18411138582208153599 16249266731514528191 18375249427494232064 9114159806028906498 4611965294389166591 9295427429755517343 18411277681149640449 9295426886383370751 18410994552644075265 9295006327497621088 35605491501395969 18428736817756372864 2269954923...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #70:

score: 3.64364
Acceptable Answer
time: 712ms = 6ms + 706ms
memory: 6124kb,23584kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
407 18446744073709551545 10664525829510523540 139611470872978407 18173968432997146312 11673368150000795653 6818863252210969656 669382189767145436 7953752395683757560 7755198474031726591 18444951017373496815 288230452085917549 18446670148732564416 419054668973345792 294479120592...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #71:

score: 3.64364
Acceptable Answer
time: 691ms = 7ms + 684ms
memory: 6056kb,23360kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
540 9151323211009228800 18084762984120289 18374689219861151744 6918654652804071678 9151877390689890815 18410996740946526272 71634282103112191 18411841116467855614 35747332645461624 8444249308663804 69810190127460799 13835337876721696256 1610645119 143975541509193728 35748417292...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #72:

score: 3.64364
Acceptable Answer
time: 692ms = 7ms + 685ms
memory: 6056kb,23580kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
316 8070519247446409607 18438299278913830912 9079263446922952640 468095083162271489 9295006327497687033 9294866682953072385 9294972268411224063 11524711995929395200 9151737748334412287 18014258871471677439 9333701435902067199 9295003020616039936 468094539798704129 1842873627428...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #73:

score: 3.64364
Acceptable Answer
time: 674ms = 7ms + 667ms
memory: 5996kb,23588kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
287 5136918032261096 8656659030657204224 18909663839908271 15271301716982628351 18441822659663626242 9223372004578740983 18446635642965436554 2893801904128055255 5188146770761465931 2927273786714584042 16143282658221236855 12619649105937693246 15708532545143989232 1397917333549...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #74:

score: 3.64364
Acceptable Answer
time: 703ms = 3ms + 700ms
memory: 6100kb,23304kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
625 738590294332830526 1152910202333298687 18446704271442313199 5747689311128877055 18446744073402027038 13542772755368435680 15075695848664133119 18195745626584316723 18446744069414585164 15249188322304946228 2513316455329911006 413857379285732777 3900482315164550024 180989406...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Test #75:

score: 3.64364
Acceptable Answer
time: 687ms = 6ms + 681ms
memory: 6044kb,23340kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 1017
652 265712377347573456 12497435328302284800 1704049340233047551 18443879227441742848 3161095929783 867998980439680335 18446664140006079087 9885463536413442011 11531280478661246976 752075625772245545 16428080308156968971 1755175627439609856 139611545200230394 1091109209255627983...

result:

points 0.30363636360 Accepted using 1017 pigeon(s).

Subtask #8:

score: 2.92626
Acceptable Answer

Test #76:

score: 2.92626
Acceptable Answer
time: 933ms = 7ms + 926ms
memory: 6068kb,23332kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
600 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 71987225335676929 18005628194643968
608 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 70931695179653126 35150012350464
5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8556395520
949 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 14503589161152305 179...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #77:

score: 2.92626
Acceptable Answer
time: 932ms = 4ms + 928ms
memory: 6064kb,23276kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
889 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #78:

score: 2.92626
Acceptable Answer
time: 1028ms = 8ms + 1020ms
memory: 6044kb,23388kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
377 1119782930450 11448113709960395537 8929462216604779319 15564163235262234624 1117256714656324735 18446744073709551499 15636497906230362112 2044065 1152926870127949567 18446731888353658441 4899916394785099272 383731544059903 18423294926646910556 13969751425140416801 32783675...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #79:

score: 2.92626
Acceptable Answer
time: 1010ms = 8ms + 1002ms
memory: 6048kb,23308kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
963 143785926 12527783581659948338 9223372036861245950 17553212379985084416 2977231889481696 5368657845433253888 647197795588097 11458070388131495935 18390255839199083391 17015735041773308057 4038583523327041535 17208057110382772226 12797409361370841600 11901826236416 405 8160...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #80:

score: 2.92626
Acceptable Answer
time: 1022ms = 8ms + 1014ms
memory: 6340kb,23372kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
179 9232370441023127615 9224496838323601535 16716799279296806927 281472829267960 985171008411649 18410719640377391104 2249602937651455 13835058055282227200 1148417973594095631 18445758894127959936 2225377176961024 2287828611744399391 11526965445277925375 18159639597464653823 1...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #81:

score: 2.92626
Acceptable Answer
time: 1019ms = 8ms + 1011ms
memory: 6048kb,23372kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
908 2299011369276413 9071973746344271646 6291562643907796832 17130567082608346421 18300257436418554944 490154190934 1677845947816050688 63314263235617217 37884981355216899 780811582834868229 16498937234871812096 358429596893 18446744073665665284 5075135117358384651 15651330214...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #82:

score: 2.92626
Acceptable Answer
time: 1029ms = 9ms + 1020ms
memory: 6036kb,23316kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
800 18442244867833724928 2303592862962413760 1151795604700004367 9224497919648858108 71987232810467072 1152917113137004416 18446744073709551615 18446181673109160063 18158794897690165248 360006495456190471 18446735552460882430 6917531222369370112 549219401726 34634683318335 184...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #83:

score: 2.92626
Acceptable Answer
time: 1036ms = 8ms + 1028ms
memory: 6020kb,23252kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
263 18446665904369041440 6676815323846334523 17280099225716178685 13708537879872230386 15865203907205521407 18446744073709222496 280370954272 6323053866816287615 18367787760258908159 17599138954982850559 15827802946825519642 6593269854470406143 18446744035622626158 72417628727...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #84:

score: 2.92626
Acceptable Answer
time: 1030ms = 8ms + 1022ms
memory: 6308kb,23300kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
869 272258079972655104 15365245466048 13835181330018558106 11411558488199165471 6949053821893029128 16980965151231611914 128649658840907773 971284486874476621 11739471630991097855 8769403339432658033 7781535264021143018 10484429273076329607 18143890503952760831 184321283019187...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #85:

score: 2.92626
Acceptable Answer
time: 1022ms = 8ms + 1014ms
memory: 6348kb,23384kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
622 9295412588461425663 18446743524490213376 1152851136667975680 143974588009693168 4190211 18439988672121014720 1121502395105281 14411519357341138943 18446744073676029927 13835062384609198080 17996823501211646 523776 9223372036586864639 11024811819289018304 8725724294791183 1...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #86:

score: 2.92626
Acceptable Answer
time: 1023ms = 9ms + 1014ms
memory: 6068kb,23388kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
360 7731132 10236681953013137408 13160488661028235249 8937393460518071807 16590271782893500244 5519302080830909687 18385335868248016781 490754490933184172 18446742082053568791 2567663071120163420 447545213179996030 7908169488208237493 18095406553400225779 16737786739665401185 ...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #87:

score: 2.92626
Acceptable Answer
time: 1034ms = 8ms + 1026ms
memory: 6052kb,23568kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
317 9232372636894363392 4611668975930572736 9223363661668286467 18444492719498724339 18374739531107409919 18446744073709551615 18446744073173729279 3746959705667010591 17293824759538073088 9002803330539526 35993612646876159 4501403826387968 412316991295 17294948331704680463 18...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #88:

score: 2.92626
Acceptable Answer
time: 1006ms = 9ms + 997ms
memory: 6052kb,23380kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
583 9214371436815188160 18012200023093503 17871409220507632127 18428730121843146751 18446744073705361407 18410715276690587647 13839561652761788671 17365880026238549985 18445618448546400224 32985482985472 9151323230326235135 16143117682082840831 13839561654641360703 17294668093...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #89:

score: 2.92626
Acceptable Answer
time: 979ms = 9ms + 970ms
memory: 6120kb,23308kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
62 10376292445172268287 9223379183144009664 1152076805067210783 18014257875106365443 18374739273397039107 18438862773291089918 2250702449525120 2303591209400008735 17870846202707116032 26388346175367 18446744069418775040 8998403698851839 13839561139513426175 178882975830134948...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #90:

score: 2.92626
Acceptable Answer
time: 996ms = 4ms + 992ms
memory: 6340kb,23388kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
529 239535205133761816 7906348421802360831 18446744056050193457 4615199507146320895 3115777324570116117 9078021901791526911 18202766339771393645 5794328129786866033 1155716574833803720 14903833010557157376 2028945198509266692 31118462780666087 12722734919999029008 914512863 69...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #91:

score: 2.92626
Acceptable Answer
time: 1001ms = 8ms + 993ms
memory: 5996kb,23580kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
347 4362879285330175 18432108473626657023 17870845858908569631 18014257875106373624 108121541071339521 18419704884832765951 13839558218939891696 3463268109689749759 18442662823851999216 216243150824403199 18374687012249663489 18446744073709027839 9223372586074243008 1844672703...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #92:

score: 2.92626
Acceptable Answer
time: 990ms = 8ms + 982ms
memory: 6052kb,23600kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
301 18446744063039242272 16540632914820335053 3903587705635733504 3148016137160076239 13479346836284112345 2733782761629322633 3435897422889365844 5756091801453988909 1595403965395112473 17293822569098457616 545655 18446743141504516096 165401328238856 8647833225051242621 17293...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Test #93:

score: 2.92626
Acceptable Answer
time: 1027ms = 8ms + 1019ms
memory: 5996kb,23272kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 1398
560 262271 18444493923699752960 4611677772023136207 17293824767924625415 18302628894215241855 16143148466326929408 1143915370504027775 16143152589699809311 17870705671175929856 16643002367 17347883339639420929 9232370441089188032 2249600790495232 2305840812337004529 1844561817...

result:

points 0.243855110 Accepted using 1398 pigeon(s).

Subtask #9:

score: 2.23032
Acceptable Answer

Test #94:

score: 2.23032
Acceptable Answer
time: 1275ms = 10ms + 1265ms
memory: 6088kb,23616kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
690 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2511898651 12556374882725388277 1006053152648423
861 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 68715282624 576460683651055552 140736548827136
901 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6871528...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #95:

score: 2.23032
Acceptable Answer
time: 1299ms = 10ms + 1289ms
memory: 6084kb,23624kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
644 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #96:

score: 2.23032
Acceptable Answer
time: 1398ms = 11ms + 1387ms
memory: 6056kb,23448kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
39 18446667920969205001 10367092278404579327 18446744073708917827 259 9155009901397803008 441565319266303 18446744073709551231 9664725014508282587 14991859150565453952 0 3446422779266596864 68415444353841138 7854277732434051328 2994419051207239 6225071550953946976 123263750740...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #97:

score: 2.23032
Acceptable Answer
time: 1396ms = 8ms + 1388ms
memory: 6112kb,23328kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
684 281457797627919 18432670325142454268 216177179891860992 35184371924993 18446713287383449663 18437772058826769407 18446739675931459584 70364449472510 9006924378931103 13835058072394924288 70368743653379 4611404560630546428 288230367561781055 13835058072361367552 17299452068...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #98:

score: 2.23032
Acceptable Answer
time: 1408ms = 11ms + 1397ms
memory: 6048kb,23304kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
839 808302335 18445501398742306059 18441038021751996708 12938852260845226762 9691773360347155208 5962203351956324352 5184158133386487 179778606788560383 18446744073709551615 18446743933024473088 41795273664847543 18388629679221461986 6777352838074347520 2435985898802774029 738...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #99:

score: 2.23032
Acceptable Answer
time: 1403ms = 10ms + 1393ms
memory: 6056kb,23324kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
834 9224497936758472696 9006786904326144 2017614831951028223 17311836966538448895 17870283871159328767 18158513731884023808 144106392385495039 9223372038985482255 18437736875525144576 18012749208487425 18446708891484913679 18446603336237973263 18444633011383697603 184444922739...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #100:

score: 2.23032
Acceptable Answer
time: 1402ms = 11ms + 1391ms
memory: 6128kb,23336kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
945 18446744073709526739 2250058364697610192 293596671605178497 15702655520873644032 57645474064512 5917685929896864711 17275086296617320448 1159882495542425899 1044835117935183046 3748214376679291716 73842379077566079 16652780900372854687 7066961185595180830 17005592192950753...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #101:

score: 2.23032
Acceptable Answer
time: 1420ms = 7ms + 1413ms
memory: 6080kb,23620kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
656 9222809116966117376 1125899852318719 18437736908806162431 18158514793848176643 18014398443946015 18410715276694781952 288217180938436611 11529074315022696440 1125831191560191 18428730774661364736 873698327676354559 13979173239063183359 9230127573728489472 562949550768127 1...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #102:

score: 2.23032
Acceptable Answer
time: 1409ms = 7ms + 1402ms
memory: 6020kb,23408kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
194 125379538931679232 220376381517838 14964267140834794175 8520897173295988735 13666704068618168269 177896583327715049 18407921603403506492 2595199285276157141 1188950304358334466 17219940401433315544 10378678350175600640 108396275300311103 3170534137668676775 845116659572661...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #103:

score: 2.23032
Acceptable Answer
time: 1439ms = 11ms + 1428ms
memory: 6292kb,23400kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
499 10376293537167179760 18014398509481856 1152921500580313088 2305842979148890115 18446744056530730944 9006649524158463 18442253805660667392 6953557807480438783 17298326168730075104 72056494543075839 17870283329995825152 9222809091194224640 2305807825378411007 161409010987549...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #104:

score: 2.23032
Acceptable Answer
time: 1434ms = 11ms + 1423ms
memory: 6100kb,23272kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
800 17772045794564795381 8340666504495251456 3816237734243046470 11304221353306247135 364456650404265982 6884864705075118080 36090848592838656 23256792001156799 10812009593085886463 18446081955343286262 738162732951131077 18446741390678547071 6552034870975525020 28696373875466...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #105:

score: 2.23032
Acceptable Answer
time: 1402ms = 11ms + 1391ms
memory: 6044kb,23332kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
779 373169779701150768 11078855086650609663 9960548246485970125 6545841320855798056 71905327781888 9372551885531119616 8036579595517951 18446742712442421248 2246385838 288230386672242853 9223372211242493480 221336019998338918 8198088645773676925 17437937666392186205 9212913688...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #106:

score: 2.23032
Acceptable Answer
time: 1347ms = 11ms + 1336ms
memory: 6000kb,23380kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
694 18446665956289855602 556981999430520829 3366440721459616735 13835057295543771335 5999683109052743680 46686025913471 5966143415494101010 799107758024231712 141696459604224 2247085493805768558 15182762065971314580 14541977493755875856 4595204094 12929478785824194415 96084298...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #107:

score: 2.23032
Acceptable Answer
time: 1342ms = 7ms + 1335ms
memory: 6364kb,23324kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
528 0 522615838209849853 14547573772376891392 41550329665287930 8348704970681352191 18446744071811891200 7582564924851004708 16766901412700357070 4871771646462253950 8728563217053809851 11529215046068468956 6592758856441395420 11817445425467294134 16102400565337653247 18446742...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #108:

score: 2.23032
Acceptable Answer
time: 1404ms = 8ms + 1396ms
memory: 6112kb,23332kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
940 9223934952448720768 8383767773695 18446744073642446847 13835093237506899967 18446181158113771520 7340032 9223371899420016512 6917669756539568000 560750931214208 549722261503 18446735278153367552 140728898945023 18444509865545039999 18302628885633695744 17591112351744 18445...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #109:

score: 2.23032
Acceptable Answer
time: 1375ms = 7ms + 1368ms
memory: 6048kb,23592kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
92 281457797660671 18444492823651680128 144108590871877695 18446735281911431168 18005877285978112 4611678047035195151 18446735278019198975 18445899648779370495 16140901081671532544 16776192 1152921504606846975 18446744069548802047 9230127573726396416 36020000926072831 17294174...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #110:

score: 2.23032
Acceptable Answer
time: 1348ms = 7ms + 1341ms
memory: 5996kb,23400kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
40 18446462615911923696 13528391051378695 18158513697624944640 3458834878269784048 1030792151048 35184371958783 18302637681324056576 9223301672405368828 3377768440000512 2305840810190438399 18446735278153367552 0 2097024 108088589979482112 1729417439604637696 46108415763181736...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Test #111:

score: 2.23032
Acceptable Answer
time: 1371ms = 5ms + 1366ms
memory: 6044kb,23624kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1906
432 9223934952448720768 17317312331391 18302635482837673983 16141041801984212991 18446744073709551600 18013573858983936 720567144688918527 9223372038465388799 18446709026776416225 18446743936337707007 18446744073442164735 18375249429624914175 18446726756399319039 1844660718451...

result:

points 0.18585961340 Accepted using 1906 pigeon(s).

Subtask #10:

score: 1.46312
Acceptable Answer

Test #112:

score: 1.46312
Acceptable Answer
time: 1852ms = 13ms + 1839ms
memory: 8216kb,41948kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 2668
675 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1394045728 12083217859148493117 11331918752680771584 31154167695
59 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77195 3806082644848932414 5426132328351
331 0 0 0 0...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #113:

score: 1.46312
Acceptable Answer
time: 1903ms = 15ms + 1888ms
memory: 7940kb,42012kb

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 2668
677 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #114:

score: 1.46312
Acceptable Answer
time: 2008ms = 15ms + 1993ms
memory: 8228kb,42120kb

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 2668
254 10765 8286341014036109244 9367834809688129536 1175188209928627054 3719972589770534723 12677052263159937990 7588637291900540676 17834254524381915324 6861038390951326900 9205357638345293823 18446722457815617536 16257424008272674551 15695204130572206080 39524819553647 8405629...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #115:

score: 1.46312
Acceptable Answer
time: 2021ms = 11ms + 2010ms
memory: 7900kb,42176kb

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 2668
499 18446744073709551615 18446743426157960700 17696753951749675819 3159464258962456576 4059266634265657343 18446744073708369687 18413065069404356607 18446744073709066658 17813934913829712911 1005401060300292089 1669842121718235666 7872583534957815031 16927797958323715294 31753...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #116:

score: 1.46312
Acceptable Answer
time: 2024ms = 10ms + 2014ms
memory: 7916kb,42108kb

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 2668
757 18205780981418295296 153780711151 18434616255829311423 15549033813512421447 4522689243136222090 1920956600898621667 4841379189322809436 443604563296345264 9810798766887290692 10835317655824257897 3169793599401682610 16981877084349530111 18446744072628057238 576460752303423...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #117:

score: 1.46312
Acceptable Answer
time: 2056ms = 15ms + 2041ms
memory: 7956kb,42412kb

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 2668
236 1180230606944993279 18446744073709484803 6158643834995970048 9947565868168682426 3422643476729147799 16282352423342899712 4788294559813988327 581194441956634840 300896032808325118 16024328591617566373 6623519600923768949 4498832740384252353 2023237528357449876 115807227932...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #118:

score: 1.46312
Acceptable Answer
time: 2016ms = 15ms + 2001ms
memory: 7920kb,42112kb

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 2668
380 18838095650 17892764482446213074 867154034501436020 6052837899185747617 16834005705244224102 12101000735286821506 60217028753500160 0 20263908280910 11442761203263974157 16652170123121000464 2082845024657076937 16714933768997126160 10369620162129134534 9447705206920417222 ...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #119:

score: 1.46312
Acceptable Answer
time: 2005ms = 14ms + 1991ms
memory: 7928kb,42216kb

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 2668
74 2020015534119574947 10663603366535329580 4837991899702765170 6593269854470406143 17276246085995593728 10839246 1656198762965499885 8697257775180850563 15938016570609037787 17212750651188068352 8975897 10548552346235438002 7425239708681437184 336186286 18446744073166979475 1...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #120:

score: 1.46312
Acceptable Answer
time: 2020ms = 7ms + 2013ms
memory: 8220kb,42216kb

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 2668
705 9223380832941506558 35184372088830 70368744177612 18446744073692774431 18446744073709551615 18446744073709551615 18446744073576382463 18410715276692684415 18444492276043350015 18446744073709551615 18442244872128692220 36028792724000767 18392700861001236487 9227875636482129...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #121:

score: 1.46312
Acceptable Answer
time: 2014ms = 14ms + 2000ms
memory: 8220kb,42412kb

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 2668
507 18446739744382517120 36028796482093056 8954422679830540 576460752302899231 18446675903988629502 422212599283615 18302628885633826623 18445618174876450688 144115188075725568 4503596406144000 18014398509481983 18446744069414617087 18446743549991976959 18442240542801649664 14...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #122:

score: 1.46312
Acceptable Answer
time: 2010ms = 15ms + 1995ms
memory: 8188kb,42112kb

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 2668
549 2085 18446251433335013664 200654 5278537632656266448 18140494700014391808 0 132854118286826172 17755278457442402303 18446730411741443927 15438373295035648545 15708555500271496137 7093398112137734057 13402712491054596046 8256640640047180964 6917529033011715709 1671736181679...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #123:

score: 1.46312
Acceptable Answer
time: 2026ms = 11ms + 2015ms
memory: 8004kb,42116kb

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 2668
79 4727236288879525887 14837134810883194207 16104604911702402307 10903777647817392128 2716779518819598848 2383666880554340352 3044988284328964859 1727101697459016720 3227084292004855816 7612581456691325225 1563619852480086015 18446744073709551615 18446662320322902923 691749019...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #124:

score: 1.46312
Acceptable Answer
time: 1992ms = 11ms + 1981ms
memory: 7920kb,42124kb

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 2668
904 18270283495123328163 56951040832791235 311311324241985536 221963016264 167196413390340430 3554995580181744640 8 10436260871245085874 1188950301642774890 12682136550675316735 18446454034288766371 317099205527331259 17293822568565039203 16586053460983369953 92233720368547761...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #125:

score: 1.46312
Acceptable Answer
time: 1989ms = 14ms + 1975ms
memory: 7928kb,41712kb

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 2668
932 18446744073709550708 13848639438414303360 4189121709642878475 8771885071562358649 17837631913311325801 17230772174302682795 1154057032428947122 2699318398919114752 4 8078023963892955627 12748031423017212762 3465773350778313982 8646813301186748256 407213423987318662 1295646...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #126:

score: 1.46312
Acceptable Answer
time: 2052ms = 14ms + 2038ms
memory: 7916kb,41708kb

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 2668
576 139319574383 18446743999496707573 6318479794952287223 5083087575577322418 1070607693690420373 6755397818534043118 18086456046818425497 13670658430682302528 2651595541578186235 5841775060997637233 972884210657722191 16633356710974586879 18446550463237780384 1643262355225702...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #127:

score: 1.46312
Acceptable Answer
time: 1998ms = 14ms + 1984ms
memory: 7924kb,42376kb

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 2668
458 16623852705469513455 18358243059925962687 18446744073709551615 17246017937500240895 18446741779279716480 0 608404909354131480 134075478683156479 18446656054630055952 2701170971871543166 17298803321736430472 2451095001648634560 7061644215793433411 51828229354291330 17245412...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #128:

score: 1.46312
Acceptable Answer
time: 2008ms = 16ms + 1992ms
memory: 8188kb,42064kb

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 2668
13 1306927207226015743 18446744073709022449 5263019531653005231 18300400264813739967 15845330381894225423 6842466265574440961 2314268222683086847 18446744073704134475 15975544653025637312 4038829705718659071 18446744073688133803 13456436690772033535 18446744073157698578 118174...

result:

points 0.121926390 Accepted using 2668 pigeon(s).

Test #129:

score: 1.46312
Acceptable Answer
time: 1981ms = 14ms + 1967ms
memory: 7920kb,42196kb

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 2668
352 9799832789156102147 17293822569104801785 18428729675200086000 35184338534431 18446744073709551615 18446612132314218488 844425198567231 18445618174876450815 18446744073172746239 18446708889337591808 4503595332407295 18437736883044739071 18410715302460399615 1833865764829295...

result:

points 0.121926390 Accepted using 2668 pigeon(s).