QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#293862#4828. Four Plus Fourucup-team266#AC ✓496ms103304kbC++143.8kb2023-12-29 21:09:162023-12-29 21:09:17

Judging History

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

  • [2023-12-29 21:09:17]
  • 评测
  • 测评结果:AC
  • 用时:496ms
  • 内存:103304kb
  • [2023-12-29 21:09:16]
  • 提交

answer

/*
Things to notice:
1. do not calculate useless values
2. do not use similar names
 
Things to check:
1. submit the correct file
2. time (it is log^2 or log)
3. memory
4. prove your naive thoughts 
5. long long
6. corner case like n=0,1,inf or n=m
7. check if there is a mistake in the ds or other tools you use
8. fileio in some oi-contest

9. module on time 
10. the number of a same divisor in a math problem
11. multi-information and queries for dp and ds problems
*/
#include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pii pair<int,int>
#define mp make_pair
#define pb push_back
const int mod=998244353;
const int inf=0x3f3f3f3f;
int n,m;
map <string,int> ma,ma8;
vector <int> S[4005],has[30005],sel[30005];
string s8[30005],s4[30005];
int vis[4005][4005];
bitset <30005> bel[4005];
//mt19937 rnd(time(0));
int cost[30005];
string opt;
vector <string> in;
priority_queue <pii > pq;
void prework()
{
	cin>>n;
	for(int i=1;i<=n;i++) cin>>s8[i],ma8[s8[i]]=i;
	cin>>m;
	for(int i=1;i<=m;i++)
	{
		string s;
		cin>>s;
		s4[i]=s;
		sort(s.begin(),s.end());
		if(!ma[s]) ma[s]=i;
		S[ma[s]].pb(i);
	}
	for(int i=1;i<=n;i++)
	{
		int fnd=1;
		for(int a=0;a<8&&fnd;a++) for(int b=a+1;b<8&&fnd;b++) for(int c=b+1;c<8&&fnd;c++) for(int d=c+1;d<8&&fnd;d++)
		{
			string x="";
			x+=s8[i][a];x+=s8[i][b];x+=s8[i][c];x+=s8[i][d];
			sort(x.begin(),x.end());
//			cout<<x<<"\n";
			if(ma.find(x)!=ma.end()) 
			{
				int u=ma[x];
//				cout<<u<<"\n";
				for(int j=0;j<S[u].size();j++) has[i].pb(S[u][j]),bel[S[u][j]][i]=1;
				
			}
		}
//		cout<<i<<" "<<has[i].size()<<"\n";
//		assert(has[i].size()>=3);
	}
	vector <pii > vec;
	for(int i=1;i<=n;i++) 
	{
		sort(has[i].begin(),has[i].end());
		has[i].resize(unique(has[i].begin(),has[i].end())-has[i].begin());
		if(has[i].size()>=3) cost[i]=has[i].size()*has[i-1].size()/2,vec.pb(mp((int)has[i].size(),i));
	}
	sort(vec.begin(),vec.end());
	for(int i=0;i<vec.size();i++)
	{
		int u=vec[i].se;
//		for(int x=has[u].size()-1;x>=0;x--) swap(has[u][x],has[u][rnd()%(x+1)]);
		
		int fnd=1;
		for(int x=0;x<has[u].size();x++) if(!vis[has[u][x]][has[u][x]])
		{
			vis[has[u][x]][has[u][x]]=1;
			sel[u].pb(has[u][x]),sel[u].pb(has[u][x]),sel[u].pb(has[u][x]);
			fnd=0;
			break;
		}
		for(int x=0;x<has[u].size()&&fnd;x++) for(int y=x;y<has[u].size()&&fnd;y++) if(!vis[has[u][x]][has[u][y]]) for(int z=y;z<has[u].size()&&fnd;z++)
		{
			int a=has[u][x],b=has[u][y],c=has[u][z];
			if(vis[a][b]||vis[b][c]||vis[a][c]) continue;
			vis[a][b]=vis[b][a]=vis[b][c]=vis[c][b]=vis[a][c]=vis[c][a]=1;
			fnd=0;
			sel[u].pb(a),sel[u].pb(b),sel[u].pb(c);
			break;
		}
//		cerr<<i<<" "<<u<<" "<<has[u].size()<<"\n";
//		for(int x=0;x<has[u].size();x++) cout<<has[u][x]<<" ";
//		cout<<"\n";
		assert(fnd==0);
	}
//	for(int i=1;i<=n;i++) if(sel[i].size())
//	{
//		cout<<"{";
////		while(sel[i].size()<3) sel[i].pb(-1);
//		cout<<sel[i][0]<<","<<sel[i][1]<<","<<sel[i][2];
//		cout<<"},";
//	}
for(int i=1;i<=m;i++) ma[s4[i]]=i;
}
signed main()
{
//	freopen("input.txt","r",stdin);
//	freopen("output.txt","w",stdout);
	cin>>opt;
	int ins;
	cin>>ins;
	if(opt!="password") ins*=2;
	while(ins--)
	{
		string str;
		cin>>str;
		in.pb(str);
	}
	prework();
	if(opt=="password")
	{
		for(int i=0;i<in.size();i++)
		{
			int u=ma8[in[i]];
			cout<<s4[sel[u][0]]<<" "<<s4[sel[u][1]]<<" "<<s4[sel[u][2]]<<"\n";
		}
		return 0;
	}
	else
	{
		memset(vis,0,sizeof(vis));
		for(int i=1;i<=n;i++) if(sel[i].size())
		{
			for(int j=0;j<sel[i].size();j++) for(int k=0;k<sel[i].size();k++) if(j!=k) vis[sel[i][j]][sel[i][k]]=i;
		}
		for(int i=0;i<in.size();i+=2)
		{
			int u=ma[in[i]],v=ma[in[i+1]];
//			cout<<in[i]<<" "<<in[i+1]<<" "<<u<<" "<<v<<" "<<vis[u][v]<<"\n";
			cout<<s8[vis[u][v]]<<"\n";
		}
	}
	return 0;
}

详细

Test #1:

score: 100
Accepted
time: 448ms
memory: 99532kb

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 osar ossa
cero hurt roti

input:

keys
4
ados osar
roti hurt
ossa ados
osar ossa
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: 466ms
memory: 99556kb

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: 446ms
memory: 99480kb

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
afar alow draw
arak arak arak

input:

keys
18
arak arak
arak arak
draw afar
arak arak
arak arak
arak arak
alow draw
afar alow
arak arak
draw alow
arak arak
afar draw
arak arak
arak arak
arak arak
alow afar
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: 483ms
memory: 103200kb

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
afar alow draw
aals egos lags
abas base beau
aals bole enol
mabe mabe mabe
abas ados anon
lipa lipa lipa
aals bade beds
aahs bani bigs
abba abet alba
abas bate best
abri batt bitt
abas abba asci
bait bait bait
babe babe babe
abed cadi cate
abed doms maes
ambo amia bani
abed buns cabs
...

input:

keys
60000
acne egal
chef cels
ceil efts
gins aeon
cion deco
firn fino
best kerb
kent kind
abri adze
keir efts
agio amir
dons eons
also also
alif bile
best birk
ante dude
clon dole
nous rune
haes hast
alts alps
obit obit
rale leal
deni nixe
cels eggs
acid corf
feel fare
sire deer
fork fork
viga viga...

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: 487ms
memory: 103148kb

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 coif fado
fund fund fund
errs fehs free
eels full ruse
fell fuel full
delf feud fled
fiat fiat fiat
efts egis fugs
five five five
ague alme fame
emeu feel feme
fugu fugu fugu
rums rums rums
full full full
back balk ball
deer dull fuel
alec alef cafe
ells fens flue
defi fuel fume
elms fens lief
...

input:

keys
60000
tier ains
heir hoer
birl bill
drop doer
ells pelt
kept kept
mops demo
brie bell
dore doer
flap alto
acme kame
gins tiro
bump burl
nite none
hasp hons
town town
gink kino
arse ails
alit inly
line dees
eyer eyer
aces stoa
dupe duit
ruer epos
limo kilt
aeon bone
acre ally
emes pure
amen mast...

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: 472ms
memory: 102600kb

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 odds onus
dell dorp elds
ares deaf feds
awed dare draw
ares dams deem
dame deet made
deil reds ride
deer nevi rind
dees dree ired
doer dost errs
deni grey gyri
ands ankh desk
defi erst fist
dies herd hers
deni kier kins
ares dart rads
adit sale sial
bedu bred deed
cede curs rues
cedi drug genu
...

input:

keys
50928
viol sori
eras erst
ours ours
vest vent
mora mora
peri pied
meed mart
isms egis
frow foot
busy beys
news ager
cory cloy
delf doff
imam hwan
ilea isle
rife rife
erns sent
cups pies
otto arty
maws lowe
engs hens
frat acre
lags lags
warp warp
inks agin
sets eels
nubs nubs
kind kind
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: 467ms
memory: 99488kb

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 curs mirs
aced crus rude
deni dove give
celt corn enol
ding nurl ring
ados dhow haws
abet bolo boyo
cees cigs gees
cire mise mist
been lune noes

input:

keys
46
crus aced
boyo bolo
noes lune
dhow haws
aced crus
ceil curs
bolo abet
mirs curs
been lune
mise mist
give dove
abet bolo
aced rude
ceil mirs
celt corn
rude crus
give deni
dhow ados
ding ring
corn enol
curs ceil
dove deni
mirs ceil
cigs gees
rude aced
dove give
cees cigs
deni dove
haws dhow
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: 455ms
memory: 99624kb

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:

yang yang yang
aero rive site
apes awes pate
fino fish hins
ghis grip guru
doer durr ergo
aced ansa devs
deed deni died
aero alto leer
cess ecus hehs
skag skag skag
acre asci ires
dawt dawt dawt
chip huic itch
aeon alum lone
egis gink kegs
erne hisn hiss
eons kier kirn
agon clad clag
chon cusk heck
...

input:

keys
313
fish fino
beam beam
durn genu
dere deet
mime immy
goys goys
reis rite
arty lota
efts melt
mist miso
darn aahs
kobs kobs
eros lieu
ahem fail
outs opus
kier keel
cigs chid
beam beam
bred bice
pine pens
egos gent
ecus hehs
ados dart
gink egis
goys goys
beam beam
asci acre
ails nevi
adit rite
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: 449ms
memory: 99484kb

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 ales isle
ante eath exit
deed dore ewer
ados epha epos
cess curt rest
able asks ekes
aahs arch arcs
agin sagy sawn
opah opah opah
aeon roms same
emes erst exes
army arum auto
also anus jarl
dims hind hisn
cent cosh hoer
mora mora mora
agin gnaw lang
agin nous sorn
arco cars casa
abet able belt
...

input:

keys
2230
duit dure
ibis ibis
ains atop
ires less
lops lulu
aced dope
emir aide
weed cede
asks buck
dice abed
peri eros
kain aeon
cory rato
nous agin
ibis ibis
erne nope
duet delt
eses lees
eels gies
ness nets
deys demo
isle lent
elhi hila
idem bima
amus auld
gree grid
lire ails
ains tets
emit emic
...

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: 474ms
memory: 102536kb

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 nary parr
fray fray fray
deed dors eros
cent dote dune
bumf bumf bumf
nova nova nova
alae dada dale
alef aper frap
acts coin inns
aged dahs dees
aero agog ague
eons rite roti
ails atom mist
bels orts oses
demo duns emus
heir hoot otto
elms mope oils
aped mare mead
doer drew feod
clef clef clef
...

input:

keys
49151
ewes site
axes abet
cess cosh
lino gilt
gene engs
amas aces
agin gave
anna adit
sees egis
eons sons
bedu emeu
ante haul
macs maes
yond yond
coos clot
cosy ains
lock lock
alas alas
part pact
abet orts
fess flus
gadi anil
dell fell
kane arks
aces bash
dors door
fate alae
aces refs
caph 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: 456ms
memory: 99480kb

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 inti near
aals sial silt
beer dire dive
daft dare fade
cion floc flog
cero oses ours
bine bone bong
agar atma grot
abri cadi call
beer burr cere
celt coup lept
beef bide bitt
chew chit cite
agin fiat gift
emus hemp hies
dins duit dust
ahem data date
aims anus cans
acts carn curn
aals bray bris
...

input:

keys
1
yeuk yeuk
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: 482ms
memory: 103296kb

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
ding ding ding
nidi nidi nidi
cede cede cede
etui etui etui
epee epee epee
fink fink fink
fizz fizz fizz
friz friz friz
four four four
didy didy didy
icky icky icky
gill gill gill
...

input:

keys
60000
dear dear
arum euro
into jigs
adze dead
wall wall
neep eery
coly cels
eger ceil
gene been
gins girt
bees busk
zori zori
inch chip
ains aahs
rags rags
arbs bans
gene even
abri abri
file fern
fell fill
revs revs
evil leer
gibe agin
cark ammo
bear bare
yell yell
elmy elmy
syke syke
inch hint...

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: 456ms
memory: 100084kb

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
ding ding ding
nidi nidi nidi
cede cede cede
etui etui etui
epee epee epee
fink fink fink
fizz fizz fizz
friz friz friz
four four four
didy didy didy
icky icky icky
gill gill gill
...

input:

keys
10000
wale wale
lien lins
beys bell
down dido
koph koph
foys ions
alto alls
duke duke
temp temp
doze doze
girl bigs
dere drew
agar anas
chad aunt
yarn yarn
hint anti
bora abri
edhs edhs
kami kami
cent hern
lory lory
loss eels
dell dodo
when when
gyps gyps
yodh yodh
dote cero
stob stob
peer pent...

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: 465ms
memory: 101848kb

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 aryl easy
ashy aves ayes
eats eats eats
anil auld avid
conn conn conn
berm bums crus
aals blam lamb
ague egal gape
eggs gleg glen
pits pits pits
aals ages gall
deer devs eves
ghis shun shut
muck muck muck
bint chin chit
aeon hole holm
cees reef serf
epos floe orle
deed duet dunt
spur spur spur
...

input:

keys
40537
dips daps
fire eons
foss foss
dive dive
kier ceil
keps kelp
kain aide
lawn lawn
dies puri
teff teff
erst sews
etch eche
role rose
abas dago
begs bole
marl aide
craw acid
cedi coil
flub flub
sail sain
yock yock
ambo boot
lion nail
ands deaf
epee leer
cull cull
bets nets
ells leis
ouds 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: 463ms
memory: 101908kb

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 impi lipe
hunt hunt hunt
abed leas lees
acts fats kafs
coni coni coni
bogy boll bolo
ales arum emus
abos bang bong
agee seer slag
aces aits cist
derm diet erst
dins duns durn
area eath ewer
cero gens gosh
deep drip dure
alps opal opus
eons nuns onus
enol luvs onus
agon gals guan
acid arco arid
...

input:

keys
41296
been bone
gaun gnat
fink funk
gang gang
noil noil
epos pros
emit hent
alee eths
gait alit
aahs away
best cobs
cees crew
lint cion
agar gest
ahem ahem
lose lite
back alum
coco cans
amps imps
goos gosh
bits bait
alae lari
desk diet
ness girn
ains nuns
east ears
sene inti
deem imps
mods atom...

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: 465ms
memory: 102064kb

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 gift gilt
egis peon pone
ados airn nodi
oots ryot soot
able baal ball
ceil keps kips
cist emic item
egis glom moil
amie atom emit
cero cuke reck
ails bums iamb
lept lier pelt
aces pips prep
anon darn hand
deni gips pegs
cedi chin heil
cist loop olio
bids doms dumb
aced ecru fare
eels mill mire
...

input:

keys
41858
egis neon
agar gram
geed dene
tule eels
coin chez
dims elms
bize bize
adit pain
acme clop
isle erst
alit aril
earn anes
agas ayes
lars lase
nill ells
deni ones
agin arts
nodi ados
jade aced
gaun bunt
gigs gips
errs sips
dose dors
also hoar
calo cask
bunn bind
chia chia
lyes elmy
tarp pelt...

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: 481ms
memory: 102252kb

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 agee agon
gent nett none
cees colt lots
pupa pupa pupa
deil eths gilt
born brin brio
told told told
aits peps pias
lewd lewd lewd
deed dure rede
band band band
aeon alma lame
aeon inro naoi
ares asks kart
ewer here rite
aero lope lowe
egis meno most
efts sris tels
dees doer fire
emes ions nite
...

input:

keys
44951
irks kine
lame aces
crus erst
lwei dees
hack hack
gien line
ache echo
ebon bens
eels ever
kist kris
lint limn
flap farm
brut boom
abet cete
odor oast
beef deer
late ages
amus aahs
ceil peso
aero mail
coco cels
acid baud
begs bolo
efts nett
ecus cuif
seen erns
dews dews
eels mope
rush 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: 465ms
memory: 102400kb

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 curl curt
agar ages arse
aery afar fade
chew chis hers
cels keps kept
effs elms fume
cine coon gone
pear pear pear
deil emit mild
beds bloc clue
deni megs mids
adit engs gats
bods boys bros
abet lore olla
gins miss moss
moxa moxa moxa
cede dirt rite
aces elan haen
luge luge luge
...

input:

keys
48114
shat ails
milo limn
cone egos
abos kbar
grow glow
inro heir
fell fell
root root
doty idyl
konk konk
bone amen
wore wore
seas adit
omer omen
shoe eths
aery arms
gear aery
rato roan
aals gear
bilk bolo
jeer jeer
effs leis
crew crus
abet feta
idly idly
menu emes
doit djin
aced emus
aria izar...

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: 470ms
memory: 103304kb

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 aril bibb
cere cero cone
hoes hoes hoes
epos phew pooh
aces baps cube
ains rete tree
inns nett sent
ados oots ordo
elks helo hoke
enol ergo loge
arco nary nota
ewer floe flow
eels hero hove
adze aeon dead
aeon aeon aeon
emir fino from
ahoy dahl diol
aero deem ford
eels sipe spiv
abut atom barm
...

input:

keys
59872
isle adit
wary wary
abed loan
dene deme
ceil cost
teen stir
mire mien
cads anta
emus dune
khet khet
flee dele
emeu mine
rand aged
riot roti
agee fees
limn axil
tall agin
opts opts
amen abos
lase ager
abet roue
egis hone
does dime
geta auto
bios brow
epee peep
fall fila
ever aced
dung 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: 496ms
memory: 103088kb

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 alow cowl
airs hark hawk
deed nite teed
aeon axed dare
deni doer inro
filo font gilt
agin kilt tack
aits hahs hash
able akee balk
acne cuke karn
ager base brae
hist mirs mort
egis pehs phis
airn fail fila
beer bite brit
beds beys body
airt feta frae
aced ceps daps
elks kilo kois
deer fled flee
...

input:

keys
59908
flow flog
lope elms
cons cost
iron dorr
agin rand
fern file
leis engs
haws halt
doat dote
fice acre
eves eave
dies dens
acyl ceca
sill sill
ding dork
best bees
emes eons
aces achy
ding dine
dart dart
stem stem
hens nevi
dims emes
aced rent
inro lins
aced enol
peds dipt
maws aero
dido 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: 473ms
memory: 103248kb

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 mane
aims pits poms
aery ales lays
fret fret fret
taxa taxa taxa
byre byre byre
ados ages doge
beer ells libs
aced haps hers
abet brat bree
bids brig drib
aide ired padi
nevi nevi nevi
amen dare derm
defi idle lend
emir imps miri
errs kite kits
abed beet bute
aero aril evil
eels eely eyes
...

input:

keys
59915
airs rees
erst defi
mean mile
clam isms
mine cero
sons sues
kilo ails
dens dews
nuns ghis
hate ales
opus oses
lars list
iron roan
bore boom
emes eths
eggs gogo
aryl aryl
acne rets
bort beck
mags mane
ares fads
mars ails
dura aero
alee hale
aunt nits
cigs pick
eros skew
hart host
liny 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: 474ms
memory: 103116kb

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 okas okes
main main main
ires lier lies
cion glim limp
eels peri ripe
aloe auld doll
alef alow dell
adze deli dial
eels fire life
aero ours rase
acme ante cunt
acme amir care
eery meno mors
elhi hest ills
agin vigs visa
lase lase lase
acne east erns
dorm dory immy
aces lakh lehr
airn marl milo
...

input:

keys
59935
aery late
aals liar
meet eely
aahs chat
jack jack
beet beet
dote dour
hail aces
pros pros
rapt rapt
abed fado
brew brew
amir deem
balk alif
abos earn
emir leer
hums hurt
deys cels
cees line
miss emit
anil amid
pick pick
sots sort
hags aero
tare tare
arks laps
airs rasp
mako mako
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: 486ms
memory: 103072kb

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 oots ordo
eros sori vees
agar atma grot
alee pass plea
dens doge dogs
chin coot hoop
eons mise miso
aide emir fair
moan moan moan
mirs moor mots
cent oven vein
agio apod dirl
aims rats rias
airy alky arak
cede cees dees
abos buck busk
agon army gamy
egos erst grot
even meet meme
demo died duos
...

input:

keys
59903
corf cees
abos ains
doth deil
rude duet
cede cone
abet bolo
kegs kegs
clef curl
oses oses
apse aeon
toga toga
vela vela
shoe eros
eggs ergs
kaon agin
deil rode
eths ceil
gyre gyre
hens cero
aced coys
inro hent
ahem amir
door chid
aero eves
lame lota
bins dins
crow crow
alee nerd
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