QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#723876#1083. Belarusian State UniversitymaspyAC ✓62ms20736kbC++2315.7kb2024-11-08 02:12:182024-11-08 02:12:19

Judging History

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

  • [2024-11-08 02:12:19]
  • 评测
  • 测评结果:AC
  • 用时:62ms
  • 内存:20736kb
  • [2024-11-08 02:12:18]
  • 提交

answer

#line 1 "/home/maspy/compro/library/my_template.hpp"
#if defined(LOCAL)
#include <my_template_compiled.hpp>
#else

// https://codeforces.com/blog/entry/96344
#pragma GCC optimize("Ofast,unroll-loops")
// いまの CF だとこれ入れると動かない?
// #pragma GCC target("avx2,popcnt")

#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using i128 = __int128;
using u128 = unsigned __int128;
using f128 = __float128;

template <class T>
constexpr T infty = 0;
template <>
constexpr int infty<int> = 1'010'000'000;
template <>
constexpr ll infty<ll> = 2'020'000'000'000'000'000;
template <>
constexpr u32 infty<u32> = infty<int>;
template <>
constexpr u64 infty<u64> = infty<ll>;
template <>
constexpr i128 infty<i128> = i128(infty<ll>) * 2'000'000'000'000'000'000;
template <>
constexpr double infty<double> = infty<ll>;
template <>
constexpr long double infty<long double> = infty<ll>;

using pi = pair<ll, ll>;
using vi = vector<ll>;
template <class T>
using vc = vector<T>;
template <class T>
using vvc = vector<vc<T>>;
template <class T>
using vvvc = vector<vvc<T>>;
template <class T>
using vvvvc = vector<vvvc<T>>;
template <class T>
using vvvvvc = vector<vvvvc<T>>;
template <class T>
using pq = priority_queue<T>;
template <class T>
using pqg = priority_queue<T, vector<T>, greater<T>>;

#define vv(type, name, h, ...) vector<vector<type>> name(h, vector<type>(__VA_ARGS__))
#define vvv(type, name, h, w, ...) vector<vector<vector<type>>> name(h, vector<vector<type>>(w, vector<type>(__VA_ARGS__)))
#define vvvv(type, name, a, b, c, ...) \
  vector<vector<vector<vector<type>>>> name(a, vector<vector<vector<type>>>(b, vector<vector<type>>(c, vector<type>(__VA_ARGS__))))

// https://trap.jp/post/1224/
#define FOR1(a) for (ll _ = 0; _ < ll(a); ++_)
#define FOR2(i, a) for (ll i = 0; i < ll(a); ++i)
#define FOR3(i, a, b) for (ll i = a; i < ll(b); ++i)
#define FOR4(i, a, b, c) for (ll i = a; i < ll(b); i += (c))
#define FOR1_R(a) for (ll i = (a)-1; i >= ll(0); --i)
#define FOR2_R(i, a) for (ll i = (a)-1; i >= ll(0); --i)
#define FOR3_R(i, a, b) for (ll i = (b)-1; i >= ll(a); --i)
#define overload4(a, b, c, d, e, ...) e
#define overload3(a, b, c, d, ...) d
#define FOR(...) overload4(__VA_ARGS__, FOR4, FOR3, FOR2, FOR1)(__VA_ARGS__)
#define FOR_R(...) overload3(__VA_ARGS__, FOR3_R, FOR2_R, FOR1_R)(__VA_ARGS__)

#define FOR_subset(t, s) for (ll t = (s); t >= 0; t = (t == 0 ? -1 : (t - 1) & (s)))
#define all(x) x.begin(), x.end()
#define len(x) ll(x.size())
#define elif else if

#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second

#define stoi stoll

int popcnt(int x) { return __builtin_popcount(x); }
int popcnt(u32 x) { return __builtin_popcount(x); }
int popcnt(ll x) { return __builtin_popcountll(x); }
int popcnt(u64 x) { return __builtin_popcountll(x); }
int popcnt_sgn(int x) { return (__builtin_parity(x) & 1 ? -1 : 1); }
int popcnt_sgn(u32 x) { return (__builtin_parity(x) & 1 ? -1 : 1); }
int popcnt_sgn(ll x) { return (__builtin_parity(x) & 1 ? -1 : 1); }
int popcnt_sgn(u64 x) { return (__builtin_parity(x) & 1 ? -1 : 1); }
// (0, 1, 2, 3, 4) -> (-1, 0, 1, 1, 2)
int topbit(int x) { return (x == 0 ? -1 : 31 - __builtin_clz(x)); }
int topbit(u32 x) { return (x == 0 ? -1 : 31 - __builtin_clz(x)); }
int topbit(ll x) { return (x == 0 ? -1 : 63 - __builtin_clzll(x)); }
int topbit(u64 x) { return (x == 0 ? -1 : 63 - __builtin_clzll(x)); }
// (0, 1, 2, 3, 4) -> (-1, 0, 1, 0, 2)
int lowbit(int x) { return (x == 0 ? -1 : __builtin_ctz(x)); }
int lowbit(u32 x) { return (x == 0 ? -1 : __builtin_ctz(x)); }
int lowbit(ll x) { return (x == 0 ? -1 : __builtin_ctzll(x)); }
int lowbit(u64 x) { return (x == 0 ? -1 : __builtin_ctzll(x)); }

template <typename T>
T floor(T a, T b) {
  return a / b - (a % b && (a ^ b) < 0);
}
template <typename T>
T ceil(T x, T y) {
  return floor(x + y - 1, y);
}
template <typename T>
T bmod(T x, T y) {
  return x - y * floor(x, y);
}
template <typename T>
pair<T, T> divmod(T x, T y) {
  T q = floor(x, y);
  return {q, x - q * y};
}

template <typename T, typename U>
T SUM(const vector<U> &A) {
  T sm = 0;
  for (auto &&a: A) sm += a;
  return sm;
}

#define MIN(v) *min_element(all(v))
#define MAX(v) *max_element(all(v))
#define LB(c, x) distance((c).begin(), lower_bound(all(c), (x)))
#define UB(c, x) distance((c).begin(), upper_bound(all(c), (x)))
#define UNIQUE(x) sort(all(x)), x.erase(unique(all(x)), x.end()), x.shrink_to_fit()

template <typename T>
T POP(deque<T> &que) {
  T a = que.front();
  que.pop_front();
  return a;
}
template <typename T>
T POP(pq<T> &que) {
  T a = que.top();
  que.pop();
  return a;
}
template <typename T>
T POP(pqg<T> &que) {
  T a = que.top();
  que.pop();
  return a;
}
template <typename T>
T POP(vc<T> &que) {
  T a = que.back();
  que.pop_back();
  return a;
}

template <typename F>
ll binary_search(F check, ll ok, ll ng, bool check_ok = true) {
  if (check_ok) assert(check(ok));
  while (abs(ok - ng) > 1) {
    auto x = (ng + ok) / 2;
    (check(x) ? ok : ng) = x;
  }
  return ok;
}
template <typename F>
double binary_search_real(F check, double ok, double ng, int iter = 100) {
  FOR(iter) {
    double x = (ok + ng) / 2;
    (check(x) ? ok : ng) = x;
  }
  return (ok + ng) / 2;
}

template <class T, class S>
inline bool chmax(T &a, const S &b) {
  return (a < b ? a = b, 1 : 0);
}
template <class T, class S>
inline bool chmin(T &a, const S &b) {
  return (a > b ? a = b, 1 : 0);
}

// ? は -1
vc<int> s_to_vi(const string &S, char first_char) {
  vc<int> A(S.size());
  FOR(i, S.size()) { A[i] = (S[i] != '?' ? S[i] - first_char : -1); }
  return A;
}

template <typename T, typename U>
vector<T> cumsum(vector<U> &A, int off = 1) {
  int N = A.size();
  vector<T> B(N + 1);
  FOR(i, N) { B[i + 1] = B[i] + A[i]; }
  if (off == 0) B.erase(B.begin());
  return B;
}

// stable sort
template <typename T>
vector<int> argsort(const vector<T> &A) {
  vector<int> ids(len(A));
  iota(all(ids), 0);
  sort(all(ids), [&](int i, int j) { return (A[i] == A[j] ? i < j : A[i] < A[j]); });
  return ids;
}

// A[I[0]], A[I[1]], ...
template <typename T>
vc<T> rearrange(const vc<T> &A, const vc<int> &I) {
  vc<T> B(len(I));
  FOR(i, len(I)) B[i] = A[I[i]];
  return B;
}

template <typename T, typename... Vectors>
void concat(vc<T> &first, const Vectors &... others) {
  vc<T> &res = first;
  (res.insert(res.end(), others.begin(), others.end()), ...);
}
#endif
#line 1 "/home/maspy/compro/library/other/io.hpp"
#define FASTIO
#include <unistd.h>

// https://judge.yosupo.jp/submission/21623
namespace fastio {
static constexpr uint32_t SZ = 1 << 17;
char ibuf[SZ];
char obuf[SZ];
char out[100];
// pointer of ibuf, obuf
uint32_t pil = 0, pir = 0, por = 0;

struct Pre {
  char num[10000][4];
  constexpr Pre() : num() {
    for (int i = 0; i < 10000; i++) {
      int n = i;
      for (int j = 3; j >= 0; j--) {
        num[i][j] = n % 10 | '0';
        n /= 10;
      }
    }
  }
} constexpr pre;

inline void load() {
  memcpy(ibuf, ibuf + pil, pir - pil);
  pir = pir - pil + fread(ibuf + pir - pil, 1, SZ - pir + pil, stdin);
  pil = 0;
  if (pir < SZ) ibuf[pir++] = '\n';
}

inline void flush() {
  fwrite(obuf, 1, por, stdout);
  por = 0;
}

void rd(char &c) {
  do {
    if (pil + 1 > pir) load();
    c = ibuf[pil++];
  } while (isspace(c));
}

void rd(string &x) {
  x.clear();
  char c;
  do {
    if (pil + 1 > pir) load();
    c = ibuf[pil++];
  } while (isspace(c));
  do {
    x += c;
    if (pil == pir) load();
    c = ibuf[pil++];
  } while (!isspace(c));
}

template <typename T>
void rd_real(T &x) {
  string s;
  rd(s);
  x = stod(s);
}

template <typename T>
void rd_integer(T &x) {
  if (pil + 100 > pir) load();
  char c;
  do
    c = ibuf[pil++];
  while (c < '-');
  bool minus = 0;
  if constexpr (is_signed<T>::value || is_same_v<T, i128>) {
    if (c == '-') { minus = 1, c = ibuf[pil++]; }
  }
  x = 0;
  while ('0' <= c) { x = x * 10 + (c & 15), c = ibuf[pil++]; }
  if constexpr (is_signed<T>::value || is_same_v<T, i128>) {
    if (minus) x = -x;
  }
}

void rd(int &x) { rd_integer(x); }
void rd(ll &x) { rd_integer(x); }
void rd(i128 &x) { rd_integer(x); }
void rd(u32 &x) { rd_integer(x); }
void rd(u64 &x) { rd_integer(x); }
void rd(u128 &x) { rd_integer(x); }
void rd(double &x) { rd_real(x); }
void rd(long double &x) { rd_real(x); }
void rd(f128 &x) { rd_real(x); }

template <class T, class U>
void rd(pair<T, U> &p) {
  return rd(p.first), rd(p.second);
}
template <size_t N = 0, typename T>
void rd_tuple(T &t) {
  if constexpr (N < std::tuple_size<T>::value) {
    auto &x = std::get<N>(t);
    rd(x);
    rd_tuple<N + 1>(t);
  }
}
template <class... T>
void rd(tuple<T...> &tpl) {
  rd_tuple(tpl);
}

template <size_t N = 0, typename T>
void rd(array<T, N> &x) {
  for (auto &d: x) rd(d);
}
template <class T>
void rd(vc<T> &x) {
  for (auto &d: x) rd(d);
}

void read() {}
template <class H, class... T>
void read(H &h, T &... t) {
  rd(h), read(t...);
}

void wt(const char c) {
  if (por == SZ) flush();
  obuf[por++] = c;
}
void wt(const string s) {
  for (char c: s) wt(c);
}
void wt(const char *s) {
  size_t len = strlen(s);
  for (size_t i = 0; i < len; i++) wt(s[i]);
}

template <typename T>
void wt_integer(T x) {
  if (por > SZ - 100) flush();
  if (x < 0) { obuf[por++] = '-', x = -x; }
  int outi;
  for (outi = 96; x >= 10000; outi -= 4) {
    memcpy(out + outi, pre.num[x % 10000], 4);
    x /= 10000;
  }
  if (x >= 1000) {
    memcpy(obuf + por, pre.num[x], 4);
    por += 4;
  } else if (x >= 100) {
    memcpy(obuf + por, pre.num[x] + 1, 3);
    por += 3;
  } else if (x >= 10) {
    int q = (x * 103) >> 10;
    obuf[por] = q | '0';
    obuf[por + 1] = (x - q * 10) | '0';
    por += 2;
  } else
    obuf[por++] = x | '0';
  memcpy(obuf + por, out + outi + 4, 96 - outi);
  por += 96 - outi;
}

template <typename T>
void wt_real(T x) {
  ostringstream oss;
  oss << fixed << setprecision(15) << double(x);
  string s = oss.str();
  wt(s);
}

void wt(int x) { wt_integer(x); }
void wt(ll x) { wt_integer(x); }
void wt(i128 x) { wt_integer(x); }
void wt(u32 x) { wt_integer(x); }
void wt(u64 x) { wt_integer(x); }
void wt(u128 x) { wt_integer(x); }
void wt(double x) { wt_real(x); }
void wt(long double x) { wt_real(x); }
void wt(f128 x) { wt_real(x); }

template <class T, class U>
void wt(const pair<T, U> val) {
  wt(val.first);
  wt(' ');
  wt(val.second);
}
template <size_t N = 0, typename T>
void wt_tuple(const T t) {
  if constexpr (N < std::tuple_size<T>::value) {
    if constexpr (N > 0) { wt(' '); }
    const auto x = std::get<N>(t);
    wt(x);
    wt_tuple<N + 1>(t);
  }
}
template <class... T>
void wt(tuple<T...> tpl) {
  wt_tuple(tpl);
}
template <class T, size_t S>
void wt(const array<T, S> val) {
  auto n = val.size();
  for (size_t i = 0; i < n; i++) {
    if (i) wt(' ');
    wt(val[i]);
  }
}
template <class T>
void wt(const vector<T> val) {
  auto n = val.size();
  for (size_t i = 0; i < n; i++) {
    if (i) wt(' ');
    wt(val[i]);
  }
}

void print() { wt('\n'); }
template <class Head, class... Tail>
void print(Head &&head, Tail &&... tail) {
  wt(head);
  if (sizeof...(Tail)) wt(' ');
  print(forward<Tail>(tail)...);
}

// gcc expansion. called automaticall after main.
void __attribute__((destructor)) _d() { flush(); }
} // namespace fastio
using fastio::read;
using fastio::print;
using fastio::flush;

#if defined(LOCAL)
#define SHOW(...) SHOW_IMPL(__VA_ARGS__, SHOW6, SHOW5, SHOW4, SHOW3, SHOW2, SHOW1)(__VA_ARGS__)
#define SHOW_IMPL(_1, _2, _3, _4, _5, _6, NAME, ...) NAME
#define SHOW1(x) print(#x, "=", (x)), flush()
#define SHOW2(x, y) print(#x, "=", (x), #y, "=", (y)), flush()
#define SHOW3(x, y, z) print(#x, "=", (x), #y, "=", (y), #z, "=", (z)), flush()
#define SHOW4(x, y, z, w) print(#x, "=", (x), #y, "=", (y), #z, "=", (z), #w, "=", (w)), flush()
#define SHOW5(x, y, z, w, v) print(#x, "=", (x), #y, "=", (y), #z, "=", (z), #w, "=", (w), #v, "=", (v)), flush()
#define SHOW6(x, y, z, w, v, u) print(#x, "=", (x), #y, "=", (y), #z, "=", (z), #w, "=", (w), #v, "=", (v), #u, "=", (u)), flush()
#else
#define SHOW(...)
#endif

#define INT(...)   \
  int __VA_ARGS__; \
  read(__VA_ARGS__)
#define LL(...)   \
  ll __VA_ARGS__; \
  read(__VA_ARGS__)
#define U32(...)   \
  u32 __VA_ARGS__; \
  read(__VA_ARGS__)
#define U64(...)   \
  u64 __VA_ARGS__; \
  read(__VA_ARGS__)
#define STR(...)      \
  string __VA_ARGS__; \
  read(__VA_ARGS__)
#define CHAR(...)   \
  char __VA_ARGS__; \
  read(__VA_ARGS__)
#define DBL(...)      \
  double __VA_ARGS__; \
  read(__VA_ARGS__)

#define VEC(type, name, size) \
  vector<type> name(size);    \
  read(name)
#define VV(type, name, h, w)                     \
  vector<vector<type>> name(h, vector<type>(w)); \
  read(name)

void YES(bool t = 1) { print(t ? "YES" : "NO"); }
void NO(bool t = 1) { YES(!t); }
void Yes(bool t = 1) { print(t ? "Yes" : "No"); }
void No(bool t = 1) { Yes(!t); }
void yes(bool t = 1) { print(t ? "yes" : "no"); }
void no(bool t = 1) { yes(!t); }
#line 3 "main.cpp"

void solve() {
  LL(N);
  VEC(string, dat, N);
  VEC(u128, A, 1 << N);
  VEC(u128, B, 1 << N);
  vc<bool> flip(N);
  // xor, or
  vc<int> tp(N);

  auto convert = [&](vc<u128>& A, int i, int x0, int x1) -> void {
    vc<u128> res(1 << N);
    FOR(s, 1 << N) {
      int t = s;
      int c = t >> i & 1;
      t &= ~(1 << i);
      c = (c == 0 ? x0 : x1);
      t |= c << i;
      res[t] += A[s];
    }
    swap(A, res);
  };

  FOR(i, N) {
    vc<int> S = s_to_vi(dat[i], '0');
    // 可換になるようにする
    if (S[1] == S[2]) {}
    elif (S[0] == S[3]) {
      convert(A, i, 1, 0);
      swap(S[0], S[2]), swap(S[1], S[3]);
    }
    else {
      if (S[0] == S[1]) {
        // B の bit に依存しない
        convert(B, i, 0, 0);
        S[1] = 1 - S[0], S[3] = 1 - S[2];
      } else {
        // A の bit に依存しない
        convert(A, i, 0, 0);
        S[2] = 1 - S[0], S[3] = 1 - S[1];
      }
    }
    assert(S[1] == S[2]);
    if (S[0] == 1) {
      flip[i] = !flip[i];
      FOR(k, 4) S[k] = 1 - S[k];
    }
    ll a = S[1], b = S[3];
    if (a == 0 && b == 0) {
      convert(A, i, 0, 0);
      convert(B, i, 0, 0);
      tp[i] = 0;
    }
    if (a == 0 && b == 1) {
      flip[i] = !flip[i];
      convert(A, i, 1, 0);
      convert(B, i, 1, 0);
      tp[i] = 1;
    }
    if (a == 1 && b == 0) { tp[i] = 0; }
    if (a == 1 && b == 1) { tp[i] = 1; }
  }

  vc<u128> ANS(1 << N);
  FOR(i, N) {
    if (tp[i] == 0) {
      FOR(s, 1 << N) {
        int t = s ^ 1 << i;
        if (s < t) {
          tie(A[s], A[t]) = mp(A[s] + A[t], A[s] - A[t]);
          tie(B[s], B[t]) = mp(B[s] + B[t], B[s] - B[t]);
        }
      }
    } else {
      FOR(s, 1 << N) {
        int t = s ^ 1 << i;
        if (s < t) {
          A[t] += A[s];
          B[t] += B[s];
        }
      }
    }
  }
  FOR(s, 1 << N) ANS[s] += A[s] * B[s];

  swap(A, ANS);
  FOR(i, N) {
    if (tp[i] == 0) {
      FOR(s, 1 << N) {
        int t = s ^ 1 << i;
        if (s < t) { tie(A[s], A[t]) = mp(A[s] + A[t], A[s] - A[t]); }
      }
    } else {
      FOR(s, 1 << N) {
        int t = s ^ 1 << i;
        if (s < t) { A[t] -= A[s]; }
      }
    }
  }

  FOR(i, N) if (flip[i]) convert(A, i, 1, 0);
  ll n = 0;
  FOR(i, N) n += (tp[i] == 0);
  for (auto& x: A) x >>= n;
  print(A);
}

signed main() { solve(); }

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3652kb

input:

3
0111 0110 0001
0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0

output:

0 0 0 0 0 0 0 1

result:

ok 8 numbers

Test #2:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

2
1100 1101
2 0 2 1
2 0 2 1

output:

2 4 3 16

result:

ok 4 number(s): "2 4 3 16"

Test #3:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

1
0000
142857142 857142857
998244353 1755646

output:

999999998000000001 0

result:

ok 2 number(s): "999999998000000001 0"

Test #4:

score: 0
Accepted
time: 0ms
memory: 3708kb

input:

8
0000 0001 0010 0011 0101 1011 1101 1111
92726 51723 30325 31984 47551 61529 94856 58867 99699 44383 29317 34253 85206 99155 54057 21538 23635 64524 11223 78186 73723 38530 99909 38218 32839 92947 57594 79376 87975 25597 26783 11600 77813 98155 26224 76035 42536 80097 32406 81442 49449 76444 40502 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2008949968122 0 631347707836 0 560922365664 ...

result:

ok 256 numbers

Test #5:

score: 0
Accepted
time: 0ms
memory: 3720kb

input:

9
1011 1011 0111 0110 1000 0000 0001 0100 1011
3 1 3 6 0 3 0 0 2 9 4 4 3 0 4 0 3 2 3 0 0 4 0 0 3 4 0 6 2 2 4 5 0 2 3 3 2 4 4 0 3 1 3 5 3 0 4 4 0 0 5 0 2 1 2 0 3 4 0 4 0 8 3 3 0 4 5 0 2 2 3 4 3 1 1 5 7 0 0 0 2 3 0 2 3 5 0 0 0 4 0 0 2 4 3 2 2 6 0 3 5 2 4 7 5 0 2 5 5 0 6 2 3 0 0 5 1 4 5 8 4 2 3 7 0 4 5...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 512 numbers

Test #6:

score: 0
Accepted
time: 0ms
memory: 4012kb

input:

9
1011 0011 0010 1100 1000 0001 1111 0101 1000
0 0 135 0 87 0 0 0 37 108 65 42 0 37 41 82 0 0 0 72 0 39 0 39 35 0 0 38 34 0 0 0 0 65 36 119 0 51 0 102 0 63 46 42 0 60 0 0 0 0 0 130 0 135 0 59 58 85 0 39 70 115 51 0 0 78 0 0 0 104 0 0 0 69 97 84 0 0 102 111 66 0 0 38 47 0 86 0 0 0 0 92 66 0 0 36 0 13...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 512 numbers

Test #7:

score: 0
Accepted
time: 0ms
memory: 3704kb

input:

8
0011 0011 0010 0011 1001 0011 0011 0110
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12121085 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

3934398721594 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2963689896687 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 159029483675950 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 95789831757240 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

result:

ok 256 numbers

Test #8:

score: 0
Accepted
time: 26ms
memory: 20324kb

input:

18
0000 1000 1110 0111 1100 1101 0100 1010 0110 1100 1111 0101 0011 0000 0111 0111 0111 1001
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 142575 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 142077 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #9:

score: 0
Accepted
time: 48ms
memory: 20332kb

input:

18
1111 1101 1111 0000 0010 1010 0000 0001 0001 1010 0001 1101 1101 0111 0001 1111 1111 0101
0 0 0 0 0 0 0 6358 0 0 0 0 5280 0 0 0 0 0 0 0 0 0 0 48275 0 0 0 0 0 0 0 7419 0 0 0 0 13995 14749 0 40733 0 0 0 6442 12567 0 0 0 0 0 5833 0 0 0 0 0 0 18289 0 0 0 0 7984 0 0 0 4759 28376 0 0 24433 0 0 0 0 2685...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #10:

score: 0
Accepted
time: 38ms
memory: 20556kb

input:

18
1111 0011 1111 1111 0100 0111 0001 1011 1101 1101 1110 0101 0001 1000 1010 1111 1011 1100
5739 1851 4773 2788 6337 2030 2626 5472 5171 3665 2244 1901 2845 2428 5850 4939 1999 6190 4567 1942 6638 6044 4223 3682 2014 5071 5998 2702 2603 3034 2297 3612 4372 1870 3586 3278 3635 5925 2485 4909 2143 54...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #11:

score: 0
Accepted
time: 59ms
memory: 20344kb

input:

18
1111 1111 0000 0000 1111 1111 1111 1111 1111 0000 1111 1111 1111 1111 0000 0000 1111 1111
3428 2373 5164 6142 3160 5392 2861 2981 5626 5804 2410 4436 3251 5000 4628 4219 2853 2952 3210 4280 4647 2754 2408 2880 2922 3643 4423 2291 2996 6104 2644 3847 2184 3199 3506 4451 2834 4270 2469 2369 5679 22...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #12:

score: 0
Accepted
time: 40ms
memory: 20328kb

input:

18
0001 1011 1101 0010 0010 1000 1101 1110 0111 1000 0001 1110 1110 0010 1110 0010 1000 0100
1907 6208 3341 2733 3297 6079 3239 3522 3468 2073 5386 1847 2296 3586 1855 6297 5949 2469 3452 1979 2298 1983 4693 2075 3967 6432 5871 2173 6847 1707 2765 6660 3778 1737 1842 6176 3761 6215 6919 4678 3587 44...

output:

821815547040 277236477931 2496517092339 830861092289 2512304427837 791117443342 7530541598250 2539256552964 263497389329 97590192678 847323634123 297089226928 859524245746 287504627229 2512549542454 871034153483 272509283037 92078650413 885904213758 316325463646 817171978217 267670904689 25537041110...

result:

ok 262144 numbers

Test #13:

score: 0
Accepted
time: 32ms
memory: 20388kb

input:

18
1100 1010 1100 1001 1100 1001 0101 0011 0011 0101 1001 0101 0011 1010 1001 0101 1001 0110
17512 4711 4453 6374 7688 6234 1807 11704 2191 1200 191 648 300 4285 1563 8450 993 1104 4857 8017 1806 8447 1103 6721 740 3598 2542 234 267 351 6286 2197 1060 5249 3309 1103 1446 3184 227 13471 14130 5206 12...

output:

3837207807662 3704048012214 3911045816852 3747357978907 3787884910292 3679790316609 3845452565863 3743540195593 3861602657905 3678829192985 3937650871775 3744546082441 3818173676257 3681642528992 3843493729654 3725066595181 3821512844028 3900767681527 3886362440609 3957202064063 3768601805354 376631...

result:

ok 262144 numbers

Test #14:

score: 0
Accepted
time: 54ms
memory: 20444kb

input:

18
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
817 341 1022 581 4276 478 342 6102 2325 3613 2946 14098 816 1803 13816 2034 934 3212 1292 280 753 11305 9177 11287 1057 2322 767 14062 4669 6839 3888 578 3674 7127 3066 9211 8258 4569 899 5949 638 4639 2125 ...

output:

1000000000000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #15:

score: 0
Accepted
time: 61ms
memory: 20628kb

input:

18
0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001 0001
3541 5365 313 8956 4263 375 659 485 2842 1487 12056 316 2457 8920 577 393 1160 841 475 1108 11340 2842 4633 8412 1576 13332 1265 2933 9758 1185 6510 2718 622 833 11309 3704 672 965 2327 13837 12769 14282 296...

output:

5576992826556934 1877220561341225 1884741306688518 633074092338474 1864467724517669 632455679411813 630608052988633 213551722475967 1871780402237088 634936728283808 631205139125660 212108848408754 623561524969635 210517275283448 207548323764782 70753011724800 1866841466759950 624999211427976 6292955...

result:

ok 262144 numbers

Test #16:

score: 0
Accepted
time: 41ms
memory: 20088kb

input:

18
0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010
3540 4186 3433 3640 4199 3455 4156 3838 3473 3693 3745 4119 4004 3517 4169 3755 3638 4125 3425 3783 3561 3736 3698 3847 3670 3942 3925 3440 4080 3986 3721 4244 3787 4029 3607 3745 3750 4112 3780 3516 3856 42...

output:

5634517950078845 1878737050095880 1879417554550171 626008649753398 1888680048619052 628289362560888 631267605295482 208894483957039 1877467708821336 624233005661379 626201830369968 208296528946200 627281558565143 208208739424437 209856555893648 69435481978773 1876715648890296 626450969864908 6248827...

result:

ok 262144 numbers

Test #17:

score: 0
Accepted
time: 30ms
memory: 20032kb

input:

18
0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011
819 2136 5753 3749 1626 10733 3120 5704 2657 6856 2241 2843 8261 2881 7768 8745 4164 6273 1481 3822 2175 3949 1896 1443 10558 8678 1219 2442 6780 3496 6879 4569 2856 1428 2879 1693 3879 1364 1759 1036 9506 8...

output:

819000000000 2136000000000 5753000000000 3749000000000 1626000000000 10733000000000 3120000000000 5704000000000 2657000000000 6856000000000 2241000000000 2843000000000 8261000000000 2881000000000 7768000000000 8745000000000 4164000000000 6273000000000 1481000000000 3822000000000 2175000000000 394900...

result:

ok 262144 numbers

Test #18:

score: 0
Accepted
time: 62ms
memory: 20632kb

input:

18
0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100
5822 3497 2089 3855 3274 6131 4856 5958 1991 6792 3537 2684 2758 4151 1970 4436 5899 4183 6219 3213 4003 3687 2694 3455 3400 2685 4722 4211 3747 2646 6635 2717 4908 5130 3437 3238 5474 2209 2695 3221 3112 20...

output:

5652973685122678 1880879052208564 1885252019495356 624952100505253 1870106268569058 624961740026212 624800564042501 207416768151899 1885290981366188 631276421847373 624620427329104 207938749305612 624060371577603 209357295098988 207558003108914 69869745287031 1890118006174813 627620864088226 6270589...

result:

ok 262144 numbers

Test #19:

score: 0
Accepted
time: 33ms
memory: 20132kb

input:

18
0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101 0101
4652 14110 291 450 1418 679 6027 1499 435 2510 2613 504 207 1422 8940 499 1429 6954 14728 319 904 661 586 216 3030 2929 502 8889 410 1351 1637 2908 368 2759 11730 371 13719 1576 220 6764 527 1236 1654 3068 2...

output:

3473000000000 3831000000000 4559000000000 3719000000000 3979000000000 4430000000000 3657000000000 3468000000000 3350000000000 3149000000000 3391000000000 3584000000000 3497000000000 3993000000000 3156000000000 3917000000000 3931000000000 3213000000000 3388000000000 4168000000000 4042000000000 394200...

result:

ok 262144 numbers

Test #20:

score: 0
Accepted
time: 24ms
memory: 19828kb

input:

18
0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110 0110
747 3331 7799 2460 4261 647 3556 9310 7987 2690 7875 576 3486 1992 8667 11001 739 6652 2447 1953 5054 1937 1753 1660 3575 12392 11466 2612 1399 650 1559 1754 2302 932 5595 3258 1398 5165 2143 4915 2913 4771 ...

output:

3810773682567 3816564475726 3816017721519 3820134948553 3817662208652 3804628086541 3814908871811 3818946671240 3810810365224 3823886806885 3817345802115 3819873085519 3818997580406 3808747687656 3809142320452 3816481610365 3822132654182 3815695378795 3812160677456 3816112538171 3816606123049 381483...

result:

ok 262144 numbers

Test #21:

score: 0
Accepted
time: 26ms
memory: 19948kb

input:

18
0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111 0111
1601 3979 1201 8944 8753 1748 6006 430 1322 1162 9165 5156 4171 5271 2795 3526 2965 2611 1587 1805 1797 4612 1065 2984 1797 488 12111 481 4203 858 1301 1865 1276 10363 1245 781 1360 2413 7503 1676 8833 444 2...

output:

10044674 47808766 15927064 225969446 105060744 118551559 181553318 466245763 14698521 65342439 191555016 570977554 116078113 392760716 565677596 1281767331 32734180 129230204 47213744 353203324 145728238 477040909 299224713 1123031050 57544020 154984071 568433982 1035402745 366379821 901445455 12525...

result:

ok 262144 numbers

Test #22:

score: 0
Accepted
time: 35ms
memory: 19852kb

input:

18
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000
877 16148 484 3764 4796 7632 1193 11166 298 972 299 4327 10920 446 361 3563 248 733 258 1105 5096 1072 271 1984 483 1629 16118 257 1647 7407 1113 7040 7502 4961 10224 2381 265 9828 5815 329 5052 404 7914 502...

output:

5628774760746846 1877535753999913 1886314092497234 628641222388775 1888626660483760 620874551076035 636338704116748 209648687522237 1871503920958785 632053717507276 612145818909763 211200557105344 624264888858701 208260278645227 207301342589988 71059634274772 1881803876627187 623386992175411 6320197...

result:

ok 262144 numbers

Test #23:

score: 0
Accepted
time: 26ms
memory: 19952kb

input:

18
1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001 1001
4578 4212 3900 3640 3425 3748 4295 3796 4402 3760 4068 4370 4214 4302 3171 3643 3180 3507 4487 3826 4516 3529 3875 3923 4045 4042 3914 3164 3270 3447 3979 4280 3366 3323 4169 3595 4397 3788 3391 4411 3234 37...

output:

3814136458446 3815716892725 3815201734410 3814402329683 3814387280981 3814972806693 3813072254501 3814736057570 3815436946990 3813628206268 3814792537264 3814458427209 3814454283600 3814961506542 3814633678262 3814324374866 3813691461442 3815001449257 3815203072233 3815027438524 3815638116627 381462...

result:

ok 262144 numbers

Test #24:

score: 0
Accepted
time: 48ms
memory: 20164kb

input:

18
1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010 1010
5669 4529 6076 5212 3525 2992 3097 2830 4800 4885 4233 3962 5622 2286 4034 2322 3040 3967 4020 6000 4588 2379 4756 3124 3063 4034 2535 5870 2873 3069 3240 2851 4975 3647 3163 2348 2381 3789 3284 6038 2334 27...

output:

1008000000000 1480000000000 4836000000000 9292000000000 828000000000 5072000000000 2193000000000 5916000000000 4463000000000 773000000000 1428000000000 9043000000000 689000000000 4397000000000 1253000000000 945000000000 1962000000000 3116000000000 8649000000000 5179000000000 1127000000000 1249000000...

result:

ok 262144 numbers

Test #25:

score: 0
Accepted
time: 49ms
memory: 20588kb

input:

18
1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011 1011
3831 1676 4825 1935 2959 4024 3260 3427 3472 3626 2381 4266 2586 3824 4350 3261 1808 3741 5166 1979 3217 2267 5960 7166 3333 4293 5025 2391 1893 5014 6940 2257 5794 3148 7058 1764 2534 7269 2319 4729 1967 31...

output:

24878514 38027947 55189486 77084290 34309916 99738433 79904459 352455086 41286666 87339848 97092838 302988359 103987976 277394314 260538273 1080468192 20103789 96550246 137326061 225934873 62180591 239995658 286457082 1009761302 106575699 450852351 457538447 986546314 230950423 1006876665 1012020850...

result:

ok 262144 numbers

Test #26:

score: 0
Accepted
time: 48ms
memory: 20000kb

input:

18
1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100 1100
3868 3761 3847 3755 4007 3526 4025 4129 4030 4114 4137 4051 3679 3889 3557 3854 3584 3710 3628 3723 3885 3481 3687 3902 3510 3591 4005 3736 4115 3533 3929 3478 3850 3731 4108 3622 3530 3775 4026 4029 3698 37...

output:

4146000000000 3731000000000 4067000000000 3495000000000 3643000000000 3496000000000 3474000000000 4000000000000 3626000000000 4128000000000 4162000000000 4123000000000 3727000000000 3760000000000 4096000000000 3775000000000 3851000000000 3742000000000 3722000000000 3707000000000 3630000000000 404100...

result:

ok 262144 numbers

Test #27:

score: 0
Accepted
time: 34ms
memory: 20008kb

input:

18
1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101 1101
9062 8321 10475 10729 8983 985 1955 1373 6392 3698 6465 4850 1278 4581 2138 10453 6197 1072 11183 3838 1205 2192 5594 1714 960 2945 6321 878 10856 4699 3508 1998 3262 6742 2397 2915 3435 2331 1406 2705 4529 ...

output:

9230816 16434619 28611076 133478033 32136814 182418031 77036566 319815705 23134152 87693107 183434156 447460907 45669851 323080434 173945580 730827883 37491331 206839034 271567373 793055856 78854357 398172198 368649574 1257145261 202219536 806950121 545789372 1638988101 427576868 1949202227 16137147...

result:

ok 262144 numbers

Test #28:

score: 0
Accepted
time: 49ms
memory: 20364kb

input:

18
1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110 1110
3809 3857 3854 3809 3821 3843 3773 3824 3807 3805 3845 3824 3859 3839 3779 3860 3775 3800 3859 3790 3823 3829 3838 3832 3774 3783 3862 3805 3786 3840 3863 3804 3768 3793 3843 3808 3821 3774 3832 3837 3811 38...

output:

14596148 43597864 42153814 127016762 44938517 132344986 132378565 391577072 45049628 130845831 130107160 386711373 131210077 386721659 395892235 1164063219 42572348 131048498 130654851 392049965 131607831 391860548 397736062 1169437889 133677756 390655491 390490873 1159887158 390283299 1164413333 11...

result:

ok 262144 numbers

Test #29:

score: 0
Accepted
time: 48ms
memory: 20208kb

input:

18
1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111
981 9077 4187 3068 483 2811 351 436 1194 5209 5266 1025 491 8097 565 4873 483 13219 6661 12349 7513 3326 4505 677 562 5294 11483 2280 581 1471 8516 1915 14133 504 3441 493 2799 559 13897 969 5047 3311 4726 4...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #30:

score: 0
Accepted
time: 37ms
memory: 20328kb

input:

18
0100 1000 0111 1100 1100 0011 0010 0100 0110 1101 1001 1011 1111 0000 1110 0001 0101 1010
3320 3398 191 3050 2142 1005 688 201 295 1653 514 453 3634 96 2473 3417 3327 3496 3653 3700 1530 1145 1804 1464 1683 2248 3020 1795 1917 3441 3552 729 1829 3761 1593 3174 685 2631 1987 466 1936 2857 334 804 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #31:

score: 0
Accepted
time: 36ms
memory: 20424kb

input:

18
0100 0100 1101 1000 0011 0000 0111 1011 0010 0101 0110 1001 1111 1010 0001 1111 1100 1110
3564 141 736 1473 2549 3141 940 995 2617 1754 1994 2547 3658 2174 975 1233 943 189 2148 3376 3545 1038 2189 2401 2367 802 3673 1987 3370 371 2536 2560 1957 2412 796 1879 2363 120 550 3 263 2985 1794 1342 270...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #32:

score: 0
Accepted
time: 48ms
memory: 20368kb

input:

18
0100 0011 0111 1011 1000 0000 1001 1110 0011 0110 0100 0001 1111 1010 0101 1100 0010 1101
3808 1773 2354 3711 1882 2534 1192 1790 2196 1855 3475 3569 939 3179 550 2864 1301 3438 644 311 1744 2003 3647 3338 3050 3171 3252 2179 3749 1116 1521 576 2084 3804 1071 1658 226 1424 2928 2282 2405 2041 218...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #33:

score: 0
Accepted
time: 45ms
memory: 20548kb

input:

18
0001 0001 1001 0101 0000 0100 1000 1100 0010 1110 0110 1010 0100 1101 0111 1011 1111 0011
2978 2331 157 2135 2288 855 1443 1511 1776 882 1140 1849 2035 1443 2867 680 2732 131 2954 1061 2685 1896 216 460 3734 1725 90 1298 1387 1861 505 2407 3285 2454 1347 364 2977 2728 1491 1819 732 2170 2568 3490...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #34:

score: 0
Accepted
time: 0ms
memory: 3772kb

input:

8
0100 0011 1111 0011 0101 1111 1101 1101
0 0 0 0 0 0 0 909 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1077 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 765 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 256 numbers

Test #35:

score: 0
Accepted
time: 1ms
memory: 4044kb

input:

11
1000 1001 0001 1000 0011 0011 0111 1000 0001 1011 1111
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 2048 numbers

Test #36:

score: 0
Accepted
time: 1ms
memory: 4164kb

input:

13
1011 1100 1000 0101 1001 1001 0001 1111 0011 0010 1110 1011 0100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 8192 numbers

Test #37:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

8
0101 1001 1110 0001 1101 1011 1110 0100
0 0 0 0 0 0 0 0 1839220 0 0 0 0 0 0 0 0 0 2176655 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2280169280819 0 0 0 0 0 0 0 1926683784031 0 0 0 0 1400666086266 0 0 860406384012 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 406836409395 0 1825295648361 0 0 0 0 0 0 614314891428 0 0 0 0 0 0 0 3963058808448 0 1...

result:

ok 256 numbers

Test #38:

score: 0
Accepted
time: 7ms
memory: 7904kb

input:

16
1010 1010 0100 1100 0001 1000 0010 0011 1000 0110 0100 1010 1000 0111 0001 1100
10810 0 6111 20007 6431 0 7909 6879 15254 10794 12584 14526 15974 8358 8754 11657 11700 7215 16808 13343 20446 8709 6793 13439 18607 14842 10250 18738 6161 9223 8231 13726 11673 5932 6548 12486 7151 8840 10039 15411 1...

output:

0 0 239658 0 0 0 0 0 0 0 208640 0 0 0 0 0 0 0 183694 0 0 0 0 0 0 0 151422 0 0 0 0 0 0 0 210837 0 0 0 0 0 0 0 199489 0 0 0 0 0 0 0 204289 0 0 0 0 0 0 0 193475 0 0 0 0 0 0 0 182844 0 0 0 0 0 0 0 160390 0 0 0 0 0 0 0 197153 0 0 0 0 0 0 0 219303 0 0 0 0 0 0 0 151989 0 0 0 0 0 0 0 186449 0 0 0 0 0 0 0 20...

result:

ok 65536 numbers

Test #39:

score: 0
Accepted
time: 1ms
memory: 3904kb

input:

12
1110 0011 1011 0100 0110 0000 0111 0001 0001 1101 1000 0100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 53643578 1144572 3242954 0 0 0 0 0 0 5532098 3242954 0 0 0 0 0 47587045 4387526 2289144 0 0 0 0 0 0 2861430 3815240 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 4096 numbers

Test #40:

score: 0
Accepted
time: 35ms
memory: 20588kb

input:

18
0101 0110 1001 1111 0101 1111 1001 1011 1111 0101 0111 0110 0111 0100 1000 1010 0111 0010
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #41:

score: 0
Accepted
time: 4ms
memory: 5592kb

input:

15
0111 1100 1010 0111 1111 0011 1101 1101 1111 1100 1100 0101 0011 1011 0110
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 32768 numbers

Test #42:

score: 0
Accepted
time: 0ms
memory: 3708kb

input:

8
1111 1100 0001 1011 1010 0110 0010 1110
998496 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2102007 0 0 0 0 0 0 0 1745071 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 1553910440 0 0 0 2292135846 0 2043438270 0 15264999859 0 0 0 3418038351 0 0 0 0 0 0 0 0 0 4043578260 0 8321201762 0 0 0 11299355886 0 0 0 8058257734 0 0 0 0 0 25092555990 0 30924962543 0 0 0 62529600315 0 0 0 0 0 0 0 0 0 6030488220 0 9577648534 0 0 0 16851567642 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

result:

ok 256 numbers

Test #43:

score: 0
Accepted
time: 0ms
memory: 3952kb

input:

1
0010
0 8824
69802 0

output:

0 615932848

result:

ok 2 number(s): "0 615932848"

Test #44:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

3
1000 0100 0001
0 0 0 6 7 0 5 5
0 0 0 0 49 47 45 0

output:

846 0 0 0 1269 813 0 315

result:

ok 8 numbers

Test #45:

score: 0
Accepted
time: 10ms
memory: 8040kb

input:

16
1011 0100 0111 1010 0011 0000 0010 1101 0110 0001 0001 0001 1101 1100 1101 0001
0 0 0 0 0 0 0 0 0 0 0 0 207 0 0 0 196 0 0 0 0 0 0 0 208 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 214 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 197 206 0 0 197 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

2028 5529 1437 5151 10027 21138 4497 9156 6929 16135 1840 5307 13418 27203 4132 19811 2054 7046 203 2645 14905 28859 1833 14972 4864 18206 609 3449 19146 41074 4303 22596 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 393 4641 388 1004 4471 9005 1578 2430 409 3065 805 806 3833 10529...

result:

ok 65536 numbers

Test #46:

score: 0
Accepted
time: 0ms
memory: 3916kb

input:

4
0011 1010 1011 1011
34 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0

output:

0 0 0 0 0 0 0 0 0 0 0 0 34 4 0 0

result:

ok 16 numbers

Test #47:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

13
0001 1111 1101 1100 1001 1001 0110 0100 1110 1000 1000 1111 0100
4191 4454 4268 4449 4449 4386 4142 4332 4045 4033 4160 4102 4400 4136 4308 4090 4133 4167 4049 4229 4392 4192 4225 4293 4379 4136 4411 4308 4320 4459 4259 4491 4149 4338 4287 4134 4397 4396 4032 4281 4334 4416 3999 4152 4147 4453 40...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 8192 numbers

Test #48:

score: 0
Accepted
time: 0ms
memory: 3980kb

input:

4
1100 0000 1011 0111
3 4 5 1 8 10 24 10 30 16 5 34 15 4 2 47
61 97 325 155 84 74 123 253 67 223 51 202 138 109 177 289

output:

2670 4272 0 0 26630 42608 0 0 65915 49349 0 0 210713 127147 0 0

result:

ok 16 numbers

Test #49:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

7
0101 1101 1100 0111 0011 1100 0100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1
14 10 7...

output:

0 0 490 456 85 80 76 68 0 0 795 799 79 84 81 81 167 161 162 147 85 80 398 364 481 489 476 461 79 84 401 411 167 161 162 147 0 0 0 0 157 164 157 157 0 0 0 0 85 80 76 68 170 160 152 136 403 409 400 385 158 168 162 162 0 0 168 160 82 81 86 79 0 0 476 472 78 80 76 76 0 0 0 0 82 81 422 399 0 0 0 0 78 80 ...

result:

ok 128 numbers

Test #50:

score: 0
Accepted
time: 0ms
memory: 3724kb

input:

9
1011 1011 0101 0011 0101 0001 1110 0011 0011
65 65 58 57 54 45 45 61 62 54 45 69 50 51 47 45 45 45 67 65 48 58 52 72 70 67 56 54 64 46 58 41 65 47 64 59 67 67 59 51 68 63 47 67 66 45 50 61 69 62 64 54 62 44 48 57 56 59 62 51 58 50 45 47 52 58 52 50 70 67 48 45 48 66 54 52 68 53 67 57 58 49 47 58 4...

output:

94507 251130 198054 657398 90383 259890 161481 912181 90082 248423 213412 700217 86800 256532 174312 965198 41096 129248 120462 271920 24300 86651 86116 340616 39504 127809 131500 289536 23288 85665 92808 358811 10080 71163 70711 273053 16080 81687 51168 224394 8484 69219 67982 290293 13534 79973 50...

result:

ok 512 numbers

Test #51:

score: 0
Accepted
time: 15ms
memory: 12436kb

input:

17
0011 1100 0111 0000 1110 1000 0101 0100 0101 1000 0000 1110 0111 0010 1100 0011 1000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 147203746492192 36691256498528 19866927133504 126311898254944 81105853675600 87856897828848 32496716554416 28719562819824 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 66098002223200 0 24392093846992 34568658896720 0 68796844429344 0 12861622023264 0 0 0 0 0 0 0 0 0...

result:

ok 131072 numbers

Test #52:

score: 0
Accepted
time: 2ms
memory: 4604kb

input:

14
0110 0111 0011 1111 0001 1110 1110 0110 1011 0000 0111 0000 0000 1111
0 0 0 2916786 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 703164 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 329260 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 16384 numbers

Test #53:

score: 0
Accepted
time: 11ms
memory: 7972kb

input:

16
1010 1000 1110 1000 1011 0100 1000 0101 1000 1010 0110 0011 0010 0110 0100 0111
2419 35934 2569 5448 23170 16095 3525 20854 9765 24130 1598 2350 1667 19643 2108 9172 19080 1631 25399 43538 2052 2500 9394 3124 24970 35619 2235 2993 7402 6731 4497 11273 25934 30348 2807 11920 2230 1898 13834 1678 4...

output:

31452319026806 32461433670051 10509176391588 10906262726924 97369071375986 99877499322876 33684971821222 34296547614526 10264486548755 9852505384702 3591597682996 3373127787088 32772835984965 32924780223933 10906616381900 11052360904037 91587061619433 95442955220419 33158933031116 34592025345455 297...

result:

ok 65536 numbers

Test #54:

score: 0
Accepted
time: 2ms
memory: 5592kb

input:

15
1100 0001 1010 0100 1010 1010 1100 0000 0111 0000 1011 0000 0011 1111 0101
34354 26271 29963 29962 27317 29897 29177 27652 26046 29393 29891 31529 25837 34778 29264 35104 35413 32906 27807 25549 30475 31351 25728 26272 27032 26033 32545 27568 33536 35453 35042 27516 29512 26679 28276 30759 27810 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 32768 numbers

Test #55:

score: 0
Accepted
time: 0ms
memory: 3752kb

input:

7
1100 1110 1011 0100 0011 0111 0000
7884659 1208677 4767227 14958757 4990350 24740736 13040675 666903 15658883 176999 335803 367972 3306315 530562 20604016 29707991 7532130 918585 581390 17962070 441852 1103010 9910807 3792624 10860234 2400423 385194 730790 2092631 1154635 134518 5992275 2293100 69...

output:

1470117199595793 550369365230493 2421465185138032 6108097909950568 9405534272177743 10701389405906283 34269670829485193 20194109424947541 1375863571350372 467068146671172 1563812528863619 2027131262322488 1686978920895212 5437031171748852 8453777634419464 8483956881572085 1961110600764534 1643704263...

result:

ok 128 numbers

Test #56:

score: 0
Accepted
time: 11ms
memory: 12240kb

input:

17
1010 0101 0010 0011 0010 1100 0111 0110 0100 0100 1110 0111 1100 0100 1011 1001 1111
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78268 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 141498 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 131072 numbers

Test #57:

score: 0
Accepted
time: 37ms
memory: 20332kb

input:

18
1100 0100 1101 1011 1101 1001 1101 0011 1000 1000 1111 1101 1001 1001 0101 1101 0001 1010
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #58:

score: 0
Accepted
time: 0ms
memory: 3860kb

input:

10
0000 0011 1010 1100 1110 0100 0010 0110 1000 1010
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 68027897366 0 45450952956 0 45153888208 0 45153887904 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 45153887904 0 0 0 44559757800 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 1024 numbers

Test #59:

score: 0
Accepted
time: 4ms
memory: 5592kb

input:

15
0101 1110 0110 1100 1000 1011 1101 1111 0110 0101 0010 1101 0111 0000 0001
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 357016 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 478777 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 504143 0 0 0 0 309132 0 0 0 0 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3768272 2261724 5894011 0 0 0 5087523 0 68...

result:

ok 32768 numbers

Test #60:

score: 0
Accepted
time: 31ms
memory: 20304kb

input:

18
0110 1001 0011 1000 0001 0101 0111 0000 1100 1011 1100 0001 1010 1011 1011 1100 1000 0101
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #61:

score: 0
Accepted
time: 1ms
memory: 3888kb

input:

13
1000 0111 0101 0100 0001 0111 1000 0101 0010 1001 1010 0010 1010
13 17 13 12 12 14 16 16 16 13 13 13 12 13 16 17 14 15 17 16 12 17 14 13 13 11 12 16 12 13 13 12 18 14 14 13 12 12 13 14 11 18 13 11 14 11 12 13 15 15 17 12 12 13 14 15 17 14 15 13 13 14 12 11 10 15 12 16 14 13 13 11 17 13 15 14 12 1...

output:

18777 6253 21738 9069 12623 8931 25470 21700 3626 1786 6488 4476 896 887 2759 2668 2755 901 3592 1794 4480 891 8182 4569 1782 0 2711 883 0 0 0 0 47838 18787 94524 43623 55719 14341 101778 60055 7357 3566 17325 6405 13745 6247 30018 22542 4533 881 5423 1808 20719 893 28009 8128 3617 0 4570 871 0 0 0 ...

result:

ok 8192 numbers

Test #62:

score: 0
Accepted
time: 43ms
memory: 20632kb

input:

18
0110 0001 1010 0001 0001 1010 0100 1011 1011 0011 1101 0010 1011 0000 1110 1010 0010 1101
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #63:

score: 0
Accepted
time: 0ms
memory: 4068kb

input:

12
1110 0100 0101 0111 1001 0101 1110 0110 1111 1011 0011 0011
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 4096 numbers

Test #64:

score: 0
Accepted
time: 1ms
memory: 3768kb

input:

10
1010 1000 0111 0000 0101 0101 1100 1101 0110 0101
0 0 4835550 73856 3573217 297006 110552 151633 2786317 0 0 0 605698 174628 128174 328520 0 252751 536662 270327 836377 0 1139486 4901014 0 1873989 1226945 138943 152657 0 3040788 2452201 0 104063 95353 337474 215090 5494405 5606343 149608 148606 1...

output:

655805668082869 784302105765786 103212116740768 137874023047132 2008300204315092 2122164228265197 700008922669623 424358978091271 0 0 0 0 0 0 0 0 822544181068179 769141094900440 271994855857646 239273675325958 2504414933639495 1924807383679114 770844669731591 564004554786174 0 0 0 0 0 0 0 0 53125288...

result:

ok 1024 numbers

Test #65:

score: 0
Accepted
time: 2ms
memory: 4212kb

input:

13
1011 1011 1110 1010 1010 0001 1111 1110 0101 1011 1010 0010 0100
106409 116990 102666 130780 140527 130489 105609 105275 125977 110552 99076 132207 148362 106632 142138 123592 103726 139811 143511 145221 102000 114957 140075 147676 114300 101899 98590 108931 108976 147638 99650 107671 146030 1370...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 24403245779296 75183317426255 85730073608258 263487323151207 73611403862113 221450828292219 223197168971090 690310864528212 24951278299794 86047135256680 81838494852753 275...

result:

ok 8192 numbers

Test #66:

score: 0
Accepted
time: 41ms
memory: 20428kb

input:

18
0010 0010 1100 0010 1001 1100 0000 1111 1000 1010 1101 1000 0001 1010 0100 0101 0100 0010
3913 3739 3805 3716 3947 3966 3824 3774 3950 3757 3794 3853 3971 3708 3966 3910 3875 3639 3753 3686 3935 3935 3741 3892 3626 3751 3685 3995 3682 3895 4018 3896 3944 3909 3762 3809 3818 3707 4015 3960 3905 38...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 292784605464670 98442108883436 9797093558592...

result:

ok 262144 numbers

Test #67:

score: 0
Accepted
time: 37ms
memory: 20332kb

input:

18
0110 0100 1011 0100 1001 1111 1111 0101 1010 0100 0010 0100 0100 0111 1111 0001 0111 1110
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 126 0 0 0 0 0 0 0 0 0 0 0 99 0 0 0 0 0 0 0 0 194 0 0 128 0 0 0 0 81 0 0 0 0 0 0 0 109 0 0 0 0 0 0 0 0 0 0 87 0 0 0 0 89 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 388 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #68:

score: 0
Accepted
time: 36ms
memory: 20628kb

input:

18
1000 0000 1000 0011 0001 0111 1001 0111 1001 0111 1000 1111 0100 1100 1001 0010 0010 1100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #69:

score: 0
Accepted
time: 35ms
memory: 20260kb

input:

18
0110 1000 1101 0011 0100 0111 0110 0110 0010 0010 1011 0000 1011 0111 0011 1111 0010 0101
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 665 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 431 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #70:

score: 0
Accepted
time: 40ms
memory: 20624kb

input:

18
0110 1100 1101 1110 1001 1100 1000 1000 1100 1111 0001 0100 0111 1101 1100 0001 1110 0011
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 340967 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193045 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #71:

score: 0
Accepted
time: 36ms
memory: 20324kb

input:

18
1011 1000 0000 0100 0011 1011 0101 0111 1110 0111 1101 0011 0111 0000 1110 1101 1010 1100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #72:

score: 0
Accepted
time: 45ms
memory: 20332kb

input:

18
1011 0000 0101 1100 0100 0001 0010 0100 0111 0101 1011 0010 1010 0000 1011 1100 1011 1010
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #73:

score: 0
Accepted
time: 40ms
memory: 20288kb

input:

18
1001 0100 0111 0000 0011 1110 0101 1101 1000 1111 0110 0001 0110 1111 1100 1101 1111 1111
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #74:

score: 0
Accepted
time: 39ms
memory: 20428kb

input:

18
0110 0110 0011 0110 0001 0010 1011 1010 0010 1000 1111 1011 1110 0001 0001 0010 0111 1110
107 717 82 1913 94 1163 140 543 134 753 163 1461 178 157 1204 795 524 1141 572 964 1005 419 1092 544 100 184 161 240 521 139 664 210 352 655 368 108 88 248 244 1268 581 89 379 222 1054 76 90 568 76 198 304 1...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #75:

score: 0
Accepted
time: 48ms
memory: 20288kb

input:

18
0111 1100 0000 0001 0101 1000 1111 0011 1111 0111 1010 1010 1111 0101 0010 1110 0100 0001
11 26 101 9 232 9 27 183 195 15 31 14 2 6 56 10 126 14 73 18 264 23 39 222 9 63 27 3 60 7 5 76 17 3 147 71 43 4 3 123 134 36 3 189 57 2 8 46 48 11 2 3 2 144 23 66 100 4 234 156 5 46 2 2 37 90 26 3 10 10 58 4...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #76:

score: 0
Accepted
time: 38ms
memory: 20584kb

input:

18
0111 1001 0101 0111 0010 0111 1100 0001 1000 1110 0100 0111 1110 1000 1100 0110 1111 1011
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #77:

score: 0
Accepted
time: 39ms
memory: 20208kb

input:

18
1000 0001 0010 0110 1101 0100 0010 0011 0111 0010 0110 0011 1000 0111 0011 1111 1000 1010
0 0 0 0 0 0 0 0 0 437 0 0 0 0 0 15558 0 0 0 0 0 0 0 0 0 0 111426 0 0 2697 731 66009 0 0 44090 0 0 0 0 0 0 0 0 0 728 0 0 0 0 0 0 0 0 0 93033 0 85374 0 0 0 0 0 0 0 0 26921 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #78:

score: 0
Accepted
time: 34ms
memory: 20552kb

input:

18
1011 0101 0001 0011 0111 1100 1100 1101 0111 0001 1001 1100 0001 0111 0011 1111 0001 1101
1165 9450 3809 1205 12268 374 759 1263 2035 10127 6804 1949 2646 1758 1986 457 1080 13550 682 270 628 3746 342 4036 567 413 587 187 2270 3866 3434 4799 12545 633 3966 425 6307 958 228 8790 384 8003 11208 285...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #79:

score: 0
Accepted
time: 43ms
memory: 20368kb

input:

18
1110 0010 1110 0111 0111 0110 0010 0110 0001 1000 0110 0001 0001 0011 1011 1100 0001 1111
7303 1069 400 9108 989 12334 3123 3363 770 680 2226 4961 4768 1901 3065 1022 663 412 2693 1100 738 5933 9673 13903 4726 7014 3010 4269 1446 554 837 1061 2736 592 2066 3555 2078 7701 3593 1818 1603 5622 2211 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #80:

score: 0
Accepted
time: 34ms
memory: 20324kb

input:

18
1101 0111 1110 1010 0011 0000 0101 0010 1000 0101 0110 0111 1100 0110 1111 0110 1111 0100
6828 1500 4053 6460 5073 2249 5763 1547 3274 5273 3215 5664 5850 5814 1757 4373 1483 2163 6894 3748 7195 1956 4403 2500 7959 5005 4244 5236 3546 4679 4120 7334 3384 6355 3101 2394 6328 4628 1986 5815 2212 19...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #81:

score: 0
Accepted
time: 40ms
memory: 20396kb

input:

18
1000 0010 1000 1101 0111 1011 1110 0100 1100 1100 1001 0010 0111 0100 0110 1111 1100 1001
4698 3609 4965 1874 2500 4198 1878 4364 7220 6411 7236 2800 3933 4210 2008 3695 6851 1995 3937 3647 1860 2808 1834 3459 4819 2292 2358 5763 3400 5573 5446 6163 6688 2736 3099 2149 1958 3283 2448 4233 1928 43...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #82:

score: 0
Accepted
time: 31ms
memory: 20592kb

input:

18
0110 1000 1100 1000 0000 1000 0011 0001 1111 1111 1101 0010 0010 1000 1000 0011 0010 1000
153 48 154 52 51 143 38 108 76 205 69 56 201 41 103 186 57 115 142 50 130 61 42 182 187 84 42 157 53 39 50 65 195 73 42 38 135 177 52 62 54 143 41 110 186 79 146 122 41 148 46 110 40 38 91 84 129 174 65 59 1...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #83:

score: 0
Accepted
time: 53ms
memory: 20332kb

input:

18
0001 0000 0101 1001 0101 0001 1000 1111 0000 1011 0001 1100 1111 1110 1000 0001 0010 0100
3812 3815 3815 3815 3815 3815 3815 3816 3816 3814 3815 3817 3815 3812 3814 3815 3816 3815 3812 3814 3812 3817 3812 3815 3817 3817 3818 3815 3814 3815 3812 3812 3812 3818 3819 3814 3815 3816 3814 3814 3815 38...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #84:

score: 0
Accepted
time: 41ms
memory: 20428kb

input:

18
0100 1100 0010 0110 0101 1001 0101 0001 0101 0001 1111 0101 0110 0000 0110 0000 0110 0001
578 325 646 851 204 524 1792 8535 5979 4488 941 12650 8193 619 881 3218 873 9081 5889 2579 182 1358 5916 4451 7738 8305 6147 409 251 288 358 6762 4126 2265 495 3494 4414 299 268 2295 13221 256 304 426 16609 ...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #85:

score: 0
Accepted
time: 42ms
memory: 20336kb

input:

18
0100 0011 1101 0101 0101 1100 0000 0010 1101 0011 0111 1111 0010 1001 1000 1010 0101 1111
3666 3742 3774 3829 3721 3906 3894 3942 3749 3787 3654 3617 3662 3683 3857 3648 3801 3977 3888 3876 3778 3999 3987 3947 3710 3930 3700 3642 3989 3652 3880 3968 4001 3754 3965 3681 3899 3760 3896 3782 3840 38...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #86:

score: 0
Accepted
time: 45ms
memory: 20620kb

input:

18
0010 1010 0100 0111 0111 0101 0110 1101 0000 1110 0100 0011 0010 1100 0100 0001 1110 1001
326 2932 305 4000 5511 284 5781 899 690 10947 3450 3501 326 8891 1743 2105 409 12118 6596 443 345 364 426 8870 588 935 253 9958 1672 1572 299 4251 244 229 2207 711 911 205 1406 4479 395 7786 14273 584 334 94...

output:

2776589331973 911490372040 2791788772825 845170044671 1004705373198 300212681251 974682894978 278184605676 8086333849380 2685674512445 7956302633755 2412487084675 2763046967874 826296665356 2617596616401 795411435468 8403876807116 2715335905983 8399055046899 2694015068492 2721505035985 925339955825 ...

result:

ok 262144 numbers

Test #87:

score: 0
Accepted
time: 56ms
memory: 20256kb

input:

18
0100 0010 0110 0010 1110 1011 0110 0001 1101 1111 1101 1010 1011 1100 1001 1100 0100 1000
103 12 20 24 10621 1922 5 21675 1090 33241 7404 12 3 10244 693 624 11227 443 401 7 6894 41 68 57 816 4078 4 425 1919 209 4 361 7014 258 326 1424 22451 28267 4 12210 5 22 5872 1128 162 5770 274 12601 14 5 185...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #88:

score: 0
Accepted
time: 45ms
memory: 20328kb

input:

18
1101 1011 1000 1101 1101 1111 0011 1100 1000 0000 0101 0000 1101 1110 0010 1100 0111 0100
5167 3715 1978 5038 5257 2296 2161 2726 2973 4247 4558 3120 2064 6480 2566 4257 2299 2469 2706 4971 2772 3663 5709 3925 4937 3283 2073 3257 6173 5699 2622 4036 2139 6063 3979 4657 3157 2682 2346 5727 3639 51...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1168104517935 3456134729584 4030839567689 11398974081013 395270305752 1050503735641 1375758198286 3453928515190 3702652956370 10976503525499 11354148378215 34015441224577 1219895143688 3514046387876 3670825229892 10709243642526 39040827...

result:

ok 262144 numbers

Test #89:

score: 0
Accepted
time: 41ms
memory: 20328kb

input:

18
0100 1010 1010 0011 1010 1001 0110 1101 1111 1100 0101 1101 1101 0110 1100 1110 0110 0110
5702 204 901 3028 16031 10640 1034 144 3283 180 782 7092 2155 13194 3502 496 724 2778 896 9427 1489 1865 301 441 6478 1802 18611 159 1333 6356 449 562 125 427 339 211 1955 2297 5384 323 172 159 300 105 385 1...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #90:

score: 0
Accepted
time: 40ms
memory: 20736kb

input:

18
0111 0001 0111 0110 0110 0110 0111 0001 0111 0111 0110 0001 0001 0001 0111 0111 0111 0001
3927 2829 2696 3324 2907 3003 3880 3213 4433 3483 2911 2998 3155 3330 3969 3707 3268 3868 2661 5004 3208 4511 3922 4290 5295 4254 3001 4305 3092 3244 3582 4577 3241 4278 3848 5297 3861 3574 2839 3734 4223 34...

output:

170183473754 511156173305 56810162219 171349753034 507116745791 1508257322277 170591269954 510408649902 170112869720 511799826412 56773036935 171159786482 507096587650 1507302733293 170278706230 510385329480 170247136403 511654468821 56894313446 171413148883 507085340037 1508008216730 170431787709 5...

result:

ok 262144 numbers

Test #91:

score: 0
Accepted
time: 47ms
memory: 20384kb

input:

18
1101 0100 0100 1101 1101 1101 1101 0100 0100 0100 1101 1101 0100 1101 0100 1101 1101 0100
902 5492 2205 1283 2877 1275 2819 5736 929 928 6594 2644 1493 999 984 1996 1649 1256 914 1324 3762 1689 8294 898 3751 1251 1254 2382 1278 9772 1160 4341 3560 4194 3588 1513 7444 1962 3840 1882 2533 1623 4564...

output:

98680177317 277786089922 36917688125 101004900377 32635214404 95486942232 10359566948 38057680749 276373924136 898109120484 94303151201 294944504391 108872145688 307463036715 37040002705 120107272860 304814717297 871301820056 110178144807 313872485957 93201380593 273635241249 31799313827 97083266129...

result:

ok 262144 numbers

Test #92:

score: 0
Accepted
time: 40ms
memory: 20332kb

input:

18
1100 0011 0000 1111 0000 0011 1010 0011 1100 1010 0000 1100 1111 0101 1100 0011 1111 0011
5208 597 9458 706 748 956 733 2257 394 5436 6474 1012 591 4758 1092 2294 273 6355 2812 238 1559 1324 1270 1528 367 6259 3065 9836 11865 794 578 599 1762 2208 692 10526 2073 15991 16236 260 384 11085 14940 43...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #93:

score: 0
Accepted
time: 48ms
memory: 20628kb

input:

18
0110 1000 1011 0010 1011 1101 0010 1101 1001 1101 1001 1000 0100 1000 1101 1011 1011 1000
7963 434 333 2756 680 478 416 350 13537 1699 10639 8025 1894 10403 4214 6480 631 299 5003 13923 6842 3075 425 865 4359 542 727 1334 3297 4550 4233 2782 696 11741 5771 5940 352 2394 298 363 482 581 6733 561 3...

output:

252310147708 252944586206 89490533079 89564389313 773226583811 773511724174 261696271836 260883861980 83012560515 81719788273 29337975469 29826656984 239604930191 240895692218 79921041696 80071008912 774963509546 772127574750 260696547194 260845783172 2281459977108 2282027709321 791720139944 7870471...

result:

ok 262144 numbers

Test #94:

score: 0
Accepted
time: 32ms
memory: 20264kb

input:

18
0110 0111 1101 0110 1110 0110 0000 1000 1100 1110 1001 0000 1010 0001 1111 0101 0110 0000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #95:

score: 0
Accepted
time: 38ms
memory: 20644kb

input:

18
1110 0110 0110 1110 0111 0011 1110 1001 0001 1101 1011 0111 1101 0111 0000 0000 1111 0100
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #96:

score: 0
Accepted
time: 42ms
memory: 20300kb

input:

18
0001 0010 0010 0100 1000 1100 1000 0001 0100 0001 0110 0001 1010 1101 1000 1101 1101 0101
3776 3826 3774 3810 3790 3795 3865 3784 3782 3750 3881 3747 3751 3784 3828 3761 3873 3872 3781 3865 3890 3879 3811 3767 3832 3876 3803 3749 3882 3815 3887 3758 3883 3771 3837 3859 3769 3758 3864 3766 3822 38...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #97:

score: 0
Accepted
time: 35ms
memory: 20312kb

input:

18
1010 1011 1100 0101 1101 0000 0101 1011 1101 1000 1000 1010 1110 0101 0010 1010 1100 1001
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers

Test #98:

score: 0
Accepted
time: 37ms
memory: 20628kb

input:

18
1111 0111 1101 0101 0010 1111 0010 0111 0010 0011 1001 0001 0101 1101 0110 0100 0010 1001
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 262144 numbers