QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#106758#5447. 鸽子hos_lyric100 ✓240ms33944kbC++149.1kb2023-05-19 04:33:242023-05-19 04:33:25

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-19 04:33:25]
  • 评测
  • 测评结果:100
  • 用时:240ms
  • 内存:33944kb
  • [2023-05-19 04:33:24]
  • 提交

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; }


using U = unsigned __int128;
using Double = long double;
struct Solver {
  /*
    0^(not multiple of (2K+1)) ==> next 1^(>=2K+1)
    1^(not multiple of (2K+1)) ==> next 0^(>=3K+1)
    
    state
    0: empty
    [   1,  2K+1]: 0^1, ..., 0^(2K+1)
    [2K+2,  7K+2]: 0^1, ..., 0^(5K+1) (need >=3K+1)
    [7K+3,  9K+3]: 1^1, ..., 1^(2K+1)
    [9K+4, 13K+4]: 1^1, ..., 1^(4K+1) (need >=2K+1)
  */
  int K, N, V;
  inline int id0 (int k) { return (    0) + k; }
  inline int id00(int k) { return (2*K+1) + k; }
  inline int id1 (int k) { return (7*K+2) + k; }
  inline int id11(int k) { return (9*K+3) + k; }
  vector<vector<int>> trans;
  vector<vector<U>> dp;
  vector<vector<Double>> DP;
  Solver() : K(-1), N(-1), V(-1) {}
  explicit Solver(int K_) : K(K_), N(-1), V(-1) {
    V = 13*K+5;
    trans.assign(V, vector<int>(2, -2));
    trans[0][0] = id0(1);
    trans[0][1] = id1(1);
    for (int k = 1; k <= 2*K+1; ++k) {
      trans[id0(k)][0] = id0((k == 2*K+1) ? 1 : (k + 1));
      trans[id0(k)][1] = (k % (2*K+1) != 0) ? id11(1) : id1(1);
    }
    for (int k = 1; k <= 5*K+1; ++k) {
      trans[id00(k)][0] = id00((k == 5*K+1) ? (3*K+1) : (k + 1));
      trans[id00(k)][1] = (k >= 3*K+1) ? ((k % (2*K+1) != 0) ? id11(1) : id1(1)) : -1;
    }
    for (int k = 1; k <= 2*K+1; ++k) {
      trans[id1(k)][0] = (k % (2*K+1) != 0) ? id00(1) : id0(1);
      trans[id1(k)][1] = id1((k == 2*K+1) ? 1 : (k + 1));
    }
    for (int k = 1; k <= 4*K+1; ++k) {
      trans[id11(k)][0] = (k >= 2*K+1) ? ((k % (2*K+1) != 0) ? id00(1) : id0(1)) : -1;
      trans[id11(k)][1] = id11((k == 4*K+1) ? (2*K+1) : (k + 1));
    }
    dp.assign(1, vector<U>(V, 0));
    DP.assign(1, vector<Double>(V, 0));
    for (int u = 0; u < V; ++u) if (~trans[u][0] && ~trans[u][1]) {
      dp[0][u] = 1;
      DP[0][u] = 1;
    }
    for (int n = 1; ; ++n) {
      dp.emplace_back(V, 0);
      DP.emplace_back(V, 0);
      for (int u = 0; u < V; ++u) {
        for (int a = 0; a < 2; ++a) {
          const int v = trans[u][a];
          if (~v) {
            dp[n][u] += dp[n - 1][v];
            DP[n][u] += DP[n - 1][v];
          }
        }
      }
      const Double l = log(DP[n][0]) / log(2.0L);
      if (l >= 128) {
        N = n;
// cerr<<"K = "<<K<<": N = "<<N<<", log_2(DP[N][0]) = "<<l<<"; "<<(log(DP[N-1][trans[0][0]])/log(2.0L))<<" "<<(log(DP[N-1][trans[0][1]])/log(2.0L))<<endl;
        return;
      }
    }
  }
  string encode(U x) const {
    string s(N, '?');
    {
      int u = 0;
      for (int i = 0; i < N; ++i) {
        for (int a = 0; a < 2; ++a) {
          const int v = trans[u][a];
          if (~v) {
            if (x < dp[N - 1 - i][v]) {
              s[i] = '0' + a;
              u = v;
              break;
            } else {
              x -= dp[N - 1 - i][v];
            }
          }
        }
        assert(s[i] != '?');
      }
    }
// cerr<<s<<endl;
    return s;
  }
  U decode(const string &s) const {
    vector<int> iss[2];
    for (int i = 0; i < N; ++i) {
      iss[s[i] - '0'].push_back(i);
    }
    string t;
    int poss[2] = {};
    for (; poss[0] < (int)iss[0].size() || poss[1] < (int)iss[1].size(); ) {
      const int now = t.size();
      // next: 0^rs[0] or 1^rs[1]
      int rs[2] = {};
      for (int a = 0; a < 2; ++a) {
        for (; rs[a] < 2*K+1 &&
               poss[a] + rs[a] < (int)iss[a].size() &&
               iss[a][poss[a] + rs[a]] <= now + rs[a] + K; ++rs[a]) {}
      }
      int am = -1;
      assert(!(rs[0] == 0 && rs[1] == 0));
      if (rs[0] == 0) {
        am = 1;
      } else if (rs[1] == 0) {
        am = 0;
      } else {
        assert(!(rs[0] == 2*K+1 && rs[1] == 2*K+1));
        if (rs[0] == 2*K+1) {
          am = 1;
        } else if (rs[1] == 2*K+1) {
          am = 0;
        } else {
          if (rs[0] <= K) {
            /*
              consider i := (pos of rs[1]-th 1)
              if 0^rs[0] 1^(>=2K+1):
                i <= rs[0] + rs[1] + K
              if 1^rs[1] 0^(>=3K+1) 1:
                i >= rs[1] + 2K+1
            */
            const int i = (poss[1] + rs[1] < (int)iss[1].size()) ? (iss[1][poss[1] + rs[1]] - now) : (4*K+2);
            if (i <= rs[0] + rs[1] + K) {
              am = 0;
            } else if (i >= rs[1] + 2*K+1) {
              am = 1;
            } else {
              assert(false);
            }
          } else if (rs[1] <= K) {
            /*
              consider first (rs[0] + K+1) chars
              (# of 0) = rs[0]  (by def. of rs[0])
              (# of 1) = K+1
              1^rs[1] 0^(>=3K+1) 1: impossible
            */
            am = 0;
          } else {
            am = (iss[0][poss[0]] < iss[1][poss[0]]) ? 0 : 1;
          }
        }
      }
      assert(~am);
      t += string(rs[am], '0' + am);
      poss[am] += rs[am];
    }
// cerr<<"t =         "<<t<<endl;
    assert((int)t.size() == N);
    U x = 0;
    {
      int u = 0;
      for (int i = 0; i < N; ++i) {
        if (t[i] == '0') {
          u = trans[u][0];
        } else {
          if (~trans[u][0]) {
            x += dp[N - 1 - i][trans[u][0]];
          }
          u = trans[u][1];
        }
        assert(~u);
      }
    }
    return x;
  }
};

Solver solver;


#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
	
  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){
  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;
  
  if (!~solver.K) {
    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
	}
}


Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0.01
Accepted

Test #1:

score: 0.01
Accepted
time: 88ms = 2ms + 86ms
memory: 5408kb,15180kb

input:

encode
0 6 1 444386057
1259251521813 3478565260041 1380014506318

input:

w3xtong0sw70x24jk9va60aqnef9rzgx08fedfyimsmhm15g2p5yqjm98pbtrbqf9z0dajxh0cu2l8gd95xrgjw4v0zd2gnfxer874n1obsey5lrtj85pef4vcjvgyf3jgcdbrnnmrgc19osn0hdzg4gbo0hq25kq55c7tteedfxv1zzoif59fn45lzjo2x3h82ns90cuqigsh4g7cxx665n4vv15y2jbc0o7lusftiz71dfbfi7ag2i498kdd1rrwvtymjyy8c6mqr8hzny6x71lfr4qrlsh0929wz1p79q...

input:

decode
0 6 10000 546
0 790304253394246655 18407619062683736065 8448682451283719040 6304036728675368831 18445934836758491136 1048905101737954 15527465986713181835 18406197933167869933 13723951103
0 1571752971417676799 18398435976732744706 6665318504397006592 13095728847615917823 18445904050684449280 ...

result:

ok Accepted using 546 pigeon(s).

Subtask #2:

score: 3.99
Accepted

Test #2:

score: 3.99
Accepted
time: 165ms = 18ms + 147ms
memory: 16036kb,33888kb

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 1277
404 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 15 18446462598867189759 2305842736516825056
717 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 9896206012447178621 2269648185938935807
842 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9223363240765980671 2305842942910136064
310 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

result:

ok Accepted using 1277 pigeon(s).

Subtask #3:

score: 12
Accepted

Test #3:

score: 12
Accepted
time: 50ms = 0ms + 50ms
memory: 4308kb,6916kb

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 206
568 0 0 699389 2814
549 0 0 44520 5765
376 0 0 194280 191
293 0 0 354911 13376
219 0 0 768606 992
919 0 0 87508 1344
830 0 0 68232 3024
56 0 0 265125 15231
464 0 0 458990 11630
706 0 0 349530 47
718 0 0 449 7042
404 0 0 177797 13359
770 0 0 0 2062
373 0 0 700235 4437
538 0 0 323...

result:

ok Accepted using 206 pigeon(s).

Subtask #4:

score: 12
Accepted

Test #4:

score: 12
Accepted
time: 45ms = 1ms + 44ms
memory: 4304kb,6908kb

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 206
831 0 0 8 5595
255 0 0 1 5125
456 0 0 2 14943
976 0 0 10 9536
269 0 0 1 5184
74 0 0 0 2730
863 0 0 9 88
239 0 0 1 2132
307 0 0 1 6656
722 0 0 5 16361
649 0 0 5 10623
950 0 0 6 8370
464 0 0 2 15688
413 0 0 1 12079
334 0 0 1 8123
356 0 0 2 10288
441 0 0 2 13396
85 0 0 0 1927
132 0...

result:

ok Accepted using 206 pigeon(s).

Test #5:

score: 12
Accepted
time: 55ms = 4ms + 51ms
memory: 4440kb,6856kb

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 206
387 11720923512564876777 9184059354934247400 13729928778109441705 2699
729 11648023134777902056 18408526569845391344 9154411752829506981 6014
23 13963708421790761968 18425410605976715248 9117257046375283399 16199
872 11720925161832318441 9211080952698470376 13729928778109441698 ...

result:

ok Accepted using 206 pigeon(s).

Test #6:

score: 12
Accepted
time: 56ms = 1ms + 55ms
memory: 4388kb,6904kb

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 206
122 813954463430881279 17629367060548884386 16744089496668170306 10752
65 12211357760441597364 6714491606895344256 12976286748871469985 5311
410 6812447627280360770 17215983370617356214 9329960889953684107 16011
502 13866794221685870843 11954807012025401568 10385193830595258216 ...

result:

ok Accepted using 206 pigeon(s).

Test #7:

score: 12
Accepted
time: 69ms = 5ms + 64ms
memory: 4444kb,6904kb

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 206
957 3200048358288656339 16782242055562225770 1139956833884585622 8064
190 12125988898090635274 15381951813872119803 6524263914878973866 14261
776 1013557814690121528 17363610607102719230 817913329719108064 11787
968 6124908587494272343 17585392264968249355 5457591954849637719 58...

result:

ok Accepted using 206 pigeon(s).

Test #8:

score: 12
Accepted
time: 59ms = 3ms + 56ms
memory: 4376kb,6900kb

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 206
944 12700115738248143375 13799081510769227839 16200222913863261686 14071
333 12153130356412012223 8022599375497810687 11718406540832370315 14871
663 612279398854163519 17346210089240331077 10850829616329790808 4095
371 8134618045881319427 15057834553096736380 126236276441877487 ...

result:

ok Accepted using 206 pigeon(s).

Test #9:

score: 12
Accepted
time: 63ms = 5ms + 58ms
memory: 4452kb,6908kb

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 206
987 13729950435280770514 17631171954606832474 10087960706156284546 15663
11 256564465901787168 18175064745273556143 270355133032634940 6111
953 8233596480280100101 13095674936031297055 505462820682191037 1671
943 4659020546627266632 12118982075358806160 813613662555799422 10576
...

result:

ok Accepted using 206 pigeon(s).

Test #10:

score: 12
Accepted
time: 51ms = 5ms + 46ms
memory: 4368kb,6748kb

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 206
833 766032601673102683 15178819228939857791 15183047491276696879 10587
47 3242967169806718334 9550686064034360299 5788254331466241035 10754
374 4776866709548088253 18404932621842770496 431527154065692577 5803
809 143819975109385728 6191337978081688787 11311914761418272768 15848
...

result:

ok Accepted using 206 pigeon(s).

Test #11:

score: 12
Accepted
time: 56ms = 6ms + 50ms
memory: 4432kb,6772kb

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 206
493 9190329738914947521 9223160987803066080 2710610121055928779 16383
46 13853916599666096667 11815263888351881466 8347430591607660963 16320
797 3050380322627385181 12153600166569622103 14988395998660126906 8886
483 1166484392849059867 15869053478230544232 6502072086607692729 53...

result:

ok Accepted using 206 pigeon(s).

Test #12:

score: 12
Accepted
time: 59ms = 5ms + 54ms
memory: 4284kb,6904kb

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 206
373 430668907717943359 11661657714607497247 17766523494578831359 7170
912 13310451385812744823 829155999283939309 1070473639104737384 14399
370 2407384327704756392 649267213618571454 9607666033837928277 11909
536 6159797127625424301 9025987521878958427 16723967488602838288 5387
...

result:

ok Accepted using 206 pigeon(s).

Test #13:

score: 12
Accepted
time: 55ms = 1ms + 54ms
memory: 4232kb,6876kb

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 206
805 4043502531380262973 18167449684601602285 8051308042338958465 12030
871 5423859363030237147 18020413936166201985 9118280808519955792 5782
766 1011903357582299011 18102030711614903819 9257721016212000800 1023
838 13926691287133520231 499193686332539134 1151848209795003461 1026...

result:

ok Accepted using 206 pigeon(s).

Test #14:

score: 12
Accepted
time: 51ms = 2ms + 49ms
memory: 4460kb,6920kb

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 206
251 1709820491186217341 379626319650930683 12321052482725751440 1367
770 9223090697714748183 9205481781000007739 16212674859973533639 2311
237 12212964768218442240 12105715788258379776 4659161424732280501 5954
800 8197034514516517186 14357866764404021920 296094839542623169 7816
...

result:

ok Accepted using 206 pigeon(s).

Test #15:

score: 12
Accepted
time: 60ms = 5ms + 55ms
memory: 4388kb,6876kb

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 206
768 2641936504133186740 1566454475311284187 18233527525779046399 11520
958 2412399442581773591 13756654116086523951 11542725773888204074 2235
843 12680500327447093247 11529262049069361153 97946878044539541 11531
555 1722814835302855716 12972805663124045919 16814928119259103317 2...

result:

ok Accepted using 206 pigeon(s).

Test #16:

score: 12
Accepted
time: 50ms = 2ms + 48ms
memory: 4360kb,6852kb

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 206
660 861595708043230935 8465448249311368703 4814451152436637136 11542
257 854840308602175191 15382977276952450559 4814444555366870437 4794
554 861877166913748791 13365786856356056575 4746855444230204880 3647
462 861595656503623389 15382977276952450559 4814451152436637136 42
141 8...

result:

ok Accepted using 206 pigeon(s).

Test #17:

score: 12
Accepted
time: 48ms = 5ms + 43ms
memory: 4436kb,6756kb

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 206
886 13021079357946343407 13415871443670425225 8889896758733127869 21
224 13021079357946343407 13415027018740293281 8889895109465686202 8448
743 8392506816631681007 8943568315407679240 18221424455374028920 8087
425 8410501372392251383 8942987770985987856 18228110586085867639 8429...

result:

ok Accepted using 206 pigeon(s).

Test #18:

score: 12
Accepted
time: 55ms = 4ms + 51ms
memory: 4404kb,6920kb

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 206
71 8662464939203195933 5892990917938833155 13685832919153757814 8256
46 12996617755845178411 5954367857030945413 15991566543079257517 16239
950 13284285182077794348 16341359646695807619 15993364794346493566 13375
902 12994928905985700907 5956056706891209349 15991566543079257533 ...

result:

ok Accepted using 206 pigeon(s).

Test #19:

score: 12
Accepted
time: 42ms = 0ms + 42ms
memory: 4252kb,6840kb

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 206
97 3351428558955984128 6719746607171025834 1566051202335255126 16192
99 2234254926087632384 4413780485960920946 1043409612281486393 16199
282 3351178413617368576 4287659870805605297 1620010827467987515 15388
726 3351428558956180736 6719746655492550570 1565840096103508575 11567
8...

result:

ok Accepted using 206 pigeon(s).

Test #20:

score: 12
Accepted
time: 63ms = 4ms + 59ms
memory: 4432kb,6836kb

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 206
175 3457945830764499135 12391573652388147176 13834741355483539989 5471
704 3457944181497057471 12384818252947091432 13834741355483540032 4655
105 3457945830764499135 12391573652388147176 13834741252404324885 1391
810 3457945830764499135 12384818252947091432 13834741252404324929 ...

result:

ok Accepted using 206 pigeon(s).

Test #21:

score: 12
Accepted
time: 46ms = 5ms + 41ms
memory: 4440kb,6840kb

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 206
354 12154459654173929303 11721418065320279883 17636013770788476855 11007
315 12154446466476846935 11721424662390046539 17636013770788476855 10251
331 12154459654173929303 11721424662390046539 17636013770788476855 10587
790 12154446460034395991 11721424662390046539 17636013770788...

result:

ok Accepted using 206 pigeon(s).

Subtask #5:

score: 12
Accepted

Test #22:

score: 12
Accepted
time: 57ms = 5ms + 52ms
memory: 4696kb,9284kb

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 284
588 0 0 0 0 13578343
566 0 0 0 0 13615103
278 0 0 0 0 524223
167 0 0 0 0 851455
188 0 0 0 0 1055227
660 0 0 0 0 20532352
542 0 0 0 0 13606496
285 0 0 0 0 3301582
771 0 0 0 0 27050796
681 0 0 0 0 8011424
34 0 0 0 0 26208
5 0 0 0 0 124
823 0 0 0 0 27262144
238 0 0 0 0 1669428
908 ...

result:

ok Accepted using 284 pigeon(s).

Test #23:

score: 12
Accepted
time: 65ms = 5ms + 60ms
memory: 4548kb,9372kb

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 284
977 10954582214230995718 8287066430434771047 18329657492782414142 6932165722941209854 103964879
780 10954582214230995718 8287066418353209447 18329657492782398782 6932165722941202175 50744735
244 16141463584751680002 18158748995731652655 18329653747572001719 9230127435222529535 2...

result:

ok Accepted using 284 pigeon(s).

Test #24:

score: 12
Accepted
time: 76ms = 6ms + 70ms
memory: 4524kb,9424kb

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 284
64 3972260624724822277 8914245304245374721 16748863915861823456 287649553765853428 8388736
343 7776192650029258528 2161635262715561214 14253899366186676176 17791743882999896896 6602752
399 15267174167475512823 13781014804355349696 113697860600063975 14756480661539729811 1702382
...

result:

ok Accepted using 284 pigeon(s).

Test #25:

score: 12
Accepted
time: 71ms = 6ms + 65ms
memory: 4584kb,9292kb

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 284
228 559360668029947786 16352569869025214591 18446554956568919999 5789060596401967085 7600640
626 15218331650879602425 10952865123765334832 3638894212109123195 3460540444354019378 256707587
794 6810145898765485566 11637301433912525695 5185685402666082479 13763009372248408078 2589...

result:

ok Accepted using 284 pigeon(s).

Test #26:

score: 12
Accepted
time: 69ms = 2ms + 67ms
memory: 4608kb,9320kb

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 284
409 2539743870559986079 11068020069584650243 4145084070352643584 5065872279885106277 255010510
785 7259803032461983385 10607076190844256236 13849265944489311427 2738412734742787036 207930150
74 16113454999623435047 12624435056597372062 13828074390147089996 1773548324832063 21401...

result:

ok Accepted using 284 pigeon(s).

Test #27:

score: 12
Accepted
time: 77ms = 6ms + 71ms
memory: 4692kb,9412kb

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 284
355 2876674287635271660 269649659205087224 216174141924965348 1099019148573933695 50790399
892 14193574121334739 6990035110757347353 16576902478840398654 6917986415511227495 242901095
558 14898316654381821954 14986849824365585853 17589355914237050647 15849812059047632884 2933584...

result:

ok Accepted using 284 pigeon(s).

Test #28:

score: 12
Accepted
time: 70ms = 6ms + 64ms
memory: 4604kb,9440kb

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 284
850 7872300944698916097 11382839305035562988 815292519188299775 18302203094383462390 268367039
344 6791964800504119167 16140760451565391851 8804299769564428016 283718045398453248 256495103
881 459143005903559463 12663413621744676797 18445832847529703729 10593046893523320572 2621...

result:

ok Accepted using 284 pigeon(s).

Test #29:

score: 12
Accepted
time: 78ms = 6ms + 72ms
memory: 4696kb,9392kb

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 284
964 15421166113802665823 18025428782212825064 3365288501723009007 17840667356095893591 100645759
322 16090291076439696627 17061411264710288896 4611908003811858480 3638049230142259068 264044007
554 6450558214460014384 9218877130145926011 8593068062163858432 13833369995226120377 2...

result:

ok Accepted using 284 pigeon(s).

Test #30:

score: 12
Accepted
time: 65ms = 6ms + 59ms
memory: 4544kb,9244kb

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 284
528 1869845361715701756 13835511892232265728 1869838283843187322 9003807480251361175 167759055
9 12596004108022334335 18306274870373054427 8067609518014056558 13058142297466142722 259791648
539 36250458549498867 16703738399646862944 922225926660201278 11420212974936132798 267584...

result:

ok Accepted using 284 pigeon(s).

Test #31:

score: 12
Accepted
time: 66ms = 6ms + 60ms
memory: 4656kb,9360kb

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 284
288 144104423667283840 9223231239278329633 13808279449597766976 5764527733207400276 266096378
360 2268248417441417209 274719680182356451 17149704098755897432 2294636241199628115 314483
312 13836163772604907643 8921648453925927424 17798071624425398477 5697048031856163760 15996921...

result:

ok Accepted using 284 pigeon(s).

Test #32:

score: 12
Accepted
time: 68ms = 6ms + 62ms
memory: 4500kb,9388kb

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 284
762 2847401412873969655 18446602236711667165 16717115749959120608 499905880789990915 239041024
577 9081225790644289786 984136087198629889 18014539042128923391 17292133856144508928 40636412
572 115265734700437507 4553142528779431961 8753417847369305089 11064426426261413787 663085...

result:

ok Accepted using 284 pigeon(s).

Test #33:

score: 12
Accepted
time: 60ms = 1ms + 59ms
memory: 4704kb,9420kb

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 284
611 4602746026854043695 15868391699039379467 14682297172606582784 15813043600938237750 200902399
255 13331604594784288773 4612125916628350464 2304352202442830836 1149545437303648269 250740959
683 14974239372138721487 14927108932305394067 17517092140209902559 14728135495265956456...

result:

ok Accepted using 284 pigeon(s).

Test #34:

score: 12
Accepted
time: 70ms = 5ms + 65ms
memory: 4652kb,9424kb

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 284
910 7308666925876863 10956413022208265368 14754249214376377855 13591413091999953529 256861696
823 2110586656784895 12106801561033772256 11457401472241491935 13101802647743369013 133181432
535 7176725530543743 10956413022208265368 14754240968039169535 13591413091999953529 6543077...

result:

ok Accepted using 284 pigeon(s).

Test #35:

score: 12
Accepted
time: 61ms = 5ms + 56ms
memory: 4620kb,9412kb

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 284
500 7480380043014281721 12894635233012077412 18329872041958668675 3440736044970937596 264141104
178 7344216531083565561 12894635231989961575 14871107528013281667 3457624543573576956 259947107
774 7345272054193166841 12894503290594382693 17176950537226975619 4521599955539856637 2...

result:

ok Accepted using 284 pigeon(s).

Test #36:

score: 12
Accepted
time: 57ms = 5ms + 52ms
memory: 4604kb,9424kb

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 284
106 3742034312273654976 935197063754388249 3516396626869472358 6932165293306126238 264174582
229 1657184054238715456 503117019170782215 13852579906919065687 2312598206504583139 264240762
646 3674480317863158976 935592887940387609 3516396626869472358 6932165293683613628 265130855...

result:

ok Accepted using 284 pigeon(s).

Test #37:

score: 12
Accepted
time: 62ms = 5ms + 57ms
memory: 4632kb,9388kb

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 284
649 3629956688417679315 14534228700053896947 17839658048294374803 3631677181383303264 425152
545 3629956688417678835 14534241072595336827 17569442070652145043 3631677213469728834 25817
334 1089900109839212284 4406759040030342999 18256492587391316310 1694885856805879824 49803002
...

result:

ok Accepted using 284 pigeon(s).

Test #38:

score: 12
Accepted
time: 56ms = 2ms + 54ms
memory: 4652kb,9368kb

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 284
595 14686167149856109318 5710337412310562291 56857661800449612 866463652432055548 226767487
412 12446823066166196484 16537112824856354684 30891827133416816 325218041665160703 6275087
44 14551059161034502918 5710337412310623731 57385298532763212 55815719505366268 202178144
992 68...

result:

ok Accepted using 284 pigeon(s).

Test #39:

score: 12
Accepted
time: 60ms = 2ms + 58ms
memory: 4692kb,9268kb

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 284
724 2535519965762810847 3572227488925820467 16710072053632722409 16717213643098395396 13604864
66 9294250946376236159 10409522969038877710 13831702337195761502 2305785576302869512 28191
37 9326880034115812671 10463563965577914895 12678780832596275049 11529029863912585792 1872
42...

result:

ok Accepted using 284 pigeon(s).

Subtask #6:

score: 12
Accepted

Test #40:

score: 12
Accepted
time: 61ms = 2ms + 59ms
memory: 5472kb,14812kb

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 485
637 0 0 0 0 0 0 7 103062257664
884 0 0 0 0 0 0 141 128579697151
899 0 0 0 0 0 0 496 68694568835
967 0 0 0 0 0 0 541 127775280639
928 0 0 0 0 0 0 78 136465882111
928 0 0 0 0 0 0 496 60389716095
453 0 0 0 0 0 0 31 3220439007
600 0 0 0 0 0 0 124 9662660607
496 0 0 0 0 0 0 21 339906...

result:

ok Accepted using 485 pigeon(s).

Test #41:

score: 12
Accepted
time: 81ms = 3ms + 78ms
memory: 5696kb,14780kb

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 485
399 18436540056056206811 18248591049284925935 18437587272146419733 15456344842567220376 1711249536 403618077125562337 4178725827417902503 132941995690
688 18446480723624927224 16210740961280651359 18230553690787250300 1441011083408838780 8329760640 558736383290637343 17941249102...

result:

ok Accepted using 485 pigeon(s).

Test #42:

score: 12
Accepted
time: 100ms = 9ms + 91ms
memory: 5680kb,14912kb

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 485
854 13788902756170334208 31942127046885439 17366033801351599356 12686074451097001951 7617240601009977010 18442348637934451613 14699729942377125888 2072829951
949 540440476759621632 17888293457094541296 18430418258764234720 17870419764967501919 17942306830331921376 17870351543186...

result:

ok Accepted using 485 pigeon(s).

Test #43:

score: 12
Accepted
time: 95ms = 9ms + 86ms
memory: 5680kb,14808kb

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 485
844 17978352652917997551 18320639019273175540 136476864528387 16212890420093402632 4607745164707906039 13979173226113073155 16179179522694967391 134754271231
397 16210706858850193404 5763780673923711968 13833966240300828670 1117983430638833538 9216686970756939278 111743861501037...

result:

ok Accepted using 485 pigeon(s).

Test #44:

score: 12
Accepted
time: 102ms = 9ms + 93ms
memory: 5644kb,14900kb

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 485
624 17944590722376131071 10412288253217464568 2183629824262103 18370319286092668932 1117472833245671439 9511514440264597007 9511602380792233983 137438167038
941 2086780153272925344 1134907105559429642 11457154804132872215 6548212860100804714 8004290656305020360 17283976737324936...

result:

ok Accepted using 485 pigeon(s).

Test #45:

score: 12
Accepted
time: 92ms = 9ms + 83ms
memory: 5684kb,14832kb

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 485
451 18158371850725736319 18422327072425422883 18221564093611526527 18374684935560621823 17257713092732648584 816277432323604534 17659026878949228301 14475968
128 17978345522686591968 10376293059384053634 18438009569998267135 18167239456212417567 18307128233236102751 180189021072...

result:

ok Accepted using 485 pigeon(s).

Test #46:

score: 12
Accepted
time: 100ms = 8ms + 92ms
memory: 5680kb,14752kb

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 485
857 2236036398807320512 263884872613872 8935209899126679807 15861396479257210880 8944114741258096513 17329834942101716867 16145268323640148464 38650773502
678 18116529936934977524 2306001407657853440 462741700629998852 4577500754152253000 4591384634490639788 12159155991457276103...

result:

ok Accepted using 485 pigeon(s).

Test #47:

score: 12
Accepted
time: 107ms = 9ms + 98ms
memory: 5492kb,14888kb

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 485
735 4458563020674562344 96756954524811259 12961218422056240130 10168133749311 15564372142873902441 93438822779314175 8646936016382330791 104154595080
711 9078975372386105895 14370036432068667136 168581434062010048 71731930021738496 141746839685427153 4967470397713809408 97274123...

result:

ok Accepted using 485 pigeon(s).

Test #48:

score: 12
Accepted
time: 87ms = 6ms + 81ms
memory: 5632kb,14860kb

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 485
685 18158382024532950543 18307128361571846081 18431262709457616383 14555502328892352639 16789419378759074791 13978900291678895297 17293890774224568959 120791887872
296 9075552559610745856 7023851663534229504 189621866606265 11595643138894469871 16023524899677011968 5396444303666...

result:

ok Accepted using 485 pigeon(s).

Test #49:

score: 12
Accepted
time: 85ms = 5ms + 80ms
memory: 5616kb,14724kb

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 485
649 6917559264133213679 18294747558368688127 18446492695714940223 4572736626332921779 9223372027727355886 18407047297075511306 18401672618181636095 136834973981
645 4827924592905003966 16148674332508554295 17585762688812366845 18436118418950733824 25596630694526979 1094494339170...

result:

ok Accepted using 485 pigeon(s).

Test #50:

score: 12
Accepted
time: 90ms = 4ms + 86ms
memory: 5672kb,14916kb

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 485
202 17892801052986588687 18167239488458188798 18443365416207253255 13904934216168128008 4609503213104596991 360270361100303883 18383689422487687295 122473613311
541 17944522879366324479 16420396953596067835 17887735303070937119 324241576957851710 33319538687 4607745164683513980 ...

result:

ok Accepted using 485 pigeon(s).

Test #51:

score: 12
Accepted
time: 84ms = 8ms + 76ms
memory: 5704kb,14884kb

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 485
492 69800021868933120 11821920366100447 18409307764353401083 18014398565043895671 18153678045904847872 5169428813034085885 14555743946784374791 119415956516
334 17944522413120134916 2251816310522575360 17469032412344385 17328751851271880639 558719307505205247 1842872965854035769...

result:

ok Accepted using 485 pigeon(s).

Test #52:

score: 12
Accepted
time: 95ms = 8ms + 87ms
memory: 5684kb,14832kb

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 485
172 2503870636816849664 753599565952 15129273891291823 18446742011703873247 17284743407129051135 14812339483625369527 9223231299279894605 134750400498
771 4469892932336845792 8525642072128 69876129648873347 18446739671437277279 18050414108200603647 13974671775644778375 184107064...

result:

ok Accepted using 485 pigeon(s).

Test #53:

score: 12
Accepted
time: 91ms = 8ms + 83ms
memory: 5700kb,14860kb

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 485
927 4614535952347725823 7277818232566723806 16572411000892415999 9221260974663290888 9223344804609294336 31437165393094142 8988388809803070961 137437732864
549 292597635330547710 1116901233228020753 18419995171482500607 18411805996388251679 576324410705960960 558763004812916799 ...

result:

ok Accepted using 485 pigeon(s).

Test #54:

score: 12
Accepted
time: 69ms = 3ms + 66ms
memory: 5488kb,14912kb

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 485
43 9619695263694192541 48372606736383 15618483944750594038 13812707109359946751 9218857158643154932 885379539347963903 18401708077509242879 136356525056
341 14051254820493328354 4611942743923555327 16879491598033919484 18114013058211090175 17869708208104800226 100174833149288120...

result:

ok Accepted using 485 pigeon(s).

Test #55:

score: 12
Accepted
time: 92ms = 8ms + 84ms
memory: 5524kb,14908kb

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 485
261 17270125688331958528 13545700701051551803 17158714880839766015 18421856093282497296 87820188707194896 30098601451797987 6838899927255351315 51002457583
462 18032398613669118951 13943127403406525408 13974670709486454783 18438317133394756080 559009237108273152 1396863510196963...

result:

ok Accepted using 485 pigeon(s).

Test #56:

score: 12
Accepted
time: 86ms = 1ms + 85ms
memory: 5492kb,14776kb

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 485
175 279231698372329470 1116892740894847999 17887736901372469439 18445652262828111905 18420003680607281403 16185930601105166335 18446675835277545475 120594565119
709 279231698372329470 1116892740907418623 17887736901372469439 18445652262826540576 18438018078982676731 161949310638...

result:

ok Accepted using 485 pigeon(s).

Test #57:

score: 12
Accepted
time: 79ms = 2ms + 77ms
memory: 5584kb,14776kb

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 485
680 4472072385558216703 18446727014099452928 69842077109709823 1729382033556274672 6915417909481169144 2236036459075190752 17879013578956602992 66576060415
780 2377839013869387775 18446734470162677761 23493390972632015 9079239101411595343 6160781336014487104 342132797684547581 5...

result:

ok Accepted using 485 pigeon(s).

Subtask #7:

score: 12
Accepted

Test #58:

score: 12
Accepted
time: 86ms = 9ms + 77ms
memory: 6516kb,15692kb

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 605
664 0 0 0 0 0 0 0 0 1081344 8378180
256 0 0 0 0 0 0 0 0 1040447 536870911
273 0 0 0 0 0 0 0 0 2080895 534806527
399 0 0 0 0 0 0 0 0 16647167 522207104
558 0 0 0 0 0 0 0 0 133173311 534839295
357 0 0 0 0 0 0 0 0 8323391 536870911
573 0 0 0 0 0 0 0 0 133174271 511770112
65 0 0 0 0...

result:

ok Accepted using 605 pigeon(s).

Test #59:

score: 12
Accepted
time: 93ms = 8ms + 85ms
memory: 6476kb,15680kb

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 605
46 18445054620267184127 18422290935112007680 129742371858432 136339432867080 8430738127835896510 13690942729624614847 13674617748012603835 18446744071222329345 10664523917466525599 536772607
671 18383693678909718527 18160747905319698432 4468690129026816 8937242823261967 16158913...

result:

ok Accepted using 605 pigeon(s).

Test #60:

score: 12
Accepted
time: 118ms = 6ms + 112ms
memory: 6576kb,15704kb

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 605
172 10952754409053282295 9799930368468506239 18302572535662754859 6622380524327403246 15264667555347820509 8070336183033392078 9224022865514692607 18122379156967658813 18406299638991581696 4444159
949 15723192563843996158 18356581999943008223 18384819578833207297 156720187888706...

result:

ok Accepted using 605 pigeon(s).

Test #61:

score: 12
Accepted
time: 102ms = 10ms + 92ms
memory: 6444kb,15524kb

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 605
334 3332663737927418113 6601678913728947167 8935140558960076159 18446699489437355775 7729302906309738399 18428835228316337991 17346176933007549181 14670982101348648987 18432146957036084967 536861854
233 126170610836430883 18442803407124164607 16176929586632720136 115285220128089...

result:

ok Accepted using 605 pigeon(s).

Test #62:

score: 12
Accepted
time: 92ms = 6ms + 86ms
memory: 6572kb,15548kb

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 605
967 18320503637593162751 18160748177932680799 18414660290084603135 18160765445965216772 9222879455645531651 17870841907539599360 285995623029734914 288213866430595072 17874245134614782 66588671
927 1143950589202528256 71497392846798591 18320643009257938943 10090297441124349967 1...

result:

ok Accepted using 605 pigeon(s).

Test #63:

score: 12
Accepted
time: 96ms = 11ms + 85ms
memory: 6576kb,15492kb

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 605
715 18375249395433077887 18338936958872469503 16140901060234183672 1152894570833379455 81064260716724223 18438858410406510082 285978577403420671 13907111311469708280 1152903912420282336 16647164
482 9294866749126082463 18446185487442935553 143270763145724158 216168453323599871 1...

result:

ok Accepted using 605 pigeon(s).

Test #64:

score: 12
Accepted
time: 94ms = 11ms + 83ms
memory: 6512kb,15600kb

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 605
566 4468690125586427 18442557132424345855 18266597992668856312 1143931761164615168 18303754768360147007 18374972352678198273 18160202513729450015 13843995162801341432 1152906111444054535 536610046
901 16194944602004688896 18924770525887583 13672708290538373125 130406471086930656...

result:

ok Accepted using 605 pigeon(s).

Test #65:

score: 12
Accepted
time: 93ms = 5ms + 88ms
memory: 6444kb,15552kb

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 605
368 13451641878453682175 18442891386270752109 4608560097200397279 18144078735010168832 1152945487536454380 8070159436510911424 3069814971957183 17443567258050753152 9963699781369400 1097725
967 18375247093167032304 1733850689212244031 9232309400074457056 2449949744789979135 1844...

result:

ok Accepted using 605 pigeon(s).

Test #66:

score: 12
Accepted
time: 120ms = 11ms + 109ms
memory: 6500kb,15496kb

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 605
269 18320363991011934335 18160747905318658047 17293788484191903807 9259120466956648944 1143950589168977904 9151736646834585599 18446738026362601470 9223196387724785664 2269884035477996031 520224767
21 9151600315575861055 9268407792610312128 5764538262357805055 173658801631073387...

result:

ok Accepted using 605 pigeon(s).

Test #67:

score: 12
Accepted
time: 105ms = 11ms + 94ms
memory: 6520kb,15704kb

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 605
798 6889848948834058243 3458764513820540871 152417200945308415 4604854821976459264 4008007959987617791 18409241937274399615 3456503917913259283 10160120759347838911 18367113044886026239 536852000
110 9079256848750673931 15276208821477833736 9216106463715840 40285659161198455 184...

result:

ok Accepted using 605 pigeon(s).

Test #68:

score: 12
Accepted
time: 99ms = 12ms + 87ms
memory: 6588kb,15600kb

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 605
660 13835057917843015680 1855425868000 18337777241914738686 17288193052008218624 2990384964253518557 17485225554536801911 17293815000228954091 16140905114609188873 16986311171398172669 536859648
281 18365056952423181483 13527546626582773815 7872273984539042480 1331440635378 1811...

result:

ok Accepted using 605 pigeon(s).

Test #69:

score: 12
Accepted
time: 123ms = 11ms + 112ms
memory: 6520kb,15496kb

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 605
285 18303754785539621887 17299452010654769151 12682070854839173119 17874751770754809839 18429890757469929248 4575661585246191615 18160752269140681023 18375812362531774400 9223160385127842046 4226816
11 139620316098854402 2305703379826381823 17869166148872863489 92233720200104494...

result:

ok Accepted using 605 pigeon(s).

Test #70:

score: 12
Accepted
time: 117ms = 10ms + 107ms
memory: 6588kb,15680kb

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 605
699 18379190078766284800 8727644062204 297237042829987808 274882068671 18379471545752875031 18442240354359935167 18437806693975883775 4611562600377876480 4575868325560578112 536842239
971 18446661610284515328 326396936432 13236248079876385376 4503599627954141 1841859516716353318...

result:

ok Accepted using 605 pigeon(s).

Test #71:

score: 12
Accepted
time: 94ms = 6ms + 88ms
memory: 6600kb,15496kb

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 605
476 3008330746365341089 2769669790365224 77949825580564441 17145179592143679231 18231134250637127679 18301501543692445662 6075140100281305600 95941534 17293822497698871083 198990568
357 18304317704355430527 17874760532721918 142993720315150623 18414101703785181215 92948666979857...

result:

ok Accepted using 605 pigeon(s).

Test #72:

score: 12
Accepted
time: 110ms = 10ms + 100ms
memory: 6584kb,15676kb

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 605
156 18303196233633628032 18302631067602976257 18159921055538347839 18384256595527200775 17302759945075154983 18442381204591206399 11529184259609718752 35747324189859847 17300577866001400319 520355839
873 18303473293652393856 18302631067602976257 18160765428928872255 183839751377...

result:

ok Accepted using 605 pigeon(s).

Test #73:

score: 12
Accepted
time: 93ms = 3ms + 90ms
memory: 6560kb,15700kb

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 605
967 4575815550554341248 18302629985204060032 9295425301532375041 18160765480190771198 2594060191167152112 2287863522341715712 142995902284431868 504961710438760447 14987911407346975743 511770112
446 4575815550680162688 18302630809787449216 9367478497523791873 1816076548019080396...

result:

ok Accepted using 605 pigeon(s).

Test #74:

score: 12
Accepted
time: 103ms = 12ms + 91ms
memory: 6396kb,15484kb

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 605
804 9094852046745508238 13835488719175417856 10353212043615003964 17268762487472455679 18247436369037103739 16112469719213670397 5938555760104439805 16059833765714587528 4501074323967 534773759
525 16023419309795577570 2594228965472206848 2265238040504920566 4590711704956690431 ...

result:

ok Accepted using 605 pigeon(s).

Test #75:

score: 12
Accepted
time: 109ms = 10ms + 99ms
memory: 6516kb,15700kb

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 605
213 18310518912363463167 18446737493685440000 142989288169013280 35748696415518847 35749521065507585 18158792990424809487 16158915188119308272 71496911824617442 9222879455108653055 302249984
825 13150467068896362495 18444492147479578624 6911804970123264 1405097290495544 11061086...

result:

ok Accepted using 605 pigeon(s).

Subtask #8:

score: 12
Accepted

Test #76:

score: 12
Accepted
time: 108ms = 11ms + 97ms
memory: 8204kb,17144kb

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 773
795 0 0 0 0 0 0 0 0 0 0 63 17294386068543242495 31
690 0 0 0 0 0 0 0 0 0 0 6 3114775388578250635 0
829 0 0 0 0 0 0 0 0 0 0 63 17294455887766749183 31
424 0 0 0 0 0 0 0 0 0 0 0 576605887847709819 31
749 0 0 0 0 0 0 0 0 0 0 31 17870599980721438719 31
244 0 0 0 0 0 0 0 0 0 0 0 575...

result:

ok Accepted using 773 pigeon(s).

Test #77:

score: 12
Accepted
time: 134ms = 13ms + 121ms
memory: 8164kb,17164kb

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 773
760 18446744067246741989 18439437044506689535 18360647915212636159 18442166290671664806 9367487528799558120 10376293542187171688 4899917097200501132 4035161923956891647 18428713809548673023 13551612754123341564 17572059741765227421 16676810727381270399 31
284 184456005816020334...

result:

ok Accepted using 773 pigeon(s).

Test #78:

score: 12
Accepted
time: 136ms = 7ms + 129ms
memory: 8036kb,17152kb

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 773
747 9214369304365960960 4607182418800050144 576460614730383232 1151796635559198751 17870565071126003712 9205357775650099199 18397204476197863036 71987242456851455 18430981474242002916 4611681663330547711 18419722473799940127 17870846134054682624 0
282 9002673152135788511 184467...

result:

ok Accepted using 773 pigeon(s).

Test #79:

score: 12
Accepted
time: 123ms = 9ms + 114ms
memory: 8124kb,17008kb

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 773
78 16706102817724129331 6881482080089276395 6966108749652773743 17656617968969711359 18446743249059053350 1152921504612367325 18434358612102346655 8637332319919654724 13837025896705027707 12974977380864922129 6178904810050289973 8637200397854834687 31
49 12105675802966753279 18...

result:

ok Accepted using 773 pigeon(s).

Test #80:

score: 12
Accepted
time: 130ms = 14ms + 116ms
memory: 8192kb,17176kb

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 773
199 18437736874454808711 18446638795470930175 18437745661962088450 18446735286202265602 144115076406704127 18415218875244215872 18446726516151680769 9232370440284668152 143974519239931905 18410724064197873661 9223379733436301184 2017893833160785920 0
476 1353050213043797887 156...

result:

ok Accepted using 773 pigeon(s).

Test #81:

score: 12
Accepted
time: 138ms = 9ms + 129ms
memory: 8004kb,17164kb

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 773
279 8998409604168702 35993612680396816 287984051204161535 17879571995637579651 13839557256930066464 1152920955387381758 18049582857453567 9367487087567175672 108086358911745984 1157425099943448572 18428738505652797475 18446675354769162240 0
871 10916725496611856350 922294941207...

result:

ok Accepted using 773 pigeon(s).

Test #82:

score: 12
Accepted
time: 155ms = 4ms + 151ms
memory: 8112kb,17016kb

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 773
555 29623590890471295 18444076386053225983 18436982306377816393 3060178354610838848 2327184408575 15473891097238831046 3854915727194554367 18446705642342196894 18438022748062744571 17811521508773721591 13779036458610319359 18397130518471638879 11
91 18429362993838948348 1151796...

result:

ok Accepted using 773 pigeon(s).

Test #83:

score: 12
Accepted
time: 137ms = 9ms + 128ms
memory: 8128kb,17172kb

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 773
696 54183658003038208 74801975060847380 27020481068531199 18336932273425186815 17844422808078720767 18446669317656290525 17973303162742505302 8646343271912487935 17591411988377034236 18229278265921503153 4683743716584677910 7212503808050462719 31
870 13510798882635264 462970040...

result:

ok Accepted using 773 pigeon(s).

Test #84:

score: 12
Accepted
time: 129ms = 9ms + 120ms
memory: 8032kb,17160kb

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 773
889 624522604577275 18446732296909225984 4591285512507456 36028916866670589 11483896199086340607 15876314586422444031 18373158158509015799 18444492239535598591 18158513697557658408 448377395854974 14087188157533519799 99079196347465727 31
80 143974519575412671 18446181123512868...

result:

ok Accepted using 773 pigeon(s).

Test #85:

score: 12
Accepted
time: 126ms = 5ms + 121ms
memory: 8096kb,17160kb

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 773
559 15541902505225948318 16426844456327314877 13834844519482458368 8085565439 18212486524350562304 24344559278258163 1589770670900772129 11818571433796769271 13809971320180441088 4755510867254836213 450359962775146491 13541963433053782016 0
497 2314850278076562431 1787028331650...

result:

ok Accepted using 773 pigeon(s).

Test #86:

score: 12
Accepted
time: 129ms = 7ms + 122ms
memory: 8164kb,17024kb

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 773
299 17996806390480959 18446744073583722488 1154047403473534944 4607186816845021183 17367006061974274047 18446744022169936895 18433250866998935551 18446742978484510712 274609602687 16176894711485710320 35993634121709567 18433237672869773311 31
580 18428729452935512130 4014958652...

result:

ok Accepted using 773 pigeon(s).

Test #87:

score: 12
Accepted
time: 131ms = 14ms + 117ms
memory: 8192kb,17144kb

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 773
901 18432107373848954878 9223376434902204416 8787509379071 18446739675660419071 10376293270878680575 18437877749382004751 18158548847603744512 4607183517238493183 18446743532560449520 360287916504643584 281200350478320 281200367239167 31
917 18433233274290568719 172949473697660...

result:

ok Accepted using 773 pigeon(s).

Test #88:

score: 12
Accepted
time: 127ms = 14ms + 113ms
memory: 8144kb,17152kb

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 773
583 9029295040335970304 115212007 18410685608272461823 18357586874960564178 18288551704482650875 17354334191000465259 18356452176689102846 18446744039341424607 18444654451863171447 9223363240665944064 1595345089301417968 10521143984955326239 30
99 11984078608305303552 485593465...

result:

ok Accepted using 773 pigeon(s).

Test #89:

score: 12
Accepted
time: 111ms = 6ms + 105ms
memory: 8164kb,17096kb

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 773
239 18433242070912466943 17298326164502216672 2377900534834135032 143974519239933951 18446743867546931196 17557826306051 18374723863065067519 17298466906105184254 35995809523957759 13981425041158569856 575898352105685119 16142025865696378751 31
310 18158480759986323447 18403611...

result:

ok Accepted using 773 pigeon(s).

Test #90:

score: 12
Accepted
time: 115ms = 6ms + 109ms
memory: 8060kb,16996kb

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 773
697 11505518337089314799 13690660765059235577 5817981218993463295 18428149959203741370 18443239101189586936 14015202056382279918 5763868498136554074 4609390169157563333 18437736453385681903 18392771247227764718 987969384174835679 18124807069096738816 0
598 13179775478644047838 ...

result:

ok Accepted using 773 pigeon(s).

Test #91:

score: 12
Accepted
time: 115ms = 3ms + 112ms
memory: 8056kb,16956kb

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 773
47 93062640389226477 8700957057058466136 18437999774771584586 1046898274287 18409880197710206715 8818237183035964479 1688532942072052178 14964335657349283840 8952730264692796815 15380879918984442847 16256261824481984510 18442205253202345983 31
427 23498735746735103 583779517020...

result:

ok Accepted using 773 pigeon(s).

Test #92:

score: 12
Accepted
time: 121ms = 4ms + 117ms
memory: 8144kb,17148kb

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 773
327 17944046928404487 18446603679818555391 18446603473525933055 9570148939988991 13862079648784973794 18446744039383334915 18374726062087077376 9214367034476888063 18005400097730346992 146366986815798975 18446181673243246720 2303731809516584896 0
628 17944046928404487 184466037...

result:

ok Accepted using 773 pigeon(s).

Test #93:

score: 12
Accepted
time: 113ms = 6ms + 107ms
memory: 8060kb,17148kb

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 773
151 2259421231278 1152921580033006299 16705854270094044448 90 16562445024344525922 6734501691904 46710453682169 10221112851158728583 17861134285143887104 195765783296475136 7881118019485119 18374686478587428941 3
602 194733145372 9223372069951758295 7781063553480385552 30 14409...

result:

ok Accepted using 773 pigeon(s).

Subtask #9:

score: 12
Accepted

Test #94:

score: 12
Accepted
time: 122ms = 7ms + 115ms
memory: 10812kb,28884kb

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 983
211 0 0 0 0 0 0 0 0 0 0 0 0 0 0 576425570078818302 524256
291 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4611404560630546415 8388607
438 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5822861842245540595 4980735
609 0 0 0 0 0 0 0 0 0 0 0 0 0 63 18374690877718126863 8380416
720 0 0 0 0 0 0 0 0 0 0 0 0 0 0 146164...

result:

ok Accepted using 983 pigeon(s).

Test #95:

score: 12
Accepted
time: 166ms = 12ms + 154ms
memory: 10768kb,28972kb

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 983
320 18446181158113771520 144106392519704575 9221120374471655424 2147352580 576460751229681152 576425568199753728 9227875636471660543 18302787215308033023 18446675905062371324 38280596824391687 18437754465567178240 576425568468172801 18446744022304161791 9225623836400041983 8795...

result:

ok Accepted using 983 pigeon(s).

Test #96:

score: 12
Accepted
time: 165ms = 19ms + 146ms
memory: 10796kb,28928kb

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 983
236 3075879345098653696 1232401489322835967 12667143275009736190 17573045745722719462 9212077853413997887 16695406647294926848 2200088367333369 6773381905074094080 2337649680014179933 3872954942043908852 1219933920819711 18446744073166362298 6917149696123207679 1843751147457055...

result:

ok Accepted using 983 pigeon(s).

Test #97:

score: 12
Accepted
time: 166ms = 10ms + 156ms
memory: 10812kb,29048kb

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 983
773 12914439855563362955 15527984505640581885 18446743797464825856 2702475261 17182641052813623298 13862044291775313375 18446743386513478448 26794113855 18446743905813823491 15554711145825098751 18446743741864821806 14969818439915339739 5783227657876927528 10376293542611759103 ...

result:

ok Accepted using 983 pigeon(s).

Test #98:

score: 12
Accepted
time: 160ms = 14ms + 146ms
memory: 10888kb,28968kb

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 983
928 11843846851251924735 17867468536734875321 16140901064192444239 9724784522412237104 11257042040751 18149487795861651038 18410715207971110230 9149907050740776959 15632039386579732542 6844898757192050679 10826494756738038654 17293822568556475592 282678673339 158526613424953090...

result:

ok Accepted using 983 pigeon(s).

Test #99:

score: 12
Accepted
time: 164ms = 14ms + 150ms
memory: 10836kb,28952kb

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 983
946 6619921993118502623 18399979591469400059 17531096432403793645 18446594540128174047 17309217273742621129 17434401686349945839 17284815369838966296 74297794559 18446743689879590204 15850023167516326815 18158355367874523135 14942943563615305727 16640659535580358913 14088499363...

result:

ok Accepted using 983 pigeon(s).

Test #100:

score: 12
Accepted
time: 162ms = 19ms + 143ms
memory: 10768kb,28968kb

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 983
13 8525167 13807895719492419583 14987961828443678400 6812925884025046763 13321647197675323392 26419065385790147 13835058419917979647 17131974457495374029 18407720206982549375 16695969509989752831 18446743982471060245 4394892348269764599 8610296926567287371 8798625403357741055 1...

result:

ok Accepted using 983 pigeon(s).

Test #101:

score: 12
Accepted
time: 160ms = 15ms + 145ms
memory: 10768kb,28904kb

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 983
758 15811280114115460927 18446744013095440384 18478399487 13511572938297442304 4509378404155 18446743303439334775 18446744064002626432 1405403725358268415 18446744073705357311 7212092594457131007 18446733353435496407 11116755477805244915 17410907346141433821 7151716208264339421...

result:

ok Accepted using 983 pigeon(s).

Test #102:

score: 12
Accepted
time: 164ms = 16ms + 148ms
memory: 10708kb,28880kb

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 983
521 18445654457686421632 18446744069414846448 35182224736255 18442838608407625743 18446743042934177791 17293858028352699904 576425567931334657 18444492351205277664 2594073385096970239 4612811918330314751 18446181673511942144 4613937818232685119 18446739676468346879 864691127658...

result:

ok Accepted using 983 pigeon(s).

Test #103:

score: 12
Accepted
time: 164ms = 16ms + 148ms
memory: 10692kb,29040kb

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 983
395 12501371856839769581 13452521874789481727 18441220124540104220 14752587303508340723 4431542033323646971 18298688235957649407 18287576260775770111 18410694866737528708 3993074293858893309 18398242415677800447 18443384034894544897 17576913596323913599 16104854125532545023 184...

result:

ok Accepted using 983 pigeon(s).

Test #104:

score: 12
Accepted
time: 159ms = 7ms + 152ms
memory: 10852kb,28956kb

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 983
836 8080130632631668631 9223365234465439744 275076813345400 306403112925528064 18054530145550271 14983475958114103176 4805406437649243 15951633330537951227 175538009955368959 18419011882103713758 13816128123474843117 18445847430577615690 18446744073691922432 40480202 1839309539...

result:

ok Accepted using 983 pigeon(s).

Test #105:

score: 12
Accepted
time: 173ms = 13ms + 160ms
memory: 10816kb,29036kb

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 983
540 18445688542546759679 18446604435732822016 2305702271727435648 81064793277988863 18302909810888144896 134209536 9223372030412324856 8646946466775957535 18410716378349699064 2594073385365405695 288230375212183552 4611404544524353539 18446744013580009448 4611686001253810175 18...

result:

ok Accepted using 983 pigeon(s).

Test #106:

score: 12
Accepted
time: 167ms = 20ms + 147ms
memory: 10848kb,28892kb

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 983
742 562952227506815 6508804456102730696 8652389051345476096 980796047343 18437591704554962820 14411551697094574079 18441856744037530010 6778478739878576103 9205357632932676480 27062275127640063 2229242233062486015 17798225015210246144 18124276120750478 16139775164588483870 1364...

result:

ok Accepted using 983 pigeon(s).

Test #107:

score: 12
Accepted
time: 143ms = 11ms + 132ms
memory: 10896kb,29040kb

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 983
831 8747217919 18446743785678190591 13123634449702580447 6629298651145101052 6917402600086093304 18446744073256642560 15105907480506 18301643171715170304 11303789526527 18441673126082247697 2451459747372693021 7477945404175417345 15216528444874360896 2602329178103 1843773687445...

result:

ok Accepted using 983 pigeon(s).

Test #108:

score: 12
Accepted
time: 147ms = 3ms + 144ms
memory: 10852kb,29036kb

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 983
903 10231052433071187439 18364773970030362629 8060880382321318016 9117630111 16131291332869094699 6350075474592409679 16816441008600315518 15312238369900035566 8910228926240915455 18193909244598681600 10269137954547853 1635 14517263857350442734 7962216806364479230 1544463940749...

result:

ok Accepted using 983 pigeon(s).

Test #109:

score: 12
Accepted
time: 160ms = 10ms + 150ms
memory: 10768kb,29048kb

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 983
653 4611404560626352383 18158513697574616064 648518346140024831 17293541111304814599 18437737286771670780 4503324750512064 38280596824784895 18429292625152475137 18444773731693233151 18446673722145243115 18446743876141055991 18446743575493345217 1125831220918272 116192870384481...

result:

ok Accepted using 983 pigeon(s).

Test #110:

score: 12
Accepted
time: 153ms = 13ms + 140ms
memory: 10904kb,28992kb

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 983
22 18437701690082656253 18370181643092883447 18301920742810320896 18871029736667135 18437160695993596911 18446744073709551615 18428729674593751040 2818105476460314107 6916393607268136447 18079621502195268838 14951950762869901663 18370036094671387391 18446708884900696128 2269610...

result:

ok Accepted using 983 pigeon(s).

Test #111:

score: 12
Accepted
time: 161ms = 14ms + 147ms
memory: 10896kb,29036kb

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 983
357 18345975807903386490 5737539449294684159 16138505778405224407 13537662130337068397 10378209386114842111 18293111727732344700 17290152292585533387 18302624438740320256 15762598725515775 17617654787627189043 2260806884460335431 18301493905037721587 15015819194305361772 184354...

result:

ok Accepted using 983 pigeon(s).

Subtask #10:

score: 12
Accepted

Test #112:

score: 12
Accepted
time: 174ms = 19ms + 155ms
memory: 16072kb,33816kb

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 1277
946 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 230558722977688151 2016767520937082879
901 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5709902514650610655 2287828610704211967
15 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 145443329393129975
745 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 184467088893542400...

result:

ok Accepted using 1277 pigeon(s).

Test #113:

score: 12
Accepted
time: 187ms = 21ms + 166ms
memory: 16088kb,33888kb

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 1277
737 18446742354521438972 13527405586632976936 16059660050236964599 17293812106631380992 106930256608767 10762493241140206527 18356501643806562239 16140896623229138029 16968383343968476200 3465868247994204155 14418441470233018368 2595479247011184637 17723907399716159225 1844674...

result:

ok Accepted using 1277 pigeon(s).

Test #114:

score: 12
Accepted
time: 206ms = 29ms + 177ms
memory: 16088kb,33940kb

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 1277
223 18446726756401938431 18446736374980675583 18410715276692684798 35184372088831 18446744073608888831 18446744065129054207 18446729230302576639 9367488324442259455 18084767253659608 140737354137600 2305840810192535551 18446744069414588415 18374686480208494080 4573968371548096...

result:

ok Accepted using 1277 pigeon(s).

Test #115:

score: 12
Accepted
time: 203ms = 16ms + 187ms
memory: 15892kb,33936kb

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 1277
951 17220639075157933823 9219975644357975989 12859281222668386304 24534713 16140901046107918330 16654895577925671807 15852668489287278491 17140585394469830359 18403942278255385576 9907311001755713511 15561045020275375599 8334901834850238471 13091000875649130415 176866909755446...

result:

ok Accepted using 1277 pigeon(s).

Test #116:

score: 12
Accepted
time: 203ms = 20ms + 183ms
memory: 16084kb,33788kb

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 1277
446 17275079185777295359 9223300843476873211 7449094440065171454 18446744022135069647 17889414823450748224 1729382256931192023 17149297765713645021 6916365702861871967 17870283321137627069 9223372036164570151 16748709168185081855 18338567196013231615 13589961520246095871 18446...

result:

ok Accepted using 1277 pigeon(s).

Test #117:

score: 12
Accepted
time: 225ms = 34ms + 191ms
memory: 15936kb,33800kb

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 1277
376 18446728680580317183 18446181140952776703 18446462598867320831 18446739675671429127 18446605535242354689 18158513972435484672 70368677068832 288230376151452671 18446744058610057279 18445618173802708992 274877644800 4611686018425360383 18446744009285042175 18428729812639023...

result:

ok Accepted using 1277 pigeon(s).

Test #118:

score: 12
Accepted
time: 194ms = 13ms + 181ms
memory: 16076kb,33944kb

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 1277
943 2251797666203647 18446744069414584319 18379190079298732032 4611681620380877055 18442240478376624128 9223363240761753727 18444492275506479103 18442521949058891520 2303591211547490304 562949416550656 288230376151449856 4503599627366447 18446744073441214463 184467436957524295...

result:

ok Accepted using 1277 pigeon(s).

Test #119:

score: 12
Accepted
time: 192ms = 23ms + 169ms
memory: 15884kb,33824kb

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 1277
223 4398042316802 562949953420847 18446744073575464959 18446741910119776255 18429275032984223728 8388600 70368811286464 18446726481540283392 18014381329612815 18446462598867189759 18446741875239944191 18446462633100967935 18446639070349099007 13835062453324481535 1842872969237...

result:

ok Accepted using 1277 pigeon(s).

Test #120:

score: 12
Accepted
time: 203ms = 16ms + 187ms
memory: 16040kb,33860kb

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 1277
326 10322166164035188731 8879620721546878967 18060291572852550431 18121917552485457311 437113046646129587 18424194714727079260 17282475587620814182 18302628885633499135 16140819562290568868 1206115047288274655 8934926122064281599 18129240299775713145 9221110887433633775 184466...

result:

ok Accepted using 1277 pigeon(s).

Test #121:

score: 12
Accepted
time: 213ms = 16ms + 197ms
memory: 16020kb,33916kb

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 1277
379 10421339914376315138 6233544760544460795 18446672579650387199 18115330128747559935 13786023667742732155 8929159604986703002 3569716421822735999 18446744073270180676 4611686018427453597 15706761062178995199 8745990476353503225 2139415155240337395 11044000032154980407 830745...

result:

ok Accepted using 1277 pigeon(s).

Test #122:

score: 12
Accepted
time: 240ms = 46ms + 194ms
memory: 15968kb,33944kb

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 1277
939 18284587544645064964 81 940688167158296575 15950586373286700053 96049281790 5760103373109919213 18446744073709543423 18295413620905738878 12105669166942321919 18428729675186900956 16140874676181425081 18115448021822110720 4099 13762374839055941495 18157360457600441309 1842...

result:

ok Accepted using 1277 pigeon(s).

Test #123:

score: 12
Accepted
time: 184ms = 23ms + 161ms
memory: 15932kb,33936kb

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 1277
194 18446726481590616127 18445618173836263392 282024732524543 9799832789157941247 18446744057066553343 18438299961847185407 16194944260024287484 70368677068800 1152920405096267775 18446739675663040510 4616189618054755455 18446744071696547839 18446739676199976959 18446742974466...

result:

ok Accepted using 1277 pigeon(s).

Test #124:

score: 12
Accepted
time: 189ms = 25ms + 164ms
memory: 16016kb,33776kb

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 1277
230 18446726756267196543 18444492273895866368 1125898833101312 9007190673195000 105553116266464 54043195528430623 18446744073181085695 18446743936270598143 18446744073709027840 4611686018423194111 9223380832939409408 68719411200 576531121047601088 4503599627368463 183026290230...

result:

ok Accepted using 1277 pigeon(s).

Test #125:

score: 12
Accepted
time: 198ms = 19ms + 179ms
memory: 16020kb,33760kb

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 1277
974 7503012372362039841 13770244043848023916 8164181699492577320 15901337751966842878 18371308761664326828 10259189655 18122423314985943039 18047741614075412480 20117853290461 17585904186122239999 18426856890217267200 1480314543 9074673480301019102 17237238905568198646 1665718...

result:

ok Accepted using 1277 pigeon(s).

Test #126:

score: 12
Accepted
time: 201ms = 20ms + 181ms
memory: 15880kb,33784kb

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 1277
112 631828507155756751 17869856573438754811 18428729675200069631 9223372027557327985 27086671876977976 4128107051508821632 6809682632496900094 18032131157733637107 13600589055845575733 13021982263054291902 18422537219752641792 11584175472641066034 34745135579 92169762393209668...

result:

ok Accepted using 1277 pigeon(s).

Test #127:

score: 12
Accepted
time: 215ms = 19ms + 196ms
memory: 16004kb,33888kb

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 1277
663 9187342964231356464 75631295 18012850397110009855 18410528463252357120 39149557407 17985607793187422077 3108027115941607935 8941606787094413310 18446743777323253247 18410713764325228543 18158513691115388927 15522407632466870272 9591958246768346 9328164291074850816 44394274...

result:

ok Accepted using 1277 pigeon(s).

Test #128:

score: 12
Accepted
time: 225ms = 35ms + 190ms
memory: 16008kb,33932kb

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 1277
677 7164944965164595183 17230208107128291309 18445089583586607037 17942296222010024415 9218868430634869583 7925983431731707903 18446728700978266112 3 7452881084519282383 9173660777327558130 3170460693719662569 3451585795389382525 10943747076683463295 18442239237131598847 18446...

result:

ok Accepted using 1277 pigeon(s).

Test #129:

score: 12
Accepted
time: 192ms = 12ms + 180ms
memory: 16072kb,33776kb

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 1277
440 10367286337764110470 67891 16933392761903642527 18365583371830576447 18426477325630259966 9207854560297353215 8466908449261748232 1609620975303687677 18139373398066857107 13907115649373229354 17726162068565879547 18446726481523507199 8486580550528663552 8235614779965419 17...

result:

ok Accepted using 1277 pigeon(s).