QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#294321#4828. Four Plus Fourucup_team_qiuly#AC ✓602ms88672kbC++143.5kb2023-12-30 12:00:142023-12-30 12:00:15

Judging History

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

  • [2023-12-30 12:00:15]
  • 评测
  • 测评结果:AC
  • 用时:602ms
  • 内存:88672kb
  • [2023-12-30 12:00:14]
  • 提交

answer

#include <iostream>
#include <cstdio>
#include <random>
#include <algorithm>
#include <map>
#include <cassert>
using namespace std;
mt19937 rnd(12345678);
int n8,n4;
map<string,int> id8,id4;
string s8[100005],s4[100005];
int book[500005];
int ovo[500005];
int awa[4005][4005];
int ans[50005][3];
struct node{
	int id;
	vector<int> qwq;
	bool operator <(const node b){
		return qwq.size()<b.qwq.size();
	}
}a[50005];
int tot;
void dict(){
	cin>>n8;
	for (int i=1;i<=n8;i++)cin>>s8[i],id8[s8[i]]=i;
	cin>>n4;
	for (int i=1;i<=n4;i++){
		cin>>s4[i],id4[s4[i]]=i;
		int v=0;
		for (int j=0;j<4;j++)v=v*26+s4[i][j]-'a';
		book[v]=i; 
	}
	for (int i=1;i<=n8;i++){
		int cnt=0;
		vector<int> qwq;
		for (int a=0;a<8;a++){
			for (int b=0;b<8;b++){
				if (a==b)continue;
				for (int c=0;c<8;c++){
					if (a==c||b==c)continue;
					for (int d=0;d<8;d++){
						if (a==d||b==d||c==d)continue;
						int v=0;
						v=26*v+s8[i][a]-'a';
						v=26*v+s8[i][b]-'a';
						v=26*v+s8[i][c]-'a';
						v=26*v+s8[i][d]-'a';
						if (ovo[v]==1)continue;
						ovo[v]=1;
						if (book[v]!=0)cnt++,qwq.push_back(book[v]);
					}
				}
			}
		}
		if (cnt>=3){
			++tot;
			a[tot].id=i;
			a[tot].qwq=qwq;
		}
		for (int a=0;a<8;a++){
			for (int b=0;b<8;b++){
				if (a==b)continue;
				for (int c=0;c<8;c++){
					if (a==c||b==c)continue;
					for (int d=0;d<8;d++){
						if (a==d||b==d||c==d)continue;
						int v=0;
						v=26*v+s8[i][a]-'a';
						v=26*v+s8[i][b]-'a';
						v=26*v+s8[i][c]-'a';
						v=26*v+s8[i][d]-'a';
						ovo[v]=0;
					}
				}
			}
		}
	}
	sort(a+1,a+1+tot);
	for (int i=1;i<=tot;i++){
		int id=a[i].id;
		vector<int> qwq=a[i].qwq;
		int cnt=(int)qwq.size();
		shuffle(qwq.begin(),qwq.end(),rnd);
		int fg=0;
		for (int i0=0;i0<cnt&&fg==0;i0++){
			int a=qwq[i0];
			for (int i1=i0+1;i1<cnt&&fg==0;i1++){
				int b=qwq[i1];
				if (awa[a][b]!=0)continue;
				for (int i2=i1+1;i2<cnt&&fg==0;i2++){
					int c=qwq[i2];
					if (awa[a][c]!=0||awa[b][c]!=0)continue;
					awa[a][b]=awa[b][a]=awa[a][c]=awa[c][a]=awa[b][c]=awa[c][b]=id;
					ans[id][0]=a,ans[id][1]=b,ans[id][2]=c;
					fg=1;
					break;
				}
			}
		}
		shuffle(qwq.begin(),qwq.end(),rnd);
		for (int i0=0;i0<cnt&&fg==0;i0++)
			for (int i1=0;i1<cnt;i1++){
				if (i0==i1)continue; 
				int a=qwq[i0],b=qwq[i0],c=qwq[i1];
				if (awa[a][b]!=0||awa[a][c]!=0||awa[b][c]!=0)continue;
				awa[a][b]=awa[b][a]=awa[a][c]=awa[c][a]=awa[b][c]=awa[c][b]=id;
				ans[id][0]=a,ans[id][1]=b,ans[id][2]=c;
				fg=1;
				break;
			}
		shuffle(qwq.begin(),qwq.end(),rnd);
		for (int i0=0;i0<cnt&&fg==0;i0++){
			int a=qwq[i0],b=qwq[i0],c=qwq[i0];
			if (awa[a][b]!=0||awa[a][c]!=0||awa[b][c]!=0)continue;
			awa[a][b]=awa[b][a]=awa[a][c]=awa[c][a]=awa[b][c]=awa[c][b]=id;
			ans[id][0]=a,ans[id][1]=b,ans[id][2]=c;
			fg=1;
			break;
		}
		if (ans[id][0]==0||ans[id][1]==0||ans[id][2]==0){
			assert(0);
			cout<<"No!!!"<<endl;
		}
	}
	return;
}
string opt;
int n;
string asd[100005],asdf[100005][2];
int main(){
	cin>>opt;
	if (opt=="password"){
		cin>>n;
		for (int i=1;i<=n;i++)cin>>asd[i];
		dict();
		for (int i=1;i<=n;i++){
			int id=id8[asd[i]];
			cout<<s4[ans[id][0]]<<' '<<s4[ans[id][1]]<<' '<<s4[ans[id][2]]<<endl;
		}
	}
	else{
		cin>>n;
		for (int i=1;i<=n;i++)cin>>asdf[i][0]>>asdf[i][1];
		dict();
		for (int i=1;i<=n;i++){
			int a=id4[asdf[i][0]],b=id4[asdf[i][1]];
			cout<<s8[awa[a][b]]<<endl;
		}
	}
	return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 532ms
memory: 88604kb

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:

rasp dows pods
cire etch cote

input:

keys
4
rasp dows
cote etch
pods rasp
dows pods
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: 524ms
memory: 88668kb

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: 516ms
memory: 88592kb

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 vara kava
alfa oral faro
arak vara kava

input:

keys
18
vara kava
arak kava
faro alfa
arak vara
arak kava
kava vara
oral faro
alfa oral
kava arak
faro oral
vara kava
alfa faro
arak vara
kava vara
vara arak
oral alfa
kava arak
vara 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: 564ms
memory: 88668kb

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 vara kava
alfa oral faro
gels vela alga
asea cube base
lane oles sane
mere pram pree
naos dons baas
pial pail baal
lyes bals ales
hins gabs nags
alae tael abbe
asea sate seis
raia iota tori
cabs baba asea
tali bail blab
sabe bass seas
bide idea date
mode odes mobs
mana obia mina
sued nabs bads
...

input:

keys
60000
gaen ilea
seel fees
lift lief
zein sang
odic done
nori frig
rusk rust
kind dent
bard drib
sort kits
omer goer
seed mods
oafs foal
flea fall
tire best
deed aunt
loan alec
nous crus
hist sets
pays slat
etic itch
cars call
nide tins
cogs ergo
fond fido
life isle
ired side
moor frow
vita gnat...

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: 577ms
memory: 88668kb

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:

cuif ciao fail
ding dung fund
reef hues ruse
fere serf flus
ling gulf gien
owed wolf oleo
fuci cagy yuga
gits gift suit
etui five gift
mane leaf fane
gene flue glum
fuss fist guts
sulu rums culm
lull sill flus
flub bull lack
dure furl reed
feal caff cull
feus uses ells
mend neif idle
semi mils lies
...

input:

keys
60000
tern iris
tiro trot
born inro
repo pone
peso rest
kore took
tope tide
viol roll
wood redo
lota faro
aver marc
song sour
perm prey
rein tiro
hypo pyas
nowt nota
wigs gown
liar seer
tyin luna
ides slid
eyne gyre
sane once
tier puce
euro pout
trio milk
aeon mabe
tyer earl
seep emes
same aunt...

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: 552ms
memory: 88600kb

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:

rune sord dune
pose role dels
tare east eats
draw ward ware
sere made rams
made rare tame
diel dies sire
deni reed ired
errs vied dies
sore tore toes
grid gyre rend
haes ands darn
teds tref heft
erst hits side
rein kens dike
sard dart rase
lair tali tide
burd deed bree
ecus reds curr
ired duce nerd
...

input:

keys
50928
eels oils
arse ates
ours sour
silt vile
orra amir
dure nine
perm drat
ness sing
froe pert
bets yups
wigs earn
loci oily
feus olds
whin wain
soli seis
reif rive
ties nite
piss puls
arty troy
awol mile
regs sent
care airt
alga aals
pare wrap
cain ains
thee teth
nuns runs
idly liny
sera peas...

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: 525ms
memory: 88664kb

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:

sice mels lieu
scad sued dura
gone void vied
reel rote once
ring gird girl
hows osar haws
obol tool alto
gins sung ecus
rest stem time
ebon snub lune

input:

keys
46
sued scad
alto tool
lune snub
osar haws
scad sued
sice mels
tool obol
lieu mels
ebon snub
stem time
vied void
obol tool
scad dura
sice lieu
reel rote
dura sued
vied gone
osar hows
ring girl
rote once
mels sice
void gone
lieu sice
sung ecus
dura scad
void vied
gins sung
gone void
haws osar
eb...

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: 530ms
memory: 88640kb

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:

gadi yagi bani
aero rote rase
peas wets watt
shin moon fino
rugs grip rhus
urge drug nerd
anes acne dean
nine nide deed
teel toea alar
hues cess uses
naos kaka agas
earl plea plie
wadi with adit
chip chit toph
anon noma leno
skin gink skeg
sere ness hers
rive erns kins
load agon goon
kens once such
...

input:

keys
313
moon shin
beau beam
need peer
dire tide
must mums
posy pogy
tret dies
tour arty
mise tile
quit sumo
pans raps
bios sock
rust lour
elhi hila
oust pica
tike lier
shod diol
beam beau
bile cire
pigs errs
togs eons
cess uses
sorn doat
gink skin
mogs pogy
beau exam
plea earl
neat vain
trad dies
t...

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: 534ms
memory: 88604kb

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:

late ties sadi
than ante nite
dore rede word
haes oped dash
cuts erst suer
asks ease albs
cark scar hash
yagi sign ywis
phot hoof hoot
moan erns mots
emes term tees
rota mura tyro
saul ulna nurl
shim dish nodi
thro rots tern
mora orra amir
lain glia wain
anus agin snag
scar crus soar
blet lall blat
...

input:

keys
2230
duds rues
ills yill
span iota
sirs ires
pols plus
dopa pane
raff fire
dere eche
kabs busk
isba arcs
seis toss
kale keno
osar tats
agin anus
ills syli
porn pion
runt lude
veer rebs
leis sipe
sect teen
mike disk
lite tins
ache ails
maim balm
lums mans
dreg edge
leis leal
tent stat
mere trim
...

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: 550ms
memory: 88648kb

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:

nipa grip rani
rare frae eyra
rede sere does
undo cote duro
bung limb glum
unau nota tuna
delt deed data
refs arse spae
nona anti coni
shad dash dags
hora gage euro
tons tore ires
molt alts malt
blot boss toes
done sumo duos
root tote hoer
pier elms prim
vera mare meed
drew woof fore
floe floc cull
...

input:

keys
49151
weet vies
ibex stub
uses shoe
lion ting
nest gent
cees acme
gaen gang
doit nona
vets give
site tins
dere drub
haen tale
maes aces
cove yond
cots solo
cays soli
moly cloy
slay ryas
ceca pace
stob seat
soul enol
nipa nail
rede dell
sari knar
bare each
solo loud
flit feat
cues arfs
aced head...

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: 551ms
memory: 88648kb

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:

rant inia erne
ails ties bits
bier ever reed
dree fare deft
loin filo floc
curs rocs cero
bong gibe gien
gram roan goat
lira dial rill
emeu rube beer
plot pule lept
bide debt feed
hire with wire
fain haft gnat
hemp sump shim
yids inti stun
them mead thee
anis nisi cams
utas stun scat
sari arbs alba
...

input:

keys
1
inly kine
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: 578ms
memory: 88596kb

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

input:

keys
60000
dead herd
roue mura
into jogs
doze nide
yill wawl
exon prex
syce cole
lier lice
blin bine
ting grit
cues kues
meze more
nigh chip
sinh ains
oars sago
babu nabs
gien vein
barb birr
zein neif
lulu fell
seer eses
reel rive
gibe vang
orca mock
hoar rhea
acyl leal
moly well
keys ywis
thin inch...

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: 536ms
memory: 88600kb

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

input:

keys
10000
yawl ally
wile leis
oyes bell
owed eddo
piki zori
nosy foys
slot tall
coed duce
teem mere
zein dene
iris gibs
dere drew
rang pans
cant hant
narc acyl
titi hant
grab agio
dues used
akin mink
thee cete
anon aryl
loss sues
pled doll
wine weir
gins pigs
ahoy hyla
etch doth
ties bios
pert punt...

output:

wellaway
wiliness
bellboys
windowed
pirozhki
opsonify
axolotls
cuckooed
temperer
deionize
brisling
rewarder
parasang
dutchman
carnally
tithonia
gabbroid
squushed
mannikin
entrench
nonroyal
soleuses
dolloped
whinnier
gypsying
ladyhood
crotched
bossiest
unexpert
overseer
wineskin
mandarin
bryozoan
air...

result:

ok OK

Test #14:

score: 100
Accepted
time: 571ms
memory: 88592kb

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:

dray dear dyer
ayes vase shea
site sett stat
ulva vain auld
unco unto cunt
rums cubs cure
albs blam mats
peag gulp palp
sine ling gens
iris irid dirt
leas sage alga
rede revs seer
sugh thus guns
musk cusk suck
bint ting chit
malt math haem
seep pecs sept
pole sole sore
deed nude unde
purr sups sues
...

input:

keys
40537
pehs side
firn rein
offs foss
ride irid
kier lock
less skip
kadi weld
lain nail
dupe tips
reft rete
west tits
eche etch
lear lass
soda gads
bogs obes
dare dame
arty raid
dell iced
glib blub
sain lang
cull buoy
mart hart
inro liar
anes feed
epee rope
ceil loci
snob sent
oils ills
pond sone...

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: 549ms
memory: 88628kb

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:

reps mils lisp
tung hung thin
aids deli dabs
scot tots kats
coni cion coon
only boyo bogy
mule lums luna
naos snag labs
anes gels ease
ties sacs cate
rems rite time
urds durn wins
haet whee thaw
hern roes ergo
dree dire pied
pros sora loup
sunn seis sone
slue sole levo
shog slug sola
card caid coda
...

input:

keys
41296
ogee boon
tint taut
inks kins
nazi gain
ling lino
rose eros
mint meno
sett thae
gelt tali
wash shaw
cist toes
eses secs
inro loti
asea gast
hype epha
gits toil
back blam
naos corn
imps nags
loom moos
silt last
vail vile
dits tuis
sirs gien
quin tuis
acre sate
tics nits
rees pied
tans ados...

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: 542ms
memory: 88640kb

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 gift lift
eros pins snog
noir aids nona
roto toit ryot
lave leal blae
rick cris lies
emit sick mist
glom roes mils
vita mote amie
orcs suer ecus
mina bias labs
rite lite liri
peps pase prep
anon hand dona
dips pigs gies
deli cine lend
loti colt poco
nubs bind nims
cafe fart dace
seer lime seem
...

input:

keys
41858
none onus
rams grad
hind rein
sets tule
nice icon
idem elms
nidi deni
piso toad
pate cote
tirl list
ilia airt
ears anes
stay yaws
sale earl
slit lilt
odes weds
ring rins
nona noir
nide dean
tuns tuna
grig rims
sris puri
roes cero
osar lost
slow cola
bind bund
lich hila
eyas sall
eras pare...

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: 556ms
memory: 88600kb

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:

agon gaen nene
tong gone tung
leet ores rotl
leap pial peal
site elds geld
cion brin coir
hoot fold loof
sips sits tips
weld heed whee
dude turd rudd
anta bank tank
enol male mome
ware roar weir
sate sear tear
thew hire tree
poll wrap plew
egis mots ions
reis felt tref
sord fere side
emes emit tine
...

input:

keys
44951
ikon skin
lacs sale
cute curs
wees sled
chia high
enol gone
echo hoar
sues obes
shes heel
kens snit
muni tins
flap aper
bort oots
lati tele
ados trad
forb feed
lase gent
muns anas
simp poms
lati tire
floe coof
obia bola
boos mols
feet fets
hisn feus
seis seen
dews seed
pose peso
roue onus...

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: 549ms
memory: 88672kb

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:

gnat chia cain
tirl girl curt
vase area revs
fard afar fled
khis resh hire
slop sect sloe
lums slur elms
cone zinc zoic
peri aper pair
mild pile item
debs scud cube
nims dine digs
dits gens tens
busy fuds rosy
tora lota tole
muni moss song
hant anta than
tire tide dice
lech lane lens
genu luge lieu
...

input:

keys
48114
hist tael
limo ions
nice sego
bura oats
show girl
hern tore
flue fuel
mort worm
yirr yird
coin king
mane jams
goer grew
date seta
rope damn
eses soth
sagy ryke
rage gane
carn cete
saga vars
kobo olio
jeer ruer
effs life
rust crus
feta beat
tidy idly
uses ness
snit dost
used alum
arts stir...

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: 573ms
memory: 88640kb

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:

babe birl abri
cere corn fere
coho cess cosh
show swop rows
sacs apse upas
ares anis nets
ties nine tent
tons soon rant
ooze sole solo
gore glen nolo
arty cony tyro
orle froe wolf
over roes else
doze adze nide
unco once none
reif form emir
yald holp dahl
mere farm doer
pree lire eves
mura brut bota
...

input:

keys
59872
sadi late
bear rare
olea brae
sned dons
sole lots
nine tree
rime mure
scad cats
numb uses
etch deet
geld dele
true erne
rage rede
sori outs
sale gulf
noma axal
lint inly
soot topi
jams omen
eras gars
trot tour
sinh nite
semi bees
seat auto
birr bits
prep pens
gill naif
dear cede
node sung...

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: 571ms
memory: 88644kb

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:

lows lacs cola
raki kirs wash
tide nide dent
nurd duro rand
dine redd inro
loof foil toil
kain clag lint
that shah tats
bike alee kail
nuke pack knap
hubs ruga bugs
rims rhos wits
hips gien shes
lark naif liar
bier leer tire
odes obey bode
peat prat rate
pase code cepe
kiss soil sulk
rude duel flee
...

input:

keys
59908
frow frug
moue meou
cote scot
dong irid
ring nags
neif zein
legs tins
slat tosh
date doat
fair cate
vice ichs
rind dine
lean meal
sill limy
kudo undo
beet tees
emes mons
sack syke
ding dene
dirt cadi
dees mete
nisi hies
side miss
dare cart
soli lins
lead cola
spit tips
mows roms
nobs duds...

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: 564ms
memory: 88664kb

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:

casa alms lens
rota imps spit
yule ales sear
feet tret reef
anna taxi anti
lyre birl lier
seam does gaed
libs isle rebs
ares pard acre
tree bree bear
bind bigs gins
ired aper deed
nevi cine vine
need deme dame
file lend mien
prez prim rips
stir kier skit
teed abet bade
lear vair vial
hoys eyes lyes
...

input:

keys
59915
ares aver
tref teds
anil anes
sacs sims
eros icon
ones curn
pial skip
sewn sued
thug huns
ears hare
pois pecs
alts rotl
anti tone
boom broo
meth ties
ruse ores
harp hall
sate cite
bros bots
mute gets
feds errs
soma sols
dove four
alee haen
tuns sain
pics puck
rots kors
doat dahs
pyin puli...

output:

aversive
redshift
melanins
classism
sermonic
cornuses
soaplike
swounded
huntings
slathers
specious
dilators
reobtain
foreboom
meshiest
gorgeous
phyllary
scantier
brockets
augments
drafters
oralisms
favoured
haleness
nautilus
kingcups
kotowers
hardtops
punchily
dindling
coniosis
knitwear
shkotzim
run...

result:

ok OK

Test #22:

score: 100
Accepted
time: 602ms
memory: 88632kb

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:

weak kart erst
anon moan mano
isle leis ulus
icon limo clop
peer seel lipe
duel leal dahl
aloe well lead
laze lead yald
rees flee lies
voes rues ears
neum mean maun
mice ream mire
some omen sore
lite lits ells
vair vagi sari
zees alee ales
cane seta eats
yond nori mind
sark sera lace
alma loan rain
...

input:

keys
59935
real leal
roar sial
elmy eyer
stat teth
rack rook
beet gree
fido dire
laic ichs
purr roup
atap brat
bald darb
brew bore
read dame
alif fain
robs ears
pill lier
rhus tuis
sued cuss
lies nils
sett seis
moil lino
pick pink
tots tets
hoes soth
cate rete
saul spur
reis vier
atom whom
dona dint...

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: 555ms
memory: 88672kb

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:

tons soon rant
woes weer roes
gram roan goat
pals rale peel
soon dose node
hoot onto itch
sone isms semi
fire raff arid
mono noma myna
mist roti rots
vote nine vine
lord ragi dopa
miss airt matt
yald arid lady
dere sere dees
suba cask cobs
gnar morn yoga
segs rets ergs
meme neve oven
dome dose side
...

input:

keys
59903
core froe
bani ions
doth hied
cute crud
conn even
obol tool
sike kine
herl curf
oses sexy
pons soup
gout toga
gale leva
shoo sers
grig ergs
gain ilka
doer slid
tics list
lice gyre
hoes cero
code nose
hern hone
harm rale
dirt trod
rees over
malt mole
bids hide
croc cook
ante dere
ilia 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