QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#320556#4828. Four Plus FourminhnhatnoeAC ✓251ms84600kbC++143.7kb2024-02-03 17:56:432024-02-03 17:56:43

Judging History

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

  • [2024-02-03 17:56:43]
  • 评测
  • 测评结果:AC
  • 用时:251ms
  • 内存:84600kb
  • [2024-02-03 17:56:43]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
const int n = 28558, m = 3919;

static const int STORE[26] = {2,3,2,2,3,2,2,2,2,2,2,3,3,2,2,2,1,3,3,2,2,2,2,1,2,2};

struct password{
    string s;
    unsigned long long mask;
    password() {}
    password(const string &s): s(s){
        int f[26]; memset(f, 0, sizeof f);
        for (char c: s) f[c - 'a']++;

        mask = 0;
        for (int i=0, pos=0; i<26; pos+=STORE[i], i++){
            int w = f[i] < STORE[i] ? f[i] : STORE[i];
            mask |= ((1ULL << w) - 1) << pos;
        }
    }
    friend bool is_subset(const password &subset, const password &a){
        return (subset.mask & a.mask) == subset.mask;
    }
    friend bool operator<(const password &a, const password &b){
        return a.s < b.s;
    }
};

password a[n], b[m];
pair<password, int> s[m];
int decode[m][m], encode[n][3];

void input_royal(){
    int N; cin >> N; assert(n == N);
    for (int i=0; i<n; i++){
        string s; cin >> s;
        a[i] = s;
    }

    int M; cin >> M; assert(m == M);
    for (int i=0; i<m; i++){
        string s; cin >> s;
        b[i] = s;
    }
    shuffle(b, b + m, mt19937(24));
    
    for (int i=0; i<m; i++)
        s[i] = {b[i], i};
    sort(s, s + m);

    bitset<m> c[n];
    pair<int, int> s[n];

    for (int i=0; i<n; i++){
        for (int j=0; j<m; j++)
            c[i][j] = is_subset(b[j], a[i]);
        s[i] = {c[i].count(), i};
    }
    sort(s, s+n);

    bitset<m> g[m];
    for (int i=0; i<m; i++) g[i].set();

    for (auto [_, v]: s){
        if (c[v].count() < 3) continue;
        int fx = -1, fy = -1, fz = -1;

        for (int x = c[v]._Find_first(); x < m; x = c[v]._Find_next(x)){
            bitset<m> vx = c[v] & g[x];
            for (int y = vx._Find_next(x); y < m; y = vx._Find_next(y)){
                if (g[x][y] == 0) continue;

                bitset<m> vxy = vx & g[y];
                for (int z = vx._Find_next(y); z < m; z = vxy._Find_next(z)){
                    if (g[y][z] == 0 || g[x][z] == 0) continue;
                    fx = x, fy = y, fz = z;
                    goto found;
                }
            }
        }
        for (int x = c[v]._Find_first(); x < m; x = c[v]._Find_next(x)){
            if (g[x][x] == 0) continue;
            fx = fy = fz = x;
            goto found;
        }

        throw runtime_error(a[v].s);

        found:
        g[fx][fy] = g[fy][fx] = g[fx][fz] = g[fz][fx] = g[fy][fz] = g[fz][fy] = 0;
        decode[fx][fy] = decode[fy][fx] = decode[fx][fz] = decode[fz][fx] = decode[fy][fz] = decode[fz][fy] = v;
        encode[v][0] = fx, encode[v][1] = fy, encode[v][2] = fz;
    }
}

void encode_string(string s){
    int pos = lower_bound(a, a + n, s) - a;
    cout << b[encode[pos][0]].s << " " << b[encode[pos][1]].s << " " << b[encode[pos][2]].s << "\n";
}
void decode_string(string x, string y){
    int xx = lower_bound(s, s + m, pair<password, int> (x, INT_MIN))->second;
    int yy = lower_bound(s, s + m, pair<password, int> (y, INT_MIN))->second;
    cout << a[decode[xx][yy]].s << "\n";
}

signed main(){
    cin.tie(0)->sync_with_stdio(0);
    string type; cin >> type;
    int n; cin >> n;
    vector<pair<string, string>> a(n);
    if (type == "password"){
        for (int i=0; i<n; i++)
            cin >> a[i].first;
    }
    else{
        for (int i=0; i<n; i++)
            cin >> a[i].first >> a[i].second;
    }

    input_royal();
    if (type == "password"){
        for (int i=0; i<n; i++){
            encode_string(a[i].first);
        }
    }
    else{
        for (int i=0; i<n; i++){
            decode_string(a[i].first, a[i].second);
        }
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 217ms
memory: 81500kb

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:

daws pros dopa
otic curt roue

input:

keys
4
daws pros
roue curt
dopa daws
pros dopa
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: 217ms
memory: 81132kb

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:

ruer keir kier

input:

keys
1
keir kier
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: 216ms
memory: 81508kb

input:

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

output:

arak kava dark
flow draw afar
arak kava dark

input:

keys
18
kava dark
arak dark
afar flow
arak kava
arak dark
dark kava
draw afar
flow draw
dark arak
afar draw
kava dark
flow afar
arak kava
dark kava
kava arak
draw flow
dark arak
kava arak
28558
aardvark aardwolf aasvogel abacuses abalones abampere abandons abapical abasedly abashing abatable abatise...

output:

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

result:

ok OK

Test #4:

score: 100
Accepted
time: 251ms
memory: 84596kb

input:

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

output:

arak kava dark
flow draw afar
gale voes avos
cues sabs sabe
bole anas alae
maar beam beer
nobs dabs soda
clip clap bail
elds byes able
bang hisn bins
blae blat blet
sets bast abet
airt bott brio
aces abba abas
blat alit abba
ease sabs babe
cedi acta bade
bode dams sone
damn band ambo
acne dubs scab
...

input:

keys
60000
acne ling
fees clef
file tics
gaze gens
coni cone
giro frig
ruse tusk
skid nide
bead bize
skit fets
giro rime
odes dens
olla loaf
blae flab
stir kibe
date nude
loco dole
unco sorn
side aide
paty yaps
bice otic
arcs sall
stir tend
role grog
coda foci
fees safe
reis deer
from work
anga vina...

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: 244ms
memory: 84588kb

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:

foil coda laic
ling dung fund
ruse fees furs
fell ruse flee
gull fuel fine
owed fuel fowl
gift gait yagi
fets fugs tugs
gift give etui
gale maun gulf
gulf mule glee
fugu gift fugs
surf scum sulu
ills luff lull
fuck flak cull
fell rude reef
fell caff cull
fell suns self
file muni unde
lins film feus
...

input:

keys
60000
inti rias
rite tori
nori hill
dope porn
role sept
kept roto
demo pies
bier role
over owed
form tola
mike ream
runt song
rump prey
vier trio
nosh soya
wont twat
ions snow
ease lira
lain tuna
sine slid
eyen eery
acne cost
cure uric
puts pros
riot trow
mono aeon
rate lacy
ruse seem
tats name...

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: 240ms
memory: 84144kb

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:

ruse odds doer
role peds poll
fets dare fads
deer draw awed
deer seam mars
mete dear dram
slid sire dell
veer deni rind
veer ides vide
rots odes door
edgy dine yird
dahs dank kens
fets ides shed
stir teds shed
dirk skis send
tats dare sard
slid tear dart
deer burd bedu
cues dree dure
cedi drug gude
...

input:

keys
50928
vole riel
teen ante
sori ours
vets vent
murr mura
durn rend
tepa pard
isms gens
pert roof
pets byes
rias grew
icky coir
elds flus
imam mawn
ossa silo
vive very
stir sins
clip slip
orra toot
lows smew
gens erst
rife airt
awls swag
roar orra
sank nags
sett sets
nuns buss
inly lunk
apes deer...

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: 229ms
memory: 81360kb

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:

slim crus ecru
cues rads dura
dive none dove
role tern once
ling drug rudd
daws hoar sora
tola oboe toby
cues gens snug
stir mice miri
lube lone bees

input:

keys
46
rads cues
toby oboe
bees lone
hoar sora
cues rads
slim crus
oboe tola
ecru crus
lube lone
mice miri
dove none
tola oboe
cues dura
slim ecru
role tern
dura rads
dove dive
hoar daws
ling rudd
tern once
crus slim
none dive
ecru slim
gens snug
dura cues
none dove
cues gens
dive none
sora hoar
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: 216ms
memory: 81380kb

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:

bang yagi ayin
rias vote rote
tats spew sept
fohn mono hisn
rigs purs gush
rude gone doer
acne casa nada
deni unde deed
role tola rate
cues hush hehs
nags koan koas
peal sice pier
wady dawt wadi
otic putt thou
none maun meal
gens gink sike
rise ness hies
ions nevi voes
coda long good
cues hock hone
...

input:

keys
313
mono fohn
beau beam
dung rung
tine deer
must etui
mogs pogy
ride raid
tola lour
slim efts
most toom
pard dahs
bobs bock
role suit
slim haes
suit pout
keet rite
coil slid
beam beau
dirl cedi
sing girn
tung sone
hush hehs
rots rand
gink gens
dogy pogy
beau exam
sice peal
lins vast
tats raid
r...

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: 222ms
memory: 81280kb

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:

slid date seta
eath tine hint
owed deer wore
dahs dope pehs
cues erst curt
beak eses lase
hahs char rack
winy nags yawn
toot atop path
norm east tame
mete rems rees
army rota murr
naos soul sora
ions mhos hind
note rocs hers
roar murr mura
ling wain wail
rias nous gaur
croc sora ursa
blae abet tela
...

input:

keys
2230
died surd
lily ills
paps post
pies isle
post soup
acne paid
ream ride
drew cedi
asks swab
bice dibs
piso toss
kale lion
racy ryot
nous rias
lily syli
porn pine
duel runt
sels rebs
pies legs
dene seed
kids mike
lins nets
hila ilea
meld imam
muns anus
dire grid
seal lira
tats ness
cire etic
...

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: 245ms
memory: 83368kb

input:

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

output:

airy ping yagi
awry aery rear
deer odds dors
runt duce torc
limn gulf bumf
vatu nota tout
date alee alae
peal fear refs
ocas sati cots
egad dahs eggs
gear hogg hoar
stir none into
tats slim moil
role sorb robs
none duns meou
toot rite thio
slim pros prim
veer mead vamp
owed roof odor
fell cole clef
...

input:

keys
49151
wits vies
bute axes
cues coss
topi lion
gent gens
seem scam
gain nevi
dint anta
tegs sets
toss sins
deer unbe
eath ulna
arse sers
cony cove
loco toss
slay cays
cull yolk
alas ryas
cart cape
tats bros
feus foul
paid ling
deer feel
sank kens
acne rebs
solo duos
alit file
cues curf
pech haed...

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: 231ms
memory: 81312kb

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:

airt rein erne
blae etas site
veer birr bird
deer feta daft
foil cion foin
cues orcs roes
none bong bone
tang norm moat
lira acid carb
cube ruer curb
cote pelt coup
beef bitt deet
rite thew chew
tang haft fang
pies hums simp
yins duns dust
eath meta deem
scam maun anus
runt cast ursa
lira slab ryas
...

input:

keys
1
lunk 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: 242ms
memory: 84472kb

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:

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

input:

keys
60000
dare hare
meou mare
snot snit
deni dado
lily ally
eyen porn
mocs moly
cere ling
lime ling
stir girn
ekes hebe
omer emir
chip chip
anas rias
rias soar
bars anus
vein gent
barb birr
zein file
gull fugu
eses veer
reel vier
vein bang
marc coda
bore rear
ceca alae
moly elmy
syke skew
chat itch...

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: 225ms
memory: 81512kb

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:

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

input:

keys
10000
wyle wawl
news lwei
bole boys
down deni
piki pork
yoni posy
solo tola
deck code
mete pert
deni zone
birl lins
rare wade
nags spar
daut damn
anal clay
hint nota
giro barb
shes used
mink akin
hern nene
loan yarn
seel oses
pool dole
whin wren
gyps ping
yald halo
hoed croc
bios toss
punt 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: 242ms
memory: 83124kb

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:

elds lyre cays
vase seis ayes
tats ties etas
lain laud nidi
conn noun unco
cues murr berm
labs atma lams
peal plug glue
lins gens lies
stir tipi rips
gale sels sags
veer dees devs
tung hisn shit
musk hums such
chin itch hint
eath loan meno
fets cees pree
role reps fops
dene tune teen
ruse urus puss
...

input:

keys
40537
haes pehs
reif none
hoof woos
irid ride
rick role
keps skis
dank ilka
ling gnaw
pies rued
free tern
stir wert
hent tern
sacs calo
bogs dabs
guls voes
ream slid
wart airy
cedi cold
gulf bung
gang sail
buoy cull
toom harm
vino loan
ease feed
role prop
lieu cull
been snob
ills oses
udos pies...

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: 245ms
memory: 83464kb

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:

slim lipe reps
gift tung hunt
slid bade bald
tats sock skat
coni coon noon
long bong bogy
ruse marl slam
bang goal snob
gale lear ears
sics etic east
stir mids derm
duns surf rins
eath weet thaw
gens cors ogre
pied dree peer
pros lour slur
oses nous onus
lion luvs ones
guls nosh loan
coda coir road
...

input:

keys
41296
been ween
tint agin
skis lunk
zing gain
pong glop
pros opes
note home
tats hale
tile gale
daws ayah
this both
eses were
riot lion
gear tegs
yipe yeah
site gaes
gaum lamb
cans naos
gain mans
mols mogs
bits alit
lira rave
sets skid
sris ness
inns utas
cars lace
tine tens
pies meed
soda damn...

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: 244ms
memory: 83584kb

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:

ling titi lift
porn gies gips
said rand rins
rosy toot riot
lube lava vale
perk pile sire
mike tics mite
slim eros giro
tome mitt moat
croc cusk rusk
lins albs maul
rite pile pelt
rias cris ripe
rand hoar odor
pies dine ends
cedi chin elhi
poco loti olio
dibs muni umbo
date fare tufa
slim rees seme
...

input:

keys
41858
gnus none
maar agar
gied heed
lent suns
hone zinc
dive veil
bide bize
said pots
peal comp
sels stir
airt alit
near ease
swag east
arse reel
lent lins
owed snow
tang rias
rins said
aide acne
snob bout
rigs pigs
pies purr
docs odes
tola rash
ocas woks
dung bunn
chia hila
ayes amyl
scar acts...

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: 245ms
memory: 83772kb

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:

none agon aeon
tung none tote
role rest slot
peal lipe quip
slid this held
coni coir nori
fool loot loft
pies teas eats
heed lewd heel
deer rudd dude
anta dank taka
enol anal loam
wren nori wain
kart asks sets
weet whee writ
peal roll prow
most gens meno
file fess reft
deer sori fido
mete snot eons
...

input:

keys
44951
kors rins
olla scam
cues rest
ewes slid
jack high
none ogle
arco orra
zebu oses
veer resh
skin sink
mint stum
fare ream
urbs toom
blae tile
odor rads
beef oboe
legs tats
gnus sham
slim plie
lira tome
clef loco
coda club
bole bogs
fets tons
funs chin
seer vein
eyed ewes
poly seep
huns oses...

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: 243ms
memory: 84000kb

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 high chia
girt litu curl
gear vase sera
flay fley dare
skew hick sire
kept cote kops
ruse muff mels
zinc coon zone
rear peer aper
pied mute litu
lube duos cold
gens imid migs
egad sent gist
boys surf sord
role blat brat
suns mogs nogs
taxa hoax oath
cedi tier cere
acne lase lacs
ling glue luge
...

input:

keys
48114
tils tats
mils mols
gens goes
kart tubs
show glow
tier note
fell fley
root room
torr yird
oink coni
seam nobs
ogre grue
sadi tats
dorm damn
hent nosh
gear ryke
gray grew
taro corn
gale revs
lion book
erne rune
file rifs
cues true
airt froe
tivy idyl
suns mete
dint tons
scam dace
aria tzar...

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: 250ms
memory: 84600kb

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:

lira blae brie
corf reef erne
oses cosh coho
pros hews swop
cues saps pace
rias teen seen
ties nine inti
rots orad dona
kohl look ooze
role none long
cony root nota
role fere wore
role hols sole
deni dean dado
acne none conn
norm firm fire
poly dahl padi
deer road faro
pies live vile
maar umbo moat
...

input:

keys
59872
seta slid
waxy awry
role bean
noes odes
toss clit
nits nene
mien pine
dabs cads
ends suns
heed deck
fuel gled
mete rein
edge egad
roti sour
guls fuel
amin lama
gill tang
tipi post
nobs jean
gaes peal
bute aero
note hisn
mids deem
outs ties
stir trow
prep rees
fang fila
rede acne
doge gnus...

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: 250ms
memory: 84500kb

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:

ocas ells lows
rias wark wash
deni tide nite
rude orad eaux
ride nori rend
foil gift font
tang ilka ikat
tats shat this
ilka beak blae
acne perk knur
habu gear ursa
stir show mhos
pies nigh ghis
lira akin flak
rite beer bier
boys bode mods
airt frap pare
coda ease peed
oses kilo lieu
deer duel lude
...

input:

keys
59908
glow flow
supe mols
tens snot
noir dorr
said ring
file zein
sett lins
shaw woos
tote tace
cafe airt
visa cave
ends stir
elmy amyl
ills slim
undo giro
bite fets
none emes
acne caky
ding wend
airt adit
deet emes
vein shiv
deem dees
acne reed
lion rins
acne lord
tied edit
seam woos
odds dibs...

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: 248ms
memory: 84588kb

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:

acne amas same
spam riot trip
ruse aery quey
fret reef tret
taxa anon anti
birr lier birl
egad mogs same
ills leer ribs
dahs pech arch
rate bree rare
dibs rigs drib
pied aper raid
vive vein even
deer damn nema
file mien leud
pies mirs rems
stir tike irks
cube daut bead
lira role aloe
hole lyes lees
...

input:

keys
59915
rias viva
ides fets
maes name
mass mica
cone norm
secs ours
okas peal
owed news
shut tung
tels eath
soup psis
rota alto
bent torn
oboe room
mete this
ruse sego
paly pray
airt tics
bock rots
stum maes
fets rear
mols lira
vera rude
ease elan
utas sulu
gnus sick
woos wert
pard soar
yuch clip...

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: 250ms
memory: 84452kb

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:

kart skew soar
mina anon mini
ruse ulus lieu
lion comp glim
pies leer riel
haed laud dole
owed loaf deaf
laze eddy yald
file lees sers
ruse vase soar
acne team etui
marc mice rear
rosy norm emes
hill ties hest
rias vagi grin
laze ease lees
ease narc cane
norm miry yird
aces heck each
lira anoa moil
...

input:

keys
59935
rate lyre
lira soar
term role
tats each
rock jack
berg eger
dore deft
heil aces
soup pros
blat prat
role barf
robe burr
maid arid
fink fain
oses bren
leer lipe
hums ruth
yule cues
lins sees
mess sets
damn lion
pyin pink
tost trot
ogre eath
exec tace
spar ursa
rias pave
thaw oath
said jota...

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: 247ms
memory: 84532kb

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:

rots orad dona
veer owse vows
tang norm moat
peal seer lars
gens good nogg
poco hint cion
oses miso sinh
ride ream dame
mono yang ammo
toom sori suit
note nevi vote
lira gorp glop
tats mirs mars
lira dirk kyar
deer cees seer
habu sock kabs
norm gray yang
toss ogre goes
mete note move
semi duos sudd
...

input:

keys
59903
corf eros
bobs naos
toed toil
duct curt
none vend
tola oboe
kens gens
fuel free
moos soys
eons ease
gout goat
cave lava
hoer toss
rigs eggs
pink lion
slid orle
tics hill
girl grey
cone eros
acne soda
tier hire
lira halm
coho otic
veer avos
tome elmy
haed hisn
coco work
deer lean
baal bail...

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