QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294343#4828. Four Plus Fourucup-team088#AC ✓1261ms94972kbC++178.5kb2023-12-30 12:41:572023-12-30 12:41:57

Judging History

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

  • [2023-12-30 12:41:57]
  • 评测
  • 测评结果:AC
  • 用时:1261ms
  • 内存:94972kb
  • [2023-12-30 12:41:57]
  • 提交

answer

#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<map>
#include<set>
#include<bitset>
#include<stack>
#include<unordered_map>
#include<unordered_set>
#include<utility>
#include<cassert>
#include<complex>
#include<numeric>
#include<array>
#include<chrono>
using namespace std;

//#define int long long
typedef long long ll;

typedef unsigned long long ul;
typedef unsigned int ui;
//ll mod = 1;
constexpr ll mod = 998244353;
//constexpr ll mod = 1000000009;
const int mod17 = 1000000007;
const ll INF = (ll)mod17 * mod17;
typedef pair<int, int>P;

#define rep(i,n) for(int i=0;i<n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define Rep(i,sta,n) for(int i=sta;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per1(i,n) for(int i=n;i>=1;i--)
#define Rep1(i,sta,n) for(int i=sta;i<=n;i++)
#define all(v) (v).begin(),(v).end()
typedef pair<ll, ll> LP;

using ld = double;
typedef pair<ld, ld> LDP;
const ld eps = 1e-10;
const ld pi = acosl(-1.0);

template<typename T>
void chmin(T& a, T b) {
	a = min(a, b);
}
template<typename T>
void chmax(T& a, T b) {
	a = max(a, b);
}
template<typename T>
vector<T> vmerge(vector<T>& a, vector<T>& b) {
	vector<T> res;
	int ida = 0, idb = 0;
	while (ida < a.size() || idb < b.size()) {
		if (idb == b.size()) {
			res.push_back(a[ida]); ida++;
		}
		else if (ida == a.size()) {
			res.push_back(b[idb]); idb++;
		}
		else {
			if (a[ida] < b[idb]) {
				res.push_back(a[ida]); ida++;
			}
			else {
				res.push_back(b[idb]); idb++;
			}
		}
	}
	return res;
}
template<typename T>
void cinarray(vector<T>& v) {
	rep(i, v.size())cin >> v[i];
}
template<typename T>
void coutarray(vector<T>& v) {
	rep(i, v.size()) {
		if (i > 0)cout << " "; cout << v[i];
	}
	cout << "\n";
}
ll mod_pow(ll x, ll n, ll m = mod) {
	if (n < 0) {
		ll res = mod_pow(x, -n, m);
		return mod_pow(res, m - 2, m);
	}
	if (abs(x) >= m)x %= m;
	if (x < 0)x += m;
	//if (x == 0)return 0;
	ll res = 1;
	while (n) {
		if (n & 1)res = res * x % m;
		x = x * x % m; n >>= 1;
	}
	return res;
}
//mod should be <2^31
struct modint {
	int n;
	modint() :n(0) { ; }
	modint(ll m) {
		if (m < 0 || mod <= m) {
			m %= mod; if (m < 0)m += mod;
		}
		n = m;
	}
	operator int() { return n; }
};
bool operator==(modint a, modint b) { return a.n == b.n; }
bool operator<(modint a, modint b) { return a.n < b.n; }
modint operator+=(modint& a, modint b) { a.n += b.n; if (a.n >= mod)a.n -= (int)mod; return a; }
modint operator-=(modint& a, modint b) { a.n -= b.n; if (a.n < 0)a.n += (int)mod; return a; }
modint operator*=(modint& a, modint b) { a.n = ((ll)a.n * b.n) % mod; return a; }
modint operator+(modint a, modint b) { return a += b; }
modint operator-(modint a, modint b) { return a -= b; }
modint operator*(modint a, modint b) { return a *= b; }
modint operator^(modint a, ll n) {
	if (n == 0)return modint(1);
	modint res = (a * a) ^ (n / 2);
	if (n % 2)res = res * a;
	return res;
}

ll inv(ll a, ll p) {
	return (a == 1 ? 1 : (1 - p * inv(p % a, a)) / a + p);
}
modint operator/(modint a, modint b) { return a * modint(inv(b, mod)); }
modint operator/=(modint& a, modint b) { a = a / b; return a; }
const int max_n = 1 << 20;
modint fact[max_n], factinv[max_n];
void init_f() {
	fact[0] = modint(1);
	for (int i = 0; i < max_n - 1; i++) {
		fact[i + 1] = fact[i] * modint(i + 1);
	}
	factinv[max_n - 1] = modint(1) / fact[max_n - 1];
	for (int i = max_n - 2; i >= 0; i--) {
		factinv[i] = factinv[i + 1] * modint(i + 1);
	}
}
modint comb(int a, int b) {
	if (a < 0 || b < 0 || a < b)return 0;
	return fact[a] * factinv[b] * factinv[a - b];
}
modint combP(int a, int b) {
	if (a < 0 || b < 0 || a < b)return 0;
	return fact[a] * factinv[a - b];
}

ll gcd(ll a, ll b) {
	a = abs(a); b = abs(b);
	if (a < b)swap(a, b);
	while (b) {
		ll r = a % b; a = b; b = r;
	}
	return a;
}
template<typename T>
void addv(vector<T>& v, int loc, T val) {
	if (loc >= v.size())v.resize(loc + 1, 0);
	v[loc] += val;
}
/*const int mn = 2000005;
bool isp[mn];
vector<int> ps;
void init() {
	fill(isp + 2, isp + mn, true);
	for (int i = 2; i < mn; i++) {
		if (!isp[i])continue;
		ps.push_back(i);
		for (int j = 2 * i; j < mn; j += i) {
			isp[j] = false;
		}
	}
}*/

//[,val)
template<typename T>
auto prev_itr(set<T>& st, T val) {
	auto res = st.lower_bound(val);
	if (res == st.begin())return st.end();
	res--; return res;
}

//[val,)
template<typename T>
auto next_itr(set<T>& st, T val) {
	auto res = st.lower_bound(val);
	return res;
}
using mP = pair<modint, modint>;
mP operator+(mP a, mP b) {
	return { a.first + b.first,a.second + b.second };
}
mP operator+=(mP& a, mP b) {
	a = a + b; return a;
}
mP operator-(mP a, mP b) {
	return { a.first - b.first,a.second - b.second };
}
mP operator-=(mP& a, mP b) {
	a = a - b; return a;
}
LP operator+(LP a, LP b) {
	return { a.first + b.first,a.second + b.second };
}
LP operator+=(LP& a, LP b) {
	a = a + b; return a;
}
LP operator-(LP a, LP b) {
	return { a.first - b.first,a.second - b.second };
}
LP operator-=(LP& a, LP b) {
	a = a - b; return a;
}

mt19937 mt(time(0));

const string drul = "DRUL";
string senw = "SENW";
//DRUL,or SENW
//int dx[4] = { 1,0,-1,0 };
//int dy[4] = { 0,1,0,-1 };

//------------------------------------

vector<int> ran_array(int n) {
	mt19937 mtnw(239);
	vector<int> res(n);
	rep(i, n)res[i] = i;
	rep1(i, n - 1) {
		uniform_int_distribution<> ud(0, i);
		int to = ud(mtnw);
		swap(res[i], res[to]);
	}
	return res;
}
vector<vector<int>> G;
vector<vector<int>> rG;
vector<vector<int>> tra;

vector<vector<int>> resol;
void init(vector<string> s, vector<string> t) {
	rep(i, s.size())sort(all(s[i]));
	rep(i, t.size())sort(all(t[i]));
	rG.resize(s.size());
	G.resize(t.size());
	vector<int> cnt(26);
	rep(i, t.size()) {
		rep(j, s.size()) {
			bool valid = true;
			int loc = 0;
			for (char c : t[i]) {
				while (loc < s[j].size() && s[j][loc] != c)loc++;
				if (loc == s[j].size()) {
					valid = false; break;
				}
				loc++;
			}
			if (valid) {
				G[i].push_back(j);
				rG[j].push_back(i);
			}
		}
		//cerr << i << " " << G[i].size() << "\n";
	}
	//cerr << "end\n";
	tra.resize(t.size(), vector<int>(t.size(), -1));
	vector<P> ps;
	rep(i, s.size())ps.push_back({ rG[i].size(),i });
	sort(all(ps));
	vector<int> ids;
	rep(i, ps.size())ids.push_back(ps[i].second);
	resol.resize(s.size());
	rep(i, s.size())ids.push_back(i);
	for (int i : ids) {
		if (rG[i].size() < 3)continue;
		//cerr << "start " << ids.size()<<" "<<s[i] << " " << rG[i].size() << "\n";
		rep(j, rG[i].size()) {
			Rep(k, j, rG[i].size()) {
				if (tra[rG[i][j]][rG[i][k]] >= 0)continue;
				Rep(l, k, rG[i].size()) {
					if (tra[rG[i][j]][rG[i][l]] >= 0)continue;
					if (tra[rG[i][k]][rG[i][l]] >= 0)continue;
					if (k == l && j != k)continue;
					resol[i] = { rG[i][j],rG[i][k],rG[i][l] };
					tra[rG[i][j]][rG[i][k]] = i;
					tra[rG[i][j]][rG[i][l]] = i;
					tra[rG[i][k]][rG[i][l]] = i;
					if (resol[i].size())break;
				}
				if (resol[i].size())break;
			}
			if (resol[i].size())break;
		}
		assert(resol[i].size());
	}
}

void sol_encode() {
	int n; cin >> n;
	vector<string> a(n);
	rep(i, n)cin >> a[i];

	int N, M;
	vector<string> A, B;
	cin >> N;
	A.resize(N); rep(i, N)cin >> A[i];
	cin >> M;
	B.resize(M); rep(i, M)cin >> B[i];
	init(A, B);

	rep(i, n) {
		int loc = lower_bound(all(A), a[i]) - A.begin();
		rep(j, 3) {
			string res = B[resol[loc][j]];
			if (j > 0)cout << " "; cout << res;
		}cout << "\n";
	}
}
void sol_decode() {
	int n; cin >> n;
	vector<string> a(n);
	vector<string> b(n);
	rep(i, n)cin >> a[i] >> b[i];

	int N, M;
	vector<string> A, B;
	cin >> N;
	A.resize(N); rep(i, N)cin >> A[i];
	cin >> M;
	B.resize(M); rep(i, M)cin >> B[i];
	init(A, B);

	rep(i, n) {
		int idl = lower_bound(all(B), a[i]) - B.begin();
		int idr = lower_bound(all(B), b[i]) - B.begin();
		if (idl > idr)swap(idl, idr);
		cout << A[tra[idl][idr]] << "\n";
	}
}
void solve() {
	string in; cin >> in;
	if (in == "password") {
		sol_encode();
	}
	else {
		sol_decode();
	}

}



signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	//cout << fixed<<setprecision(10);
	//init_f();
	//init();
	//while(true)
	//expr();
	//int t; cin >> t; rep(i, t)
	solve();
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1229ms
memory: 91220kb

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:

ados paws pows
cero thio thou

input:

keys
4
ados paws
thou thio
pows ados
paws pows
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: 1230ms
memory: 91220kb

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 keir keir

input:

keys
1
keir keir
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: 1231ms
memory: 91164kb

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
afar awol draw
arak kava vara

input:

keys
18
kava vara
arak vara
draw afar
arak kava
arak vara
vara kava
awol draw
afar awol
vara arak
draw awol
kava vara
afar draw
arak kava
vara kava
kava arak
awol afar
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: 1244ms
memory: 94756kb

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
afar awol draw
aals goes loge
abas cess cube
aals bone enol
aper bear beep
abas dons naan
alba clap laic
aals debs sade
aahs bigs isba
abba blab blae
abas bite sabe
abri bott obia
abas bice ices
abba blat lati
abbe bees ease
abed cite tide
abed mano mead
ambo bind damn
abed cans cubs
...

input:

keys
60000
acne egal
feel chef
ceil fits
sego aeon
cion done
gong fino
best rust
kist sink
izar raze
kors efts
grim magi
mono ones
alls foal
alif fell
best kist
ante tend
cool coon
nous rune
hets hiss
flay alps
itch beth
rale leal
deni nixe
cels gels
acid fano
refs fere
sris deer
form frow
inti anta...

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: 1251ms
memory: 94756kb

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:

acid fico floc
ding find fund
errs rush surf
eels full slur
fell gien gull
delf foul fuel
cagy city fact
efts gust tegs
etui five gift
ague fane faun
emeu flue glee
figs sits tugs
crus curf furl
fill full ills
back calf club
deer full furl
alec cuff fall
ells fess fuel
defi lime lune
elms fins fuse
...

input:

keys
60000
aits airn
heir thro
horn bill
open doer
ells poll
kore pert
peds demo
evil bell
vrow doer
flop alto
acme kiva
gins torn
burp lube
rent rote
hops hoys
twat anna
gink owns
arse ails
alit quay
line dees
eery eery
aces stoa
trip pure
ruts epos
limo kilt
aeon nabe
acre trey
emes sump
amen nett...

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: 1245ms
memory: 94180kb

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:

dens rose rued
dell drop epos
ares deaf fads
awed read rear
ares dams deem
dame mate mead
deil reds reis
deer nevi rind
dees ired ires
doer rets roto
deni yird yirr
ands dhak drek
defi eths heir
dies herd hers
deni skin skis
ares dart read
adit salt sial
bedu bred dere
cede curs rues
cedi grid grue
...

input:

keys
50928
viol sori
rest sene
ours ours
vest vent
murr ovum
peri pirn
tame mate
mess egis
rope foot
psst busy
sewn ager
kilo cloy
delf fuse
whim wham
oils sola
fire vier
erns sers
plus scup
taro arty
meow lows
engs hers
frat acre
alga agas
aero pore
kins agin
shes eels
buns burs
duly dink
eras aped...

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: 1232ms
memory: 91008kb

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 mirs rums
aced sued suer
deni dove give
celt lore note
ding iglu nurl
ados shaw show
abet boyo loot
cees genu sign
cire smit term
been onus soul

input:

keys
46
sued aced
loot boyo
soul onus
shaw show
aced sued
ceil mirs
boyo abet
rums mirs
been onus
smit term
give dove
abet boyo
aced suer
ceil rums
celt lore
suer sued
give deni
shaw ados
ding nurl
lore note
mirs ceil
dove deni
rums ceil
genu sign
suer aced
dove give
cees genu
deni dove
show shaw
be...

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: 1222ms
memory: 91172kb

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 band bang
aero vets visa
apes pews sept
fino hisn homo
ghis prig puri
doer rung unde
aced vans vase
deed deni nene
aero tala teel
cess hush ouch
agas kaka kaon
acre cris isle
adit thaw wadi
chip pout thio
aeon mule neum
egis inks nine
erne hisn shes
eons kris okes
agon clod coda
chon hunk huns
...

input:

keys
313
hisn fino
beau beam
nurd rung
dire deet
yeti mums
dopy goys
tets tret
lory rato
efts milt
moot miso
pard aahs
bisk bock
eros litu
ahem feal
scop puts
reel keel
cogs chid
beam beau
idle bice
ping pier
egos noun
hush ouch
ados roan
inks egis
dogs goys
beau eaux
cris acre
ails vein
adit tret
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: 1229ms
memory: 91156kb

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:

adit sled slit
ante next thin
deed owed rode
ados hash hope
cess stet true
able leek sals
aahs rack sark
agin sway winy
atop hoof oath
aeon rems roms
emes erst meet
army maut mora
also jars jura
dims mosh nims
cent hoes nosh
amir murr ovum
anil gang gnaw
agin ours sura
arco scar soar
abet able belt
...

input:

keys
2230
reis rudd
sill bill
ains pops
ires slip
lops opts
aced open
farm aide
whid cede
asks sabs
scad abed
peso eros
kilo aeon
rays ryot
ours agin
sill syli
erne pepo
durr delt
lees rebs
eels gips
nets tens
keys demo
isle nett
elhi hila
mail limb
duma duns
ired ride
lire ails
aits anes
time miri
...

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: 1235ms
memory: 94112kb

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:

agin parr pray
aery wary wear
deed rods sord
cent durn redo
blin bumf film
aunt nota taut
alae deed tale
alef pale paps
acts taos tins
aged hags heed
aero hogg huge
eons rite tiro
ails mott toms
bels rots sets
demo neon nuns
heir otto tiro
elms omer ores
aped ramp vamp
doer froe rode
cell floc flue
...

input:

keys
49151
iwis site
axis abet
cess such
lino gilt
nett engs
emes aces
agin give
naan adit
sees egis
eons tees
bedu numb
ante laze
mace maes
code envy
coos clot
cion anis
culm lock
alar alas
rapt rape
abet soar
funs self
lang anil
dell fell
kris kirn
aces scab
ouds loud
file alae
aces refs
pech aced...

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: 1235ms
memory: 91324kb

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:

airn neat nite
aals stab tabs
beer dive drib
daft fart fere
cion golf info
cero ecus roes
bine bone bong
agar atom mora
abri raid rill
beer curb curr
celt loup pelt
beef debt deft
chew rite thew
agin haft hint
emus hips mush
dins duty nuts
ahem meed team
aims anus maun
acts runt sura
aals byrl syli
...

input:

keys
1
kine 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: 1261ms
memory: 94700kb

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 chin chin
chow chow chow
city city city
illy illy illy
acid acid acid
dumb dumb dumb
imid imid imid
ding ding ding
ding nidi zing
cede cede cede
etui etui etui
epee epee epee
fink fink fink
fizz fizz fizz
fizz friz liri
four roof ruff
didy didy didy
icky immy mick
gill gill gill
...

input:

keys
60000
haed haha
moue mura
into jogs
adze died
waly wawl
onyx eery
mocs cels
glee ceil
mien been
gins girt
bush cusk
meze meme
chip chip
rain aahs
agio izar
barb bran
tine even
abba birr
inly fern
fell lulu
seer errs
veil vill
vibe agin
dark ammo
herb brrr
yell acyl
loll mell
sews hews
tach chit...

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: 1229ms
memory: 91660kb

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 chin chin
chow chow chow
city city city
illy illy illy
acid acid acid
dumb dumb dumb
imid imid imid
ding ding ding
ding nidi zing
cede cede cede
etui etui etui
epee epee epee
fink fink fink
fizz fizz fizz
fizz friz liri
four roof ruff
didy didy didy
icky immy mick
gill gill gill
...

input:

keys
10000
alae wawl
nisi sewn
bobs bell
enow dido
phiz piki
oops piny
loos alls
cock deco
epee pert
dene doze
ribs bigs
ware wear
agar raps
chum aunt
acyl nary
than anti
bora abri
shed dues
mina akin
cent hern
anon lory
oles eels
dell eddo
when heir
yins gigs
dodo dyad
toed cero
ties best
next peer...

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: 1248ms
memory: 93672kb

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:

aced leys rely
ashy have hies
aits sate seat
anil laud nidi
conn cunt noun
berm crus murr
aals blam lamb
ague gulp ilea
eggs glen isle
dips irid pits
aals ages ells
deer devs reds
ghis tits tuns
chum mush musk
bint inch itch
aeon molt moth
cees fret serf
epos pelf plop
deed duet dunt
errs spue spur
...

input:

keys
40537
phis hash
fins eons
oohs howf
vide ride
kick ceil
pike lisp
kina aide
agin wail
dies spud
fete erne
erst wets
etch eche
soar sola
abas gams
begs guvs
merl aide
draw acid
cedi coil
blin gulf
gags gain
bloc cull
ambo bort
vino virl
ands fade
epee orle
clue cell
oses sent
ells isle
puds deni...

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: 1244ms
memory: 93620kb

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 peri pili
gift hunt thin
abed sail sale
acts oaks okas
cion conn icon
bogy goon lobo
ales maun mura
abos goal gobo
agee seer slag
aces aits cist
derm dits mems
dins firn fuds
area hate hear
cero gens gosh
deep drip irid
alps parr pols
eons sues sunn
enol soul vein
agon gush halo
acid dado road
...

input:

keys
41296
been gobo
taut ting
funk kiln
giga agin
loin lino
epos reps
emit hone
alee shat
tile alit
aahs drys
best cosh
cees crew
rotl cion
agar sate
ahem pima
olea loti
balk alum
soon scan
amps imps
gosh homo
bits bait
alae raia
desk dits
sins ring
ains nuns
etas eels
sine inti
deem rims
soma snot...

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: 1228ms
memory: 93628kb

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:

flit lint tilt
egis porn rope
ados nona nori
oots tory tost
able blue lava
ceil skep skip
cist mike skim
egis limo mole
amie matt mote
cero cusk ruck
ails libs mibs
lept liri ripe
aces pips prep
anon hand hoar
deni gips pigs
cedi lech lich
cist pool slit
bids doum mind
aced fart fret
eels mill mils
...

input:

keys
41858
egis noun
agar sard
hind deer
tune eels
once chez
vies vims
dine bize
adit soap
acme colt
isle erst
talc tirl
eras anes
agas stag
lars leas
sent ells
deni wide
agin arts
nori ados
jade aced
nubs gnus
gigs impi
ires psis
shod shed
also hols
cool look
bunn bind
hail chia
ylem yell
lase erst...

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: 1236ms
memory: 93992kb

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:

aeon aeon aeon
gent tong tote
cees colt lots
ilea lipa pale
deil gits hets
born coin crib
dolt doth food
aits peps pips
deed heel held
deed true turd
anta dank taka
aeon alma lame
aeon wain wair
ares skas task
ewer wert whet
aero plow wall
egis mons nome
efts tels tier
dees doer fido
emes ions note
...

input:

keys
44951
kirs oink
mell aces
crus rusk
view dees
haji high
gien linn
ache roar
sone bens
eels resh
kist kris
lunt lums
flap farm
mors boom
abet cete
stoa root
beef dere
salt ages
gams aahs
ceil scop
aero milt
floe cels
acid daub
begs boom
efts tons
fens ecus
veer erns
deys ewes
eels oyes
resh eons...

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: 1243ms
memory: 94156kb

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:

agin hath itch
clit girt tirl
agar revs sear
aery fled fley
chew hick ires
cels keto kops
effs emus lure
cine coon goon
aper peer rape
deil mute temp
beds clod cues
deni megs migs
adit gies sage
bods bury doby
abet roll tola
gins muon sumo
amah hoax moan
cede dirt rite
aces elan heal
genu glen glue
...

input:

keys
48114
shat ails
lums limo
nose sego
abos okra
owls lows
then heir
flub flue
roto toom
riot ryot
kick cion
jams jamb
euro grow
sati adit
pram pome
soth eths
aery gems
gree aery
rato roan
aals gear
bilk boon
jeer rein
effs lire
crew cues
abet forb
idly tidy
suet emes
jots inti
aced muds
izar raia...

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: 1245ms
memory: 94748kb

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:

abbe lair riel
cere corn fere
cess oohs shoe
epos wops wore
aces pubs subs
ains rete tire
inns tent titi
ados soon tarn
elks kohl loos
enol ergo loge
arco ryot tarn
ewer rolf were
eels hero hove
adze dado died
acne noun unco
emir fino froe
ahoy dial hail
aero feme rede
eels spiv veep
abut moat mura
...

input:

keys
59872
slit adit
rare abye
abed olea
mode emes
ceil cost
teen snit
pine peer
scad cant
mess menu
deke cede
glee dele
emeu ruin
read aged
trio urus
agee feus
milo maxi
tall agin
spit oops
jamb abos
peps ager
abet rout
egis hong
seem mise
sago gout
bios roti
epee peps
fill flan
ever aced
guns dens...

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: 1238ms
memory: 94756kb

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:

aces awol lowe
airs sark shaw
deed nite tend
aeon doux dura
deni doer eddo
filo lint logo
agin kilt tack
aits hash shah
able kaki kike
acne knur neck
ager bash bear
hist most moth
egis hips piss
airn kail kirn
beer tele tier
beds emyd mood
airt pita rape
aced pods scop
elks loss seis
deer flue leud
...

input:

keys
59908
fowl flog
loup elms
cons cots
inro dorr
agin rind
fern inly
leis engs
hows hats
dato odea
rife acre
vees shiv
dies dens
ceca many
mils fill
ding gunk
fist fete
emes neon
aces caky
wend weed
acid airt
stem teds
hens nevi
isms seme
aced rete
inro loos
aced lorn
spit pipe
maws aero
nous bids...

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: 1243ms
memory: 94972kb

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:

aals acme meal
aims proa prom
aery quay rues
feet tref tret
anna tain taxa
bier byre lire
ados eggs mage
beer ells libs
aced spae sped
abet rare rear
bids gird grin
aide peer reap
cine even neve
amen nene rede
defi limn mule
emir prez zips
errs skit trek
abed duce tabu
aero olio vail
eels hoys shoe
...

input:

keys
59915
airs vavs
eths defi
mels mesa
sacs sims
morn cero
sons sues
kops ails
dens nows
thug ghis
rath ales
sous supe
roil slat
iron rein
robe fore
emes shes
eggs ores
harl ally
acne reis
cors beck
maun mugs
ares reft
roms ails
uvea aero
alee shea
sulu ulna
cigs puck
eros toke
path port
puli chin...

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: 1255ms
memory: 94848kb

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:

aero skew twae
amin anon main
ires rile rule
cion glim moil
eels peri rips
aloe duel helo
alef doll fado
adze dyad dyed
eels fire rifs
aero ours rase
acme aunt menu
acme rami rare
eery mons more
elhi sell shit
agin vars vigs
alee zeal zees
acne ease erns
dorm dory immy
ache ares cars
airn marl milo
...

input:

keys
59935
aery teal
aals roil
mete eely
aahs scat
cook jack
tree gree
redo rift
hail aces
purr opus
brat part
abed farl
robe bore
meed rime
bani back
abos nabe
emir peel
mitt mush
sled cels
cees line
miss emit
anon amid
pink icky
stet sets
hags aero
acre cate
arks lurk
airs visa
howk hawk
adit djin...

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: 1251ms
memory: 94780kb

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:

ados soon tarn
eros vies view
agar atom mora
alee pass pree
dens eggs gods
chin poco pooh
eons mesh mhos
aide farm fief
agon many moan
mirs must oust
cent vice vine
agio dopa drip
aims rats rias
airy dark idly
cede errs recs
abos chub hobs
agon gory gray
egos rest rots
even meme meno
demo some sudd
...

input:

keys
59903
corf cees
abos hisn
holt deil
true rued
cede oven
abet boyo
skeg egis
clue flee
oxes sexy
opus aeon
goat agma
lava alec
shoo eros
eggs riel
kaon agin
deil sirs
hist ceil
ceil gley
hens cero
aced sone
then rent
ahem aril
ordo chid
aero eves
mate mayo
dish hand
rock crow
alee rand
alba 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