QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#323217#4828. Four Plus Fourduongnc000AC ✓806ms77196kbC++204.7kb2024-02-08 22:17:272024-02-08 22:17:28

Judging History

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

  • [2024-02-08 22:17:28]
  • 评测
  • 测评结果:AC
  • 用时:806ms
  • 内存:77196kb
  • [2024-02-08 22:17:27]
  • 提交

answer

/*
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("avx2,fma,bmi,bmi2,sse4.2,popcnt,lzcnt")
*/

#include <bits/stdc++.h>
#define taskname ""
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define i64 long long
#define pb push_back
#define ff first
#define ss second
#define isz(x) (int)x.size()
#define For(i, x, y) for (int i = x; i < y; ++i)
using namespace std;

const int mxN = 1e6 + 5;
const int mod = 1e9 + 7;
const i64 oo = 1e18;

mt19937_64 rng(312008);

int n8, n4;
vector<string> dict8, dict4;
vector<int> G8[mxN], G4[mxN];
map<string, vector<int>> mp;
map<pair<int, int>, int> mp4;
map<int, array<int, 3>> mp8;

void prep() {
    cin >> n8;
    dict8.resize(n8);
    for (auto &s : dict8) cin >> s;

    cin >> n4;
    dict4.resize(n4);
    for (int i = 0; i < n4; ++i) {
        cin >> dict4[i];
        string tmp = dict4[i];
        sort(all(tmp));
        mp[tmp].emplace_back(i);
    }

    for (int i = 0; i < n8; ++i) {
        vector<int> cnt(26);
        for (char ch : dict8[i]) cnt[ch - 'a']++;
        string cur = "";
        auto dfs = [&](auto dfs, int v) -> void {
            if (v == 26) {
                if (isz(cur) == 4 and mp.contains(cur)) {
                    for (int j : mp[cur]) {
                        G8[i].emplace_back(j);
                        G4[j].emplace_back(i);
                    }
                }
                return;
            }
            int pre = isz(cur);
            for (int i = 0; i <= cnt[v]; ++i) {
                dfs(dfs, v + 1);
                cur.push_back(v + 'a');
            }
            cur.resize(pre);
        };
        dfs(dfs, 0);
        // if (G8[i].empty()) cout << i << endl;
    }

    vector<int> idx(n8);
    iota(all(idx), 0);
    sort(all(idx), [&](int x, int y) {
        return isz(G8[x]) < isz(G8[y]);
    });

    auto check = [&](int x, int y) -> bool {
        if (x > y) swap(x, y);
        return not mp4.contains({x, y});
    };

    auto add = [&](int x, int y, int i) -> void {
        if (x > y) swap(x, y);
        mp4[{x, y}] = i;
    };

    auto checkdiff = [&](int i) -> bool {
        int sz = isz(G8[i]);
        For(j, 0, sz) For(k, 0, j) if (check(G8[i][j], G8[i][k])) {
            For(l, 0, k) if (check(G8[i][j], G8[i][l]) and check(G8[i][k], G8[i][l])) {
                mp8[i] = {G8[i][j], G8[i][k], G8[i][l]};
                add(G8[i][j], G8[i][k], i);
                add(G8[i][j], G8[i][l], i);
                add(G8[i][k], G8[i][l], i);
                return true;
            }
        }
        return false;
    };

    auto checksame = [&](int i) -> bool {
        int sz = isz(G8[i]);
        For(j, 0, sz) if (check(G8[i][j], G8[i][j])) {
            mp8[i] = {G8[i][j], G8[i][j], G8[i][j]};
            add(G8[i][j], G8[i][j], i);
            return true;
        }
        return false;
    };

    for (int i : idx) if (isz(G8[i]) >= 3) {
        shuffle(all(G8[i]), rng);
        // sort(all(G8[i]), [&](int x, int y) {
        //     return isz(G8[x]) < isz(G8[y]);
        // });
        assert(checkdiff(i) or checksame(i));
    }
}

void password() {
    int n; cin >> n;
    vector<string> v(n);
    for (auto &s : v) cin >> s;

    prep();
    
    for (auto s : v) {
        int idx = lower_bound(all(dict8), s) - dict8.begin();
        auto [x, y, z] = mp8[idx];
        cout << dict4[x] << " " << dict4[y] << " " << dict4[z] << endl;
    }
}

void keys() {
    int n; cin >> n;
    vector<pair<string, string>> v(n);
    for (auto &[s, t] : v) cin >> s >> t;

    prep();

    for (auto [s, t] : v) {
        int x = lower_bound(all(dict4), s) - dict4.begin();
        int y = lower_bound(all(dict4), t) - dict4.begin();
        if (x > y) swap(x, y);
        cout << dict8[mp4[{x, y}]] << '\n';
    }
}

string name;

void solve() {
    cin >> name;
    if (name == "password") password();
    else keys();
}

signed main() {

#ifndef CDuongg
    if(fopen(taskname".inp", "r"))
        assert(freopen(taskname".inp", "r", stdin)), assert(freopen(taskname".out", "w", stdout));
#else
    freopen("bai3.inp", "r", stdin);
    freopen("bai3.ans", "w", stdout);
    auto start = chrono::high_resolution_clock::now();
#endif

    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int t = 1; //cin >> t;
    while(t--) solve();

#ifdef CDuongg
   auto end = chrono::high_resolution_clock::now();
   cout << "\n"; for(int i = 1; i <= 100; ++i) cout << '=';
   cout << "\nExecution time: " << chrono::duration_cast<chrono::milliseconds> (end - start).count() << "[ms]" << endl;
   cout << "Check array size pls sir" << endl;
#endif

}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 742ms
memory: 73192kb

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:

warp rads prow
thou ouch rote

input:

keys
4
warp rads
rote ouch
prow warp
rads prow
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: 763ms
memory: 73312kb

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:

kier ruer keir

input:

keys
1
ruer 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: 756ms
memory: 73236kb

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:

kava vara arak
load alar rolf
kava vara arak

input:

keys
18
vara arak
kava arak
rolf load
kava vara
kava arak
arak vara
alar rolf
load alar
arak kava
rolf alar
vara arak
load rolf
kava vara
arak vara
vara kava
alar load
arak kava
vara kava
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: 793ms
memory: 76800kb

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:

kava vara arak
load alar rolf
gaes veal lose
seas sues buss
snob bens bale
beep maar perm
anna boas anoa
lipa alba blip
dale bade alba
agas bans agha
tael abet able
seis sibs bast
trot iota taro
isba sibb asci
tala blat bait
base ebbs sees
adit dice cite
moas bend noma
iamb bani dona
band unbe scan
...

input:

keys
60000
lice gaen
eels fehs
silt left
sang gane
coin deni
foin iron
tusk urbs
kits inti
bare raia
erst skit
ogam rear
mono mood
loaf sall
ilea fail
reis bisk
duad etna
enol calo
ruse rose
sits hets
paly laps
cote obit
carr race
rids side
ores grog
ford rain
flea fila
eide sris
worm form
vita vang...

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: 769ms
memory: 76892kb

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:

diol auld clod
find lung dung
errs hers reef
user seel furl
lieu gulf ling
leud loud flew
yuga fuci gait
fugs etui guts
etui five gift
game flam meal
glee gulf mule
gits fugu gist
surf scum urus
full luff lull
bull calk bulk
leud flue reed
flue calf cell
lens self slue
mine deil dime
feus mile funs
...

input:

keys
60000
rant aits
thro tiro
bill noir
repp poon
trop toll
trop kept
poms opts
evil veil
door rove
mora rotl
vice rack
roti gits
upby prey
over oven
pays pans
watt want
oink snow
alee rial
quai anti
lend line
erne gyre
taco note
curt puce
rust spot
wilt trim
nema ebon
celt rely
purs spue
stet menu...

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: 787ms
memory: 76400kb

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:

dure redo erns
roll dels dope
serf trad fads
dere wear dare
dree dram ease
ream meta mead
sell rise sled
dire nerd ever
ires reed eide
roto tods orts
nerd rind dreg
hers head dark
resh frit fret
edhs resh sire
risk sire disk
sate errs ates
sale list slid
rued burd deed
seed durr suer
rung nice grid
...

input:

keys
50928
lose ever
ares seta
ours sour
lien vine
rami roam
pine dupe
pard rate
migs engs
roof tope
type pubs
wean gies
rock icky
fuds feod
maim imam
lase also
reif vive
sits reis
cess spic
tart root
meal woes
nets engs
rife cate
alga agas
proa rare
scan scag
tels sels
urns suns
lunk liny
dree ares...

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: 748ms
memory: 73252kb

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:

merl mirs slue
dare used scar
vine vend nodi
corn cete teel
ruin nurl ling
rhos hows hods
boyo bale alto
guns gien gees
emir smit ires
snub bens slue

input:

keys
46
used dare
alto bale
slue bens
hows hods
dare used
merl mirs
bale boyo
slue mirs
snub bens
smit ires
nodi vend
boyo bale
dare scar
merl slue
corn cete
scar used
nodi vine
hows rhos
ruin ling
cete teel
mirs merl
vend vine
slue merl
gien gees
scar dare
vend nodi
guns gien
vine vend
hods hows
sn...

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: 739ms
memory: 73356kb

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:

ayin gaby agin
rato rive aver
peas paws twas
hons foin fish
hips sigh gips
drug gone dore
ands sade deva
need dude dine
orle tare lota
shes such hoes
anoa anga saga
pias aces laic
wait what with
otic huic putt
maun neum maul
sine nine egis
shri eses erns
kors sorn nevi
cold agon cool
ecus sunk hone
...

input:

keys
313
foin hons
jamb bema
deep dung
rent rind
suit smit
mogs pods
tare reis
yurt lour
left slit
muts smit
hand spar
cock bosk
loti riel
semi seam
pias opus
kilt lier
shod slid
bema jamb
diel crib
ergs reis
gone guns
such hoes
dona sorn
nine sine
poms pods
jamb jube
aces pias
line lets
tide reis
o...

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: 748ms
memory: 73392kb

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:

salt lids ales
then next hint
were dere word
dope shah shed
rest tret sett
else leek skee
rash haar kaas
gags sing wain
toft path hoof
mora rots sort
mete seem meet
taro torr troy
onus oars saul
hons dish shod
roes tern toes
murr rami roam
lain wain lawn
sour sora rung
osar cors rocs
beat tell blae
...

input:

keys
2230
diet reis
bill lily
soap taos
prep pipe
lost tups
aide deco
fame fear
weer weir
cabs saws
crib beds
spit epos
elan kiln
stat tory
sora sour
bill libs
noir pepo
dent lune
verb less
lies peel
cent sned
miso demo
sins test
lice ilea
bail mail
ulna amas
eide ride
lira sirs
nite teas
mete rete
...

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: 790ms
memory: 76408kb

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:

airn yang pair
aery fear wear
odds does sord
unde turn dore
film limb glum
unto unau tuna
alae dele deal
earl self eras
anis acts tins
seed gads dahs
ague goer roue
erst nori erns
lost iota mats
lest lots rest
dons meou noes
teth roti hero
sloe pois mire
aver vamp mead
drew rood roof
clue floe fuel
...

input:

keys
49151
iwis wist
sabe tabu
ouch shes
loti toil
nest tegs
cess ease
gave nave
into dita
site gest
sins sets
bend reed
hant heal
cess marc
coed cove
cosy loss
cony cain
culm moly
aals rays
crap rate
eats brae
fons fuse
pail nail
dere dele
nark ains
carn nabs
solo ours
felt alif
curf user
puce chap...

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: 751ms
memory: 73460kb

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:

rent near inti
bets ails eats
reed dire vier
deer fear fete
foin lino clog
uses ecus cors
gibe bong nine
atom maar morn
caid birl rial
burr curb mure
clop lope cote
bitt beef beet
etic whit wire
hint agin fiat
hums hips mise
nidi dunt yids
heat hade eath
scam maun amus
taus cant scat
airy birl alar
...

input:

keys
1
neuk lunk
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: 787ms
memory: 76872kb

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:

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

input:

keys
60000
head haed
omer arum
ting jins
dado nazi
ally wail
exon eyne
coly oles
reel cine
limb glen
girt ting
cube cuke
meze more
chip chip
hins rain
rias rigs
sura runs
ting even
abba abri
rein neif
gill fuel
sers sees
liri virl
vena vang
coma mark
aero rare
clay lace
mewl yowl
sews wish
chic gnat...

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: 753ms
memory: 73708kb

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:

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

input:

keys
10000
wale weal
sewn sels
ells lyes
wine down
phiz piki
poon posy
loot tall
deco coed
temp meet
nodi eide
ibis brin
ewer awee
ansa pang
aunt duma
alan yarn
inia thio
barb brad
shes sued
kami mink
rete hern
lorn only
sees less
dole polo
wren when
sing yins
hyla odyl
redo torc
obit bios
pent runt...

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: 775ms
memory: 75820kb

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:

race sard lays
hive seis shea
sate ties etas
laid nidi vail
unco conn cunt
cure scum cubs
mass blat mast
iglu ague leap
legs lens eggs
pits spit dirt
lase aals gall
errs rede seed
gush tins guns
huck such muss
inch bint inti
noma noel alme
reef seep rets
self rolf pope
need tune tend
purs user ruer
...

input:

keys
40537
pias edhs
erns fino
oohs offs
dire vive
core keck
lisp lipe
deal laid
gang gnaw
dits etui
tree reft
wist tets
tern hent
lars lore
agma abos
voes oles
lard amid
dray craw
lice dill
bulb ling
ails inns
boll cloy
harm tahr
lino nail
fads fane
lore repo
lice cull
boss teen
lose sols
ouds dons...

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: 791ms
memory: 75748kb

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:

rips riel pili
unit gift thin
deli sail sabe
oaks kafs soft
coni coon noon
boon obol gobo
alme lure seam
lags gabs loan
rags eger erns
sets sice eats
ride rets time
fuds funs urns
thew hear whee
gone core egos
pier puri rued
sour lops parr
sine noun eons
lies noes viol
slag lang huns
arco arid irid
...

input:

keys
41296
gene been
gait aunt
sins funk
inia nazi
pong lino
peso voes
nite meth
slat leet
tael ilea
wars shaw
this hoes
rees cess
coin torc
rase sage
ahem yeah
also togs
alum mack
ocas corn
sima spin
shog loos
last lati
earl vier
duet kist
rein egis
nans suit
scat tael
etic nits
dees mids
dost moat...

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: 777ms
memory: 75880kb

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:

tilt ting flit
pigs ions pier
dors soda sorn
root troy toot
veal lube bale
cels lips perk
emic semi site
gels sori roms
amie meta move
rock crus core
iamb maul bams
trip tilt rile
carp cris peas
hoar rood noon
sign pend dips
dine lice hind
silo clit coil
snib ions nous
dart duct card
seer sill elms
...

input:

keys
41858
nose genu
sard rags
edge nigh
sels slut
coin chon
lime veil
nide zein
adit dipt
aloe atop
lire sers
tali tirl
ease rase
eats sate
gals sear
leis tile
owse enow
girn nags
sorn dors
cadi acne
oust buns
gips migg
uses sers
sord hero
lars nosh
koas cool
guid ding
hail lich
sale amie
lats eras...

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: 798ms
memory: 76128kb

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:

nene aeon agon
neon nett tung
rote cots cete
quip pule plea
shit heil lest
cion noir crib
loth told fold
taps piss tass
lewd dele weed
rude redd turd
taka tank kata
loan mano lean
warn nori rani
keas rest rase
heir weer here
poll role pare
gien sego item
fist tils fils
ires foes sord
noms site toms
...

input:

keys
44951
neon sink
cell mesa
curs suer
lees vied
jack high
ogle loge
chao orca
bens buns
resh lehr
trek tens
list nisi
feel flea
ours umbo
etic talc
ordo door
reed ordo
gate lags
gush smug
some silo
tale tole
cool floc
lido ciao
bolo egos
fete nest
fine hisn
eves seis
deed deys
lyse poem
hoer hons...

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: 784ms
memory: 76100kb

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:

high tain chit
trug litu iglu
ares vera agar
earl rely fray
shri ices wish
opts toke lets
mels serf feus
zing once nice
pear ripe reap
item melt lied
elds ouds blue
gids nidi gien
etna tads gats
buds buys bros
boar real robe
muni mogs gums
axon moan atom
deer tide cire
hale cans lace
genu luge lien
...

input:

keys
48114
lets sati
lino silo
ones cone
sour arts
show sori
rein hint
yule fuel
trow room
tody torr
coni oink
bane naos
ogre goer
adit aits
pard name
shot soth
gaes yaks
nary eyer
cote rent
lave rale
lion kilo
erne jeer
errs rile
curs rest
fort abri
idyl idly
stun smut
dons dins
deal duel
rias tart...

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: 801ms
memory: 76820kb

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:

real abri bare
fere core cone
hoes cosh coos
pros rhos show
peas spue asps
tars tees reis
nisi nits site
tarn nods doat
lose loos oleo
enol ergo noel
taco racy tarn
reel orle feel
helo veer eels
dado dona nazi
cane none acne
mire from firn
plod hail diol
feme frae mora
pree live seel
mura tuba moat
...

input:

keys
59872
ales salt
awry aery
bone road
mean sone
scot loti
rite sere
peer emir
bans data
ness numb
deck thee
glue dele
menu rite
gaen gran
tiro sori
lees leaf
moxa milo
yill nill
pois spit
naos base
alps regs
taut robe
nose hong
bide deem
aits ague
robs stob
pree peps
fall nill
dear cane
genu sone...

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: 802ms
memory: 77012kb

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:

alow ales cowl
airs irks hair
edit deet tide
exon doer read
redd rode node
lift font loti
agin tali talk
hist hats aits
blae bail keek
cape carp pack
hear ergs gars
hots host rots
psis hisn gies
lark fila airn
tier bree teel
beds boos demy
feta fart frae
scop epos ease
silo sike elks
leud rede delf
...

input:

keys
59908
wolf gulf
spue memo
tens cons
grid noir
sadi dins
neif rein
tine legs
oats tool
cote toed
race face
asci hies
nest tire
myna mane
fill sill
kind guid
fits fees
noms sone
chay cays
nide wing
acid irid
teem meet
sine hisn
dies isms
cant rede
iron soon
dare loan
pies teds
rows smew
ouds snob...

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: 787ms
memory: 76776kb

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:

macs lens mana
trip pats moat
eyas ayes lyes
tref reft reef
taxa axon anoa
rile brie bleb
gods mags dams
bree rise ribs
sade aped caph
bate bear tate
dibs ribs rigs
pair eide pard
vice neve nevi
earn name dame
find mend deli
semi miri perm
kits kier errs
tabu baud duce
rail real levo
hole leys eels
...

input:

keys
59915
airs rees
frit resh
sale amen
sial macs
rice cons
curs cons
sipe kelp
sudd weds
huns hist
sers hale
epic spec
sori dals
nota ebon
berm boor
mete smit
suer eros
pall hyla
cats rase
recs bets
tung sent
teas daft
silo lira
ford rode
lees lase
ains lats
nick nips
sore wost
star pars
clip puny...

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: 806ms
memory: 77196kb

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:

teak erst awes
main anon nona
lier leis reis
cion ping lino
seep isle reel
loud olea hale
flew dale fold
idea deli zeal
sels ires refs
roes suer ares
amin acme meat
carr ream mice
eyre mony rose
hets hell ties
snag ains scag
laze saul alee
race scan sent
nori rynd miry
harl leks lake
morn rani limn
...

input:

keys
59935
tale rear
aril sola
rete tyre
casa teat
okra arco
tree gree
true dote
lase sail
pois pros
pall tarp
abed fled
burr robe
maid meed
fail bilk
sers sabe
limp mile
shut thru
ecus less
ness sels
ties titi
mail loan
piny icky
tors tort
rhea egos
care rate
spar sura
pars sips
khat mako
join snit...

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: 780ms
memory: 76816kb

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:

tarn nods doat
rees owes were
atom maar morn
asps peal eras
egos does gens
poco itch coot
meno shmo hins
fear fame rime
yang moan mony
outs tori moor
cent vine cion
dial pair raid
tars trim stat
idly alar yald
seer reed rees
cusk bach kabs
army mono ogam
sort eros sego
meme move omen
muds duos eddo
...

input:

keys
59903
sore reef
nibs bias
idly lied
rued rete
cede cove
boyo bale
sign sine
clef furl
sexy some
noes snap
ogam atma
alec leva
sers rote
riel leis
glop paik
isle sord
tile ichs
rice lyre
hone cone
ados ends
rein rite
mair mile
trio doth
vase eros
ylem mell
hand sade
croc cook
teel reed
bail baal...

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