QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294429#4828. Four Plus Fourucup-team987#AC ✓1569ms27268kbC++2014.8kb2023-12-30 13:38:122023-12-30 13:38:13

Judging History

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

  • [2023-12-30 13:38:13]
  • 评测
  • 测评结果:AC
  • 用时:1569ms
  • 内存:27268kb
  • [2023-12-30 13:38:12]
  • 提交

answer

/**
 * date   : 2023-12-30 14:38:04
 * author : Nyaan
 */

#define NDEBUG

using namespace std;

// intrinstic
#include <immintrin.h>

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfenv>
#include <cfloat>
#include <chrono>
#include <cinttypes>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <ios>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <streambuf>
#include <string>
#include <tuple>
#include <type_traits>
#include <typeinfo>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

// utility

namespace Nyaan {
using ll = long long;
using i64 = long long;
using u64 = unsigned long long;
using i128 = __int128_t;
using u128 = __uint128_t;

template <typename T>
using V = vector<T>;
template <typename T>
using VV = vector<vector<T>>;
using vi = vector<int>;
using vl = vector<long long>;
using vd = V<double>;
using vs = V<string>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<long long>>;
template <typename T>
using minpq = priority_queue<T, vector<T>, greater<T>>;

template <typename T, typename U>
struct P : pair<T, U> {
  template <typename... Args>
  P(Args... args) : pair<T, U>(args...) {}

  using pair<T, U>::first;
  using pair<T, U>::second;

  P &operator+=(const P &r) {
    first += r.first;
    second += r.second;
    return *this;
  }
  P &operator-=(const P &r) {
    first -= r.first;
    second -= r.second;
    return *this;
  }
  P &operator*=(const P &r) {
    first *= r.first;
    second *= r.second;
    return *this;
  }
  template <typename S>
  P &operator*=(const S &r) {
    first *= r, second *= r;
    return *this;
  }
  P operator+(const P &r) const { return P(*this) += r; }
  P operator-(const P &r) const { return P(*this) -= r; }
  P operator*(const P &r) const { return P(*this) *= r; }
  template <typename S>
  P operator*(const S &r) const {
    return P(*this) *= r;
  }
  P operator-() const { return P{-first, -second}; }
};

using pl = P<ll, ll>;
using pi = P<int, int>;
using vp = V<pl>;

constexpr int inf = 1001001001;
constexpr long long infLL = 4004004004004004004LL;

template <typename T>
int sz(const T &t) {
  return t.size();
}

template <typename T, typename U>
inline bool amin(T &x, U y) {
  return (y < x) ? (x = y, true) : false;
}
template <typename T, typename U>
inline bool amax(T &x, U y) {
  return (x < y) ? (x = y, true) : false;
}

template <typename T>
inline T Max(const vector<T> &v) {
  return *max_element(begin(v), end(v));
}
template <typename T>
inline T Min(const vector<T> &v) {
  return *min_element(begin(v), end(v));
}
template <typename T>
inline long long Sum(const vector<T> &v) {
  return accumulate(begin(v), end(v), 0LL);
}

template <typename T>
int lb(const vector<T> &v, const T &a) {
  return lower_bound(begin(v), end(v), a) - begin(v);
}
template <typename T>
int ub(const vector<T> &v, const T &a) {
  return upper_bound(begin(v), end(v), a) - begin(v);
}

constexpr long long TEN(int n) {
  long long ret = 1, x = 10;
  for (; n; x *= x, n >>= 1) ret *= (n & 1 ? x : 1);
  return ret;
}

template <typename T, typename U>
pair<T, U> mkp(const T &t, const U &u) {
  return make_pair(t, u);
}

template <typename T>
vector<T> mkrui(const vector<T> &v, bool rev = false) {
  vector<T> ret(v.size() + 1);
  if (rev) {
    for (int i = int(v.size()) - 1; i >= 0; i--) ret[i] = v[i] + ret[i + 1];
  } else {
    for (int i = 0; i < int(v.size()); i++) ret[i + 1] = ret[i] + v[i];
  }
  return ret;
};

template <typename T>
vector<T> mkuni(const vector<T> &v) {
  vector<T> ret(v);
  sort(ret.begin(), ret.end());
  ret.erase(unique(ret.begin(), ret.end()), ret.end());
  return ret;
}

template <typename F>
vector<int> mkord(int N, F f) {
  vector<int> ord(N);
  iota(begin(ord), end(ord), 0);
  sort(begin(ord), end(ord), f);
  return ord;
}

template <typename T>
vector<int> mkinv(vector<T> &v) {
  int max_val = *max_element(begin(v), end(v));
  vector<int> inv(max_val + 1, -1);
  for (int i = 0; i < (int)v.size(); i++) inv[v[i]] = i;
  return inv;
}

vector<int> mkiota(int n) {
  vector<int> ret(n);
  iota(begin(ret), end(ret), 0);
  return ret;
}

template <typename T>
T mkrev(const T &v) {
  T w{v};
  reverse(begin(w), end(w));
  return w;
}

template <typename T>
bool nxp(T &v) {
  return next_permutation(begin(v), end(v));
}

// 返り値の型は入力の T に依存
// i 要素目 : [0, a[i])
template <typename T>
vector<vector<T>> product(const vector<T> &a) {
  vector<vector<T>> ret;
  vector<T> v;
  auto dfs = [&](auto rc, int i) -> void {
    if (i == (int)a.size()) {
      ret.push_back(v);
      return;
    }
    for (int j = 0; j < a[i]; j++) v.push_back(j), rc(rc, i + 1), v.pop_back();
  };
  dfs(dfs, 0);
  return ret;
}

// F : function(void(T&)), mod を取る操作
// T : 整数型のときはオーバーフローに注意する
template <typename T>
T Power(T a, long long n, const T &I, const function<void(T &)> &f) {
  T res = I;
  for (; n; f(a = a * a), n >>= 1) {
    if (n & 1) f(res = res * a);
  }
  return res;
}
// T : 整数型のときはオーバーフローに注意する
template <typename T>
T Power(T a, long long n, const T &I = T{1}) {
  return Power(a, n, I, function<void(T &)>{[](T &) -> void {}});
}

template <typename T>
T Rev(const T &v) {
  T res = v;
  reverse(begin(res), end(res));
  return res;
}

template <typename T>
vector<T> Transpose(const vector<T> &v) {
  using U = typename T::value_type;
  int H = v.size(), W = v[0].size();
  vector res(W, T(H, U{}));
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      res[j][i] = v[i][j];
    }
  }
  return res;
}

template <typename T>
vector<T> Rotate(const vector<T> &v, int clockwise = true) {
  using U = typename T::value_type;
  int H = v.size(), W = v[0].size();
  vector res(W, T(H, U{}));
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if (clockwise) {
        res[W - 1 - j][i] = v[i][j];
      } else {
        res[j][H - 1 - i] = v[i][j];
      }
    }
  }
  return res;
}

}  // namespace Nyaan


// bit operation

namespace Nyaan {
__attribute__((target("popcnt"))) inline int popcnt(const u64 &a) {
  return _mm_popcnt_u64(a);
}
inline int lsb(const u64 &a) { return a ? __builtin_ctzll(a) : 64; }
inline int ctz(const u64 &a) { return a ? __builtin_ctzll(a) : 64; }
inline int msb(const u64 &a) { return a ? 63 - __builtin_clzll(a) : -1; }
template <typename T>
inline int gbit(const T &a, int i) {
  return (a >> i) & 1;
}
template <typename T>
inline void sbit(T &a, int i, bool b) {
  if (gbit(a, i) != b) a ^= T(1) << i;
}
constexpr long long PW(int n) { return 1LL << n; }
constexpr long long MSK(int n) { return (1LL << n) - 1; }
}  // namespace Nyaan


// inout

namespace Nyaan {

template <typename T, typename U>
ostream &operator<<(ostream &os, const pair<T, U> &p) {
  os << p.first << " " << p.second;
  return os;
}
template <typename T, typename U>
istream &operator>>(istream &is, pair<T, U> &p) {
  is >> p.first >> p.second;
  return is;
}

template <typename T>
ostream &operator<<(ostream &os, const vector<T> &v) {
  int s = (int)v.size();
  for (int i = 0; i < s; i++) os << (i ? " " : "") << v[i];
  return os;
}
template <typename T>
istream &operator>>(istream &is, vector<T> &v) {
  for (auto &x : v) is >> x;
  return is;
}

istream &operator>>(istream &is, __int128_t &x) {
  string S;
  is >> S;
  x = 0;
  int flag = 0;
  for (auto &c : S) {
    if (c == '-') {
      flag = true;
      continue;
    }
    x *= 10;
    x += c - '0';
  }
  if (flag) x = -x;
  return is;
}

istream &operator>>(istream &is, __uint128_t &x) {
  string S;
  is >> S;
  x = 0;
  for (auto &c : S) {
    x *= 10;
    x += c - '0';
  }
  return is;
}

ostream &operator<<(ostream &os, __int128_t x) {
  if (x == 0) return os << 0;
  if (x < 0) os << '-', x = -x;
  string S;
  while (x) S.push_back('0' + x % 10), x /= 10;
  reverse(begin(S), end(S));
  return os << S;
}
ostream &operator<<(ostream &os, __uint128_t x) {
  if (x == 0) return os << 0;
  string S;
  while (x) S.push_back('0' + x % 10), x /= 10;
  reverse(begin(S), end(S));
  return os << S;
}

void in() {}
template <typename T, class... U>
void in(T &t, U &...u) {
  cin >> t;
  in(u...);
}

void out() { cout << "\n"; }
template <typename T, class... U, char sep = ' '>
void out(const T &t, const U &...u) {
  cout << t;
  if (sizeof...(u)) cout << sep;
  out(u...);
}

struct IoSetupNya {
  IoSetupNya() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);
    cerr << fixed << setprecision(7);
  }
} iosetupnya;

}  // namespace Nyaan


// debug


#ifdef NyaanDebug
#define trc(...) (void(0))
#else
#define trc(...) (void(0))
#endif

#ifdef NyaanLocal
#define trc2(...) (void(0))
#else
#define trc2(...) (void(0))
#endif


// macro

#define each(x, v) for (auto&& x : v)
#define each2(x, y, v) for (auto&& [x, y] : v)
#define all(v) (v).begin(), (v).end()
#define rep(i, N) for (long long i = 0; i < (long long)(N); i++)
#define repr(i, N) for (long long i = (long long)(N)-1; i >= 0; i--)
#define rep1(i, N) for (long long i = 1; i <= (long long)(N); i++)
#define repr1(i, N) for (long long i = (N); (long long)(i) > 0; i--)
#define reg(i, a, b) for (long long i = (a); i < (b); i++)
#define regr(i, a, b) for (long long i = (b)-1; i >= (a); i--)
#define fi first
#define se second
#define ini(...)   \
  int __VA_ARGS__; \
  in(__VA_ARGS__)
#define inl(...)         \
  long long __VA_ARGS__; \
  in(__VA_ARGS__)
#define ins(...)      \
  string __VA_ARGS__; \
  in(__VA_ARGS__)
#define in2(s, t)                           \
  for (int i = 0; i < (int)s.size(); i++) { \
    in(s[i], t[i]);                         \
  }
#define in3(s, t, u)                        \
  for (int i = 0; i < (int)s.size(); i++) { \
    in(s[i], t[i], u[i]);                   \
  }
#define in4(s, t, u, v)                     \
  for (int i = 0; i < (int)s.size(); i++) { \
    in(s[i], t[i], u[i], v[i]);             \
  }
#define die(...)             \
  do {                       \
    Nyaan::out(__VA_ARGS__); \
    return;                  \
  } while (0)


namespace Nyaan {
void solve();
}
int main() { Nyaan::solve(); }


//






using namespace std;

namespace internal {
unsigned long long non_deterministic_seed() {
  unsigned long long m =
      chrono::duration_cast<chrono::nanoseconds>(
          chrono::high_resolution_clock::now().time_since_epoch())
          .count();
  m ^= 9845834732710364265uLL;
  m ^= m << 24, m ^= m >> 31, m ^= m << 35;
  return m;
}
unsigned long long deterministic_seed() { return 88172645463325252UL; }

// 64 bit の seed 値を生成 (手元では seed 固定)
// 連続で呼び出すと同じ値が何度も返ってくるので注意
// #define RANDOMIZED_SEED するとシードがランダムになる
unsigned long long seed() {
#if defined(NyaanLocal) && !defined(RANDOMIZED_SEED)
  return deterministic_seed();
#else
  return non_deterministic_seed();
#endif
}

}  // namespace internal


namespace my_rand {
using i64 = long long;
using u64 = unsigned long long;

// [0, 2^64 - 1)
u64 rng() {
  static u64 _x = internal::seed();
  return _x ^= _x << 7, _x ^= _x >> 9;
}

// [l, r]
i64 rng(i64 l, i64 r) {
  assert(l <= r);
  return l + rng() % u64(r - l + 1);
}

// [l, r)
i64 randint(i64 l, i64 r) {
  assert(l < r);
  return l + rng() % u64(r - l);
}

// choose n numbers from [l, r) without overlapping
vector<i64> randset(i64 l, i64 r, i64 n) {
  assert(l <= r && n <= r - l);
  unordered_set<i64> s;
  for (i64 i = n; i; --i) {
    i64 m = randint(l, r + 1 - i);
    if (s.find(m) != s.end()) m = r - i;
    s.insert(m);
  }
  vector<i64> ret;
  for (auto& x : s) ret.push_back(x);
  return ret;
}

// [0.0, 1.0)
double rnd() { return rng() * 5.42101086242752217004e-20; }
// [l, r)
double rnd(double l, double r) {
  assert(l < r);
  return l + rnd() * (r - l);
}

template <typename T>
void randshf(vector<T>& v) {
  int n = v.size();
  for (int i = 1; i < n; i++) swap(v[i], v[randint(0, i + 1)]);
}

}  // namespace my_rand

using my_rand::randint;
using my_rand::randset;
using my_rand::randshf;
using my_rand::rnd;
using my_rand::rng;



using namespace Nyaan;

map<string, vector<string>> gen(vector<string> A, vector<string> B) {
  mt19937_64 rng(13333);
  rep(i, sz(A)) swap(A[i], A[rng() % (i + 1)]);

  V<pair<int, string>> order;
  each(a, A) {
    int cnt[26];
    rep(i, 26) cnt[i] = 0;
    each(c, a) cnt[c - 'a']++;
    int vsz = 0;
    each(b, B) {
      int ok = 1;
      each(c, b) if (--cnt[c - 'a'] < 0) ok = 0;
      if (ok) vsz++;
      each(c, b) cnt[c - 'a']++;
    }
    if (vsz < 3) continue;
    order.emplace_back(vsz, a);
  }
  stable_sort(all(order),
              [](const pair<int, string>& s, const pair<int, string>& t) {
                return s.first < t.first;
              });

  map<string, vector<string>> mp;
  set<pair<string, string>> es;

  auto add = [&](string a, vector<string> b) -> bool {
    rep(i, 3) {
      if (es.count(minmax(b[i], b[(i + 1) % 3]))) return false;
    }
    mp[a] = b;
    rep(i, 3) es.insert(minmax(b[i], b[(i + 1) % 3]));
    return true;
  };

  each(aa, order) {
    string a = aa.second;
    int cnt[26];
    rep(i, 26) cnt[i] = 0;
    each(c, a) cnt[c - 'a']++;

    V<string> v;
    each(b, B) {
      int ok = 1;
      each(c, b) if (--cnt[c - 'a'] < 0) ok = 0;
      if (ok) v.push_back(b);
      each(c, b) cnt[c - 'a']++;
    }
    assert(sz(v) >= 3);
    // trc2(a, v);

    int iter = 0;
    while (iter < 10) {
      vector<int> ids;
      while (sz(ids) < 3) {
        ids.push_back(rng() % sz(v));
        ids = mkuni(ids);
      }
      if (add(a, vector{v[ids[0]], v[ids[1]], v[ids[2]]})) {
        iter = -1;
        break;
      }
      iter++;
    }

    if (iter == 10) {
      each(x, v) {
        if (add(a, vector{x, x, x})) {
          iter = -1;
          break;
        }
      }
    }
    assert(iter != 10);
  }
  return mp;
}

void Password() {
  ini(Q);
  V<string> qs(Q);
  in(qs);

  ini(N);
  V<string> A(N);
  in(A);
  ini(M);
  V<string> B(M);
  in(B);
  auto mp = gen(A, B);

  each(s, qs) out(mp[s]);
}

void Keys() {
  ini(Q);
  V<string> k1(Q), k2(Q);
  in2(k1, k2);

  ini(N);
  V<string> A(N);
  in(A);
  ini(M);
  V<string> B(M);
  in(B);
  auto mp = gen(A, B);

  map<pair<string, string>, string> mp2;
  each2(a, bs, mp) {
    rep(i, 3) { mp2[minmax(bs[i], bs[(i + 1) % 3])] = a; }
  }
  rep(i, Q) out(mp2[minmax(k1[i], k2[i])]);
}

void Nyaan::solve() {
  ins(S);
  if (S == "password") {
    Password();
  } else {
    Keys();
  }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1492ms
memory: 23292kb

input:

password
2
password
couthier
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatises abattoir abbacies abbatial abbesses abdicate abdomens abdomina abducens abducent abducing abducted abductee abductor abelmosk aberrant abetment abettals abet...

output:

osar pods road
cure etui thir

input:

keys
4
osar pods
thir etui
road osar
pods road
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatises abattoir abbacies abbatial abbesses abdicate abdomens abdomina abducens abducent abducing abducted abductee abductor abelmosk aberrant abet...

output:

password
couthier
password
password

result:

ok OK

Test #2:

score: 100
Accepted
time: 1486ms
memory: 23344kb

input:

password
1
quirkier
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatises abattoir abbacies abbatial abbesses abdicate abdomens abdomina abducens abducent abducing abducted abductee abductor abelmosk aberrant abetment abettals abetters abet...

output:

keir kier ruer

input:

keys
1
kier ruer
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatises abattoir abbacies abbatial abbesses abdicate abdomens abdomina abducens abducent abducing abducted abductee abductor abelmosk aberrant abetment abettals abetters abettin...

output:

quirkier

result:

ok OK

Test #3:

score: 100
Accepted
time: 1485ms
memory: 23304kb

input:

password
3
aardvark
aardwolf
aardvark
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatises abattoir abbacies abbatial abbesses abdicate abdomens abdomina abducens abducent abducing abducted abductee abductor abelmosk aberrant abetment abet...

output:

arak kava vara
foal ford woad
arak kava vara

input:

keys
18
kava vara
arak vara
woad foal
arak kava
arak vara
vara kava
ford woad
foal ford
vara arak
woad ford
kava vara
foal woad
arak kava
vara kava
kava arak
ford foal
vara arak
kava arak
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatise...

output:

aardvark
aardvark
aardwolf
aardvark
aardvark
aardvark
aardwolf
aardwolf
aardvark
aardwolf
aardvark
aardwolf
aardvark
aardvark
aardvark
aardwolf
aardvark
aardvark

result:

ok OK

Test #4:

score: 100
Accepted
time: 1532ms
memory: 27096kb

input:

password
10000
aardvark
aardwolf
aasvogel
abacuses
abalones
abampere
abandons
abapical
abasedly
abashing
abatable
abatises
abattoir
abbacies
abbatial
abbesses
abdicate
abdomens
abdomina
abducens
abducent
abducing
abducted
abductee
abductor
abelmosk
aberrant
abetment
abettals
abetters
abetting
abetto...

output:

arak kava vara
foal ford woad
alae goas logs
aces base ecus
base bola naos
aper area ream
abos naos soda
blip clap lipa
aals dale lady
agas sain sang
able tala tale
base bits seta
boar boat tiro
asea case ebbs
baba tail tali
babe base sabs
bite caid cedi
bead mabe mend
amid bani damn
cade duce scab
...

input:

keys
60000
alec egal
self heel
cite fets
goas anes
iced odic
grog giro
buts ruts
ides nest
daze raid
tike kefs
gear omer
meed mono
alls also
fill leal
bets bisk
dude tuna
clon coda
eros runs
seta tass
psst fast
etch both
leas lear
diet sned
eggs rose
icon naoi
life liar
seed diss
woof worm
viga ting...

output:

cleaning
fleeches
felsitic
agonizes
coincide
frogging
bruskest
dinkiest
arabized
forkiest
armigero
endosome
falloffs
fallible
briskest
denudate
canoodle
conquers
dashiest
flypasts
bioethic
carrells
dextrins
cloggers
fricando
filarees
dressier
formwork
aviating
dogeship
arousals
celestas
buttocks
epi...

result:

ok OK

Test #5:

score: 100
Accepted
time: 1524ms
memory: 27204kb

input:

password
10000
fucoidal
fuddling
fuehrers
fuellers
fuelling
fuelwood
fugacity
fuggiest
fugitive
fugleman
fuglemen
fuguists
fulcrums
fulfills
fullback
fullered
fullface
fullness
fulmined
fulmines
fulminic
fumarase
fumarate
fumarole
fumatory
fumblers
fumbling
fumeless
fumelike
fumettes
fumigant
fumiga...

output:

cuif diol foal
guid gulf iglu
fuse serf sure
fell flee sere
gill gulf lung
feud flow fuel
city fuci yagi
fets gets gist
etui five give
gaen gaun luna
glee glue neem
fist fugs gust
scum sulu urus
fils luff sill
cull fall luck
duel fell reef
cafe calf cell
ells flus full
diel meld mend
lens lues neif
...

input:

keys
60000
sera rite
thio tret
rill boil
perp odor
orle rope
pork tore
pose dope
riel evil
dorr doer
trop mort
cram emic
oust snot
pleb pyre
tier vino
nosy posy
watt anta
kois wonk
lari ales
anil lint
lins else
gree eyre
cate sane
puri dirt
tour puts
tori mirk
aeon mano
acyl lace
emeu errs
amus mean...

output:

inertias
hitherto
hornbill
proponed
pollster
pokeroot
imposted
overbill
overword
platform
maverick
outrings
plumbery
inventor
pansophy
nanowatt
knowings
realiser
quaintly
linseeds
greenery
notecase
pictured
posturer
milkwort
moonbeam
rectally
presumer
nutmeats
legality
hidrosis
panderer
haunches
ove...

result:

ok OK

Test #6:

score: 100
Accepted
time: 1522ms
memory: 26476kb

input:

password
8488
redounds
redpolls
redrafts
redrawer
redreams
redreamt
redrills
redriven
redrives
redroots
redrying
redshank
redshift
redshirt
redskins
redstart
redtails
redubbed
reducers
reducing
reductor
reduviid
redwares
redwings
redwoods
redyeing
reearned
reechier
reechoed
reechoes
reedbird
reedbuc...

output:

node reds roue
peso pled pols
arse ates tads
awee dree read
arms made seme
dame mete rate
diel isle riel
deer ride vied
ides rees rive
dote soot toro
deny grin yird
kaes karn sear
hist shed tref
hers reds rets
ires kine skis
etas rats sera
dare sard tide
bree dure rude
crus dues rede
curn genu rued
...

input:

keys
50928
role rive
rase seta
ours sour
tels teen
mura roam
rend rind
read deep
gens egis
trop fore
tups stey
snaw rins
yolk lick
loud offs
wham nigh
gaol sail
fire five
rets sris
puss slue
toro rota
wile lame
gens rest
fare face
scag lags
aero parr
snag akin
lest eses
nuns urns
idyl dunk
sear rede...

output:

voleries
serenata
survivor
veinlets
variorum
underpin
tampered
seemings
wetproof
subtypes
resawing
rollicky
souffled
whamming
soilages
revivify
sinister
spicules
rotatory
wailsome
strength
trifecta
scalawag
warpower
snacking
shtetels
sunburns
unkindly
spreader
uprushed
remotest
wastries
shitakes
scr...

result:

ok OK

Test #7:

score: 100
Accepted
time: 1484ms
memory: 23348kb

input:

password
10
clumsier
accursed
dovening
electron
ruddling
roadshow
tabooley
eugenics
meristic
nebulose
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatises abattoir abbacies abbatial abbesses abdicate abdomens abdomina abducens abducent abd...

output:

ceil rule sire
dear rase rues
give nide none
colt note tele
grid iglu ruin
hoar rash sord
bale late olea
seen sice sine
cist mite term
else lobs soul

input:

keys
46
rase dear
olea late
soul lobs
rash sord
dear rase
ceil rule
late bale
sire rule
else lobs
mite term
none nide
bale late
dear rues
ceil sire
colt note
rues rase
none give
rash hoar
grid ruin
note tele
rule ceil
nide give
sire ceil
sice sine
rues dear
nide none
seen sice
give nide
sord rash
el...

output:

accursed
tabooley
nebulose
roadshow
accursed
clumsier
tabooley
clumsier
nebulose
meristic
dovening
tabooley
accursed
clumsier
electron
accursed
dovening
roadshow
ruddling
electron
clumsier
dovening
clumsier
eugenics
accursed
dovening
eugenics
dovening
roadshow
nebulose
ruddling
meristic
ruddling
mer...

result:

ok OK

Test #8:

score: 100
Accepted
time: 1535ms
memory: 23416kb

input:

password
100
bandying
travoise
wattapes
moonfish
guruship
reground
canvased
undenied
areolate
choushes
angakoks
replicas
widthway
pitchout
noumenal
skeining
reshines
invokers
golconda
unchokes
slowworm
peplumed
captious
glochids
longeing
spectate
helicoid
spongily
donators
bunchier
strummer
unsolder...

output:

agin ayin ding
rive rots tiro
apes tate wats
homo hoof shmo
ghis rips urus
doge gore grue
acne ands dens
deni dude eide
alto late tora
cosh hose sues
kana koas soak
aril eras pica
dawt whid with
chip ouph toph
luna maun nona
gien kegs kins
here rees sins
oink rise soke
clog dago good
hens shoe shun
...

input:

keys
313
hoof homo
juba exam
gene grue
rend nide
suit mity
gyps mopy
rads tied
lout waur
lift lite
smit moos
daps anas
bosk sick
rets roti
leas mash
pits cast
like leet
gild ghis
exam juba
diel bird
pine pies
nuts suet
hose sues
dart dons
kegs gien
dogy mopy
juba jube
eras aril
live tela
adit tied
a...

output:

moonfish
jambeaux
repugned
trendier
yummiest
gypsydom
striated
outlawry
leftisms
mosquito
hardpans
bibcocks
outliers
fishmeal
captious
treelike
glochids
jambeaux
cribbled
respring
nonguest
choushes
donators
skeining
gypsydom
jambeaux
replicas
ventails
striated
areolate
treelike
donators
brougham
bun...

result:

ok OK

Test #9:

score: 100
Accepted
time: 1484ms
memory: 23524kb

input:

password
1000
idealist
xanthein
reworded
hopheads
scutters
beakless
charkhas
gaywings
footpath
tonearms
extremes
mortuary
journals
hominids
notchers
variorum
wangling
arousing
curacoas
tellable
fellator
muenster
flatuses
canzonet
biasness
reremind
ectozoan
graftage
typhonic
masthead
scholars
amygdal...

output:

ails laid lite
tain taxi thae
rode weed word
apes peds shed
cess curs cute
kabs lass sabs
char hark hash
sang wins yaws
path toft toph
mors orts tams
exes teem tree
orra rota tour
slur soja sour
nims shmo sinh
erst eths nose
arvo mura roam
agin gnaw ling
gran oars sura
cars croc ocas
abet belt late
...

input:

keys
2230
side sudd
syli bill
oats pina
leis pips
opus spot
deco pica
fire fife
wich cire
saws wauk
crab acre
tors pose
noel enol
scar stoa
oars gran
syli yill
nope pirn
lude dune
bree sers
glee pile
ness tend
semi mike
ness nett
laic seal
mild meal
auld saul
gied gird
rial ares
seta sett
teem emir
...

output:

sturdied
sibyllic
appoints
slippers
pullouts
canopied
affirmed
richweed
sawbucks
carbides
ripostes
novalike
cryostat
arousing
sibyllic
peperoni
trundler
verbless
espiegle
descents
misyoked
tintless
caliches
imbalmed
ladanums
rerigged
salliers
antsiest
eremitic
botanize
reaginic
apostles
couloirs
eye...

result:

ok OK

Test #10:

score: 100
Accepted
time: 1509ms
memory: 26364kb

input:

password
10000
parrying
wayfarer
resodded
trounced
fumbling
outvaunt
dealated
flappers
canonist
eggheads
roughage
intoners
totalism
lobsters
soundmen
toothier
implores
revamped
foreword
floccule
glossier
slideway
bottlers
expiates
mephitic
erratics
overcook
kipperer
wickiups
rescuers
fauvisms
tyrami...

output:

airy gain pain
fray wary year
does dree seer
cure euro node
film glim gulf
aunt tutu vatu
dale tale tele
rasp real safe
inns scan scot
gads gaes shag
ague gear gore
eons rite tori
alit silt toit
lots robe sers
omen sumo undo
rote thro toit
mope pile simp
meed pare vamp
ford roof wore
fell flue fuel
...

input:

keys
49151
twee vest
etas buts
hoes hose
lino gilt
gens gees
emes cams
vane vang
into dita
gets eses
into toes
bene dumb
haen ulna
marc sera
code deny
loco coos
naos naoi
moly yolk
ryas slay
rate pree
bats teas
eons oles
paid lain
feel fled
sear rins
hear scar
soul lord
yeti fail
acre safe
dace chap...

output:

viewiest
bauxites
hocusses
toppling
genettes
amesaces
gingivae
adnation
vestiges
essonite
numbered
hazelnut
massacre
convoyed
cytosols
acyloins
mullocky
arrayals
accepter
abettors
sulfones
dappling
refelled
kaiserin
brechans
dolorous
fayalite
surfacer
capuched
weeniest
carbaryl
clinched
followed
sca...

result:

ok OK

Test #11:

score: 100
Accepted
time: 1466ms
memory: 23312kb

input:

password
10000
inertiae
satiable
riverbed
defeater
coffling
sucroses
nonbeing
martagon
birdcall
cumberer
octuplet
befitted
witchier
faithing
euphuism
disunity
meathead
musician
currants
basilary
erepsins
fluorine
ripostes
mesnalty
downhaul
squarely
conjoins
sweatier
outlined
enchants
extincts
lifele...

output:

inia neat tern
bale etas site
dive drib vier
date deer rate
golf info long
ecus orcs oses
bong ebon gibe
gnat moat rota
call dirl rill
burr mere ruer
clue lout tout
bitt feed tide
wert whet wire
agin fang nigh
hies mise semi
duit tuis yids
amah eath haet
amis macs unai
cant scan tsar
alar bray ribs
...

input:

keys
1
like illy
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatises abattoir abbacies abbatial abbesses abdicate abdomens abdomina abducens abducent abducing abducted abductee abductor abelmosk aberrant abetment abettals abetters abettin...

output:

unlikely

result:

ok OK

Test #12:

score: 100
Accepted
time: 1539ms
memory: 27268kb

input:

password
10000
biunique
chinning
chowchow
civility
cyclicly
diacidic
dibbukim
diluvium
divvying
dizzying
exceeded
exiguity
expellee
finiking
fizzling
frizzily
froufrou
giddying
gimmicky
gingilli
haggadah
henequin
heniquen
higgling
humidify
illiquid
infinity
infixion
jingling
jujutsus
kickback
levell...

output:

bine quin unbe
chin inch nigh
chow coco coho
city clit tivy
illy lily yill
acid cadi caid
dumb dumb dumb
imid midi mild
ding ding ding
ding nidi zing
cede deed exec
etui exit yeti
epee peel pele
fink gink king
fizz ling zing
fizz friz liri
four roof ruff
didy didy didy
icky immy mick
gill ling nill
...

input:

keys
60000
hare rhea
mora rare
togs tons
done zone
wall waly
pony eyen
lyse come
glee eger
ling been
rigs ring
ekes such
zori zero
ping chip
rias anas
airs zags
barn urus
give gent
birr crib
line fire
fuel lulu
eves errs
reel virl
nabe bang
roam dork
roar hoer
clay alae
wyle yowe
yews hies
thin tain...

output:

hardhead
armourer
jingoist
anodized
willywaw
pyroxene
cymosely
creeling
bemingle
stirring
buckshee
memorize
pinching
harianas
grazioso
suburban
genitive
barbaric
frenzily
guileful
reserves
livelier
behaving
drammock
abhorrer
caecally
mellowly
whiskeys
catching
coldcock
covetous
tittuppy
sailfish
hic...

result:

ok OK

Test #13:

score: 100
Accepted
time: 1502ms
memory: 23940kb

input:

password
10000
biunique
chinning
chowchow
civility
cyclicly
diacidic
dibbukim
diluvium
divvying
dizzying
exceeded
exiguity
expellee
finiking
fizzling
frizzily
froufrou
giddying
gimmicky
gingilli
haggadah
henequin
heniquen
higgling
humidify
illiquid
infinity
infixion
jingling
jujutsus
kickback
levell...

output:

bine quin unbe
chin inch nigh
chow coco coho
city clit tivy
illy lily yill
acid cadi caid
dumb dumb dumb
imid midi mild
ding ding ding
ding nidi zing
cede deed exec
etui exit yeti
epee peel pele
fink gink king
fizz ling zing
fizz friz liri
four roof ruff
didy didy didy
icky immy mick
gill ling nill
...

input:

keys
10000
leal weal
nils wine
byes bole
wino enow
phiz piki
pony yins
loot last
cock cued
perm tree
dine done
lins bigs
reed weer
anas gars
daut aunt
clan racy
than inti
ragi arid
used shes
kina amin
here thee
lorn oral
sols oses
dole oped
wine hern
nips gigs
hood odyl
rode cord
obes bits
rune tree...

output:

wellaway
wiliness
bellboys
windowed
pirozhki
opsonify
axolotls
cuckooed
temperer
deionize
brisling
rewarder
parasang
dutchman
carnally
tithonia
gabbroid
squushed
mannikin
entrench
nonroyal
soleuses
dolloped
whinnier
gypsying
ladyhood
crotched
bossiest
unexpert
overseer
wineskin
mandarin
bryozoan
air...

result:

ok OK

Test #14:

score: 100
Accepted
time: 1492ms
memory: 26056kb

input:

password
9998
sacredly
yeshivas
tattiest
diluvian
conjunct
crumbers
lambasts
pupilage
leggings
dispirit
galleass
deserver
shutting
schmucks
bitching
methanol
prefects
floppers
untended
usurpers
trundler
syringes
lambency
skylines
intender
disclaim
reanoint
recoiler
tincture
feminize
vicomtes
moistur...

output:

card lyse sear
says visa vise
etas stet tits
dial ulna vain
cunt noun unco
curb ecru rums
blam last sals
lipe pail pale
lien lies sign
iris pits spit
alga legs sals
devs reed seer
sith thus tint
hums much mush
chin itch thin
loam meal tole
rest seep serf
oles pore pros
dent dunt need
purs sure uses
...

input:

keys
40537
shed hips
ones fore
shoo hows
vied vide
rice koel
skep sels
lend deal
nail wing
duet tuis
reef fete
rise test
tern rent
oses sals
abas dago
blue love
mail deal
yird awry
cell odic
blin gulf
giga sial
coly luck
boot tahr
roan viol
ends safe
leer perp
lice coil
oses tens
oles oses
sped dins...

output:

headship
infernos
showoffs
viverrid
rocklike
pliskies
dawnlike
waggling
disputer
efferent
retwists
retrench
solacers
gambados
lovebugs
dismaler
cityward
collided
flubbing
anglings
bullocky
bathroom
nonviral
deafness
repeople
coquille
bonesets
soilless
unpoised
thronged
vitiates
picquets
derating
pli...

result:

ok OK

Test #15:

score: 100
Accepted
time: 1522ms
memory: 25968kb

input:

password
9997
imperils
gunfight
beladies
fatstock
nonionic
oblongly
mensural
bolognas
gleaners
ascetics
midterms
windsurf
aweather
groschen
priedieu
sporular
unsonsie
evulsion
shogunal
cardioid
mortises
lapidify
intrudes
opposing
rooftops
snippier
adultery
meteoric
mestizas
gainless
shoptalk
ceiling...

output:

elms lips rise
hung thug unit
dais seel slab
acts kats oast
coon icon noon
bolo goby long
emus rule seal
bans gobo slob
ares lean leer
cast etas sits
emir side trim
nurd rins urds
rate thaw weet
hens recs regs
dupe pier ride
opal parr soul
onus oses sunn
eons lues vine
gash naos sung
cord dado irid
...

input:

keys
41296
bone gown
tain tuna
kins lunk
nazi gang
plop ping
pees seer
mitt then
hale heat
tale egal
rads rash
chit sith
cess ewer
icon clon
eats sear
ahem yeah
toga lots
gamb balm
roan oars
naps pang
smog solo
tali bays
lear vera
dust kiss
sers segs
aunt qats
tsar leas
tees teen
deem rips
oast mots...

output:

wobegone
nutating
skinfuls
agnizing
poppling
reproves
monteith
athletes
litigate
haywards
biotechs
screwers
nitrolic
gastraea
hyphemia
otalgies
blackgum
raccoons
spamming
homologs
satiably
lavalier
duskiest
sniggers
quinnats
clearest
niceties
demireps
mastodon
talesman
floppers
tapeless
steroids
ren...

result:

ok OK

Test #16:

score: 100
Accepted
time: 1506ms
memory: 25916kb

input:

password
9999
flitting
perigons
andirons
torosity
valuable
prickles
kismetic
gomerils
motivate
cocksure
albumins
triplite
epicarps
honorand
spending
clinched
copilots
misbound
furcated
smellier
tectites
seriated
yestreen
phenetic
drinkers
caudally
defiling
easiness
huisache
rouleaux
deadhead
cleanes...

output:

gift inti lift
eros girn prog
noir soda sora
sort tiro tyro
baal lava leva
lipe reck reps
cist mice smit
giro mors rile
atom meta tame
cork kues suck
anus mina snub
peri pert tile
cape perp pica
darn hard odor
egis geds nips
chin hide nide
cist poco soli
buds nobs nubs
duct feud frae
ires lier slim
...

input:

keys
41858
genu neon
gars mars
hire deer
sees lens
zone chon
evil mels
zein nide
dita opts
clam mope
sire lest
aril liri
erns earn
ayes geta
lags lees
site lies
dine odds
gnar rigs
sora noir
unde acid
taus bots
gigs migs
psis purr
shod hers
lota tars
kolo loco
guid bind
laic chia
sial mesa
star part...

output:

enginous
grandams
rehinged
unsteels
zecchino
midlives
benzidin
satinpod
compleat
slitters
critical
ensnares
gateways
regalers
niellist
disowned
starring
andirons
jaundice
gunboats
priggism
spurries
scorched
althorns
woolsack
bundling
chalazia
mesially
sceptral
impledge
pygmyish
paradrop
dactylic
sig...

result:

ok OK

Test #17:

score: 100
Accepted
time: 1525ms
memory: 26312kb

input:

password
9998
enneagon
ungotten
electors
applique
delights
vibronic
foothold
sappiest
wheedled
detruded
databank
melanoma
ironware
starkers
witherer
walloper
mitogens
stiflers
foreside
semitone
johnnies
conceals
sublunar
recusals
aldehyde
leprotic
ptomains
linkable
antitank
insurers
reshowed
caruncl...

output:

agon anon gene
nett noun tent
cole lots sore
peal pule puli
eths isle list
brin coin coni
hoof loof tool
tape taps tepa
heed lewd whee
deer dure rete
band data tank
alae ammo lean
airn rein warn
erst skas tars
ewer thew weir
earl leap wall
engs gien nogs
file isle refs
dies firs ford
noms tees tome
...

input:

keys
44951
kors ores
seal meal
rust tusk
veil dele
haji jack
loin none
parr rope
nubs ebon
lehr sels
kite tits
nuts mint
peer palm
outs mors
blat ceil
tons sora
beer dree
gnat gast
hams gama
lope soil
mail roti
sole self
acid bald
bole gobo
feet noes
seif hins
vise even
wyes yews
leys sole
sons hero...

output:

einkorns
calomels
truckers
swiveled
highjack
eloining
reproach
subzones
shelvers
trinkets
luminist
preflame
motorbus
citeable
odorants
forebode
gantlets
mahuangs
polemics
amitrole
floccose
cuboidal
beglooms
oftenest
fuchsine
versines
dyeweeds
employes
unhorses
everyman
empurple
premixes
commoved
sli...

result:

ok OK

Test #18:

score: 100
Accepted
time: 1506ms
memory: 26412kb

input:

password
9995
hatching
liturgic
ravagers
defrayal
whickers
lockstep
mufflers
zoogenic
repairer
multiped
beclouds
demising
steading
bodysurf
balloter
mousings
xanthoma
directer
chancels
linguine
bandages
cajolery
despited
littered
finances
fontanel
impaling
paltered
messiahs
backlogs
pedicure
trithin...

output:

ghat hath hint
clit cult curt
area rare saga
aery frae yeld
chew hick hies
cole pest slop
furs luff mule
cion coon gien
aper pear pier
litu pile tule
clue sole udos
dims dins mind
gads tens ties
buoy doby yobs
bale bell blot
guns nogs sins
anoa atma mana
cere eide ride
acne lase lash
gien glen luge
...

input:

keys
48114
tits elhi
oils nils
cons sice
buts tora
whig hogs
thro hire
flue yell
toro wort
oldy yird
kink kick
snob moan
grow grue
stet aide
ream open
ones host
gamy ream
year awny
rato teen
ager lags
boil loon
ruin rune
fire riel
crus cute
aero rite
idyl tidy
muns eses
tods nodi
acme cads
stir zits...

output:

lathiest
luminous
isogenic
outbarks
showgirl
thornier
bellyful
wormroot
torridly
knocking
jobnames
roughhew
staidest
pomander
ethnoses
kerygmas
greenway
carotene
salvager
bobolink
reinjure
rifflers
crewcuts
fireboat
lividity
muteness
disjoint
muscadel
tsaritza
peatiest
coadmits
sisterly
crofters
vin...

result:

ok OK

Test #19:

score: 100
Accepted
time: 1569ms
memory: 27128kb

input:

password
9995
bribable
confrere
cohoshes
whoopers
subspace
arenites
tinniest
tornados
kolhozes
longeron
octonary
werewolf
shoveler
anodized
announce
reniform
haploidy
defoamer
prelives
tamboura
fleshpot
peponium
fanworts
refrying
stobbing
fathered
horsecar
disposal
clobbers
slippage
coquitos
trample...

output:

babe bibb blab
cere corn once
echo hoes shoo
hows pose shoe
aces baps pecs
anti sere site
nite sent snit
drat oats tsar
hoes solo sook
ergo loge role
carn rato tory
flee role rolf
hero rove seer
done naoi zone
cane noun once
firm from info
hail hyla plod
doer fare rede
lisp ripe sipe
mura rato tuba
...

input:

keys
59872
lite ails
wear brae
lone orad
sane odea
ices less
sent rest
rune pree
tads cans
nude emus
deke deet
lewd flue
mete tune
erne deed
sort tour
alef lues
mola main
gnat ayin
spit opts
moan abos
rage apes
auto bott
gosh hens
semi dies
togs sate
tiro tows
pees pens
inia nail
dere cave
snog dose...

output:

idealist
waxberry
banderol
daemones
solecist
internes
perineum
cabstand
dumbness
kvetched
gulfweed
mutineer
gandered
virtuous
fuselage
monaxial
tallying
oviposit
jobnames
grapples
tabouret
histogen
embodies
agouties
ribworts
prepense
flailing
cravened
gudgeons
hunkered
glassier
outliner
hooklike
sli...

result:

ok OK

Test #20:

score: 100
Accepted
time: 1538ms
memory: 27044kb

input:

password
9997
coleslaw
rikshaws
intended
rondeaux
dendroid
footling
tackling
shittahs
beaklike
unpacker
bearhugs
misthrow
sphinges
franklin
terrible
somebody
firetrap
peasecod
leukosis
ferruled
subgraph
grizzles
oversize
argentum
didactic
buckbean
previews
driveway
allovers
sailorly
flavorer
cycling...

output:

lace oles woes
saws shaw wars
deet dent tine
dare doux urea
dore nerd nori
lion toil toon
lati tack tick
aits hash tass
akee keel leek
nuke puce puna
bags brag grue
shri tori worm
hisn ping sipe
fain liar rain
belt leer lite
bode bods dose
prat rear ripe
deco does pods
isle like lose
dele fuel rude
...

input:

keys
59908
lorn fowl
mums meou
nest none
ring irid
grid sadi
fire line
sent legs
wots solo
tace tote
rift fart
haes eves
site diet
meal ylem
mils fils
dork undo
ties fibs
eves seme
ayes cyan
ween ding
acid adit
seem teem
nevi sinh
miss semi
cade neat
inro loin
lace node
step pies
raws moor
nibs bods...

output:

wrongful
pummelos
concents
gridiron
darnings
frenzily
settling
woolhats
outacted
craftier
achieves
nitrides
cyclamen
flimsily
drouking
beefiest
envenoms
hackneys
bewinged
carditic
esteemed
vixenish
misdeeds
crenated
rosinols
colander
dippiest
woomeras
disbound
peacocks
trawlnet
meatuses
tenderer
con...

result:

ok OK

Test #21:

score: 100
Accepted
time: 1503ms
memory: 27112kb

input:

password
9989
manacles
pastromi
squarely
fetterer
anatoxin
bilberry
demagogs
libelers
scarphed
berretta
birdings
diapered
evincive
mannered
unfilmed
misprize
strikers
abductee
ovariole
eyeholes
clotting
wooingly
locutory
doorknob
pitiless
extruded
repugned
quiniela
heroizes
ravagers
crispers
sixpenn...

output:

alae amas elms
atom piso romp
lars ruly yeas
fete free fret
into iota naan
lyre riel yirr
geds odea sade
bees bier ills
edhs pads read
abet beat rete
bids drib snib
dire peri rape
neve nevi vive
dene ream rede
lude mile nide
impi rems simp
sers sike trek
beau cube duet
lier olea vial
hose lees leys
...

input:

keys
59915
ears vavs
shed hist
lase main
lass sims
mise coni
nous rues
sole kops
noes ouds
tugs shin
lass ares
sice sops
rots sari
brio rein
moor form
hist miss
eros user
hall ally
airn case
sort cork
mags tams
rear tsar
limo arms
rave fade
ease seen
suit tail
ping sunk
owes twos
star trod
luny lich...

output:

aversive
redshift
melanins
classism
sermonic
cornuses
soaplike
swounded
huntings
slathers
specious
dilators
reobtain
foreboom
meshiest
gorgeous
phyllary
scantier
brockets
augments
drafters
oralisms
favoured
haleness
nautilus
kingcups
kotowers
hardtops
punchily
dindling
coniosis
knitwear
shkotzim
run...

result:

ok OK

Test #22:

score: 100
Accepted
time: 1540ms
memory: 27116kb

input:

password
9992
seatwork
hominian
liqueurs
clomping
repliers
hulloaed
fallowed
dialyzed
fireless
vaqueros
neumatic
creamier
moneyers
hilliest
cravings
quezales
reenacts
myrmidon
hacklers
morainal
inbursts
headland
motility
handbell
consumed
enduring
counties
herrying
faltboat
feldsher
blowiest
robotic...

output:

tows ware wort
amin mini ohia
lire lues ruse
gimp glom noil
peel reel sere
dale dual hale
deal feal wold
idea idyl lade
less riel rifs
arvo sore vase
tain team unit
mere rami rear
morn omen seme
elhi hets sell
gars rani vagi
ales lues zees
cane cars cere
iron momi rimy
cars hake reck
aria marl mina
...

input:

keys
59935
earl rear
alar roil
meet eyre
acta sett
jack orca
tree bree
rote turd
lech heal
puri pros
atap tapa
bear lead
roue euro
meed ride
nail kina
abos obes
peel perm
shri stum
suds clue
cees ceil
tets emit
lido land
pyin inky
trot tors
sage hoar
care tace
prau ursa
rasp spiv
mako howk
join jots...

output:

retrally
rasorial
motleyer
attaches
jackaroo
begetter
outfired
chalices
provirus
trapball
fordable
burrower
dreamier
blackfin
baroness
impeller
mistruth
cussedly
licenses
mistiest
mandolin
picnicky
stertors
shortage
execrate
larkspur
parvises
hawkmoth
adjoints
ballyhoo
gharials
escapers
airsheds
tup...

result:

ok OK

Test #23:

score: 100
Accepted
time: 1510ms
memory: 27116kb

input:

password
10000
tornados
overwise
martagon
pleasers
doggones
photonic
monishes
affirmed
monogamy
timorous
coinvent
prodigal
misstart
kailyard
decreers
chabouks
agronomy
grossest
movement
medusoid
floccose
caecally
arenites
gabelled
fervency
tableted
marasmus
cowberry
brokages
supermom
bellbird
outspa...

output:

drat oats tsar
rise view voes
gnat moat rota
earl pars sals
dogs nogg sned
chop inch poon
mine miso noes
fife fire read
agon ammo goon
root smut sour
cent conn nine
gird laid plod
mart mass tass
arak dray laky
cede reds seer
cash habu kabs
gran moon norm
gets rets segs
move note tome
doms duos some
...

input:

keys
59903
fore fees
ains bins
helo dote
veer turd
code done
bale late
skin gien
lech reel
moss some
open naos
yoga maut
leva lace
rote hoes
eggs gels
lank agon
doer silo
leis hets
grey lire
erns echo
aeon yens
thro rein
harm helm
hoot door
arse voes
tola yell
dens side
rock coco
elan rant
ilia alba...

output:

frescoer
nabobish
holytide
curveted
convened
tabooley
kennings
cheerful
oxysomes
eupnoeas
autogamy
cleavage
soothers
gigglers
polkaing
soldiers
chillest
glyceric
schooner
cyanosed
thornier
haulmier
trochoid
oversave
tomalley
banished
cockcrow
antlered
albizzia
corbinas
motordom
backwrap
moronism
cus...

result:

ok OK