QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#323737#4828. Four Plus Fourhotboy2703AC ✓672ms161156kbC++143.7kb2024-02-10 13:05:542024-02-10 13:05:55

Judging History

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

  • [2024-02-10 13:05:55]
  • 评测
  • 测评结果:AC
  • 用时:672ms
  • 内存:161156kb
  • [2024-02-10 13:05:54]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
#define pll pair <ll,ll>
#define fi first
#define se second
#define sz(a) (ll((a).size()))
#define BIT(mask,i) (((mask) >> (i))&1LL)
#define MASK(i) (1LL << (i))
vector <string> s8;
vector <string> s4;
ll n8,n4;
vector <ll> g[30010];
vector <ll> ans[30010];
vector <ll> subsets;
ll ap[4010][4010];
ll fi(string s,vector <string> &a){
    return lower_bound(a.begin(),a.end(),s)-a.begin();
}
void generate_dictionary(){
    for (ll mask = 0;mask < MASK(8);mask++)if (__builtin_popcount(mask)==4)subsets.push_back(mask);
    memset(ap,-1,sizeof ap);
    cin>>n8;
    for (ll i = 0;i < n8;i ++){
        string s;
        cin>>s;
        s8.push_back(s);
    }
    cin>>n4;
    map <string,vector <ll> > mask_ids;
    for (ll i = 0;i < n4;i ++){
        string s;
        cin>>s;
        s4.push_back(s);
        sort(s.begin(),s.end());
        mask_ids[s].push_back(i);
    }
    for (ll i = 0;i < n8;i ++){
        for (auto mask:subsets){
            string tmp;
            for (ll j = 0;j < 8;j ++){
                if (BIT(mask,j))tmp.push_back(s8[i][j]);
            }
            sort(tmp.begin(),tmp.end());
            g[i].insert(g[i].end(),mask_ids[tmp].begin(),mask_ids[tmp].end());
        }
        sort(g[i].begin(),g[i].end());
        g[i].resize(unique(g[i].begin(),g[i].end())-g[i].begin());
    }
    vector <ll> order(n8);
    iota(order.begin(),order.end(),0);
    sort(order.begin(),order.end(),[&](ll x,ll y){return sz(g[x])<sz(g[y]);});
    for (auto x:order){
        if (sz(g[x])>=3){
            ll x1,x2,x3;
            for (ll i1 =    0;ans[x].empty() && i1 < sz(g[x]);i1++){
                x1 = g[x][i1];
                for (ll i2 = i1;ans[x].empty() && i2 < sz(g[x]);i2++){
                    x2 = g[x][i2];
                    if (ap[x1][x2]!=-1)continue;
                    for (ll i3 = i2;ans[x].empty() && i3 < sz(g[x]);i3++){
                        x3 = g[x][i3];
                        if (ap[x1][x3]==-1 && ap[x2][x3]==-1){
                            ap[x1][x2]=ap[x1][x3]=ap[x2][x1]=ap[x2][x3]=ap[x3][x1]=ap[x3][x2]=x;
                            ans[x] = {x1,x2,x3};
                        }
                    }
                }
            }
            if(ans[x].empty()){
                cout<<s8[x]<<' '<<sz(g[x])<<'\n';
                exit(0);
            }
        }
    }
}
int main(){
    ios_base::sync_with_stdio(0);cin.tie(nullptr);cout.tie(nullptr);
    string task;
    cin>>task;
    if (task=="password"){
        ll n;
        cin>>n;
        vector <string> all;
        for (ll i = 1;i <= n;i ++){
            string s;
            cin>>s;
            all.push_back(s);
        }
        generate_dictionary();
        for (auto x:all){
            ll id_x = fi(x,s8);
//            cout<<x<<' ';
            for (auto y:ans[id_x]){
                cout<<s4[y]<<' ';
            }
            cout<<'\n';
        }
    }
    else{
        ll n;
        cin>>n;
        vector <pair <string,string> > all;
        for (ll i = 1;i <= n;i ++){
            string s1,s2;
            cin>>s1>>s2;
            all.push_back({s1,s2});
        }
        generate_dictionary();
        for (auto x:all){
            pll id_x = {fi(x.fi,s4),fi(x.se,s4)};
            cout<<s8[ap[id_x.fi][id_x.se]]<<'\n';
        }
    }
}
/*
password
2
password
couthier
2
couthier password
6
ctie hier road saws swap thou

keys
4
swap road
thou ctie
saws swap
road saws
2
couthier password
6
ctie hier road saws swap thou

road saws swap
ctie hier thou
*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 628ms
memory: 157076kb

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 pard 
cero roti rout 

input:

keys
4
ados osar
rout roti
pard ados
osar pard
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: 625ms
memory: 157292kb

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: 620ms
memory: 157112kb

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 fard 
arak arak arak 

input:

keys
18
arak arak
arak arak
fard afar
arak arak
arak arak
arak arak
alow fard
afar alow
arak arak
fard alow
arak arak
afar fard
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: 646ms
memory: 160848kb

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 fard 
aals egos love 
abas beau cess 
aals bens bole 
aper barm beam 
abas ados bods 
alba blip clap 
aals bade beds 
aahs bani bias 
abba bate bate 
abas bate beat 
abri batt bort 
abas aces babe 
abba alit blab 
abbe base bass 
abed cadi cedi 
abed doms eons 
ambo amia ba...

input:

keys
60000
acne egal
feel chef
ceil efts
gins aeon
cion done
firn fino
best kerb
kent kins
abri bred
keir efts
agio amir
dose mono
alls also
alif fell
best birk
ante duad
clon dole
nous rune
heat hest
alts alps
bite beth
rale leal
deni rest
cels eggs
acid corf
feel fare
seis deer
fork fork
vagi 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: 662ms
memory: 160968kb

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 
ding fund fund 
errs fehs reef 
eels full suer 
fell genu gulf 
delf feud fled 
cagy cagy cagy 
efts egis fugs 
etui five five 
ague alme fame 
emeu feel fuel 
figs fist fits 
crus culm curl 
fill full full 
back bulk bulk 
deer dull fuel 
alec alef cafe 
ells fens flus 
defi fume le...

input:

keys
60000
tier ains
heir heth
born bill
drop doer
ells pert
kept kept
mops demo
brie bell
door doer
flam alto
acme kame
gins tour
bump burp
none oven
hasp hons
nana anna
gink ions
arse ails
alit lain
lien dees
eery eery
aces stoa
peri 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: 656ms
memory: 160240kb

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 ones 
dell dorp elds 
ares deaf feds 
awed dere draw 
ares dams deem 
dame date dram 
deil ills lier 
deer nevi rein 
deer vier vise 
doer dost errs 
deni grey gyri 
ands ankh dark 
defi erst fist 
dies herd hers 
deni kier kine 
ares dart read 
adit sale sial 
bedu bred bree 
cede crus ru...

input:

keys
50928
soil soil
eras erne
ours ours
vest vent
arum arvo
peri pirn
meed mart
mess egis
poet foot
busy busy
sain ager
icky cloy
delf doff
imam imam
ilea isle
fire rife
erns inti
cups piss
otto arty
lows lose
engs eths
fiat acre
alga agas
aero pore
kins agin
sets eels
buns buns
duly dink
ears 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: 635ms
memory: 157120kb

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 nurl 
ados haws hods 
abet bolo bolt 
cees cigs gees 
cire mise mist 
been lune noel 

input:

keys
46
crus aced
bolt bolo
noel lune
haws hods
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
haws ados
ding nurl
corn enol
curs ceil
dove deni
mirs ceil
cigs gees
rude aced
dove give
cees cigs
deni dove
hods haws
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: 635ms
memory: 157256kb

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 bani 
aero stir taos 
apes awes pest 
fino fish hins 
ghis guru pigs 
doer dong ergo 
aced anas aves 
deed deni nene 
aero alto late 
cess hehs hush 
agas agon kaas 
acre apse cris 
adit dawt dawt 
chip otic ouch 
aeon alum luna 
egis inks king 
erne hisn shes 
eons kier kino 
agon clad cl...

input:

keys
313
fish fino
beam beam
durn grue
dint deer
mems immy
dogy doms
rets sera
arty lour
efts lime
mist miso
hand aahs
bios bobs
eros litu
ahem fail
pics opus
leer keel
cigs chid
beam beam
bred bice
pirn pins
egos gent
hehs hush
ados oast
inks egis
dogs doms
beam beam
apse acre
ails nevi
adit sera
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: 642ms
memory: 157432kb

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 exit haen 
deed owed owed 
ados epha epos 
cess curt rest 
able asks ekes 
aahs arcs cask 
agin snaw snaw 
atop foot haft 
aeon omer rams 
emes erst mete 
army arum auto 
also anus jarl 
dims hins hods 
cent cosh hero 
amir arum arvo 
agin lawn lawn 
agin nous sora 
arco caca ca...

input:

keys
2230
dirt etui
bill bill
ains atop
ires lips
lops lots
aced dope
fame aide
weer cede
asks buck
cire abed
peri eros
ikon aeon
cory rato
nous agin
bill bill
erne nope
duet delt
eves lees
eels gips
ness nest
dyke demo
isle lent
elhi hila
idea bima
amus dual
gird gree
rale ails
ains tens
mice emit
...

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: 652ms
memory: 160636kb

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 
aery away fare 
deed dors eros 
cent dote dune 
blin bumf bumf 
aunt nota nota 
alae data date 
alef aper flap 
acts coin inns 
aged dahs dees 
aero agog ague 
eons roti tier 
ails atom mist 
bels ores rets 
demo menu mods 
heir hoot otto 
elms mope oils 
aped mare mead 
doer feod fo...

input:

keys
49151
ewes iwis
axes abet
cess echo
lino gilt
gees engs
emes aces
agin gave
anna adit
sees egis
eons tees
bedu mend
ante haul
mace mace
code cove
cols clot
cosy ains
cull cull
alar alas
peer pate
abet orts
fens foes
paid agin
dell fell
kane arks
aces bars
lord door
fate alae
aces frae
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: 628ms
memory: 157560kb

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 rani rant 
aals site slat 
beer dire drib 
daft dart deer 
cion floc flog 
cero curs cuss 
bine bone bong 
agar atma grot 
abri cadi call 
beer cube cube 
celt lope lout 
beef beet bitt 
chew chit heir 
agin gift haft 
emus hemp hies 
dins duit dust 
ahem data hade 
aims anus main 
acts carn cu...

input:

keys
1
inky 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: 643ms
memory: 160928kb

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

input:

keys
60000
dada dead
arum euro
into jogs
adze dean
illy wail
nope eery
cosy cels
eger ceil
gien been
gins girt
bees busk
meme meme
nigh inch
ains aahs
agio gars
arbs bans
gent even
abba abri
file fern
fell fugu
eses errs
liri live
gibe agin
coma ammo
bear bear
alec acyl
elmy elmy
hike hews
inch 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: 627ms
memory: 157672kb

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

input:

keys
10000
alae away
line line
blob bell
enow dido
koph koph
foys foys
alto alls
cock cued
epee perm
dene dine
girl bigs
dear deer
agar anas
chad aunt
acyl carl
hant anti
bora abri
dues dues
amin akin
cent hern
anon aryl
lose eels
dell dodo
hewn heir
gyps gigs
dado dyad
dote cero
bits 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: 641ms
memory: 160208kb

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 easy easy 
aits eats eats 
anil auld diva 
conn conn conn 
berm bums crus 
aals blam lamb 
ague gape gape 
eggs glen isle 
dips dipt dirt 
aals ages ells 
deer rees seed 
ghis hunt nuts 
chum cusk cuss 
bint chin inti 
aeon halt helm 
cees reef refs 
epos floe oles 
deed duet du...

input:

keys
40537
dips apse
fins eons
foss foss
dive dive
keir ceil
keps kelp
kiln aide
agin lang
dies pure
fete erne
erst sews
etch eche
ossa roes
abas dams
begs bole
marl aide
craw acid
cedi coil
blin flub
gags gain
bloc boll
ambo boot
lino lorn
ands deaf
epee lore
clue cell
bets bots
ells isle
opus 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: 644ms
memory: 159688kb

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 imps lisp 
gift hint hung 
abed leas libs 
acts kafs kafs 
cion coni coni 
bogy boll boon 
ales arum emus 
abos bang bong 
agee sale seal 
aces cite etas 
derm diet ires 
dins durn fids 
area ewer haet 
cero gens gosh 
deep drip irid 
alps lour oars 
eons onus onus 
enol luvs onus 
agon gosh gu...

input:

keys
41296
been boon
tang tang
fink ilks
gain agin
loin lino
epos pros
emit hint
alee eths
gate alit
aahs awry
best cobs
cees crew
lint cion
agar gest
ahem ahem
lose lite
back alum
coco cans
amps imps
gosh hogs
bits bait
alae lari
desk diet
grin erns
ains quai
cats ates
sine inti
deem imps
mans 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: 648ms
memory: 160952kb

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 inti lift 
egis pong pons 
ados airn nans 
oots rosy rosy 
able blue lava 
ceil keps kips 
cist emic item 
egis glom moil 
amie atom iota 
cero cuke reck 
ails bums iamb 
lept lier pelt 
aces pipe sipe 
anon darn hand 
deni gips pegs 
cedi chin held 
cist loop olio 
bids doms duos 
aced curt fa...

input:

keys
41858
egis neon
agar mags
hind deer
suns eels
cone chez
mels mels
bind bide
adit nips
acme clop
isle erst
alit aril
eras anes
agas eyas
lars lase
nill ells
deni nows
agin arts
nans ados
djin aced
gaun bunt
gigs grig
errs spur
edhs does
also harl
caws coal
bunn bind
chia chia
lyes elmy
lacs east...

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: 631ms
memory: 159892kb

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 none none 
cees colt lots 
ilea leap lieu 
deil eths gest 
born brin brio 
dolt dolt dolt 
aits peps piss 
deed heel held 
deed rude rude 
anta band bank 
aeon alma lame 
aeon inro near 
ares asks kart 
ewer thee thee 
aero leap lowe 
egis meno most 
efts tels ties 
deer fido se...

input:

keys
44951
irks kine
lame aces
crus erst
lwei dees
haik haik
gien linn
ache hoar
boss bens
eels lehr
kirs kist
lits limn
flap farm
moos boom
abet celt
oots oats
beef bred
late ages
gama aahs
ceil mole
aero limo
coco cels
acid bold
begs bolo
efts nett
cuif cine
revs erns
dews dews
eels moly
huns 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: 645ms
memory: 160224kb

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 hath 
clit curl curt 
agar ages arse 
aery alfa delf 
chew chis hers 
cels keps kept 
effs elms fume 
cine coon once 
aper pair parr 
deil emit mild 
beds bloc clue 
deni migs mind 
adit egis gast 
bods bros buoy 
abet lore lota 
gins moss mugs 
amah atom axon 
cede dirt rite 
aces lacs la...

input:

keys
48114
shat ails
milo limn
cone egos
abos kbar
howl glow
iron heir
fell fell
moot mort
dory doty
conk cion
bone amen
euro grue
said adit
omen omen
shoe eths
aery arms
gnar aery
rato roan
aals gear
bilk bonk
jeer jeer
effs leis
crew crus
abet fire
idly idly
menu emes
dots doit
aced emus
izar ritz...

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: 656ms
memory: 161156kb

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 corn fere 
cess coho cosh 
epos phew phew 
aces baps buss 
airn ants arse 
inns nett sett 
ados ordo orts 
elks helo hoke 
enol ergo loge 
arco racy racy 
ewer fere flew 
eels hero rhos 
adze aeon dean 
acne aeon aeon 
emir fino from 
ahoy dahl diol 
aero deem fard 
eels ripe sp...

input:

keys
59872
isle adit
awry abye
abed lean
ease deme
ceil cost
tens tees
mire mine
sand anta
emus dune
deke cede
fled dele
emeu mite
need aged
ours outs
agee fees
main limo
tall agin
pits oops
amen abos
legs ager
abet rote
egis hone
doms dime
gist auto
bios brow
epee peps
fall flan
even 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: 644ms
memory: 160944kb

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 hawk hawk 
deed dint nide 
aeon axed dare 
deni doer eddo 
filo font gilt 
agin talc talc 
aits hahs hast 
able akee balk 
acne cuke knap 
ager bars bash 
hist miso mors 
egis pehs phis 
airn fail firn 
beer brit leet 
beds beys body 
airt feta frae 
aced ceps daps 
elks kilo ko...

input:

keys
59908
flow flog
lope elms
cons nest
inro dorr
agin rand
fern file
tilt egis
hols hast
dato odea
fiar acre
have have
dies dens
acyl ceca
film fill
ding duro
bite best
emes eons
aces achy
geed ding
acid airt
emes meed
hens hive
dims emes
aced rant
inro lins
aced leno
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: 662ms
memory: 160708kb

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 mana 
aims pita pois 
aery ales lays 
feet free fret 
anna axon axon 
bier bile birr 
ados ages doge 
beer ells libs 
aced haps pech 
abet bree rare 
bids brig drib 
aide paid pair 
cine even neve 
amen darn dear 
defi leud lied 
emir imps mise 
errs kier kirs 
abed beet cate 
aero aril ev...

input:

keys
59915
airs rees
erst defi
mane mean
lams lams
morn cero
sons suer
kilo ails
dens dews
nuns ghis
hart ales
opus oses
lars lits
noir roan
bore boom
emes eths
eggs goes
aryl ally
acne rats
bort beck
mans mate
ares fads
mirs ails
dura aero
alee heal
aunt nits
cigs pick
eros skew
hots opah
luny 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: 652ms
memory: 161016kb

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 oaks oaks 
amin anon main 
ires lies lieu 
cion glim milo 
eels pier sipe 
aloe auld doll 
alef alow dell 
adze dial didy 
eels fire rifs 
aero ours rase 
acme ante cent 
acme amir care 
eery meno mors 
elhi hest ills 
agin vacs vacs 
alee ease eels 
acne arts cats 
dorm dory immy 
aces lakh la...

input:

keys
59935
aery leal
aals oars
melt eely
aahs east
arak cark
beet beet
dote dour
hail aces
ours opus
atap ball
abed fado
brew bore
amir deem
bail alif
abos earn
emir leer
hurt mirs
deys cels
cees line
semi emit
anil amid
nick icky
stet sots
gosh aero
acre cart
arks laps
airs reap
hath atom
adit dins...

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: 672ms
memory: 161036kb

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 ordo orts 
eros sori vees 
agar atma grot 
alee pass pees 
dens dong dose 
chin coop hoop 
eons mesh mesh 
aide fame fard 
agon ammo goon 
mirs mort most 
cent oven vein 
agio apod diol 
aims rats rims 
airy alky arak 
cede errs recs 
abos buck busk 
agon army gamy 
egos erst grot 
even meme me...

input:

keys
59903
corf cees
abos ains
doth deil
duct duct
cede cone
abet bolo
kegs egis
clef curl
moos moos
apse aeon
gamy agma
alga alae
shoe eros
eggs ergs
kaon agin
deil rode
eths ceil
ceil gley
hens cero
aced coys
iron hent
ahem amir
hood chid
aero eves
lame lota
bins dins
cork cork
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