QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#78176#5447. 鸽子zhoukangyang69.553357 273ms22968kbC++171.9kb2023-02-17 10:31:502023-02-20 01:37:10

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-20 01:37:10]
  • 评测
  • 测评结果:69.553357
  • 用时:273ms
  • 内存:22968kb
  • [2023-02-17 10:31:50]
  • 提交

answer

#include<bits/stdc++.h>
#define L(i, j, k) for(int i = (j); i <= (k); ++i)
#define R(i, j, k) for(int i = (j); i >= (k); --i)
#define ll long long
#define sz(a) ((int) (a).size())
#define vi vector < int > 
#define me(a, x) memset(a, x, sizeof(a))
#define ull unsigned long long
#define ld __float128	
using namespace std;
const int N = 1e6 + 7;
#define u128 __uint128_t
const u128 qwq = ((u128) 1) << 127;

vi PT;

u128 dp[N], sum[N];

int k, mnl, inited, cnt;
void Init(int K) {
	if(inited) return ;
	cnt = 0;
	k = K, mnl = k * 2 + 1;
	inited = true;
	while(dp[cnt] < qwq) {
		++cnt;
		dp[cnt] = 1; 
		L(i, 0, cnt - mnl) {
			dp[cnt] += dp[i];
			dp[cnt] = min(dp[cnt], qwq);
		}
	} 
}

int pigeon_num(int Taskid, int k) {
	Init(k);
	return cnt;
}
std::string send(int Taskid, int n, int k, __uint128_t msg) {
	Init(k);
	int col = msg & 1;
	u128 ret = msg >> 1;
	string s;
	int cur = cnt;
	while(cur) {
		if(!ret) {
			L(t, 1, cur) s += col + '0';
			break;
		}
		ret -= 1;
		L(j, mnl, cur) {
			if(ret < dp[cur - j]) {
				L(t, 1, j) 
					s += col + '0';
				cur -= j;
				col ^= 1;
				break;
			} else {
				ret -= dp[cur - j];
			}
		}
	}
	return s;
}
int col[N], len[N], tp;
__uint128_t receive(int Taskid, int k, const std::string &msg) {
	Init(k);
	tp = 0;
	string s = msg;
	int pos = 0;
	while(pos < sz(s)) {
		int w = s[pos] - '0';
		int j = pos;
		while(j < sz(s) && s[j + 1] == w + '0') ++j;
		while(true) {
			int p = -1;
			L(t, j + 1, min(j + k + 1, sz(s) - 1)) if(s[t] == w + '0') {
				p = t;
				break;
			}
			if(p == -1) break;
			R(t, p, j + 2) swap(s[t], s[t - 1]);
			++j;
		}
		col[++tp] = w;
		len[tp] = j - pos + 1;
		pos = j + 1;
	}
	u128 ret = 0;
	int cur = cnt;
	L(i, 1, tp) {
		if(i != tp) ret += 1;
		else break;
		L(j, mnl, len[i] - 1) 
			ret += dp[cur - j];
		cur -= len[i];
	}
	ret <<= 1;
	if(col[1] & 1) ret += 1;
	return ret;
} 

详细

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 90ms = 3ms + 87ms
memory: 4012kb,13696kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 591
0 10660864730595328 463869730889920196 65723535187768652 36025876666642712 10511400018580063632 627775304108147 18446727787253497696 22478862395145215 17079912444479164435 15359
0 13933011245465600 755476123713796652 46724511265978792 1281268975568156832 2585059700940732544 4650...

result:

ok Accepted using 591 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 273ms = 9ms + 264ms
memory: 5880kb,22800kb

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 1338
45 138310090175 18229523182675598616 18403958359451042816 14560901755852188992 14416133124372938569 13425849102914594362 17248765787343948881 10078207142948648320 327732437524081268 9442998712598379934 17634319425036369563 2215770165340094594 1291102353547634450 49002711717395...

result:

ok Accepted using 1338 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 35ms = 4ms + 31ms
memory: 4240kb,6704kb

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 233
540 15372286728091293013 6148914691236517205 6148914691236517205 709767123113
942 15372286728091293013 6148914691236517205 6148914691236517205 735692360657
966 16540935098354459470 4135234888864250211 6221975284147899700 1940446523347
35 2067898370861243050 12046189791217363756 ...

result:

ok Accepted using 233 pigeon(s).

Subtask #4:

score: 7.14175
Acceptable Answer

Test #4:

score: 7.14175
Acceptable Answer
time: 24ms = 5ms + 19ms
memory: 4244kb,6696kb

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 233
580 1903270684059704433 14635769474707539756 8271754007846498763 246516876799
951 15388334641345291150 6400624668416226661 10248173594704303704 1954687285270
730 3074457345618258602 12297829382473034410 12297829382473034410 1466015590935
759 15372286728091293013 6148914691236517...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #5:

score: 7.14175
Acceptable Answer
time: 28ms = 5ms + 23ms
memory: 4200kb,6792kb

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 233
248 18350678343436535248 12200461678210258187 6124907140979972692 1648484158417
647 96065730273016367 6246282395499293428 12321836932729578923 550539078487
155 96065730273016367 6246282395499293428 12321836932729578923 550539099968
259 63973459759332383 10313102954902712824 1282...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #6:

score: 7.14175
Acceptable Answer
time: 40ms = 4ms + 36ms
memory: 4252kb,6636kb

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 233
576 3440890060748033016 18248030504576090140 8714523347963952685 823149429489
745 16269137167375263806 143552650372444404 4480237475153884162 2130336809920
316 3351497608877924183 18243340326201722282 12575635008277348374 1499143426768
256 15035465668922488186 605451427950468086...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #7:

score: 7.14175
Acceptable Answer
time: 33ms = 0ms + 33ms
memory: 4252kb,6680kb

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 233
174 2205103621490660224 17872306151950111736 209452337312661955 1948437897720
242 16812346472595019241 9220192610809066496 3363984401208607092 823877184023
517 16258247420636323826 17364192945738891137 16193083498745313855 2099982961649
234 14995895928962282522 21144400251845683...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #8:

score: 7.14175
Acceptable Answer
time: 41ms = 6ms + 35ms
memory: 4220kb,6704kb

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 233
88 1135434972728803087 16721760912826834839 18208302833029745663 1924682036605
989 428969463833677992 406075848830484480 851192723428319977 1099461319191
176 16726320368712177667 11744313606065910791 18351656688940948596 1099245257152
665 15203952783839197886 1227678701492947096...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #9:

score: 7.14175
Acceptable Answer
time: 42ms = 3ms + 39ms
memory: 4268kb,6708kb

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 233
376 18243260950087800111 15393699556520538021 4638298191796442373 1375150057477
742 16768033109403738207 16931898501439935906 18026320137690629547 1787417281952
598 18038065858840619775 4624378780558459216 13620522949880291370 2868880032
747 406421272758090110 109172268460333297...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #10:

score: 7.14175
Acceptable Answer
time: 41ms = 5ms + 36ms
memory: 4248kb,6640kb

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 233
667 2070564631506583615 13864868135590444875 18329533235555723774 469857652
879 18041232135943105794 11948051454339211173 5462970354750767098 400188504744
969 17879272997192207875 9463851434772551727 18341778851775052016 257698085470
336 18020967542104609882 3357057669817613663 ...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #11:

score: 7.14175
Acceptable Answer
time: 40ms = 5ms + 35ms
memory: 4248kb,6700kb

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 233
186 1017251529651549215 9240454098084676606 1148542146573236767 1404946638942
824 15407658383032981120 6053023004393876781 6510727226600694525 799666169879
243 1539855129957618042 6708059068481317584 381470562937608145 1086626897942
447 18243712267316144319 17607487998926270294 ...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #12:

score: 7.14175
Acceptable Answer
time: 36ms = 5ms + 31ms
memory: 4224kb,6664kb

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 233
239 15258583602380930894 4106297640960983028 18412378279454261200 1790815298503
587 2241168074070819744 17297200260673505923 9790842638731739009 2073961723248
94 16825396233283256320 6498693895277073492 6155012906244636695 1994299266370
752 16921133695837930839 13943109364918809...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #13:

score: 7.14175
Acceptable Answer
time: 37ms = 2ms + 35ms
memory: 4256kb,6696kb

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 233
668 18067690038867954592 6498601903123769857 8365020487085983229 409095683754
363 15000499082442047028 796951934256938647 18162788465621082053 743775158270
507 2298499905767278584 2253918588699137504 6654320809922803719 2070157919200
477 287136362615926897 9151853070369693205 33...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #14:

score: 7.14175
Acceptable Answer
time: 39ms = 6ms + 33ms
memory: 4340kb,6656kb

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 233
559 3268023822915195070 12466703362307563613 431526708674319455 755511590917
222 1622780109555870539 18352155298763941978 1715897023236845521 690368634501
92 15117222760865071217 14996425813870412742 11495181128082132867 2103484677125
298 2273489343887655650 17878516440457854467...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #15:

score: 7.14175
Acceptable Answer
time: 35ms = 5ms + 30ms
memory: 4264kb,6656kb

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 233
682 1516217374705981349 11636481754332970287 15369636148972377258 2197418931246
854 18062484367407207615 18394287111971990248 94994688082182143 2198620995488
167 16812333329844401163 12366983533186122472 3255307945252700171 1400064223573
499 3266328376836003477 30382412981470602...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #16:

score: 7.14175
Acceptable Answer
time: 25ms = 4ms + 21ms
memory: 4252kb,6708kb

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 233
695 16257994895577747367 13898566301969680261 9637984434074680884 2064741871730
874 3269612968315545684 6822213829411402938 13429312239955477162 1302543941821
97 16267002094832750539 13894097925370087301 9629117853122952788 2063673063656
0 2188749177997553752 4516617115030189244...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #17:

score: 7.14175
Acceptable Answer
time: 30ms = 2ms + 28ms
memory: 4224kb,6696kb

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 233
538 840790326896231840 431840552578582188 8099738495161203064 267890392717
256 840648474865829280 431594231909649066 12152987093343532404 401030173392
282 840648474865829280 431594231909649066 12152987093343532404 401030173034
304 848661576020657088 287760274265344796 8099747429...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #18:

score: 7.14175
Acceptable Answer
time: 30ms = 2ms + 28ms
memory: 4340kb,6640kb

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 233
580 17905915812221331508 8655668907149097044 280911755922374663 49765412926
535 811044480189683627 5463239069959588779 18026220864756121589 1050834638101
743 540696320663328715 10074784355193718727 18165832453078646772 2166437707900
880 17635699593519867988 12983505003749962836 ...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #19:

score: 7.14175
Acceptable Answer
time: 39ms = 5ms + 34ms
memory: 4344kb,6768kb

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 233
838 16142450813274716207 16174730829677594571 14381458693242404878 549666716797
945 3457285133785844688 3408046254327002196 6100876960841687018 1374479166463
644 14989458939923706927 15038697819382549419 12345867112867864597 824544165515
7 2304856760152180704 3424952340824913972...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #20:

score: 7.14175
Acceptable Answer
time: 31ms = 5ms + 26ms
memory: 4348kb,6700kb

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 233
177 1602449992814684273 18050329755433099616 6659064874307650432 16389287939
109 1026266317441200233 18050330047763538144 4355755139875046208 16666094274
903 1539399477772413098 18068348567289942352 6533210497751532864 24986517509
130 17492535487745234829 234249257140264607 1423...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Test #21:

score: 7.14175
Acceptable Answer
time: 22ms = 4ms + 18ms
memory: 4252kb,6692kb

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 233
744 16729189996452709029 18041222014409136663 16768423536247201413 555808107822
978 17301708037228921285 18032280846100093975 17327854919307247363 1103546483697
126 16729189996452709029 18041222014409136663 16768423536247201413 555807801366
402 17306213818968179397 1817640043222...

result:

points 0.59514563110 Accepted using 233 pigeon(s).

Subtask #5:

score: 6.82817
Acceptable Answer

Test #22:

score: 6.82817
Acceptable Answer
time: 45ms = 2ms + 43ms
memory: 4560kb,9140kb

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 317
404 1816724795138061901 10620852648499438809 3912945712605056403 7266899180552247606 698740305822731667
251 16630019278571489714 7825891425210112806 14533798361104495212 11179844893157304009 1607102703391161536
170 1816724795138061901 10620852648499438809 3912945712605056403 726...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #23:

score: 6.82817
Acceptable Answer
time: 41ms = 6ms + 35ms
memory: 4452kb,9140kb

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 317
635 4363875850391551 18205771085276718000 4580265412749977596 1000150414295136768 360218417493442552
111 4364477145812991 18097697716560675808 6899689177272694771 1425740582889913344 144010588442837118
250 18432561309799402496 453794390385726311 3517084396393437196 1660206440940...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #24:

score: 6.82817
Acceptable Answer
time: 38ms = 3ms + 35ms
memory: 4448kb,9044kb

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 317
597 52917742290532875 18014781139528629952 49425247631248870 6864259484180529896 852411778301263497
555 16573248360441236483 2738644184430909836 17513598242919153563 2794962509203740722 979969411110717843
727 16573473554176173979 2745492851677621503 16573703971470782867 18167800...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #25:

score: 6.82817
Acceptable Answer
time: 41ms = 0ms + 41ms
memory: 4472kb,9024kb

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 317
549 18014398325451295 6921909746131534804 5560090723450880 216171158151561279 1760804070205997032
996 558649797800631240 6340860987331055615 11781069151693374448 6140633474927856 13476696853977024
120 144114987279115418 10664031883533760496 16137891851100160756 68729151863872410...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #26:

score: 6.82817
Acceptable Answer
time: 50ms = 3ms + 47ms
memory: 4428kb,8996kb

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 317
817 860327924564733965 11530143067310914571 17582122248444075520 4503735995937814623 585432774699130785
194 117036860692869936 3746080204504482195 7260030851928922499 4381151085525268889 2302212310151278592
241 17517313257315080577 10594267324051198726 7378233640731176140 100 19...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #27:

score: 6.82817
Acceptable Answer
time: 55ms = 7ms + 48ms
memory: 4484kb,9020kb

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 317
310 936634481572209043 1814957684990145383 10981119933697477683 18212778556348225944 907477098092351075
522 56745794680114585 9225201177962178144 7493102680430821325 11068044698856718543 2276683069223088745
366 907589241379278745 11470669981890222470 7351690108035296486 18662067...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #28:

score: 6.82817
Acceptable Answer
time: 43ms = 0ms + 43ms
memory: 4444kb,9136kb

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 317
584 819934768123607631 2306404311240935381 6846034264857800703 11637030755397400622 578146866257133316
628 18216188370345564367 11183310832902812571 4611464453311941683 18329657574395533720 14581310679413504
705 17510216909679758540 7493764599539525631 3685661822372813261 114130...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #29:

score: 6.82817
Acceptable Answer
time: 53ms = 3ms + 50ms
memory: 4476kb,9032kb

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 317
327 18416050292866088944 13726979773358404611 8804396808766717959 18445115722529996800 2198037560462142467
889 26058421397184480 1982422810394296636 9224203674060162815 9224190076160838113 1621787353993191360
937 18393826777856159998 3168986842953415695 9943842424318940153 12395...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #30:

score: 6.82817
Acceptable Answer
time: 54ms = 7ms + 47ms
memory: 4584kb,9044kb

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 317
577 17958101503961715712 18016071141029831711 2354850392628003199 11597375937207385892 2298014215295892997
393 131791319346938239 15059544623889248799 17919822644575863166 353665748876426944 1152824781934956323
684 17992892284535819315 16587654739897338905 3919820748997473036 16...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #31:

score: 6.82817
Acceptable Answer
time: 31ms = 1ms + 30ms
memory: 4408kb,9040kb

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 317
399 18417927964787657138 7839696439679644467 18331465790835917619 58096541657885948 1963565919519939387
743 17978827082251895199 10952976068479089862 8286851998876171468 10982020558449603328 922167411629621040
998 17871912110352301922 18445977925631672359 9254650943654329600 224...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #32:

score: 6.82817
Acceptable Answer
time: 55ms = 7ms + 48ms
memory: 4500kb,9136kb

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 317
493 16580338066378663449 18389105145305415680 7259859327671874558 7847014790375945014 685447670434938931
15 936734435814434765 11295141349002169550 7385446103706081676 16631765722951008205 1412335878286606128
517 282608573187403761 4611684394080338746 1576283582090985424 6905145...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #33:

score: 6.82817
Acceptable Answer
time: 52ms = 6ms + 46ms
memory: 4580kb,9012kb

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 317
353 44914483224643327 16717377208223481966 231935585894313920 2881607633401546751 1946386295349575687
753 113491586838016920 233272414430460294 5480034536611407052 16574154282442527588 1787922016804011619
83 358605683072182233 4594226185156419773 10063569412425711695 15338992007...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #34:

score: 6.82817
Acceptable Answer
time: 42ms = 4ms + 38ms
memory: 4496kb,9048kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
4 2 10000 317
402 1815837302013190169 17992893821697497484 18389969705039075743 3926695716905300991 2075314556611480783
520 1414610047756353549 18314979141667552521 18420549322531065983 14051024112696956927 2237444211915979905
404 837929221330247687 18237274730787347971 18398000528421544127 1...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #35:

score: 6.82817
Acceptable Answer
time: 33ms = 0ms + 33ms
memory: 4560kb,9040kb

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 317
659 17517313697174133040 1859087664672273164 17978426020766101907 3739787371992442371 345875795110625289
341 17517313697174133040 1859087664672273164 17978426020766101907 3739787371992442371 345875795109373132
170 284852678017152111 17442213481056831225 144097858149171078 164324...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #36:

score: 6.82817
Acceptable Answer
time: 27ms = 3ms + 24ms
memory: 4492kb,9136kb

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 317
965 907489175375983590 226870563818179827 1872582679017604723 7260259968458797664 453851791764114435
237 711573002804271090 66428893889825274 863987453784424950 2233926144241831808 460589630967445527
207 907489175375983590 226870563818179827 1872582679017604723 72602599684587976...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #37:

score: 6.82817
Acceptable Answer
time: 23ms = 2ms + 21ms
memory: 4528kb,9004kb

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 317
50 17870283323547385855 17586547749324980247 13942722502896138239 17510241641817964574 1258764704843557950
661 1873497438020222976 1858889331755515852 14754706286458804224 936291325662723995 349563555420281039
211 864691126313877504 569720745488547824 6791709235690070016 2880896...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #38:

score: 6.82817
Acceptable Answer
time: 33ms = 5ms + 28ms
memory: 4492kb,9004kb

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 317
251 211765596166029493 2875759262166616051 141948600941919767 18357767195106328572 63050326325856242
153 355872194298904700 2878010890181810677 141895549902191895 18358312552705884153 36028729027222827
738 18309287665234607945 15575488411140978698 18304821036150849996 5998055799...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Test #39:

score: 6.82817
Acceptable Answer
time: 35ms = 3ms + 32ms
memory: 4556kb,9128kb

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 317
976 18388653788990576665 14756469957978803406 6946691539497966028 7377796689656232332 2302297963768476519
263 58090284718974950 3690274115730748209 11500052534211585587 11068947384053319283 3545041847033441
324 18420179601117859853 17337312096366613567 9239101066891429844 571083...

result:

points 0.56901408450 Accepted using 317 pigeon(s).

Subtask #6:

score: 7.03918
Acceptable Answer

Test #40:

score: 7.03918
Acceptable Answer
time: 55ms = 6ms + 49ms
memory: 4960kb,13716kb

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 528
361 18429317360140156418 11238734997791929808 10231334340403953128 1575560683198658521 1522119949059102715 195300209546438267 9531864766119889806 12982432025137594377 16383
73 18167375832110088695 13909331182958153853 17312390851021702175 8939783731182813447 16070003988077867073...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #41:

score: 7.03918
Acceptable Answer
time: 65ms = 7ms + 58ms
memory: 4968kb,13732kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 528
991 136443577515535 9258301588794244871 13835126260403043358 1116892707620421631 16210775080500725697 13975761425458496263 14394067092475152321 17363697665861761086 0
339 37373263855537 13790521720307634 9223386191456374239 14159317228454412287 18374708051832734137 1552858632936...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #42:

score: 7.03918
Acceptable Answer
time: 80ms = 8ms + 72ms
memory: 4900kb,13728kb

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 528
68 18443789170569634016 17560384044962940013 18432531150535655437 16093625362566691583 18424648354577323769 15002616136323798144 405323963049182239 18446744041499230180 10
350 139718206716704830 1119075804828012478 1152921471303565063 13835060187717158849 9504778710582574607 114...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #43:

score: 7.03918
Acceptable Answer
time: 72ms = 6ms + 66ms
memory: 5048kb,13728kb

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 528
595 1091781734965216 17940125365154380831 9504778841763054560 17874650048480871455 139743796392091896 279504635213906912 17887735302944850044 2297109554938118144 1923
155 48551169309343642 10818150766870527 15708632465713293311 17619260418658676735 18446713304283611246 184129670...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #44:

score: 7.03918
Acceptable Answer
time: 62ms = 4ms + 58ms
memory: 5028kb,13820kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 528
693 18306992813868191619 9502612269196918287 9506962207445926387 16178037636655608800 18306991748813883328 4471938019735173135 9511601879958741241 17329850833025122179 57409
341 18411814521900268572 2268714967896035203 16204224404686610183 16210843335535836684 226872349665997222...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #45:

score: 7.03918
Acceptable Answer
time: 61ms = 8ms + 53ms
memory: 4928kb,13736kb

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 528
444 18434359320173351551 18446686075335032837 18439093740481027324 16141846644494995456 2179287184571459 9799832787346611199 18437879467286292223 13835066851375185919 26112
314 18411806258749210655 297024338609839876 2268723430020937784 4485035606223650319 11458863610877380545 1...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #46:

score: 7.03918
Acceptable Answer
time: 61ms = 8ms + 53ms
memory: 4884kb,13712kb

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 528
702 18446620928916307991 6904057673715026911 18399457926151409659 1729382474790207489 5764460198676647011 7190702794638721024 505767502651391 18446288876040355836 57360
974 32791834786785920 86553289074665216 1693019248621455367 13832032200305924864 35465383359545293 92261159368...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #47:

score: 7.03918
Acceptable Answer
time: 62ms = 3ms + 59ms
memory: 4972kb,13800kb

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 528
390 18416344778890903552 1925339726991363 14692149385135136916 18446691298342600242 111859742998526 11611968688887955456 2303872804440244555 18258718975531942637 51732
243 139684088017059715 16699910334925702175 4472065900304005182 2234945932795703423 18411814520989155328 894196...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #48:

score: 7.03918
Acceptable Answer
time: 69ms = 8ms + 61ms
memory: 4960kb,13728kb

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 528
150 139718206716641776 8664635553623343102 1119075804568338819 16699637422810496015 9371850353626052670 139718223375399936 8944144595575866336 34110890438721 61441
456 8734453736015934 8943057044911550588 2234331322698948856 34937948271051744 558736483231432707 16212941603087613...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #49:

score: 7.03918
Acceptable Answer
time: 67ms = 8ms + 59ms
memory: 5056kb,13700kb

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 528
298 18363427656696446982 18425914931069917184 143855703412965372 4183698024939753436 324259159681981420 9229661003579364352 13114209487557394538 18036919806152409092 39935
75 18438010619043639416 4468662637068089404 2235968912055398525 17329714955878956280 4332189895317647456 17...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #50:

score: 7.03918
Acceptable Answer
time: 70ms = 8ms + 62ms
memory: 4952kb,13820kb

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 528
382 24206657013152416 2846099050421919781 12681204336582459394 5764526163284004911 18068443835088265188 44190334393499640 6630041904712908785 4691624387851832640 32767
971 84430398385393661 17293822623863536296 2251799813681577989 11528968757608711263 18446743979773394848 109885...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #51:

score: 7.03918
Acceptable Answer
time: 76ms = 7ms + 69ms
memory: 5052kb,13824kb

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 528
611 69859103488459248 279504518595731649 17293822835528965894 1121259834527743999 18307059986196840449 17329834310676385695 541539729388084998 1119076071189314591 3971
706 18167375882056908300 2233921883727692551 14394065226579280399 11459408985304084605 17312382333705383951 937...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #52:

score: 7.03918
Acceptable Answer
time: 58ms = 8ms + 50ms
memory: 4964kb,13740kb

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 528
321 18438300648656080894 2306102489864499148 2377731554764623872 3152420831821692928 279183595518558112 26721019548651520 8070100887590927312 145991169341 34969
23 18307008803217993824 17872466918180356623 13695173517236009984 17887751945605545984 4471801492877080638 27947053473...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #53:

score: 7.03918
Acceptable Answer
time: 86ms = 7ms + 79ms
memory: 4952kb,13740kb

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 528
563 4366993759272952 4467579360156518336 8941965246524690366 873553262982995719 13835331009043632000 1117745655815093763 16204225204128071183 18438009555420955127 49662
678 18442377079950278663 13979164713553033279 9504778827184861249 17573190810726555896 4611413064665919615 173...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #54:

score: 7.03918
Acceptable Answer
time: 57ms = 9ms + 48ms
memory: 5060kb,13716kb

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 528
247 18446295477528621056 13229076995896620 144114878840176516 5368290311320895463 9250393531539799039 15460949327970566152 17870283320682610693 9207633349131384831 56384
516 927982529195519 18424789758887724263 17735175693357547867 17077649958779355162 4388758212682163200 787974...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #55:

score: 7.03918
Acceptable Answer
time: 66ms = 7ms + 59ms
memory: 4928kb,13740kb

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 528
984 18429275041297270720 279496122068631567 9507236218525975520 9502868167253160048 9004983704516362208 17874648449400699935 2235491374097228272 8664430971547303486 4094
109 17469032412280895 18167247951640920048 8939507855183576095 8943875906456391567 9441760369193189407 572095...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #56:

score: 7.03918
Acceptable Answer
time: 59ms = 3ms + 56ms
memory: 4976kb,13728kb

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 528
453 279502519438686270 34937015259087359 18307000276536778883 16280649125530174432 9503140854734794876 8944012384117735160 4594221240505590015 17328725999197550640 31968
383 279502519438686270 34937015259087359 18307000276536778883 16280649125530174432 9503140854734794876 894401...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Test #57:

score: 7.03918
Acceptable Answer
time: 49ms = 7ms + 42ms
memory: 4964kb,13692kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
5 5 10000 528
700 18429581315675029531 18325187290822543365 13827424214744825903 18416345102576260927 18446709172797243479 17726168133330488235 2391117426084282367 18446624779918983203 32704
326 18425353006271004733 9124295044074221603 8069887960168792155 18382568001804183999 1844635065899312...

result:

points 0.58659793810 Accepted using 528 pigeon(s).

Subtask #7:

score: 7.54711
Acceptable Answer

Test #58:

score: 7.54711
Acceptable Answer
time: 103ms = 9ms + 94ms
memory: 4904kb,13828kb

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 651
962 71496860220000271 17284850828015862014 18303196216320069615 16149978355477839614 145236655711711200 2323786491387379202 287095714778964000 4593531436463424003 18156270762286129215 13799240910089755655 1920
343 18375247213489551344 1161893245693689601 143547857389482000 22967...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #59:

score: 7.54711
Acceptable Answer
time: 73ms = 5ms + 68ms
memory: 5036kb,13720kb

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 651
215 2080880 2287898433454849920 9294866681205637119 18446744056663371800 1144193598485365244 17874215038353408 4261666879 9795346918098732000 4575665949318710264 17455820312559 1539
508 18446744073707470735 16158845640254701695 9151877392503914496 17046179815 1730255047522418637...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #60:

score: 7.54711
Acceptable Answer
time: 76ms = 9ms + 67ms
memory: 5036kb,13696kb

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 651
915 18446726617892880576 9155783128688369600 8937375868397293313 18158518061508886272 17874752009436929 17874751873032929155 17874769465745358975 1143983583107741711 18428869858670677984 17874487785553976 127
318 1614725906434 10376291708601614331 9799832789853398944 23362422919...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #61:

score: 7.54711
Acceptable Answer
time: 79ms = 8ms + 71ms
memory: 4928kb,13828kb

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 651
946 18410994586737442307 17879220701605917180 567523372041208048 2287898433987543024 2287846066458456064 18303754785532214784 8727910400127 35748430078787648 9160251823082184640 571974881227569166 1016
310 18444325148129542143 17582291539263373314 16135130827680907190 484432704 ...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #62:

score: 7.54711
Acceptable Answer
time: 76ms = 9ms + 67ms
memory: 4924kb,13824kb

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 651
309 18446656318967512519 4611857521353687040 7275558240170439167 18440747887172124308 9223398966279012352 1293643393741352296 403511774954239 18055775543119536128 9060895005785718376 82155508827422320 0
59 18446723801474301855 46232209216197549 7241822180953035002 92231833331716...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #63:

score: 7.54711
Acceptable Answer
time: 90ms = 9ms + 81ms
memory: 4972kb,13740kb

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 651
896 18446744071578715128 1117171985672143102 17874743486070656 13870805378389819519 558586266632319 2234276879924231 13870814105233792960 1143967218275450880 2287899524909236351 144097732256063548 254
558 169379512331 17293822566770672787 18432388850442043072 5969966465081 92039...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #64:

score: 7.54711
Acceptable Answer
time: 82ms = 7ms + 75ms
memory: 4920kb,13696kb

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 651
66 18446573100892422020 32290419903612926 1801759670660271899 17488603419952358400 40250912182108515 13797076525612284861 16717369427480496128 32882066980867 14408343967760441326 9534806499235229503 1544
713 6871930372096 11540462233994591 18050995272976170989 360787087218423500...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #65:

score: 7.54711
Acceptable Answer
time: 72ms = 4ms + 68ms
memory: 4956kb,13672kb

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 651
981 18446744072644132864 4468690116541948 575902168167604287 9294869988005315068 571959334587068423 17302825404535412751 16141459650761465792 1117172000591840 4039693682444664831 17302759400678686719 1532
351 18445785343961135106 13186539699145016231 18192572170336992104 6194372...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #66:

score: 7.54711
Acceptable Answer
time: 96ms = 6ms + 90ms
memory: 4964kb,13752kb

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 651
215 774031087550975 18187788219880308723 288247691618584319 18018919014073565383 18092226500999773987 155866720857229531 18268891359080088335 18125721913907955104 1952729270348733 2693153773850812563 1535
777 18445028839689000640 2665005079238150715 18406880180148092533 92339767...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #67:

score: 7.54711
Acceptable Answer
time: 91ms = 10ms + 81ms
memory: 4960kb,13740kb

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 651
292 4672908992514 11493186060339380686 18446744055206382335 18445090696990523904 1837468647965491200 9655704407085940735 11583258241602509781 9227453408716273471 12781216017354723328 6196937625380708351 2039
231 18410994552645083199 9295145974072605703 17329572021981445889 14305...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #68:

score: 7.54711
Acceptable Answer
time: 88ms = 3ms + 85ms
memory: 4924kb,13724kb

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 651
638 17874624159154684 433462668049711600 2287828678890979582 142998050168895502 287095748870803424 18303196200339306511 16140902155483619264 9151877324585549951 142989290299785724 4575938679338434560 0
545 153449833038639 18397767429624150088 1977069241613940256 2897423431642265...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #69:

score: 7.54711
Acceptable Answer
time: 76ms = 9ms + 67ms
memory: 5056kb,13816kb

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 651
635 29686813931072 14546626538739562122 405322690858057867 9220392927816035104 988498383151824140 176201084858007713 13530713237820801018 6413131766365609987 12249788427793694719 18444663879714525188 575
266 1117172533280895 1117172466710512 1733859400009381872 21628454704377359...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #70:

score: 7.54711
Acceptable Answer
time: 73ms = 8ms + 65ms
memory: 4976kb,13680kb

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 651
476 4634622 15456540827781700095 18440023864378248192 1929778559003817983 18204042293294390024 39960080023552 267964177788699007 18446670446472460162 254471471104 94489280509 1792
521 18446744073709162496 2260465220239463712 151415934295765759 18203599420961202176 52326192774959...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #71:

score: 7.54711
Acceptable Answer
time: 76ms = 8ms + 68ms
memory: 4880kb,13712kb

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 651
539 2348542207341306 10178145044856307767 3443916714599727874 11150711056085509632 12078569830748257585 175646556162383 18438906830525520001 6124809319327198722 1112380861623692523 9367487755155800064 2007
716 18446484596750004487 4881861898280042451 611425217637604095 129704323...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #72:

score: 7.54711
Acceptable Answer
time: 83ms = 6ms + 77ms
memory: 4908kb,13740kb

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 651
689 5340327841890607 4610619495084409345 13751237885988044799 15888699485426544267 10260641605576959 17947971220284637136 492828119040 123280598250651547 5225582942615928949 4611389322315694022 768
401 17874743486056432 2296905697132036031 9277554870626303998 285978577403437119 ...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #73:

score: 7.54711
Acceptable Answer
time: 95ms = 5ms + 90ms
memory: 5032kb,13708kb

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 651
770 35749521057185407 143975541525840892 571959334653624574 142997538768674876 574191495611809799 17302821040713383934 285978584861116400 2287951892504911363 18156275125991638015 17302760490602069895 1920
58 9675702322767882 14987972687942705150 13564843464377498048 224297170979...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #74:

score: 7.54711
Acceptable Answer
time: 79ms = 9ms + 70ms
memory: 4948kb,13688kb

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 651
63 18444873275501707129 4612207185529742463 17442444397105614848 8318148485983502336 1837468632934796379 18446739963428716379 40496010770276351 6917529814425288704 5714727834473029631 18420003995968860448 64
842 4468656039789052 567523406130316281 18160756769465270524 5719593346...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Test #75:

score: 7.54711
Acceptable Answer
time: 94ms = 8ms + 86ms
memory: 4904kb,13696kb

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 651
853 4468689067769871 16158636172002787836 4468673087008796 571974608496625649 18159648324854874881 18301507417897961408 9151454085121835008 18303196216320587791 16283898057769091075 17873669748504363263 1790
885 4468689067769871 16158636172002787836 4468673087008796 571974608496...

result:

points 0.62892561980 Accepted using 651 pigeon(s).

Subtask #8:

score: 7.9436
Acceptable Answer

Test #76:

score: 7.9436
Acceptable Answer
time: 113ms = 10ms + 103ms
memory: 4972kb,13828kb

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 824
291 18437745666248673281 18428712091612344316 36063964194414599 18374616145320722416 144255856777658399 18158232360154234816 577023427110633599 17292697219488284416 2308093708442534399 13830556656824482816 9232374833770137598 18428738479878828035 36063947031315456
973 184465385...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #77:

score: 7.9436
Acceptable Answer
time: 97ms = 10ms + 87ms
memory: 4904kb,13720kb

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 824
422 18446744073676029920 575898352101625852 1151796702066243587 18374756711110934591 17294944075253817336 144114089637445120 9187378389848195040 567462340551774204 71495193303465968 288221588640251888 288230371860934687 17870705671176060800 9006650035274752
101 33521695 1787084...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #78:

score: 7.9436
Acceptable Answer
time: 105ms = 10ms + 95ms
memory: 4952kb,13728kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
7 10 10000 824
38 626614253579294 9223703402171592048 4611722299089505282 468374222803050539 18445323607768379871 16590152720079978279 12684484506216816205 313974991955456 291607929205835375 9223372036854755140 14433169703364879168 446834839486726163 10124159602917376
153 18446476007620890603...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #79:

score: 7.9436
Acceptable Answer
time: 107ms = 10ms + 97ms
memory: 5048kb,13736kb

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 824
939 18446736944600865854 18446744073395769390 7133536405735274239 18446028876305104822 13272108105412182007 13186539737981648895 18436801191164116989 11385099857997191151 14435162705629431779 18415869787201601627 14699749113432379797 9168934116686430207 65821165189783551
920 16...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #80:

score: 7.9436
Acceptable Answer
time: 98ms = 5ms + 93ms
memory: 4960kb,13736kb

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 824
722 4398046510902 6953596580222755588 5716190595211366311 18437424621842005428 5768435816363693412 9519892730679606656 22740977 15208655942178955263 18366805180323760350 18446272383300755455 18446293566000340783 18446738394789989881 72053920231557119
341 562400466304769 1841074...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #81:

score: 7.9436
Acceptable Answer
time: 96ms = 10ms + 86ms
memory: 5036kb,13820kb

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 824
184 8998411483479935 16143148470553804831 17870565071000690695 18001200079159311 18159638499026796536 144009600633404416 18437728086817636255 17870846271359549439 18442244867833757664 576460752301328382 4607186748194095167 17294948467936852992 17575022948348
575 268173504 11517...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #82:

score: 7.9436
Acceptable Answer
time: 105ms = 5ms + 100ms
memory: 4920kb,13744kb

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 824
346 18446743980866535997 17004929745785193543 4467559114217734063 18153453745188208629 603482350067702191 18373716711029727229 15461420863613561053 4798417992991 6954513025386669537 253403070463 18443934821547765671 5044313950984863731 63208774434291711
149 18446733424343435263...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #83:

score: 7.9436
Acceptable Answer
time: 108ms = 11ms + 97ms
memory: 4924kb,13816kb

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 824
637 445156146037760 18352168481534716057 1381373632467273728 1313925190297583616 672021506886141440 355221420608847866 16223092274969821536 153347512074496 34590425086 18163580247192083438 8358681614619700423 1230173122854911 51624544826068911
348 925745840607744 26588829959119...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #84:

score: 7.9436
Acceptable Answer
time: 88ms = 6ms + 82ms
memory: 4888kb,13748kb

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 824
995 18444494471307985152 4607182968019419199 17293822577684258800 287949038479851535 18158583997649641479 18320625709136994311 18302629160243298431 16140901064495890400 576458555425558524 71916993887830047 18444494471844332032 9218864043475845135 70931831435939836
511 184467440...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #85:

score: 7.9436
Acceptable Answer
time: 113ms = 10ms + 103ms
memory: 5064kb,13728kb

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 824
375 1979711480290 7782337946384 2005508038918250 15924720311997239295 17334777178214110015 18444268076675985407 5706062013146627592 161830519422046208 528821102916009984 191323770229627447 18444071882496944527 8070450476713256291 65274895784740944
406 557202799806 4638819628923...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #86:

score: 7.9436
Acceptable Answer
time: 105ms = 3ms + 102ms
memory: 4960kb,13744kb

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 824
954 18446743799099818047 17294930893986725760 2305843008677346816 2303592309984337912 143974587894331393 9232370444307271678 35993613183222240 576179002683719655 18302699323030241343 17294878168934498319 17294947403824135936 4607186812555690047 68116395078450688
759 18444494470...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #87:

score: 7.9436
Acceptable Answer
time: 94ms = 5ms + 89ms
memory: 4964kb,13744kb

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 824
992 18446066972122617582 8439745701867663358 18304885306295320504 8142508126285856953 6917291671320756046 12700150986295999833 4611686018427442155 18446712797757702144 1174876546386624512 272238 13576224240557817835 9597170805926731631 72044806578211705
681 18446462873342312448...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #88:

score: 7.9436
Acceptable Answer
time: 88ms = 8ms + 80ms
memory: 4952kb,13728kb

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 824
975 562400667434944 1151796704211632064 1152076805058863096 143974579444899855 18158777597511598080 9214369239937320958 36024403263487744 4611615718335594480 288230376151187967 11526965170668307455 18005611002195971 18445619272240611312 985299789284351
394 18446665204689759167 ...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #89:

score: 7.9436
Acceptable Answer
time: 98ms = 10ms + 88ms
memory: 4976kb,13720kb

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 824
539 18446743105597246711 17231203182899228158 12196310743151017901 11529215046805453627 3602879702348234749 15816641956777295871 18445746266907551615 18418289818357137402 12754197887777243135 16680383052135792573 3170546771314248192 41298258018096 598687215
234 8787509381118 92...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #90:

score: 7.9436
Acceptable Answer
time: 106ms = 7ms + 99ms
memory: 5056kb,13732kb

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 824
960 18446462873350692871 17997904762371072 18429292075934531599 18163012903432619007 9214371436815190014 33779194114572319 18302769554335531007 18446603473559453720 143992025610436623 18158583997645459452 523776 6919779726870184191 54605596259777536
549 10513810690880 178750666...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #91:

score: 7.9436
Acceptable Answer
time: 102ms = 7ms + 95ms
memory: 4928kb,13764kb

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 824
30 18446714421256015099 18424789027010502655 18363928859124908031 18446743935232514199 13835041433795985407 15066088989356195830 5917729910531555327 18297705272565940215 7548032981167635624 9818477757433645056 4989706900308230171 10862677782912040964 67290111614533632
463 44992...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #92:

score: 7.9436
Acceptable Answer
time: 98ms = 10ms + 88ms
memory: 5036kb,13700kb

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 824
557 18446744072711635434 15849581679145392028 9217812906065127807 18446733457628815823 18437464849514495999 17872395227587620484 3091302708368 73598252204032 396246398428978176 1984893344597050 1137158903579279360 2269374819199152 302219668746864
687 18446744005057134576 216243...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Test #93:

score: 7.9436
Acceptable Answer
time: 100ms = 5ms + 95ms
memory: 4880kb,13744kb

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 824
581 18445368112359116764 4071254063143008031 18434324265240384957 18446738989811057663 18197920814899134457 13052983695546111811 580399202953856768 2774217202042144351 13834376419109617621 6052955443849953537 9691182544166409130 18430489483766920748 4505436581527199
746 8998410...

result:

points 0.66196636480 Accepted using 824 pigeon(s).

Subtask #9:

score: 8.35849
Acceptable Answer

Test #94:

score: 8.35849
Acceptable Answer
time: 192ms = 11ms + 181ms
memory: 5892kb,22796kb

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 1038
716 562915594731583 18410713077734445055 16140760331302731767 18437737149349494271 17870300914665881598 1125968624222080 72061991950213120 4611967484813639696 18013848720114688 1152886318087340035 18444492136461107455 18302620089809125375 9222809104082272223 184107163762693222...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #95:

score: 8.35849
Acceptable Answer
time: 142ms = 9ms + 133ms
memory: 5828kb,22964kb

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 1038
72 18446744073709551615 18429357547879178491 16140901064394408448 300364167379400 3251599008583315451 12148741471019302903 17625683765670854399 18446744073417577472 1202249993012399232 4118504475490019496 976594749005727188 975188644627218423 9728971463771291648 97826114424012...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #96:

score: 8.35849
Acceptable Answer
time: 136ms = 12ms + 124ms
memory: 5912kb,22796kb

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 1038
919 18446462615911662591 17293884142290698303 18374690327995873535 18158531014882753663 18302637681726717951 17293892933551915008 18013299056574975 17870353685855596544 4611422134563045375 17870318504167571457 16141041793528487936 8646946467044376576 18445618242518024190 21814...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #97:

score: 8.35849
Acceptable Answer
time: 140ms = 11ms + 129ms
memory: 5852kb,22856kb

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 1038
523 18446744073441132543 144106392385495039 9223442401304231936 18445618448663839232 576425567931465720 9006099810218047 18374690877449715711 2305702280281720831 16149907714028339199 9223934953522135043 13835339513087393280 558447453246848512 575334921112911808 630509445055774...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #98:

score: 8.35849
Acceptable Answer
time: 138ms = 5ms + 133ms
memory: 5924kb,22936kb

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 1038
244 18446655918031644171 15563783092807158546 4494591811588718592 50770980201916938 11054762631049264 533345018657787648 94073306609 7065584867854121471 18302388096958390131 18438911779938500608 1327435990150313232 186931201653604049 4791834869713862655 10374083591855256447 18...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #99:

score: 8.35849
Acceptable Answer
time: 126ms = 8ms + 118ms
memory: 5908kb,22788kb

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 1038
796 18446742974265028609 18444492411318043647 17293822569136257024 2017630224174809056 27022147486482435 18442240740370677728 70364449472511 1125831254470656 2305983738112114688 576425570074624255 18176526996622802688 288213333687928831 9223934961037869087 18374690877449732094...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #100:

score: 8.35849
Acceptable Answer
time: 151ms = 10ms + 141ms
memory: 6000kb,22868kb

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 1038
550 18446742754122793427 14940653150343790593 107945488755929100 4123045109928427582 15165590260102234337 522417556769947393 4506156498942 14527806455874494523 16140900604158541839 11666293285010276353 10431392265311682560 17502522919387078656 400714813717141792 40919227155834...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #101:

score: 8.35849
Acceptable Answer
time: 137ms = 12ms + 125ms
memory: 5908kb,22856kb

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 1038
53 18446744072434515968 293287305005710880 15132095988838694910 10336189955172005887 18335161235684361311 18446741583713273374 17176728957083828224 685651263487 18446459587457454219 18446734567219920904 143517053615369280 4640644530175 18446741836306317864 9073897441929461760 ...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #102:

score: 8.35849
Acceptable Answer
time: 147ms = 8ms + 139ms
memory: 5976kb,22856kb

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 1038
767 2097024 144115050645290496 2305702280315273215 13835339517373710351 13835339513079005184 288212785037312127 18302629023064260992 144106941705094144 1152859931418853375 18442240748943310879 18410717200852712448 72053196259328031 18412966939073707520 576434363487517696 11528...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #103:

score: 8.35849
Acceptable Answer
time: 156ms = 13ms + 143ms
memory: 5920kb,22792kb

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 1038
791 10109772101321 16212958658542349143 4611685983447980032 1388751905349442 17305081568171560907 13834036359876136685 16140799738466271232 566993127920740 12105747841784217040 14440229865953164660 5270900413895578831 18443022451798762383 17293822482106814464 435746930425855 1...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #104:

score: 8.35849
Acceptable Answer
time: 158ms = 12ms + 146ms
memory: 5868kb,22860kb

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 1038
178 2129 17149707311341633536 1143433986035 17510584792601542655 18446743061599093259 2233785414029284384 88901974735422685 4611973949780131839 18446744073698458192 9296501611780105914 1738389460134983679 13711245359532834815 17755529493048417215 8700813742743087739 1844674407...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #105:

score: 8.35849
Acceptable Answer
time: 177ms = 11ms + 166ms
memory: 5856kb,22844kb

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 1038
476 281457797890047 17870318504167571457 9223934952448720880 18014397435805692 18445618242505409535 17293826966880796160 576425636646617336 9006666677747775 18446744073172713470 18013299064963071 1125835482071055 1125831187382271 1108308794474497 18444492402745409504 351822247...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #106:

score: 8.35849
Acceptable Answer
time: 142ms = 12ms + 130ms
memory: 5992kb,22792kb

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 1038
837 10350703 18444222068915569135 8645778718889886679 9223301354720593009 6325305649153474828 7439242865095950336 315063 2017612633061982207 18446733287516798976 972655473711746688 571263802146815 16125705813804304858 18444322040988045878 18440670176057901431 89351196233936601...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #107:

score: 8.35849
Acceptable Answer
time: 153ms = 12ms + 141ms
memory: 5880kb,22880kb

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 1038
365 18446181158113902584 9002801476653055 13835330734702690815 17870316306889170944 63 18374690602857004032 1152851139889217535 4397778092016 18013303292559375 1125848366186544 18013299534692353 1125831187365919 18410717441356201863 18437737424210624448 72053195991433215 11257...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #108:

score: 8.35849
Acceptable Answer
time: 153ms = 6ms + 147ms
memory: 5912kb,22792kb

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 1038
190 18446744073040560128 644809345659678 1152924611744104447 17564839575343988447 18445890930533413327 13835058053164138496 1489987789217274354 1152921504606998379 16140901064495857528 5340143258155423171 9223049204201422848 667605730760251729 24084029111105 147898597360711740...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #109:

score: 8.35849
Acceptable Answer
time: 141ms = 5ms + 136ms
memory: 5996kb,22788kb

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 1038
792 18446603344810606592 9222809121261092860 4503326896816135 18446181158114820032 54044294973489120 35747339221073920 137430565375 18446741874820505855 18158531289743753223 18437736875528486915 13835339521668415519 13835339513615843329 17870318503630798844 4486008515035134 22...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #110:

score: 8.35849
Acceptable Answer
time: 160ms = 6ms + 154ms
memory: 5984kb,22944kb

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 1038
568 1110121975 18146199837413243295 13657436899617510199 8069859785534805131 17690139335948378624 2503832655334239 1188950305180671997 13929932716111247871 18444317745215439971 2732840540499870051 18101092802308866047 18446744073709452247 11548611313663 4855471935561139094 137...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Test #111:

score: 8.35849
Acceptable Answer
time: 162ms = 12ms + 150ms
memory: 5880kb,22940kb

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 1038
591 586455875583 18446731758830354432 7247129628299492750 6935544402840256205 1245245344392110078 6654385108788707329 15762598695413537 20342940530376703 18446734157167986161 12456949878872343574 8590615736251089411 3962463981609193506 10997218543992165525 4612392841195290623 ...

result:

points 0.69654120040 Accepted using 1038 pigeon(s).

Subtask #10:

score: 8.69507
Acceptable Answer

Test #112:

score: 8.69507
Acceptable Answer
time: 272ms = 11ms + 261ms
memory: 5876kb,22968kb

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 1338
546 329093978479 18077704444082143466 17149702814975680772 12770878048240129172 9259981577314557643 5928875387043617630 18446290037218739083 15379148392967294992 158268019590526952 621584735148529663 12618181833357100487 4321202086895476757 1555399650400694661 4756438567833272...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #113:

score: 8.69507
Acceptable Answer
time: 229ms = 10ms + 219ms
memory: 5880kb,22940kb

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 1338
866 18446744073709551615 18446673705032482752 9007190664814591 18428729692379924479 18410715310781890815 18442240508441886720 576460751229682687 18429011149908344960 2251797666201855 18442240478343594015 18446181128051093504 71916856683790208 33554400 562400198131711 922337231...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #114:

score: 8.69507
Acceptable Answer
time: 226ms = 8ms + 218ms
memory: 5836kb,22796kb

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 1338
434 345962410743 18442153104716726274 1262108470295920639 18445749360361734515 7058829465932883843 1265511517234951663 14957882442428448768 4713606113392611 14571472460659556368 18270878150782200883 2305847753163666431 18332072734391062818 8734696292912974375 11027134056780244...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #115:

score: 8.69507
Acceptable Answer
time: 240ms = 5ms + 235ms
memory: 5876kb,22964kb

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 1338
669 1103 15550889376716751896 550228586431 18446744071021031555 4611686098395951615 5881337269620572332 17558338678465230744 721984109021822079 18446744073697745256 11529215064885099775 13825910133672116306 5971033821762551807 18446720808828319874 866761156661840778 1398029914...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #116:

score: 8.69507
Acceptable Answer
time: 260ms = 16ms + 244ms
memory: 5908kb,22868kb

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 1338
927 700718839 18444144090963509622 3220056140247037856 2377900603251621947 4510626605859152941 1152922270812790463 8880781809583915074 16712134738520826472 9980258249365063422 14411518719489115136 146834751796281343 18446717103547129860 713589093699348978 1170936040747073503 1...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #117:

score: 8.69507
Acceptable Answer
time: 226ms = 10ms + 216ms
memory: 5880kb,22964kb

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 1338
670 18446735277624918008 35184338534431 18428729692379922432 268435200 4503597479888895 18412967074356791295 18410715311050301439 18302629023068454915 18446708889303908383 16140903263517278207 13835062453328674688 2251797674590200 140737354137727 18445618172728968191 172938236...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #118:

score: 8.69507
Acceptable Answer
time: 222ms = 11ms + 211ms
memory: 5988kb,22800kb

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 1338
732 141747024895 18446744073709545913 7515944828128352105 13285618900742963119 15298772189520594640 6902294194526617599 16881196775984070672 6052525637883657791 13859908117853518675 9079256847681230484 8430738557780873215 17652531649990100964 7696308672056787978 35834665 18302...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #119:

score: 8.69507
Acceptable Answer
time: 207ms = 8ms + 199ms
memory: 5856kb,22860kb

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 1338
805 18446742974198972415 9223363240770142207 9223380832939409408 72057525318508544 144115051173772800 4503603922333696 2047 18410715306755362815 18374686479671623695 18446462599000752128 9223363240895971200 2247401771368444 9223363240768045057 18446726481506729999 183026290230...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #120:

score: 8.69507
Acceptable Answer
time: 240ms = 16ms + 224ms
memory: 5832kb,22864kb

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 1338
259 68719411200 1152921504606845952 18014381866483200 9007130535329791 17870282771650707456 2305840818780364800 126100806746227711 18428729688084975615 18410715242330881984 1125898835197950 35183298348031 18428747267369336847 18442240478377144320 4398042316803 1729382366861334...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #121:

score: 8.69507
Acceptable Answer
time: 218ms = 14ms + 204ms
memory: 5796kb,22868kb

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 1338
4 18446744073709535232 288230101273805311 18437736883011190815 18446321861110268031 18446744073575334015 18444492274969607168 18014381329629183 18158654434911977599 13835062453324611583 16140903263519113214 35184338599935 17293823668610138115 18446673705233809152 4362862273232...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #122:

score: 8.69507
Acceptable Answer
time: 241ms = 10ms + 231ms
memory: 5876kb,22848kb

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 1338
558 4095 18374686548391100415 18446744073709518848 576460202549706750 35180077125631 18374695275756257287 17293823668613287935 18374686514031394815 17870283321406128131 18446673705032466432 288230238712627200 2269814246554435584 2251797666203647 18410715311050293255 1844660333...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #123:

score: 8.69507
Acceptable Answer
time: 250ms = 12ms + 238ms
memory: 5916kb,22876kb

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 1338
671 18446744068682924225 389117306732474 13451761979664641614 17798196170517033482 714909830538165282 576460752303441981 2899192260119756790 18287025478299071611 7921831142565884192 1376477259258379824 9556854061338555903 16642263002053083136 5683225145376767 18398223733677361...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #124:

score: 8.69507
Acceptable Answer
time: 240ms = 11ms + 229ms
memory: 5916kb,22956kb

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 1338
236 2147481600 36026597997805566 524287 9223380832947798015 17592169268223 18428729692379938560 4503595333451775 17523466633215 17870282771650836480 36028763732966400 18014389919555583 18320643266963323904 18014381363167200 562812514598911 16285016115132891104 562949418647550 ...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #125:

score: 8.69507
Acceptable Answer
time: 256ms = 16ms + 240ms
memory: 6004kb,22800kb

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 1338
325 293 12991053688346614704 14420526024102787547 13835058046686707714 1152922426100604919 17135506114612397300 11384536908039171836 15862970913273283579 8643533030176997632 83152464882135440 7392869900006178790 18444348633280151552 326651671227 18446744073698816830 2305843009...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #126:

score: 8.69507
Acceptable Answer
time: 234ms = 14ms + 220ms
memory: 5828kb,22968kb

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 1338
538 18446742974198972415 4294963200 71776119329652480 144115050637033464 140737354137663 18445618174876442624 144115050636902400 17179852800 270215994822082560 562949416550911 16140903263517540351 9223380832947273728 9223363240828862400 1055531229773767 18446603336355282944 23...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #127:

score: 8.69507
Acceptable Answer
time: 218ms = 8ms + 210ms
memory: 5848kb,22876kb

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 1338
643 176854 13617196391851764484 88548921143295 18446744007045545984 90519428751425535 18446458718588776448 4674002059534516137 8719760526961278976 15818699483118590 4692193088881839740 18446742645503025808 913113047097146830 17043996209963860078 13870484319929106430 1571926037...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #128:

score: 8.69507
Acceptable Answer
time: 251ms = 8ms + 243ms
memory: 6008kb,22868kb

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 1338
23 18446744056529698815 18158513714737692672 270215994822083071 18437736883044745152 1125898833362943 13835061903573385215 9511602138128842751 18158513972435484672 576460202548068352 1152920679972864000 4611123069010837119 18444492276042825728 9223364340272332800 1830262902307...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).

Test #129:

score: 8.69507
Acceptable Answer
time: 262ms = 6ms + 256ms
memory: 5912kb,22828kb

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 1338
741 268435200 4503591037444095 18302628885650472944 281200099065855 14123288156556228608 36028771249152000 144115119356444671 17293824768123863041 13835062453324480512 4611681620385071103 18446462599001276175 18446462599001274368 36028771249152000 143833713367580416 5764602025...

result:

points 0.72458888020 Accepted using 1338 pigeon(s).