QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#102282#5447. 鸽子hos_lyric67.791382 206ms23244kbC++146.4kb2023-05-02 20:52:002023-05-02 20:52:03

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-05-02 20:52:03]
  • 评测
  • 测评结果:67.791382
  • 用时:206ms
  • 内存:23244kb
  • [2023-05-02 20:52:00]
  • 提交

answer

#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

using namespace std;

using Int = long long;

template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }


#ifndef LIBRA_OTHER_INT128_H_
#define LIBRA_OTHER_INT128_H_

#include <stdio.h>
#include <iostream>

constexpr unsigned __int128 toUInt128(const char *s) {
  unsigned __int128 x = 0;
  for (; *s; ++s) x = x * 10 + (*s - '0');
  return x;
}
constexpr __int128 toInt128(const char *s) {
  if (*s == '-') return -toInt128(s + 1);
  __int128 x = 0;
  for (; *s; ++s) x = x * 10 + (*s - '0');
  return x;
}
unsigned __int128 inUInt128() {
  static char buf[41];
  scanf("%s", buf);
  return toUInt128(buf);
}
__int128 inInt128() {
  static char buf[41];
  scanf("%s", buf);
  return toInt128(buf);
}

void out(unsigned __int128 x) {
  static char buf[41];
  int len = 0;
  do { buf[len++] = '0' + static_cast<int>(x % 10); } while (x /= 10);
  for (int i = len; --i >= 0; ) putchar(buf[i]);
}
void out(__int128 x) {
  if (x < 0) {
    putchar('-');
    out(-static_cast<unsigned __int128>(x));
  } else {
    out(static_cast<unsigned __int128>(x));
  }
}
std::ostream &operator<<(std::ostream &os, unsigned __int128 x) {
  static char buf[41];
  int len = 0;
  do { buf[len++] = '0' + static_cast<int>(x % 10); } while (x /= 10);
  for (int i = len; --i >= 0; ) os << buf[i];
  return os;
}
std::ostream &operator<<(std::ostream &os, __int128 x) {
  if (x < 0) {
    os << '-' << -static_cast<unsigned __int128>(x);
  } else {
    os << static_cast<unsigned __int128>(x);
  }
  return os;
}

#endif  // LIBRA_OTHER_INT128_H_


using U = unsigned __int128;
struct Solver {
  int K, N;
  vector<U> dp;
  Solver(int K_) : K(K_), N(-1), dp{} {
    dp.push_back(1);
    for (int n = 1; ; ++n) {
      dp.push_back(0);
      dp[n] += dp[n - 1];
      if (n >= 2*K+1) dp[n] += dp[n - (2*K+1)];
      if (dp[n - 1] > dp[n]) {
// cerr<<"dp["<<n-1<<"] = "<<dp[n-1]<<", dp["<<n<<"] = "<<dp[n]<<endl;
        N = n;
        break;
      }
    }
  }
  string encode(U x) const {
    string s;
    for (int n = N; n > 0; ) {
      if (x < dp[n - 1]) {
        s += '1';
        n -= 1;
      } else {
        s += string(2*K+1, '0');
        x -= dp[n - 1];
        n -= (2*K+1);
      }
    }
    return s;
  }
  U decode(const string &s) const {
    vector<int> is;
    for (int i = 0; i < N; ++i) if (s[i] == '1') is.push_back(i);
    const int isLen = is.size();
    int pos = 0;
    U x = 0;
    for (int n = 0; n < N; ) {
      if (pos < isLen && is[pos] <= n + K) {
        ++pos;
        n += 1;
      } else {
        x += dp[N - n - 1];
        n += (2*K+1);
      }
    }
    return x;
  }
};


#include <string>

//you may define some global variables, but it does not work if you try to transfer any information from function pigeon_num or function send to function receive through these variables.
//you had better not use the same global variables in function send and in function receive.

/*
Taskid:         The index of the subtask. If it is subtask 2, then Taskid=2.
k:              The time threshold. Suppose the i-th pigeon taking off is the p_i-th one to land. It is guaranteed that abs(i-p_i)<=k.
return value:   The number of pigeons Little E will use.
*/
int pigeon_num(int Taskid, int k){
	//you may do some initialization for SEND function here
	
  const Solver solver(k);
  return solver.N;
  
	return 5;//change this into your code
}

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

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

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

/*
Taskid:         The index of the subtask. If it is subtask 2, then Taskid=2.
k:              The time threshold. Suppose the i-th pigeon taking off is the p_i-th one to land. It is guaranteed that abs(i-p_i)<=k.
msg:			The order of the pigeons landing. Its length is equal to n. msg[i] denotes the color of the (i+1)-th pigeon watched landing by Little F. '0' means black and '1' means white.
return value:	The content of the message. It should be correct.
*/
__uint128_t receive(int Taskid, int k, const std::string &msg){
	const static Init init;
  
  const Solver solver(k);
  return solver.decode(msg);
  
	{//change this into your code
		__uint128_t hi = 5281683694948011861llu;
		__uint128_t lo = 3195384480471073102llu;
		return hi<<64|lo; //this value equals 97429867398990605044182047185430790478
	}
}


详细

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 73ms = 1ms + 72ms
memory: 3964kb,13836kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 594
0 17920037049361006722 1175439643471007231 18445830379546870651 14627808759435489408 6755508476213233 4634174915073801728 7638685785767499808 83126111961882624 14218191803701477899 212991
0 17422392346925876226 5476394745511573887 18443020027826275135 17582902473104747072 114424...

result:

ok Accepted using 594 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 196ms = 17ms + 179ms
memory: 6040kb,23220kb

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 1348
542 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

ok Accepted using 1348 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 65ms = 5ms + 60ms
memory: 4236kb,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 234
203 18446744073709551615 18446744073709551615 18446744073709551615 4295236866071
962 18446744073709551615 18446744073709551615 18446744073709551615 4381069000744
819 18446744073709551615 18446744073709551615 18446744073709551615 4389477957131
336 18446744073709551615 18446744073...

result:

ok Accepted using 234 pigeon(s).

Subtask #4:

score: 7.11845
Acceptable Answer

Test #4:

score: 7.11845
Acceptable Answer
time: 34ms = 8ms + 26ms
memory: 4224kb,6656kb

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 234
70 18446744073709551615 18446744073709551615 18446744073709551615 4398046500004
64 18446744073709551615 18446744073709551615 18446744073709551615 4398046503847
6 18446744073709551615 18446744073709551615 18446744073709551615 4398046510927
927 18446744073709551615 184467440737095...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #5:

score: 7.11845
Acceptable Answer
time: 36ms = 2ms + 34ms
memory: 4224kb,6708kb

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 234
113 1789021278004420880 5510308076729154575 5634549472513935 1420679588863
884 1793507147997888644 10121921527930706446 9228443327203610511 2412354097151
991 2690289859773505797 1348003456197614102 9228456555163899735 1420212501141
219 1793524878169710724 10122134832649624591 33...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #6:

score: 7.11845
Acceptable Answer
time: 54ms = 3ms + 51ms
memory: 4244kb,6660kb

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 234
870 13917867516392013984 13078172347500875780 11034104973447447167 2894810349138
193 2036233777575255563 4731880202738177959 11534884253954147301 4380912785411
441 18446640857064450626 2678491692160846498 15417251990196880874 2949277570693
294 17593592336182444348 10238303386916...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #7:

score: 7.11845
Acceptable Answer
time: 51ms = 3ms + 48ms
memory: 4212kb,6760kb

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 234
983 11539054922351848404 9643514465662032386 12380756382582842626 3990563924618
479 10311693109399459826 333018243927099580 12893858512135294721 1645283878859
632 18025951365559401823 12196875137143990408 11913328877657301086 2371393773525
822 12152973901663602697 12008486412930...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #8:

score: 7.11845
Acceptable Answer
time: 57ms = 6ms + 51ms
memory: 4360kb,6656kb

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 234
83 1801424186938183228 2675472517136645154 632519359088034721 724815657656
80 17911117626672669643 2045619660136128602 9388379330450607040 525892601088
121 18420360639472264180 18415087580056047745 5803878292659765489 305035051712
371 13835146537694834268 13317223229178761225 16...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #9:

score: 7.11845
Acceptable Answer
time: 54ms = 3ms + 51ms
memory: 4244kb,6668kb

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 234
871 18443696221216352977 810747507826354269 6496640568049698293 2153129751632
505 12381978822512361601 5212212878408591530 12367169259344583349 2186339334836
678 4922742069319606340 72693116054056916 5342791467874200554 12100605002
556 3073707941830304395 4821761460974786184 122...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #10:

score: 7.11845
Acceptable Answer
time: 71ms = 6ms + 65ms
memory: 4292kb,6656kb

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 234
300 16874797078397146149 2888225040798188591 18443367768332173381 584140019104
316 4973151017965147403 18393310806493096448 2407992131568003671 4035853683371
220 10312682827925164521 12073027753059902746 1716012170014690976 1099253619045
111 15414132831942824312 3353565509307065...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #11:

score: 7.11845
Acceptable Answer
time: 57ms = 7ms + 50ms
memory: 4232kb,6728kb

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 234
835 16414106193624113407 16929593545850387588 1153211741878879755 516505481375
976 14285023160334095656 7332442140389707397 2238817604884246592 397886554232
95 11685509672892848043 18392887898060875848 5226607706257842165 699721076816
909 12285973691808393889 8796939746064179496...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #12:

score: 7.11845
Acceptable Answer
time: 46ms = 3ms + 43ms
memory: 4188kb,6668kb

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 234
817 5909563887569692767 16927528277715748884 9608426600766990852 2932680229247
315 11610350940764905992 1531305586412758397 5357019850391822881 2105336522885
706 14997080624287228463 4803124474524550145 72901917323272239 4194059199210
604 10483400271733268417 8946206333785859024...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #13:

score: 7.11845
Acceptable Answer
time: 48ms = 1ms + 47ms
memory: 4212kb,6724kb

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 234
469 4801402626633782600 12655167636062113941 4635659747211793733 1466194103105
750 4774982335916548612 3242685195228195345 9216696122939671554 3297113198783
699 3353028981691865770 16742853718656188416 96241249390089633 2108627896912
492 16884368885685037736 5377582367459639272 ...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #14:

score: 7.11845
Acceptable Answer
time: 45ms = 3ms + 42ms
memory: 4248kb,6660kb

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 234
802 3364165419673071240 4653443293073441449 811814702959362645 1121541661055
873 6317011555098295973 8839063129190989968 9809141855098871845 38655051024
923 5915372707755977297 1164897293454608733 24584876276940043 1105589510485
117 18162489588668047552 18345711050013536765 3819...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #15:

score: 7.11845
Acceptable Answer
time: 49ms = 3ms + 46ms
memory: 4240kb,6664kb

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 234
137 12197014446958330602 4900199111154797397 5017609676831150594 2929212436143
411 16765411746969028648 2972394983874997247 12393700934864054946 4210286418433
105 16755724851242599167 12369889861225845935 16736683897577099554 406503510532
641 16744008115982150569 766808276175421...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #16:

score: 7.11845
Acceptable Answer
time: 45ms = 6ms + 39ms
memory: 4296kb,6680kb

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 234
1 17677756779530289290 731105415986692118 11718685678720382251 2767132633344
485 17934464292841848968 9847386669836156943 693770440615916871 2757702989889
142 17677763788916916746 2352401281840058390 11718685266403521835 2767132565515
728 17677756779530289696 9846392711052005398...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #17:

score: 7.11845
Acceptable Answer
time: 46ms = 5ms + 41ms
memory: 4276kb,6684kb

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 234
614 5869686288839735997 1487641998491391999 17666492184928979265 154618964503
764 5004995160384600765 4946406512311539711 17666492184928979265 154618826753
921 5257073587520928893 1376068506256281599 17954722563194619426 77309395457
851 5004995160381455037 1487641998490998783 17...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #18:

score: 7.11845
Acceptable Answer
time: 45ms = 3ms + 42ms
memory: 4224kb,6644kb

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 234
392 5908821763816411325 5019553555885850889 1579304803891445905 193318955199
985 10088129198357995646 1424833334042690058 5040339817880420514 193414299143
242 10088127001446572158 4875435073538622470 2590102198608527460 128991237643
265 10664589952756469886 4883319529148514825 4...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #19:

score: 7.11845
Acceptable Answer
time: 37ms = 5ms + 32ms
memory: 4344kb,6684kb

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 234
581 15060620719546859557 5836704743581376490 4901232580866943017 25042285573
207 15062309569407098917 5836704743782703082 5765923915480506921 25042753493
457 15060620719546834981 5836704846660591594 4901232787025373321 25042366379
209 15062309569407098917 5836704846660788202 490...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #20:

score: 7.11845
Acceptable Answer
time: 37ms = 5ms + 32ms
memory: 4228kb,6712kb

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 234
549 16145195213907494160 6487834351654474432 2022052842912859708 245469499145
334 14994526336973440136 6490086134321285792 3033079058387020122 365797853279
551 14994526336967148704 6486708434600856224 3033079058387020122 365788353887
159 14994526336973440136 6486708434600856224 ...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Test #21:

score: 7.11845
Acceptable Answer
time: 33ms = 0ms + 33ms
memory: 4348kb,6652kb

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 234
447 13840122633225830290 9079285852834643978 8270359922647188032 1095267369040
52 11532308339133349714 13618932075572248594 12297452908714476096 1642902738848
828 11532308339132563282 13618932088457138194 12297452909091963456 1642900523684
189 13840404262708150156 90793056483431...

result:

points 0.59320388350 Accepted using 234 pigeon(s).

Subtask #5:

score: 6.81127
Acceptable Answer

Test #22:

score: 6.81127
Acceptable Answer
time: 52ms = 3ms + 49ms
memory: 4456kb,9148kb

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 318
677 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 4611686018327035903
352 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 4611686018374462616
645 18446744073709551615 18446744073709551615 18446744073709551...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #23:

score: 6.81127
Acceptable Answer
time: 48ms = 2ms + 46ms
memory: 4464kb,9004kb

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 318
173 9007518903610080 12764487738229535552 16036346134100190500 146160380638041680 2993767864240459720
497 2252453690648032 12269286392764339776 15944726028706912848 292039151004094214 253468229861390161
807 36029375928495258 1947268516231037701 11299770939570406240 2487611718799...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #24:

score: 6.81127
Acceptable Answer
time: 55ms = 3ms + 52ms
memory: 4492kb,9072kb

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 318
551 758896600552554497 4472374043223857312 8070316374738631210 10388745623619959201 2635032405429910528
651 3920035214109974594 468318849654260251 4143325842645912588 16574408405567606016 1592936829205352627
556 17897438155505653055 17909760049637510418 2198354761541946356 11828...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #25:

score: 6.81127
Acceptable Answer
time: 67ms = 7ms + 60ms
memory: 4568kb,8936kb

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 318
398 14816731781893247193 11099121351193055449 18446286960509789696 3495221064086601935 4377507637385970535
163 3179543630707742723 4846161274741345695 18217063826018068102 726895252509779552 54994829610216703
815 11179631991445416040 6945025638584393320 3633546194447243360 92965...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #26:

score: 6.81127
Acceptable Answer
time: 69ms = 3ms + 66ms
memory: 4460kb,9012kb

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 318
754 11024565700425481256 6079753996115349956 2341874843902115834 3754911452138390016 361823292157878419
362 2591309290442621561 4023081194689150965 107822649363449096 270218438666877471 3604018789517133382
520 2317217769729966299 2342439147942477828 2494997292735101738 497253695...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #27:

score: 6.81127
Acceptable Answer
time: 54ms = 7ms + 47ms
memory: 4588kb,9016kb

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 318
426 1180365401142419840 879354358378004454 9228019672519003403 4384368792713960230 2428508960565811505
825 11100291302743854470 454195003460209881 14704323199556286898 6936254544087887905 108934333616456216
645 2314849950774591660 298089570484885522 18446700642999754634 17296714...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #28:

score: 6.81127
Acceptable Answer
time: 71ms = 7ms + 64ms
memory: 4476kb,9132kb

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 318
44 11172598564361574416 490864661946745697 9336913386927085648 13836243423712248225 118819629401601
587 2900657909209759856 9115285748777877757 9223866001310089217 13786029728188072448 718429282592617775
511 3235285640257577216 2324420581011587852 908052561756868557 110754755999...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #29:

score: 6.81127
Acceptable Answer
time: 57ms = 7ms + 50ms
memory: 4476kb,9000kb

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 318
83 10962001077133908428 1614190879790695043 461283842890686899 14815929495665533287 4384810040750492684
914 2702165273992628610 1514727892968423688 162134467587016584 1197957502500798720 804045061415208274
311 18212945579221977176 3688451160089400129 9619724002287210494 69628467...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #30:

score: 6.81127
Acceptable Answer
time: 65ms = 4ms + 61ms
memory: 4592kb,8980kb

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 318
717 14508365881603276944 648652487045255681 17014605508239204349 4529068983844864 432999646743363552
530 1756403962923982853 466581475524339395 11295729574215760 7377108129191496704 1801836746009855
391 90072009728360420 13826264076864454546 2454747695307298817 46129928398050715...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #31:

score: 6.81127
Acceptable Answer
time: 60ms = 7ms + 53ms
memory: 4480kb,9036kb

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 318
573 72950397752611061 3909266938290770821 18309177173097120033 13968052283487814728 3933300555550366279
626 16430231522970040372 11480070695764770 5315056802367274579 2384642819979495454 3458875161741623296
270 18439437874965447436 936524561304774144 7794654424915247102 77825750...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #32:

score: 6.81127
Acceptable Answer
time: 58ms = 3ms + 55ms
memory: 4604kb,9004kb

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 318
82 18212979161385913356 14703408351672467481 3459193323900645456 15679310578326753456 3481282616520146840
863 11549473340749167255 18203586485072767031 17366849382764429920 164399344824633408 1765499727941447873
940 2356507629395693464 1873385346744561793 585574067533787184 1388...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #33:

score: 6.81127
Acceptable Answer
time: 59ms = 2ms + 57ms
memory: 4480kb,8996kb

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 318
212 17442705242143728704 2283563228775590560 2956137964213891787 53940142235713414 4162476170285567
697 3228250802106112024 4613501731449497708 17538811767542487819 13723018584864332 219311621624299532
921 2324145810584584179 7437244877976438163 7486898344967634968 7853363515010...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #34:

score: 6.81127
Acceptable Answer
time: 55ms = 3ms + 52ms
memory: 4568kb,9024kb

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 318
409 18445688851784796207 9520892735163353871 9231816286298313984 856255686390623236 4682885538525183
36 18443156917023949158 7503282025844990386 6944972837963907840 1844795933154525956 4681387329029144
636 18443090946326532198 6954405821258228146 6944972837963915520 184479580430...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #35:

score: 6.81127
Acceptable Answer
time: 62ms = 6ms + 56ms
memory: 4604kb,8984kb

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 318
998 15024571447080186368 1630452870481413093 217264588855443530 5188732338527260679 113100246819700704
92 12692270206149031936 1631431436803983080 9522528238862073900 2882459969557350409 1518240951155298560
238 10961902301049726464 3630078107906632909 435893936016326790 13837363...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #36:

score: 6.81127
Acceptable Answer
time: 57ms = 3ms + 54ms
memory: 4456kb,9032kb

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 318
480 16717410471911596293 10160121104293430608 9025318656640262176 4617597748847367169 1333716773240657
812 14699822874752921688 6359087140726572421 11295254777211858946 583287413835238408 1576160657532544
276 17293863527934567429 9691748602029547632 9043333055137169412 922850936...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #37:

score: 6.81127
Acceptable Answer
time: 59ms = 7ms + 52ms
memory: 4532kb,9012kb

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 318
394 14808961894265786400 809734931378027728 230598375770374662 603593126000040475 1145743892889417225
37 16521455430912745504 9294946439169949448 70373143305924610 4836899262170652897 3456653452434735951
843 14808961894014128130 809759541540633793 230532404066082816 752112215565...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #38:

score: 6.81127
Acceptable Answer
time: 66ms = 6ms + 60ms
memory: 4428kb,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 318
398 11551169151543248036 11673339065637275391 12754353579347673472 18393559086199556415 3196731473864413536
515 3605130550393668931 9799835006376346623 15025137557843214473 9189039872718172287 3795710090639575776
555 3754311456156707884 2341880614296227071 11099157578493460507 4...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Test #39:

score: 6.81127
Acceptable Answer
time: 61ms = 6ms + 55ms
memory: 4588kb,9060kb

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 318
260 1182167208209193008 2305880064499549903 14816731971154137216 594479755019632636 3919827564212936807
876 1182167208209193728 2305896557173966543 14816731971154133376 594481816627527676 3919827564076662828
725 1182167208209193728 2305896557173981903 14816731971154133376 540498...

result:

points 0.56760563380 Accepted using 318 pigeon(s).

Subtask #6:

score: 6.74227
Acceptable Answer

Test #40:

score: 6.74227
Acceptable Answer
time: 75ms = 9ms + 66ms
memory: 4944kb,13760kb

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 531
221 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073700704514 98560
533 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 1844674407370...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #41:

score: 6.74227
Acceptable Answer
time: 89ms = 8ms + 81ms
memory: 4952kb,13684kb

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 531
429 279436439211204832 17870283407317008384 6846631418504772638 1134353222283231272 52781927104512 1117472906194911291 16143113285078642688 17870547217083523312 257799
439 279436430629658848 17870283415898554624 2234945399943298078 1134353218528837632 198158387900317952 11174729...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #42:

score: 6.74227
Acceptable Answer
time: 83ms = 3ms + 80ms
memory: 4944kb,13732kb

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 531
647 427982701958397999 9441726279834648064 8935229636128931902 32651629888929917 17294244897535001599 17887998669655908096 1117745782586216416 18149515088267054784 28423
426 502204667593097328 69859103362253023 9011288096375031 13837310808586191098 15393834000135 184467435405967...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #43:

score: 6.74227
Acceptable Answer
time: 90ms = 9ms + 81ms
memory: 5004kb,13780kb

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 531
425 18307026961941356547 16210775853267688960 3747258231861149776 137988843503644 34903910736859073 17726256101777539133 17321120694511091215 18167239488408912112 8001
412 16211270186651618272 18167344992135676384 213991217831085948 1187824642262306544 216205217706934328 3490371...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #44:

score: 6.74227
Acceptable Answer
time: 91ms = 9ms + 82ms
memory: 5004kb,13708kb

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 531
413 427914496935067695 9230690523721792992 502187616567822080 1116922944556109568 1729514206694264834 4398047526919 16888902337626112 252227971505483777 321
754 495404600499634928 35209605513229 17294912186178603008 12683051377636622349 17294908888201814271 17329147807260733315 ...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #45:

score: 6.74227
Acceptable Answer
time: 99ms = 9ms + 90ms
memory: 4948kb,13724kb

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 531
809 310765966757336693 308782457162915235 562924664931664000 67729916576137216 2533274791537664 594828094183833615 13968481867174706480 6809432200283480024 296831
523 18443032466041163784 5692427334659901663 7207039424309973248 162693673237088529 12756446296856854999 72057600235...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #46:

score: 6.74227
Acceptable Answer
time: 94ms = 4ms + 90ms
memory: 5084kb,13708kb

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 531
42 288300770397501441 15852670739896337664 3458905315736551870 1013221963549892611 4615609625410797680 72074653648019707 13839420943194914976 288349126628933664 7648
76 502221593976511936 864826368905969632 18014504062604477967 13691079206649135112 141795218540994400 53934117312...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #47:

score: 6.74227
Acceptable Answer
time: 85ms = 4ms + 81ms
memory: 4916kb,13736kb

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 531
918 18446053962764256016 1762601320774287479 17188394797161565184 2508279578688 4647714748395235344 6955832622412993022 8362630354167155564 5341350370274312105 83455
724 288379926912959665 16449258294122381344 9316496193219461128 13256833171881982 7009855570391994496 35316709395...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #48:

score: 6.74227
Acceptable Answer
time: 111ms = 3ms + 108ms
memory: 5016kb,13700kb

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 531
542 16577752658208231424 3928698938197377 21359147240916993 1810653756326548111 2954366063983544320 874841824399976442 16717397547169096320 6054526757656264416 273
251 8286623486268902720 20710370060041 1308295691885346816 16920049277785604128 4611686056016946438 923463113899999...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #49:

score: 6.74227
Acceptable Answer
time: 87ms = 9ms + 78ms
memory: 5004kb,13724kb

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 531
473 427982635480909692 2305297101925395456 13836887762893013760 274942984160 17870406483552817153 12385946963673150 1083078327993955328 8935343970844608510 32224
8 360356964743513920 540466040631467783 18307026948800509888 1078673953859051360 538182319093595896 40529230383023349...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #50:

score: 6.74227
Acceptable Answer
time: 139ms = 4ms + 135ms
memory: 4960kb,13760kb

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 531
413 567172317517185119 576460219425518592 16141736967690256384 1657342255065203068 2288382215326795392 2231586932549730308 24770622651399199 565202818416248320 97311
543 18444560993884315008 2161791593349546012 15943052948480 6686696858992352 216234356913201392 90612512482417049...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #51:

score: 6.74227
Acceptable Answer
time: 98ms = 9ms + 89ms
memory: 4960kb,13724kb

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 531
957 18429996459530124480 8791701572766552157 2599112457354936383 7136244104251327121 5283030226396611391 17149707931406524416 409422967823417384 4035225258810499085 494212
174 576482040644370432 9547633417750499360 1763616466403383 9138935072203735072 216173344965001216 14510741...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #52:

score: 6.74227
Acceptable Answer
time: 84ms = 4ms + 80ms
memory: 4960kb,13816kb

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 531
386 18392727613048118251 31743243997708610 24605165131665409 14051310032471025833 12948560517194580084 3299608429655 12682163488811463103 16736458134458998913 260096
695 17328725994499727491 17257810830653063184 139615915630034944 279227008015139823 9441760360930476032 172940337...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #53:

score: 6.74227
Acceptable Answer
time: 88ms = 9ms + 79ms
memory: 4948kb,13776kb

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 531
628 432406862251426048 2306687494276514272 414339687184863107 9505973875577455599 9371902879700385152 576707075925671976 72075188373028976 144167971613736972 1921
399 468400474882588032 864691162843185600 864822520614752131 9506958075923268591 9371850154681859072 691835587595475...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #54:

score: 6.74227
Acceptable Answer
time: 96ms = 9ms + 87ms
memory: 4960kb,13704kb

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 531
435 427846220916912129 17329851332817847278 13512723274924032 14637111222743165 9229564486342410256 282601933185679422 9230127969343569935 9232229708971474964 775
202 312369926798186756 1152921493601973506 866951843010449408 81065920798489201 2378533921949220866 1650141562008092...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #55:

score: 6.74227
Acceptable Answer
time: 80ms = 1ms + 79ms
memory: 4964kb,13704kb

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 531
271 14125578114236481535 18446536266064461824 22562193906139438 13403003312551254020 2307426282604864097 549786725698 11033820204831350870 2485081099806439936 468484
715 5048552906825515007 18446585744119431168 1838598463193211 3820319172949181744 289145161773031648 922337207130...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #56:

score: 6.74227
Acceptable Answer
time: 90ms = 9ms + 81ms
memory: 5016kb,13716kb

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 531
5 18376885507226239005 17329851099565260855 13838295146099240961 16071094204046497793 11530868741621416576 2008878381127172343 16326027605180167 13836149870068236412 643
108 18419159546421324320 6196952928884888576 14594030455208419602 126100673631766916 6831978708074520 9236881...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Test #57:

score: 6.74227
Acceptable Answer
time: 97ms = 8ms + 89ms
memory: 5088kb,13724kb

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 531
876 17328725874305859584 105561437958147 4615345397200649184 18446607663402680320 216194774494330895 13694354926732376000 576733434375704504 125555165372742687 131136
602 17328725874305859584 72092786731679775 7881778301828064 18446607661257293832 72081783294246927 1369435492679...

result:

points 0.56185567010 Accepted using 531 pigeon(s).

Subtask #7:

score: 7.15041
Acceptable Answer

Test #58:

score: 7.15041
Acceptable Answer
time: 90ms = 11ms + 79ms
memory: 4972kb,13704kb

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 656
475 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446726618358480896 6913
563 18446744073709551615 18446744073709551615 18446744073709...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #59:

score: 7.15041
Acceptable Answer
time: 83ms = 1ms + 82ms
memory: 4972kb,13776kb

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 656
951 1952732650930175 12238607029168702208 54043269659624973 92359146520010 2462343193527077216 14412671095781696616 297257942876304 1043681064429551664 9223372043638438152 917027091123114 65535
164 71499042131017727 9295112972483436416 54043453227335683 13835146017015609359 1722...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #60:

score: 7.15041
Acceptable Answer
time: 101ms = 9ms + 92ms
memory: 4912kb,13720kb

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 656
245 137359788637421599 281481419210496 279152812380652536 8971742118934528 864698275289104608 31525332666287098 2163839151906752 4647569680137978303 9294312458359930895 9223864072603168799 49215
649 18446445008698475008 13621153726047309827 9546158001883185168 234243585576500293...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #61:

score: 7.15041
Acceptable Answer
time: 98ms = 9ms + 89ms
memory: 4948kb,13700kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 656
963 18140784631451591874 1729418557990699012 15623586925303119879 409656869192220677 1682017495543709677 1945695913955901536 5376207432519254016 3093427623818405887 18412971285500934226 11536534503920369664 8655
750 16158809910962823168 8574853690630340639 13690946990391558147 1...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #62:

score: 7.15041
Acceptable Answer
time: 102ms = 9ms + 93ms
memory: 4976kb,13704kb

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 656
132 18294184739437891778 12384934410344193 11533720879112588352 4982965076215463915 4615492768335147959 16492351194590611789 1487491897576663795 15116510181906710530 9007204352721024 297238180996841476 0
364 9295007425406984192 2233788705121140737 4611958422445752415 11077579932...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #63:

score: 7.15041
Acceptable Answer
time: 108ms = 10ms + 98ms
memory: 4972kb,13756kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 656
521 16483176887468692753 12718165350180981218 13835058420161985349 10520408946217590784 7040251499088069637 7642618480507823476 13318272202439925920 4622947940759119535 16874987804772860701 9223362506324444432 674
532 18445675908632112449 1868290338335260672 4990624586582208513 ...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #64:

score: 7.15041
Acceptable Answer
time: 100ms = 5ms + 95ms
memory: 5088kb,13728kb

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 656
134 18446744073705389888 45036507375001600 9185091568804040680 3940679738785280 14843438432303 13835334582472278048 15745075763871751 4611686022453923840 4179347601037983856 8937371743027213 64519
148 18303749288040988674 2181433149362174 286963744930545280 4105989717507 1434115...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #65:

score: 7.15041
Acceptable Answer
time: 101ms = 10ms + 91ms
memory: 5084kb,13708kb

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 656
100 17762270597059194651 378918095077379976 9229986380980945201 18443860233687875976 13801356134252165760 1152956697611141120 1603600325725519881 4900200378894647296 5856369945890271240 1981742165750972416 708
68 9295007426949939231 13799308551328894975 18437806899605765120 5719...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #66:

score: 7.15041
Acceptable Answer
time: 102ms = 13ms + 89ms
memory: 4948kb,13812kb

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 656
533 17302794310189531136 17005607569034836960 35745140182220272 9007471985225728 2015360968523119623 17852269883895641600 574173770248356287 9295359809689751535 13835128428254200832 252203760842964864 65152
217 6989704561546468948 1073758216 39582810650240 4620737189423157324 65...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #67:

score: 7.15041
Acceptable Answer
time: 110ms = 10ms + 100ms
memory: 4952kb,13808kb

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 656
924 108087353129566288 13510833243418654 285978619287830533 17293883042300428315 16141040152744034367 492584162049968 14636764287254528 8070463726520639480 1147292056343814144 3963171790959802368 7936
24 398568860732899616 1126450218368560 13925134583451355164 937690791955665100...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #68:

score: 7.15041
Acceptable Answer
time: 100ms = 10ms + 90ms
memory: 4972kb,13704kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 656
573 99079569760288768 17870318162182406171 16141040702489231875 18149507037321555968 3458795025284857859 13258629738588537086 252481679719923966 2240804760322271 9223372045444833280 6917581666768388099 63503
709 107523471134819323 16141006343816310784 4503600658162647135 9223926...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #69:

score: 7.15041
Acceptable Answer
time: 97ms = 4ms + 93ms
memory: 4956kb,13700kb

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 656
583 107807081010561055 9223600736076562559 9079265576154038279 9223864068341432323 16122887473441267712 3449757726884741244 573083086676295616 9151315533738991616 4467574128919970048 72057594121814782 1023
522 18303750353136367616 1693354559419581185 18300377218930444256 2727472...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #70:

score: 7.15041
Acceptable Answer
time: 101ms = 9ms + 92ms
memory: 4964kb,13724kb

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 656
476 72057594575953297 3571741830560059392 2927938029555355272 10952755214809174020 366888052481005 4631492827048576926 1152926624208431124 2862675320774591104 1442566248150859780 8761459767019715 61440
907 2305843284091927216 4848276829582037028 2882871143876989195 2893570608317...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #71:

score: 7.15041
Acceptable Answer
time: 98ms = 7ms + 91ms
memory: 4956kb,13764kb

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 656
394 17645148675044803173 11049581700790616235 10540685384080164868 794126837369089 4611686018480046091 9349490418461443329 13837318738195720488 3323947637937960447 17875912823088550375 1693423832347566080 8328
890 15512655143325417476 3393497581177800715 14170026059403636768 477...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #72:

score: 7.15041
Acceptable Answer
time: 101ms = 9ms + 92ms
memory: 4952kb,13696kb

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 656
321 13870945023358384128 2161731085314813952 4458563974697582600 119990665120 13511039400542222 9223651312866951548 4358464260277632 130023424 18015326224449027 142989319307574272 3712
554 17637519303659029800 10092566870978254044 4611973819901427720 844426462765952 377266491309...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #73:

score: 7.15041
Acceptable Answer
time: 96ms = 9ms + 87ms
memory: 4956kb,13724kb

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 656
298 17302785788425011200 45036269020645366 1829594327949312 3458832408663556599 17293892525538344960 9223864072601092028 4081392531054592 6899514629131600128 265712583640482808 4151759127715840 31616
438 17302792385092124704 822502754295 9223372052424032256 12682204170665328647 ...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #74:

score: 7.15041
Acceptable Answer
time: 105ms = 10ms + 95ms
memory: 4916kb,13724kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
6 7 10000 656
530 142971697052483839 18160752303432798207 143517055293852664 8162774324805635 4611932309971533824 1441169334431972864 142997947892105236 3670030 18303737329719721856 107804932958061440 1
843 142980492608635135 18160752303432798207 143411508620037112 7881316528013312 5409598550...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Test #75:

score: 7.15041
Acceptable Answer
time: 118ms = 11ms + 107ms
memory: 4908kb,13732kb

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 656
560 142426370360737792 2233786445969752075 1046735604383745 16104874183032799232 16122992492890031008 31525332615957376 67554268206399424 9186217400058511365 9223649114051313726 13835338422224160759 61471
426 11968351521082720560 1224979382138963984 7350158932897345360 130965032...

result:

points 0.59586776860 Accepted using 656 pigeon(s).

Subtask #8:

score: 7.63312
Acceptable Answer

Test #76:

score: 7.63312
Acceptable Answer
time: 112ms = 5ms + 107ms
memory: 4916kb,13820kb

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 829
505 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709289727 2013109035580000255
25...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #77:

score: 7.63312
Acceptable Answer
time: 139ms = 9ms + 130ms
memory: 5076kb,13712kb

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 829
938 3584 2249600792510208 1125900971671552 8917127275078483968 5368709624 140187732606976 1078612112897998848 9007199297690668032 8866461883826176 31981568 8070451060528910271 17293823664319366143 2247406059520511
293 2146304 674401739704576 3486174256470447128 1387223091562466...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #78:

score: 7.63312
Acceptable Answer
time: 157ms = 11ms + 146ms
memory: 4972kb,13816kb

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 829
154 10159297897767048 12357174250687168488 2708172598199455032 2387619410103791863 9177364347389840386 643192827323712 1154056513068302336 10537 12970111015665549312 16177494185874756583 18445174185920692224 4700255336726696 80857134796291
127 18446744073709539602 2195616917005...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #79:

score: 7.63312
Acceptable Answer
time: 121ms = 13ms + 108ms
memory: 4964kb,13732kb

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 829
93 18446097835807676942 1152922066335324737 105553119939632 1161928711999732897 5210878320010895619 3241221740218552002 1026854804804075520 293162854910136323 7927610797994278842 16141465189122850848 2805742547808297992 288756698116030732 175921931956159
271 16818129883627527 4...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #80:

score: 7.63312
Acceptable Answer
time: 127ms = 8ms + 119ms
memory: 5000kb,13700kb

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 829
198 18346612730374391821 11047721999274082377 295619096979177992 16431526314412347677 17106783271712204848 875950205511930656 7291997072071327744 288306242454067202 2314850245344755774 4035164571795437761 10376575304805130298 3170534136665931776 19841239260245583
674 1844551811...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #81:

score: 7.63312
Acceptable Answer
time: 117ms = 6ms + 111ms
memory: 5108kb,13708kb

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 829
500 18245232763756087296 2603794309741623360 1327736599493334413 16140936249941753857 20582931 4690463825355079695 15996416492057068168 576888525674217856 15329680976562880537 1009650878975623254 1023021107394969600 182404581836199168 692666114431320063
921 4903596024161633468 ...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #82:

score: 7.63312
Acceptable Answer
time: 120ms = 6ms + 114ms
memory: 4976kb,13740kb

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 829
760 18028543046236454934 8414412955941147427 6057482236581984254 2472535663548630528 114161532778595328 13871405712820670473 8615659792 1442392476474621856 2307181117666636544 1584985586341555013 12907408986087620624 18015224016674882 126393332690864413
296 15929620047182899200...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #83:

score: 7.63312
Acceptable Answer
time: 126ms = 7ms + 119ms
memory: 4968kb,13720kb

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 829
535 7827256154521865496 1369094286720635552 163376590611555347 13511623516889088 4873389609058304 3988146106496 4684363187267567615 18442724267850277894 9413825085964943426 1193453901420953600 2882330974446978565 6926536279509172480 4398048473983
742 11259001213812736 922337561...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #84:

score: 7.63312
Acceptable Answer
time: 122ms = 7ms + 115ms
memory: 4924kb,13732kb

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 829
498 18446669811582360826 15213167859955138560 150846200692604928 11673576591687885184 4847298166120258675 13834374744374646274 9077569072791552 600333357154324 1195483049647738956 12459577815496919235 18446729578498150399 17828772402494966120 2305842995072608542
44 184296004884...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #85:

score: 7.63312
Acceptable Answer
time: 115ms = 3ms + 112ms
memory: 4996kb,13736kb

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 829
106 17992408281055168 1152920955387633664 107523441638242305 16143151215042559936 1152917110853074944 2013109033434613496 140462342013183 8486855409088 1103909675335680 13835059975132549087 9223380824357867512 32985350913024 1117103822143519
783 17979145417976832 89368305441177...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #86:

score: 7.63312
Acceptable Answer
time: 137ms = 9ms + 128ms
memory: 4932kb,13696kb

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 829
108 18446744073708332448 79807 17822432612612867609 16988299198626140312 9511603512922423039 11731886959262094336 3010842178344189951 18182790914299658752 1279110394840876066 13379224723804660007 15506887617483368232 42602048037847044 24213445066883645
22 17294947644375941120 2...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #87:

score: 7.63312
Acceptable Answer
time: 121ms = 11ms + 110ms
memory: 5020kb,13840kb

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 829
762 628541884357271588 1261008200606416872 17293822569111093248 9223601658777319424 13912370761322602828 740291695761064512 10377417717287240031 18446425490215419968 14848256 72771177084918117 18351940892427813381 18000500855011308032 1747407376195785549
674 1413062973374385356...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #88:

score: 7.63312
Acceptable Answer
time: 113ms = 12ms + 101ms
memory: 4960kb,13704kb

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 829
990 10822502444056134656 3377699720528000 144115188085191446 9369747820837372480 237631950684166 15115769159051431937 10543173033915318288 90111 17420046962433982463 16003544747000594432 73182215622 4503745656267267 1142667597842239
834 10896461436063859732 16384 14411518808036...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #89:

score: 7.63312
Acceptable Answer
time: 124ms = 11ms + 113ms
memory: 4956kb,13696kb

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 829
885 16325549118980123 18374755749977387008 71776119192289280 14987980315803312120 72127926274885615 9223380815499493599 9223379733436674048 18014415639019520 105278238605280 518969495912448 4539346949680922624 2197756652432654347 1729382780896282625
761 4625337838806794240 1385...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #90:

score: 7.63312
Acceptable Answer
time: 128ms = 12ms + 116ms
memory: 5080kb,13744kb

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 829
948 1880675057434772411 1338780751243743891 2307705863508494069 14456556178252298991 2670797306759251031 9529859822386675716 1259316950128388142 13979867584948486792 283808217507857 4630289756243625732 564118217653613 1155520612655955967 2305034185267494921
34 13069446187350047...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #91:

score: 7.63312
Acceptable Answer
time: 120ms = 9ms + 111ms
memory: 5056kb,13716kb

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 829
756 18410016021657723017 4903870247253379142 1731969212887087035 8295912985226978186 10538423130372388844 9957757018780366869 1156144307079872755 6907554286910242944 7504193247850938882 97864163809853506 751256712840659096 9223372107386192541 1414983538378284957
279 18435276242...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #92:

score: 7.63312
Acceptable Answer
time: 117ms = 10ms + 107ms
memory: 4952kb,13836kb

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 829
512 146366987908347881 2306975534117653252 5405964422166401160 1157498326590292087 18446744073704952064 575334851970941552 3026419461511970816 146652313847070719 16717366214846316968 36046938969232748 10709584573441205249 596824809308950528 11329368047943679
100 230612448423388...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Test #93:

score: 7.63312
Acceptable Answer
time: 112ms = 11ms + 101ms
memory: 4956kb,13712kb

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 829
686 18446744063543085056 3487616945033904480 10540604524622513681 235315434181287935 17187075799778328575 18446727392056573953 6126804245410942976 13837391236162908095 10664576728666284265 288230925907529963 11933202143831408640 1153484472948535552 76879298255389824
836 1844674...

result:

points 0.63609314360 Accepted using 829 pigeon(s).

Subtask #9:

score: 8.01668
Acceptable Answer

Test #94:

score: 8.01668
Acceptable Answer
time: 127ms = 3ms + 124ms
memory: 5920kb,23108kb

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 1045
223 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #95:

score: 8.01668
Acceptable Answer
time: 124ms = 4ms + 120ms
memory: 5916kb,23136kb

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 1045
139 11830 11728662130314969408 4961696685995597824 1658338690629632 1254667391116 1454737516152602159 14267409473407549080 6931045633532559392 13836755735595712518 7215056908493785088 2022151554521807871 8903707450047725568 847529950990835799 145619593777768456 323804255200739...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #96:

score: 8.01668
Acceptable Answer
time: 136ms = 10ms + 126ms
memory: 5592kb,23160kb

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 1045
568 613193618849097288 62523453969793296 288300747110887761 10034169537552887368 4960760808562835456 36032099865755648 2529765384200 9584926644487335937 757680085476050006 12363501397802009023 18446743388259641668 3319188109744144841 15514900716244180608 895488755165560832 699...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #97:

score: 8.01668
Acceptable Answer
time: 141ms = 11ms + 130ms
memory: 5580kb,23108kb

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 1045
336 1088516511505376 1099444523007 18446462615912185728 8744553414687 17293822572995018752 9151032967841185648 1078036791311 18158513698061139968 562400197609471 16140901067717017603 17870318504167604224 17293822572189712384 9214364287877775359 18446744039351910335 68702698496...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #98:

score: 8.01668
Acceptable Answer
time: 149ms = 7ms + 142ms
memory: 5644kb,23212kb

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 1045
60 18437737424191750144 108084192033644464 549755813888 24576 140737488747520 52776558165376 8452495638783 17289318969482674176 63049845060923392 4611510096567001088 492581209309180 274869387264 9004991641550878 34357641343 18444492411330363392 15762598698942336 16383
784 1844...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #99:

score: 8.01668
Acceptable Answer
time: 130ms = 9ms + 121ms
memory: 5712kb,23244kb

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 1045
214 18290587035915130881 54044432848192000 432557495907555438 14062280934111060817 4719772409486024746 10380801539136160306 149744687610089802 9012043978003201 4611694838276947968 6481920997673928704 13946205693641188 14369016086102540480 9831961077318016636 108407273217539451...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #100:

score: 8.01668
Acceptable Answer
time: 162ms = 9ms + 153ms
memory: 5652kb,23116kb

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 1045
359 562915595780095 18446744069414846455 18428729675267176447 16141033006428028928 422212465197056 8972014882717180 272713646080 1132655306291806208 4503324749464575 13835058061187743745 13835058061456179200 18446110755012214640 1082329661440 144106391982841852 272663314432 33...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #101:

score: 8.01668
Acceptable Answer
time: 147ms = 14ms + 133ms
memory: 5580kb,23120kb

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 1045
262 1090713387401152 72055326295195839 9223372071213203456 13508599858863103 17293892937830106111 17582052945254416384 18445618242522185664 72053195991422912 3846143213575 18442099736594268160 914793674539008 562812514468351 16140619589519671296 8444249303154176 35180075024384...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #102:

score: 8.01668
Acceptable Answer
time: 148ms = 5ms + 143ms
memory: 5616kb,23096kb

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 1045
765 1155182101587427899 11594457935765307392 162129620945076240 43369762960 4720352964508712968 2377900603251752960 36028809923742711 18437510806705992195 7638688172553164418 576461336755634240 9250393710326710336 1880137982566792 1152921788755990445 10665686970980080048 92413...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #103:

score: 8.01668
Acceptable Answer
time: 154ms = 8ms + 146ms
memory: 5604kb,23244kb

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 1045
765 982963395239423 17870318505776119935 18373560579768974848 17317308137727 9223372071210319616 288230376134935551 17582052946326061056 54043195541028864 143552238124236800 2172634976512000 140703126519872 72055394880462336 576425567931367424 1055526867697679 1830037708582813...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #104:

score: 8.01668
Acceptable Answer
time: 156ms = 14ms + 142ms
memory: 5640kb,23112kb

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 1045
508 1125075273122814 16140901064495857679 18086456103784152832 216177180026068992 8646946467715481600 6341068276142964736 15852670689415786496 281457796841487 9223372062490361856 9151279258444890095 18374686479931669504 30786325594088 506806140959 25635586048 92211158389945958...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #105:

score: 8.01668
Acceptable Answer
time: 148ms = 14ms + 134ms
memory: 5616kb,23104kb

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 1045
917 1124800395215360 30786325585408 4398046524928 34633542533123 17293259619151118320 1099377393664 1125622881452039 17798225727502385152 2251387496825343 17852268922951172096 247697979505377280 283726776541020160 2238605674168255 17293822573196345344 4395513236380712960 40352...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #106:

score: 8.01668
Acceptable Answer
time: 151ms = 16ms + 135ms
memory: 5980kb,23104kb

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 1045
573 5629551073820752 4611686018427392012 901288528149809280 10736079948600120104 1603373828468118034 10552919089347870720 14137924030711201392 6345582651122801312 9430873005120028672 5191564747849517186 198167179698113024 613618536835692449 3512807718089916417 3602879701975091...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #107:

score: 8.01668
Acceptable Answer
time: 149ms = 14ms + 135ms
memory: 6028kb,23116kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
8 14 10000 1045
478 18446744073613152960 5784878669293944834 11601363109365743616 4582764486135810 145417012141621248 27352551385018510 797213590905028628 4503599627370528 10421471396804595711 18436534284685672448 468374362387652608 24757941443662868 9258236953841370336 8589944293 72092984712...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #108:

score: 8.01668
Acceptable Answer
time: 136ms = 10ms + 126ms
memory: 5164kb,23108kb

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 1045
115 14745911090655266824 7071777318100337121 150196464023240704 2251799813810002 9218176020071450712 72057594174259716 3467771713076002816 7494574720134676608 322156940511510 9552702157653803310 477522306579562502 4683831857609965632 2305843561715770496 11817445422222288896 59...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #109:

score: 8.01668
Acceptable Answer
time: 137ms = 9ms + 128ms
memory: 5944kb,23128kb

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 1045
201 16141041797622136832 4611334174706753528 547071459329 16138649264690552828 274852741120 144115188606435328 69805794232630976 4329310257152 1152886318087274503 18442239374570557439 12682136554970019840 123110942572648 498216206367 18374686479940026368 914793674432512 545323...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #110:

score: 8.01668
Acceptable Answer
time: 129ms = 6ms + 123ms
memory: 6088kb,23108kb

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 1045
670 976366325497776 549688705024 4604930618990264320 18013161558900991 16140901067717083138 95 18410717475713843192 9006922229350407 16139775164593199104 139088220914688 34565896798463 17175674880 287944503128489984 277076930215168 15393028579320 9006920081866767 2064384
317 9...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Test #111:

score: 8.01668
Acceptable Answer
time: 137ms = 13ms + 124ms
memory: 5188kb,23200kb

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 1045
803 11602082447600124041 16073588434362433536 114489995397431296 576742227280546650 328833141542277120 3848569790476 2305856246534156428 9234252821438681678 18353444467014075983 10383050957274366976 72057594593691424 2251799815258117 9223372041429844819 864691128723572800 7036...

result:

points 0.66805696850 Accepted using 1045 pigeon(s).

Subtask #10:

score: 8.31919
Acceptable Answer

Test #112:

score: 8.31919
Acceptable Answer
time: 171ms = 17ms + 154ms
memory: 5912kb,23108kb

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 1348
200 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615 ...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #113:

score: 8.31919
Acceptable Answer
time: 191ms = 13ms + 178ms
memory: 6604kb,23124kb

input:

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

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
9 20 10000 1348
238 39024819735 15296232318747646463 8070450523286372384 119488489850210441 5018923523828097042 10085266037829337180 1193599105507708218 9844680779955778784 685280947126022809 11595223335437533216 577587058876377983 18446744053732378889 2595973361055236098 2463481841975302 922...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #114:

score: 8.31919
Acceptable Answer
time: 185ms = 15ms + 170ms
memory: 5820kb,23112kb

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 1348
934 18134924363324015684 1153238166171418628 14465850770962612256 580965520749105255 1066650583886348591 637731321363341527 8294100414630988425 18120404298188718080 35720022212 10988818275223207953 3767920510730502143 18445474893830947234 9223372036855659985 111394890264346624...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #115:

score: 8.31919
Acceptable Answer
time: 174ms = 8ms + 166ms
memory: 5896kb,23224kb

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 1348
978 6207091623853163522 18143015600148 72057594038059008 563242827033202 1757284673412984833 140943655437312 9492354671504330753 1729391225608340939 10779687872576381026 14024961752261822889 10918418882091810816 37155255272103936 5237019460780572672 576742364987574316 18310199...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #116:

score: 8.31919
Acceptable Answer
time: 176ms = 12ms + 164ms
memory: 5820kb,23236kb

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 1348
451 15393162788864 9223363240770142207 18302629023072550912 515396042752 549680316416 63 16104872267476921856 7482638336 562945658454016 33776997205279740 31457280 12644383719424 8642407684923984895 16140901064497913856 34359738368 576390383559245855 9223372036856872960 131254...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #117:

score: 8.31919
Acceptable Answer
time: 168ms = 5ms + 163ms
memory: 5880kb,23104kb

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 1348
28 17591112302592 2251799813685760 7918845952 1548112371908671 18442240474082185215 13833932155375322048 486539264 126 18446726481540251648 576460202547609600 2233785415175831551 6917529027642130176 2143289344 70368710590464 479962595328 8444249301320056 132120574 351838352184...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #118:

score: 8.31919
Acceptable Answer
time: 174ms = 17ms + 157ms
memory: 5764kb,23044kb

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 1348
556 8823675813888 8377829595164971072 667410067351404543 16817768550785157664 9511919076683808768 2603643677450248 945901061644879888 1157642880559451648 562949986975755 12786478005127328107 1008823908784144384 14987979560703885952 378266368005733 3130319929384435745 281477046...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #119:

score: 8.31919
Acceptable Answer
time: 161ms = 11ms + 150ms
memory: 5888kb,23136kb

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 1348
712 18446744073626944036 2504001394965610912 649081572248661233 108140267126784000 18219885674788632 1131250133120591394 10430480845778993900 9223513136198328384 12162432087365521408 1888411497792081923 14535371860654178322 9403185271435051524 283675342809459 17051848710239034...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #120:

score: 8.31919
Acceptable Answer
time: 181ms = 17ms + 164ms
memory: 5948kb,23100kb

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 1348
318 567348067041280 512 4443997330927 18446742682543102118 1315930840965875301 2044769477928681504 2322185754898442 1089926124093308928 578994027093820548 18158584293164581128 279310270659 1909546395073986720 1459175075977650200 3808709654465347648 1085672653137642496 11259032...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #121:

score: 8.31919
Acceptable Answer
time: 191ms = 16ms + 175ms
memory: 5836kb,23112kb

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 1348
311 7079959470919846075 17870283321301195804 4647714815446355983 522196898500855817 9511672816110419968 134250496 432737709203222070 10666775804292099581 15757828471646126144 4503752518164480 1171516445524300056 2841306298237158144 45106575538919592 36315770239042598 273428338...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #122:

score: 8.31919
Acceptable Answer
time: 164ms = 11ms + 153ms
memory: 5816kb,23216kb

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 1348
973 13191992049664 35940836088741901 18446673704965374015 18442239924326367232 6881500230622117888 240484614144 562932773535744 274873712640 30786258468864 562949953421439 18444492276042825728 9223367638271393792 9007061748678656 1090715501199391 17592177655800 140737484161027...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #123:

score: 8.31919
Acceptable Answer
time: 185ms = 10ms + 175ms
memory: 5820kb,23216kb

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 1348
562 17699724088408801280 9225624395014209601 1242680474397950744 2598612444251193346 557322412 16217484265573580840 1225264971667999025 324204385004455040 2551836159655669824 73765687499915268 10520408733838182467 5080906523162779648 3748124381596876832 13851529065970800640 15...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #124:

score: 8.31919
Acceptable Answer
time: 181ms = 0ms + 181ms
memory: 5744kb,23116kb

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 1348
574 1531245176344018944 2100 4513113265161216 563307673485505 12682137100431131265 4792983734974414976 138097857844 2091378868378174406 14123323642414629472 32784 144118314913791298 3216701531487238784 5985283904775389200 892624503295918088 537036824 4612249244921905290 518829...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #125:

score: 8.31919
Acceptable Answer
time: 169ms = 10ms + 159ms
memory: 5388kb,23136kb

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 1348
732 13196975096065 6070869924241211392 526336 24928172049429502 17991521525399853312 4560501502189896 10088072511186011392 1225138527835460610 12315798629462311236 1495207170914910208 4619002578176 13840739691699374336 382384374345400400 2310507137551384584 2324138952363114496...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #126:

score: 8.31919
Acceptable Answer
time: 183ms = 13ms + 170ms
memory: 6028kb,23116kb

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 1348
812 13835062453326573568 68710957056 0 8384511 18374686547854230015 18442238275058925569 18374686479671652320 536346112 8522825728 281474439839744 9007164760784896 2181431069507592 125698048 2199004381184 32968168964096 287069291872780318 16777199 18446462599001274368 36028779...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #127:

score: 8.31919
Acceptable Answer
time: 160ms = 7ms + 153ms
memory: 5472kb,23240kb

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 1348
148 17316234395648 18014355559809024 142989288169013759 18406211677063218176 8589934592 54043178348592128 18014389919539200 120191975424 1116554058006528 8574853690513489664 0 2048 8589934592 139470850960130175 13258597302978985984 240518103040 1095149551616 1125761394147328 8...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #128:

score: 8.31919
Acceptable Answer
time: 172ms = 10ms + 162ms
memory: 5672kb,23104kb

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 1348
353 8108278284918437376 47868488635729473 2398591236822270992 9804350682453510148 1297071912356389308 3499972036378295559 16098107924206850560 9223372037966279654 146173611307598120 15222465810935545455 10398833873540654164 11922701678937145344 4718118622611474 118174699807068...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).

Test #129:

score: 8.31919
Acceptable Answer
time: 206ms = 15ms + 191ms
memory: 5532kb,23108kb

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 1348
784 17454747090944 576460752303669232 226492416 65970697666563 16140901064496840702 33548288 34358689760 536838143 17870283321406652414 17293822569103745023 18302628885633802240 0 540431955284467712 60129542144 144112851613646848 2161164871184416768 4294963168 268435200 422212...

result:

points 0.69326546590 Accepted using 1348 pigeon(s).