QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#662669#4828. Four Plus FourN_z_AC ✓965ms27616kbC++238.1kb2024-10-21 08:56:092024-10-21 08:56:10

Judging History

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

  • [2024-10-21 08:56:10]
  • 评测
  • 测评结果:AC
  • 用时:965ms
  • 内存:27616kb
  • [2024-10-21 08:56:09]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
struct time_helper{
#ifdef LOCAL
clock_t time_last;time_helper(){time_last=clock();}void test(){auto time_now=clock();std::cerr<<"time:"<<1.*(time_now-time_last)/CLOCKS_PER_SEC<<";all_time:"<<1.*time_now/CLOCKS_PER_SEC<<std::endl;time_last=time_now;}~time_helper(){test();}
#else
void test(){}
#endif
}time_helper;
#ifdef LOCAL
#include"dbg.h"
#else
#define dbg(...) (__VA_ARGS__)
#endif
namespace Fread{const int SIZE=1<<16;char buf[SIZE],*S,*T;inline char getchar(){if(S==T){T=(S=buf)+fread(buf,1,SIZE,stdin);if(S==T)return'\n';}return *S++;}}namespace Fwrite{const int SIZE=1<<16;char buf[SIZE],*S=buf,*T=buf+SIZE;inline void flush(){fwrite(buf,1,S-buf,stdout);S=buf;}inline void putchar(char c){*S++=c;if(S==T)flush();}struct NTR{~NTR(){flush();}}ztr;}
#define getchar Fread::getchar
#define putchar Fwrite::putchar
int print_precision=10;bool print_T_endl=1;char print_between=' ';
template<typename T>struct is_char{static constexpr bool value=(std::is_same<T,char>::value||std::is_same<T,signed char>::value||std::is_same<T,unsigned char>::value);};template<typename T>struct is_integral_ex{static constexpr bool value=(std::is_integral<T>::value||std::is_same<T,__int128>::value)&&!is_char<T>::value;};template<typename T>struct is_floating_point_ex{static constexpr bool value=std::is_floating_point<T>::value||std::is_same<T,__float128>::value;};namespace Fastio{struct Reader;struct Writer;template<size_t id>struct read_tuple{template<typename...T>static void read(Reader&stream,std::tuple<T...>&x){read_tuple<id-1>::read(stream,x);stream>>get<id-1>(x);}};template<>struct read_tuple<0>{template<typename...T>static void read([[maybe_unused]]Reader&stream,[[maybe_unused]]std::tuple<T...>&x){}};template<size_t id>struct print_tuple{template<typename...T>static void print(Writer&stream,const std::tuple<T...>&x){print_tuple<id-1>::print(stream,x);putchar(print_between);stream<<get<id-1>(x);}};template<>struct print_tuple<1>{template<typename...T>static void print(Writer&stream,const std::tuple<T...>&x){stream<<get<0>(x);}};template<>struct print_tuple<0>{template<typename...T>static void print([[maybe_unused]]Writer&stream,[[maybe_unused]]const std::tuple<T...>&x){}};
struct Reader{template<typename T>typename std::enable_if_t<std::is_class<T>::value,Reader&>operator>>(T&x){for(auto &y:x)*this>>y;return *this;}template<typename...T>Reader&operator>>(std::tuple<T...>&x){read_tuple<sizeof...(T)>::read(*this,x);return *this;}template<typename T>typename std::enable_if_t<is_integral_ex<T>::value,Reader&>operator>>(T&x){char c=getchar();short f=1;while(c<'0'||c>'9'){if(c=='-')f*=-1;c=getchar();}x=0;while(c>='0'&&c<='9'){x=(x<<1)+(x<<3)+(c^48);c=getchar();}x*=f;return *this;}template<typename T>typename std::enable_if_t<is_floating_point_ex<T>::value,Reader&>operator>>(T&x){char c=getchar();short f=1,s=0;x=0;T t=0;while((c<'0'||c>'9')&&c!='.'){if(c=='-')f*=-1;c=getchar();}while(c>='0'&&c<='9'&&c!='.')x=x*10+(c^48),c=getchar();if(c=='.')c=getchar();else return x*=f,*this;while(c>='0'&&c<='9')t=t*10+(c^48),s++,c=getchar();while(s--)t/=10.0;x=(x+t)*f;return*this;}template<typename T>typename std::enable_if_t<is_char<T>::value,Reader&>operator>>(T&c){c=getchar();while(c=='\n'||c==' '||c=='\r')c=getchar();return *this;}Reader&operator>>(char*str){int len=0;char c=getchar();while(c=='\n'||c==' '||c=='\r')c=getchar();while(c!='\n'&&c!=' '&&c!='\r')str[len++]=c,c=getchar();str[len]='\0';return*this;}template<typename T1,typename T2>Reader&operator>>(std::pair<T1,T2>&x){*this>>x.first>>x.second;return *this;}Reader&operator>>(std::string&str){str.clear();char c=getchar();while(c=='\n'||c==' '||c=='\r')c=getchar();while(c!='\n'&&c!=' '&&c!='\r')str.push_back(c),c=getchar();return*this;}Reader(){}}cin;const char endl='\n';
struct Writer{typedef __int128 mxdouble;template<typename T>typename std::enable_if_t<std::is_class<T>::value,Writer&>operator<<(const T&x){for(auto q:x){*this<<q;if(!is_class<decltype(q)>::value)*this<<print_between;}if(!is_class<typename T::value_type>::value&&print_T_endl)*this<<'\n';return *this;}template<typename...T>Writer&operator<<(const std::tuple<T...>&x){print_tuple<sizeof...(T)>::print(*this,x);if(print_T_endl)*this<<'\n';return *this;}template<typename T>typename std::enable_if_t<is_integral_ex<T>::value,Writer&>operator<<(T x){if(x==0)return putchar('0'),*this;if(x<0)putchar('-'),x=-x;static int sta[45];int top=0;while(x)sta[++top]=x%10,x/=10;while(top)putchar(sta[top]+'0'),--top;return*this;}template<typename T>typename std::enable_if_t<is_floating_point_ex<T>::value,Writer&>operator<<(T x){if(x<0)putchar('-'),x=-x;x+=pow(10,-print_precision)/2;mxdouble _=x;x-=(T)_;static int sta[45];int top=0;while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');while(top)putchar(sta[top]+'0'),--top;putchar('.');for(int i=0;i<print_precision;i++)x*=10;_=x;while(_)sta[++top]=_%10,_/=10;for(int i=0;i<print_precision-top;i++)putchar('0');while(top)putchar(sta[top]+'0'),--top;return*this;}template<typename T>typename std::enable_if_t<is_char<T>::value,Writer&>operator<<(const T&c){putchar(c);return*this;}Writer&operator<<(char*str){int cur=0;while(str[cur])putchar(str[cur++]);return *this;}Writer&operator<<(const char*str){int cur=0;while(str[cur])putchar(str[cur++]);return*this;}template<typename T1,typename T2>Writer&operator<<(const std::pair<T1,T2>&x){*this<<x.first<<print_between<<x.second;if(print_T_endl)*this<<'\n';return *this;}Writer&operator<<(const std::string&str){int st=0,ed=str.size();while(st<ed)putchar(str[st++]);return*this;}Writer(){}}cout;}
#define cin Fastio::cin
#define cout Fastio::cout
#define endl Fastio::endl
template<class Fun>class y_combinator_result{Fun fun_;public:template<class T>explicit y_combinator_result(T &&fun): fun_(std::forward<T>(fun)) {}template<class ...Args>decltype(auto) operator()(Args &&...args){return fun_(std::ref(*this), std::forward<Args>(args)...);}};template<class Fun>decltype(auto) y_combinator(Fun &&fun){return y_combinator_result<std::decay_t<Fun>>(std::forward<Fun>(fun));}

void init();void solve(int tc);
main()
{
	init();int t=1;
	// cin>>t;
	for(int tc=1;tc<=t;tc++)solve(tc);
}
tuple<int,int,int>res[28558];
map<pair<int,int>,int>ires;
mt19937 mt0(0);
void init()
{
}
void oper(vector<string>d8,vector<string>d4)
{
	for(auto&q:d8)sort(q.begin(),q.end());
	for(auto&q:d4)sort(q.begin(),q.end());
	auto include=[&](const string&a,const string&b)
	{
		return includes(a.begin(),a.end(),b.begin(),b.end());
	};
	vector<vector<int>>nd(d8.size());
	for(int x=0;x<d8.size();x++)
	for(int y=0;y<d4.size();y++)
	if(include(d8[x],d4[y]))nd[x].emplace_back(y);
	vector<int>id(d8.size());
	for(int x=0;x<d8.size();x++)
	id[x]=x;
	sort(id.begin(),id.end(),[&](auto a,auto b){return nd[a].size()<nd[b].size();});
	while(1)
	{
		auto seed=mt0();
		mt19937 mt(seed);
		for(int _=0;_<d8.size();_++)
		{
			int x=id[_];
			if(nd[x].size()<3)continue;
			int u=nd[x][0],v=nd[x][0],w=nd[x][0],lim=1000;
			while((ires.count({u,v})||ires.count({u,w})||ires.count({v,w}))&&--lim)
			{
				u=nd[x][mt()%nd[x].size()];
				v=nd[x][mt()%nd[x].size()];
				w=nd[x][mt()%nd[x].size()];
			}
			if(lim==0)goto fail;
			res[x]={u,v,w};
			ires[{u,v}]=ires[{v,u}]=ires[{u,w}]=ires[{w,u}]=ires[{v,w}]=ires[{w,v}]=x;
			// cerr<<x<<endl;
		}
		cerr<<seed<<endl;
		break;
		fail:;
		ires.clear();
	}
}
void solve([[maybe_unused]]int tc)
{
	string role;
	cin>>role;
	if(role=="password")
	{
		int n;
		cin>>n;
		vector<string>s(n);
		cin>>s;
		int dn;
		cin>>dn;
		vector<string>d8(dn);
		cin>>d8>>dn;
		vector<string>d4(dn);
		cin>>d4;
		oper(d8,d4);
		for(auto s:s)
		{
			auto v=lower_bound(d8.begin(),d8.end(),s)-d8.begin();
			auto[a,b,c]=res[v];
			cout<<d4[a]<<' '<<d4[b]<<' '<<d4[c]<<endl;
		}
	}
	else
	{
		int n;
		cin>>n;
		vector<pair<string,string>>s(n);
		cin>>s;
		int dn;
		cin>>dn;
		vector<string>d8(dn);
		cin>>d8>>dn;
		vector<string>d4(dn);
		cin>>d4;
		oper(d8,d4);
		for(auto [s0,s1]:s)
		{
			auto a=lower_bound(d4.begin(),d4.end(),s0)-d4.begin();
			auto b=lower_bound(d4.begin(),d4.end(),s1)-d4.begin();
			cout<<d8[ires[{a,b}]]<<endl;
		}
	}
}

详细

Test #1:

score: 100
Accepted
time: 918ms
memory: 23956kb

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:

sods rows spas
hour itch torc

input:

keys
4
sods rows
torc itch
spas sods
rows spas
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: 916ms
memory: 23976kb

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: 907ms
memory: 23916kb

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 arak arak
fora wold oral
arak arak arak

input:

keys
18
arak arak
arak arak
oral fora
arak arak
arak arak
arak arak
wold oral
fora wold
arak arak
oral wold
arak arak
fora oral
arak arak
arak arak
arak arak
wold fora
arak arak
arak 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: 963ms
memory: 27580kb

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 arak arak
fora wold oral
lavs goas sego
case seas cube
naos nabe alas
barm pram pram
nana ados anas
laic baal pail
abys yald sade
bani saga ains
tael blae blat
bast seta sits
bota tori tart
ebbs aces abas
lati blab alba
ease base babe
beat iced bade
meno dabs nebs
mind band dona
anus dues beds
...

input:

keys
60000
cain cane
cees eels
fisc celt
sang song
deco nidi
grog nogg
sure bets
knit deni
raia izar
kits riot
magi more
mood node
oafs alls
bile flea
tsks kite
dunt dead
noel lode
nous cero
aits east
flay slat
etic itch
ears acre
dits rids
recs cols
rani carn
reif lees
ired dies
fork fork
agin vita...

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: 958ms
memory: 27532kb

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:

clod dial foal
find ling gulf
fere rhus serf
fuel refs fell
gulf gulf iglu
fool owed lude
cagy cagy cagy
gigs figs fist
gift give give
menu egal ulan
feme neum glum
tugs fits gust
lums flus rums
ills fill ills
bulk calf flub
lure dure feud
luff leaf fell
self uses less
deil duel fund
fens mils isle
...

input:

keys
60000
airn sain
tote riot
inro horn
prep ordo
spot lets
kept kept
edit ties
bole vibe
doer doer
mort raft
mair kier
nogs snit
rube prey
tore rove
pans spay
watt nota
gown wogs
alee ails
quay luny
deli dins
eery eery
cons ocas
pert puce
sept ores
kilo kilo
ammo boon
alec call
perm seep
mast muts...

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: 959ms
memory: 27156kb

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:

dune user reds
sole lops does
star tref rads
wear wade were
mere mesa sear
dram deme mate
sild dill ires
need vide ever
vier vide dree
toes eros toed
rind ding yird
near khan kaes
dire refs tier
heir ides dish
ides dink drek
teas tads dart
rads sate last
burd deed rued
dees ruse dues
rice iced girn
...

input:

keys
50928
rive reel
anes rats
ours ours
slit nits
roam arum
pein dire
meat aped
nims nims
toro roof
tups uses
rage gens
cork cloy
udos feus
wham hwan
lies glia
fire rife
sits sire
ceps lice
tray ryot
owls amis
hens tret
tate fiat
slaw laws
ware repo
sink cigs
else lets
buns nubs
dink dink
rasp deep...

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: 915ms
memory: 24036kb

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:

mure emic emic
cues sued surd
nevi neon vino
teel leer lent
gird guid girl
show door ados
oboe aloe oleo
egis engs unci
iris rets stir
lune bole been

input:

keys
46
sued cues
oleo aloe
been bole
door ados
cues sued
mure emic
aloe oboe
emic emic
lune bole
rets stir
vino neon
oboe aloe
cues surd
mure emic
teel leer
surd sued
vino nevi
door show
gird girl
leer lent
emic mure
neon nevi
emic mure
engs unci
surd cues
neon vino
egis engs
nevi neon
ados door
lu...

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: 923ms
memory: 23956kb

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:

yagi gadi bind
vars visa vest
seta tapa tate
shmo mons shin
ghis guru rugs
gone ruer unde
ends ansa cave
eide died dune
earl alae tale
cuss echo secs
agas snag soak
rape sear plie
adit adit adit
toit pout chip
aloe meal mean
inns gink egis
rees sirs hiss
rink over sink
clod dona loca
hock hone ones
...

input:

keys
313
mons shmo
beam beam
rune unde
edit rein
immy item
dogs dogs
rats dita
alow tola
sels mils
miso miso
hasp hand
cobs obis
lieu oils
hila seif
capo scat
lite tile
disc shog
beam beam
bide lier
pigs rips
gest nuns
echo secs
tods ordo
gink inns
dogs dogs
beam beam
sear rape
leas nets
read dita
e...

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: 920ms
memory: 23952kb

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:

sate ales ilia
thin haet thae
eddo weer redd
hade apod ohed
ecus sers crus
sals lass skee
rack kaas sack
nays wyns ways
pooh atop haft
mora star moat
meet exes seer
mura mura mayo
nous slur sola
miso imid hods
rots sort cosh
arvo roam arum
wain gnaw agin
rain sorn iron
orcs casa coca
able leal tall
...

input:

keys
2230
ruse ties
bill bill
stoa span
rile seis
lops lops
aide coed
idea dram
cire eche
swab cabs
asci ired
tips tori
ilka keno
toys toys
sorn rain
bill bill
prop prop
nurd tend
bees eels
lies pegs
nest teds
soke deys
seis lest
ales hail
lima lamb
slam alas
dire reed
lass alls
tain snit
tire cere
...

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: 949ms
memory: 27084kb

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:

pian pang gran
afar frae wear
dore deer dees
tone cord curd
limn glib film
unau vatu tuna
data deet dele
ares refs salp
taco cots snit
geed gads ghee
hoer urge hoer
rets tine ions
mist mail oats
belt lets sort
undo noes neon
tort trot hero
rope lore imps
veep ramp deva
feod ordo drew
cell full foul
...

input:

keys
49151
tees wive
isba taxi
shoe hues
ping loti
test gene
same cees
nevi vena
dona tain
sets ties
nose oses
durn berm
heat zeta
mare mess
done dyne
soys sots
slay lacs
cloy moll
alas ryas
race aper
tart seta
fens foul
glia lain
reel flee
arse sark
anes carb
dour solo
flat late
sear cues
hade puce...

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: 915ms
memory: 24288kb

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:

tarn inia rein
teas isba alts
dive vibe dere
deer rate raft
loin coif clon
crus coss user
none neon gien
anoa anta agma
raid brad laic
cube berm emeu
tout puce celt
deft deet fete
heir wich thir
tang naif naif
hums pehs hemp
duns nidi dunt
date haet them
mina macs scan
cast cant curs
lays abas raia
...

input:

keys
1
line yell
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: 956ms
memory: 27604kb

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

input:

keys
60000
area herd
aero arum
nisi jins
odea aide
ally lily
open expo
oyes coly
cere lier
glen glee
grin rins
cusk skee
meze momi
chip chip
shri raia
gars giro
bran urbs
inti nite
carr carr
zein fern
iglu gill
veer revs
lire leer
vibe gaen
marc arco
bore hoer
alec leal
elmy elmy
seis whys
hant cant...

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: 919ms
memory: 24364kb

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

input:

keys
10000
yell wale
sews sewn
sloe ells
wend wino
koph koph
fops fons
toll slat
kudo duke
mere term
dine eide
libs ling
dare wade
spar anga
tuna dunt
ally carl
thin that
boar agio
dues dues
inia kami
teen rete
oral nary
slue sues
lope oleo
hewn heir
spin pigs
dhal odyl
croc etch
bise sobs
erne punt...

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: 938ms
memory: 26680kb

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:

cels aery syce
hive yeas says
teat tits tets
dial vina vail
conn conn conn
rebs rums errs
tala alma mast
plug pail luge
leis gigs sine
dipt dips spit
sale sels legs
veer vees devs
snit snit guts
chum huck mush
chin inti itch
oath halo elan
sept tees efts
pose orle pepo
deed teen dune
rues spur sers
...

input:

keys
40537
hahs sade
inro rose
foss foss
dire dire
loci koel
lisp seis
wink dale
wing agin
sipe pied
tern tern
sits tret
tree here
oars roes
saga abos
love lues
deli male
dart ward
lode diol
bulb bung
snag lang
lock luck
boom toom
lair nori
feed dean
lope lope
coil lieu
best bets
soli ells
udos dope...

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: 947ms
memory: 26484kb

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:

mirs lire mire
hint thug thug
bled dabs lead
tats soak soft
coni noon coin
long boon bong
meal mane arum
bags goon bang
snag lens lase
ties ates cess
reds sire dims
nurd fins wins
weer hare hate
rhos nosh roes
eide peri deep
slap pars also
noes suns noun
lino leis onus
nags gosh lags
dido coda orad
...

input:

keys
41296
gone gown
tain gaun
lunk lins
zing nazi
lino noil
over pees
nome hent
seta hats
egal gait
whys sway
hots cobs
ewes sere
roil noir
seat gest
ahem ahem
seat soli
maul club
sorn cars
mags nags
shog loom
bits bats
aril vera
kues dike
regs ires
aits quin
teel leas
teen cees
reds sped
naos mads...

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: 948ms
memory: 26628kb

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 titi lift
goes grin sign
nodi naos rins
toot soot riot
beau bull uvea
perk ices spic
kits time mick
megs rigs lime
team tome toit
ores sock ukes
lamb nils ulna
lire lite pelt
pipe scar spae
anon door roan
pein pegs engs
hind lech diel
lisp loti loco
dubs dubs mons
duet fret dare
mell reis lees
...

input:

keys
41858
song gone
nags rang
here nerd
nest sees
zein chez
mids mids
bend bend
pian anti
coal meta
slit tire
tirl tali
near sans
tyes away
sale gale
tile sine
nose woes
gnat trig
rins nodi
idea iced
oast nabs
iris impi
pier sues
rose shod
soar also
look lack
gild linn
chia chia
ells slay
cart taps...

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: 947ms
memory: 26896kb

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
noun neon unto
lots roes tees
pipe pale palp
gids deil sith
born born born
dolt dolt dolt
pies tape seas
heed weld weed
rete true dree
kana dank kana
malm male mola
aero anew wane
rear seta sera
whit thir ewer
rope oral pawl
megs tong miso
fits lire sire
sori free dore
tees snot nims
...

input:

keys
44951
ions keno
mola meal
ecru cuts
weds side
hack chia
ogle noil
carp core
snub sues
eses leer
stet rise
nits muts
flee lame
rout urbs
tile tale
toro stoa
robe reed
tans gane
huns mans
cols cole
earl lota
cole floc
daub diol
sloe elms
tent font
cuif hies
sees vine
dyed wyes
eyes posy
noes euro...

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: 941ms
memory: 26884kb

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:

tang anti nigh
liri uric iglu
errs rags agar
yeld yard farl
wick wish rice
pole poke cots
mule rues slue
zoic ooze gien
peri ripe pree
idem meld lied
bedu dels lues
sine gied dims
dies sati tins
buys ford buys
tael bare bolt
sumo snog guns
than noma moat
rite iced deer
cels clan cans
lung lune lieu
...

input:

keys
48114
ilea late
onus lion
cion once
bora burs
shri sori
hoer tiro
yell lull
trow root
tyro yirr
nick nick
base beam
roue hour
tate ates
name neap
hons tosh
regs keas
wary rage
roan cero
veal egal
bonk boon
ruer ruer
fief lier
crew cues
beta aero
idly idly
sees neem
jins tods
made sale
aria tars...

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: 962ms
memory: 27612kb

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:

bail able lear
core fern core
cess hose shoo
reps rhos woos
cups ceps uses
rise rant etas
tens sine tits
dart dons tods
zeks hols ooze
noel ergo logo
orca tory arty
reel ewer reef
herl helo hoer
odea dido aide
cone once noun
nome fine omen
hyla hila hoya
mode made fade
pree veil rive
boar barm bora
...

input:

keys
59872
ilia sate
braw bray
dore bard
meno seme
sols lies
inns tree
pirn puri
baas nabs
ends nubs
deck thee
geld lude
mine rein
near dean
rout roti
alee sage
mola loin
tail liny
spiv oops
beam nose
regs peps
bute rout
gins tegs
meed bids
tugs taus
obit robs
repp peps
naif nail
care card
undo dugs...

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: 956ms
memory: 27532kb

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:

sale owse awls
irks wair whir
nide died teen
exon earn nerd
done deni dore
ling foot filo
ling ilka kiln
hath sati sati
blae leke keek
cuke curn carp
bags base hers
shim twos whim
snip sips pegs
fiar lira kail
brit lier beer
obes oyes yods
pert rear fear
seep dose epos
souk sulk lies
delf feud duel
...

input:

keys
59908
fowl golf
spue sumo
conn cots
giro grid
rids airn
fern zein
lite sine
lota awol
taut tace
cite cafe
hies haes
tide tine
elan many
yill ills
drug drug
bits fete
seem seme
sync hays
wide wind
arid trad
seem deme
nisi vise
idem died
aced trad
roil rins
rand roan
dips pest
ears wars
nodi bios...

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: 965ms
memory: 27580kb

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 macs elms
most mist tarp
suer rale seal
rete fret fete
nona taxi tain
yirr rile brie
gags geds goad
bier bels rile
caps ache char
beat beer rete
irid gins rids
aper deed peri
even vein even
rand nema rand
lime lune find
semi prim simp
kits stir kite
aced tace tuba
oval oval aver
lyes seel oyes
...

input:

keys
59915
rave aves
refs dire
lame mane
alms cams
morn sine
cone ores
ilka pies
sudd nous
thus hits
slat hast
cuss puce
said tail
aero brin
broo more
semi sits
ergs sore
hyla harl
cats cine
bros scot
tags suet
etas tare
lars slim
fard fave
eses lash
slut aunt
nips gnus
soot wert
pros pats
liny puli...

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: 959ms
memory: 27472kb

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:

keto tors west
nona anon inia
lues rile ires
clog glim long
rees ripe reel
heal dole leud
wold deal fowl
dyad dial deal
eels file sere
urea vera ours
mean team maun
ream mare mair
eyer sone rose
ills lest lest
scar cigs gnar
laze ales lues
cast ates scar
dorm dorm dorm
sale cake race
rani roam maar
...

input:

keys
59935
teal earl
also oils
trey molt
hest teas
rack rack
tret bree
etui fire
leis shea
spur piso
part blat
bold brae
rube ruer
mead dire
calk kain
bane sorb
pill mere
ruts mitt
duel dels
sels seel
stem smit
damn laid
piny pick
tots sots
sear goes
exec rate
alps alps
rave rise
thaw howk
adit tans...

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: 963ms
memory: 27616kb

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:

dart dons tods
owse eves wees
anoa anta agma
pars alps less
soon good gens
into hoot poco
shmo noes ions
dram idea fame
goon moon ammo
moot stum tiro
into none vice
idol prig lard
mitt mist stir
yald dirk alky
cere seer cees
sock bosh souk
many gamy gnar
roes orts sego
move meme vent
dims odes demo
...

input:

keys
59903
cere orcs
snob bani
held tide
cute teed
dove coed
oboe aloe
gies gies
lehr flue
mess mess
anes nous
goat gamy
vela vale
rets shot
rise gigs
pial pina
sris less
tils hill
gley lire
soon hose
cons odes
hoer note
heal rhea
chid thro
over sora
meta moly
dahs shea
rock cock
reed leet
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