QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#387059#4828. Four Plus FourCrysflyAC ✓989ms136396kbC++173.1kb2024-04-12 00:45:052024-04-12 00:45:06

Judging History

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

  • [2024-04-12 00:45:06]
  • 评测
  • 测评结果:AC
  • 用时:989ms
  • 内存:136396kb
  • [2024-04-12 00:45:05]
  • 提交

answer

// what is matter? never mind. 
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,sse4,popcnt,abm,mmx,avx,avx2") 
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define ll long long
//#define int long long
#define ull unsigned long long
using namespace std;
inline int read()
{
	int x;cin>>x;return x;
}

#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;
 
#define maxn 200005
#define inf 0x3f3f3f3f

#define N 29000
#define M 4000
string opt;
int n1,n2;
string s1[maxn],s2[maxn];
int to[N][3];

bitset<M>ok[N];
vi e[N];
int deg1[N],deg2[M],id1[N];
int frm[M][M];
bool g[M][M];
int cnt1[N][26],cnt2[N][26];

int n;
string in1[maxn],in2[maxn];
mt19937_64 rnd(64);
void add(int x,int y,int w){
	if(!g[x][y])return;
	g[x][y]=g[y][x]=0;
	frm[x][y]=frm[y][x]=w;
	--deg2[x],--deg2[y];
}
vi res1[N];
map<string,int>mp1,mp2;

signed main()
{
//	freopen("001.phase2.full.input","r",stdin);
	cin>>opt;
	if(opt[0]=='p'){
		cin>>n;
		For(i,1,n)cin>>in1[i];
	}else{
		cin>>n;
		For(i,1,n)cin>>in1[i]>>in2[i];
	}
	cin>>n1;
	For(i,1,n1)cin>>s1[i];
	cin>>n2;
	For(i,1,n2)cin>>s2[i];
	For(i,1,n1) for(auto c:s1[i]) ++cnt1[i][c-'a'];
	For(i,1,n2) for(auto c:s2[i]) ++cnt2[i][c-'a'];
	int sums=0;
	For(i,1,n1) {
		For(j,1,n2) {
			ok[i][j]=1;
			For(c,'a','z'){
				if(cnt1[i][c-'a']<cnt2[j][c-'a']){
					ok[i][j]=0;
					break;
				}
			}
			if(ok[i][j]){
				++deg1[i];
				++deg2[j];
				e[i].pb(j);
				++sums;
			}
		}
	}
//	cerr<<"sums "<<sums<<"\n";
	For(i,1,n1) id1[i]=i;
	sort(id1+1,id1+n1+1,[&](int x,int y){
		return deg1[x]<deg1[y];
	});
//	For(i,1,n1)cout<<id1[i]<<" "<<deg1[id1[i]]<<" "<<s1[i]<<"\n";
	memset(g,1,sizeof g);
	For(i,1,n2) deg2[i]=n2;
	For(ii,1,n1){
		int i=id1[ii];
		if(deg1[i]<3)continue;
	//	shuffle(e[i].begin(),e[i].end(),rnd);
		sort(e[i].begin(),e[i].end(),[&](int x,int y){
			return deg2[x]<deg2[y];
		});
		shuffle(e[i].begin(),e[i].end(),rnd);
		auto find=[&](){
	//		cout<<"sz "<<e[i].size()<<"\n";
			for(int x:e[i])
				for(int y:e[i])if(y!=x && g[x][y])
					for(int z:e[i])if(z!=x&&z!=y && g[x][z] && g[y][z]){
						add(x,y,i);
						add(x,z,i);
						add(y,z,i);
						res1[i]={x,y,z};
						return;
					}
			for(int x:e[i])
				for(int y:e[i])if(g[x][y])
					for(int z:e[i])if(g[x][z] && g[y][z]){
						add(x,y,i);
						add(x,z,i);
						add(y,z,i);
						res1[i]={x,y,z};
						return;
				}
			cerr<<"Fail "<<ii<<" "<<i<<"\n";
			assert(0);
		};
		find();
	}
	
	For(i,1,n1) mp1[s1[i]]=i;
	For(i,1,n2) mp2[s2[i]]=i;
	
	if(opt[0]=='p'){
		For(i,1,n){
			int u=mp1[in1[i]];
			int x=res1[u][0],y=res1[u][1],z=res1[u][2];
			cout<<s2[x]<<" "<<s2[y]<<" "<<s2[z]<<endl;
		}
	}else{
		For(i,1,n){
			int x=mp2[in1[i]],y=mp2[in2[i]];
			int u=frm[x][y];
			cout<<s1[u]<<endl;
		}
	}
	return 0;
}
/*
encode
3
4
((((|)|)|)|)
5
(|(|))((|(|))|)

7 15 (kmax-n+4)
9 27
11 50-11
*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 919ms
memory: 136396kb

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:

rods rasp proa
etui ruth trio

input:

keys
4
rods rasp
trio ruth
proa rods
rasp proa
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: 909ms
memory: 134600kb

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 keir ruer

input:

keys
1
keir ruer
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: 913ms
memory: 135116kb

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:

vara arak kava
frow fold wold
vara arak kava

input:

keys
18
arak kava
vara kava
wold frow
vara arak
vara kava
kava arak
fold wold
frow fold
kava vara
wold fold
arak kava
frow wold
vara arak
kava arak
arak vara
fold frow
kava vara
arak vara
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: 952ms
memory: 136084kb

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:

vara arak kava
frow fold wold
lags lase aloe
bass subs beau
blae anas nabs
berm pree brae
abas nana bads
clip laic baal
bays lade bead
bags sain agha
able beta abba
bate sabs beat
tort rota boar
sibb abas bice
tali blat bail
bass seas babe
date iced beta
debs sand ambo
amin modi iamb
anus case abed
...

input:

keys
60000
gale cain
seel heel
lets life
eons ions
nidi once
gong grin
buts kues
sink kins
drab bier
kier ties
mire gear
seen mend
fall loaf
ball bile
kris tike
neat unde
deal enol
onus recs
hide tads
stay flay
beth both
case carl
dent sned
cogs rocs
fiar rani
fees ails
errs dire
work frow
ting vagi...

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: 974ms
memory: 133756kb

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:

filo fuci loud
lung fund find
seer fees ruer
flee fuse sere
ling flue lieu
flew lewd delf
yagi city tufa
fist fuse guts
etui five give
gane flag glen
luge fuel lung
fugs sits tugs
lums crus curs
fils ills sill
bull balk luck
fuel lude rede
leal cuff caff
funs feus self
nude life idem
fens limn life
...

input:

keys
60000
airt nite
riot tore
boil loin
open prod
rotl toes
pert poke
diet emit
rove lire
doer redo
foal rota
mica mike
stun trio
ruby ruly
vote vein
nays shop
naan nowt
nogs gown
sail lier
tuna quai
diss need
eyen eery
ocas tans
tire dice
tour suet
work trio
moan mane
lear tear
emes seep
tuna emus...

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: 989ms
memory: 135252kb

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:

eddo onus reds
lode dope elds
deaf tads star
rear rede awed
errs mere seem
rear mare dere
sild reds lier
nide ired rend
vide sire reed
soot sore teds
rend gird rein
rank kaes hand
site fist rife
reis shed edit
kine kins skis
eras etas dare
tare isle rail
reed burd rube
rees duce crud
cure genu gied
...

input:

keys
50928
eros lire
earn ates
sour ours
sent nevi
arvo arum
ride dure
dart tamp
megs sine
port foot
espy stey
wags wair
kill yill
effs feud
mina gain
logs also
vive five
tens rite
cuss epic
root tora
isle aloe
hest gens
tier tear
lags laws
orra parr
anis king
thee stet
urbs urns
luny inly
ease dere...

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: 908ms
memory: 135148kb

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:

lier mirs emic
sura urea dues
vein doge vide
erne cone enol
dirl drug ding
orad rood shoo
bolo lobe blae
cigs gies seen
tics time smit
blue leno slub

input:

keys
46
urea sura
blae lobe
slub leno
rood shoo
sura urea
lier mirs
lobe bolo
emic mirs
blue leno
time smit
vide doge
bolo lobe
sura dues
lier emic
erne cone
dues urea
vide vein
rood orad
dirl ding
cone enol
mirs lier
doge vein
emic lier
gies seen
dues sura
doge vide
cigs gies
vein doge
shoo rood
bl...

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: 913ms
memory: 135948kb

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:

bani gain gadi
erst airt stoa
wept pews taws
ions mons foin
purs rush pish
doge dreg dore
aves aced case
deed eide nude
tale alee olea
shes shoe hush
ansa skag nogs
sice spae lair
thaw whit dita
toph phot itch
mola lame omen
sing kens kine
reis rein rees
kois kier rins
clan gaol loca
shoe cone shun
...

input:

keys
313
mons ions
eaux jube
edge deep
rete dire
mise suet
dopy dogy
eras ride
yurt yawl
isms self
must mots
hard spar
bios bock
site lies
flam lies
spot aits
leke tree
chid idol
jube eaux
ceil bled
girn rise
gout gent
shoe hush
rato doat
kens sing
pogy dogy
eaux jeux
spae sice
tail vane
east ride
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: 921ms
memory: 135248kb

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:

dale sial elds
tine tain hent
deed wore eddo
shed haes posh
rust rest cess
bask lass ekes
cark cask scar
wins ains wags
foot that poof
roms ones toes
erst sext mete
auto tram atom
lars runs nurl
nosh sinh doms
note shot scot
ovum arvo arum
ling gang wing
guan anis iron
sour oars scar
tele belt abet
...

input:

keys
2230
duds reis
yill bill
tain spat
rips sirs
post pols
coed cape
fief mead
crew eide
back suck
sear rads
post topi
loin vein
oast tost
anis guan
yill syli
perp peon
turn rule
sees sels
isle peel
secs dent
dyke mise
lint nest
lice ilea
mead mail
maul alan
geed reed
liar lire
sent stat
cire mite
...

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: 931ms
memory: 135960kb

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:

gnar gapy girn
fear fare wary
rede sere redd
roue undo torn
glum gulf flub
nota auto tout
alee dale data
real repp peal
ciao nona oast
dahs sage heed
aero hear euro
erns toes ions
sati slot mast
robe sers loss
neon meou dome
tiro teth trot
mels rile miso
peed perm pare
rood wore woof
cull floe luce
...

input:

keys
49151
vets wive
tabs abet
echo coss
tong lint
gens tees
seam secs
giga vena
nota dato
sets egis
sits seen
nude bred
haet laze
asea arms
coed cony
coot cloy
coni cony
moll luck
lays ryas
cepe crap
rase test
slue nose
palp pang
fled rede
rain kain
bren hear
lour ouds
lief tale
case user
puce pace...

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: 933ms
memory: 135020kb

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:

anti rete near
teal ilea beat
rede vier beer
rede trad drat
ling info fico
cuss user ours
bine nine none
roam agma moan
clad lira bard
ruer rube cere
clop tole pout
tied beet defi
cire wich cite
fiat nigh than
hums pies sipe
dins stud dust
haem teem meed
amis muni aims
scat cunt rant
ails alba lair
...

input:

keys
1
neuk like
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: 964ms
memory: 134688kb

input:

password
10000
biunique
chinning
chowchow
civility
cyclicly
diacidic
dibbukim
diluvium
divvying
dizzying
exceeded
exiguity
expellee
finiking
fizzling
frizzily
froufrou
giddying
gimmicky
gingilli
haggadah
henequin
heniquen
higgling
humidify
illiquid
infinity
infixion
jingling
jujutsus
kickback
levell...

output:

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

input:

keys
60000
rhea redd
euro more
sing togs
node dido
wily wail
eyer pone
lyse cyme
leer lire
been limn
girt gits
buck eche
zero omer
nigh nigh
rins rash
giro sari
runs bans
teen vent
abba birr
lien lire
lief fugu
revs seer
live reel
vane bane
rack mora
hoar hear
caca call
well loll
skis hike
ghat nigh...

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: 911ms
memory: 135376kb

input:

password
10000
biunique
chinning
chowchow
civility
cyclicly
diacidic
dibbukim
diluvium
divvying
dizzying
exceeded
exiguity
expellee
finiking
fizzling
frizzily
froufrou
giddying
gimmicky
gingilli
haggadah
henequin
heniquen
higgling
humidify
illiquid
infinity
infixion
jingling
jujutsus
kickback
levell...

output:

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

input:

keys
10000
yawl waly
sins wens
sloe blob
owed wine
zori koph
oops fops
sola oast
duce coed
temp pert
done deni
bris ling
reed ward
gasp raps
haut dunt
nary raya
tint iota
drag drab
edhs uses
mina akin
erne cete
yarn loon
sole sloe
dope pled
weir hire
spin yips
yodh holy
croc torc
bets ties
rune teen...

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: 936ms
memory: 134908kb

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:

sale lead ryes
ayes have shiv
stet sate seat
land dual ulva
unto cunt noun
cues cube mure
slam albs alms
glia pulp egal
isle ling gels
tips dits irid
sell alls gale
sere veer dees
nits nuts thin
muck cuss sums
chit nigh ting
alme hant molt
fees reps recs
oles pole epos
need unde tune
sure errs spue
...

input:

keys
40537
pash sped
info eons
show woos
rive irid
kike coke
pili skep
wain link
agin anil
puds tide
rete erne
sets rite
etch rete
lase cars
ogam amas
vugs slue
lima elds
cadi yird
dill deco
bulb flub
ains giga
lock buck
boar tram
airn noir
sane deaf
epee prop
lieu cole
bots sene
sill lies
pose dues...

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: 947ms
memory: 135744kb

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:

mile mels mise
thug thin tung
dels ails sadi
skat toft oats
conn cion coon
logy only boon
alum luna seam
goon naos sola
seal egal gene
tics aces cats
rest side ired
rins durn fund
heat whet hear
eros hern hoes
dupe dure peri
sura oars pols
none ness onus
oles oils line
hogs halo hula
card ciao orad
...

input:

keys
41296
bone ebon
tint gnat
silk inks
nazi giga
loin plop
pros repo
mott hone
alts tees
gait tali
ward away
best cots
errs secs
riot icon
rets area
hemp pima
lota isle
caul guck
cars cors
maps gips
logs goos
abas libs
vale rile
disk kite
gies seis
quin unit
acts seel
cent sect
rims rees
mats dams...

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: 945ms
memory: 135144kb

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:

gilt titi gift
pone spin song
sand oars orad
soot rosy stir
vale baal vela
skip rick like
sike skit etic
sego germ roil
toit atom emit
okes rock cero
anus bans bams
plie peri pelt
arcs sire pice
hand nard horn
gips dens pigs
chin lied cine
oops loti loos
udos muns bond
curt tace turd
rise emes mell
...

input:

keys
41858
nous sung
rand dams
ghee gien
lute sent
once chez
dime devs
zein bend
spot taos
tame tape
tets tire
liar aril
sane erne
agas gats
earl legs
sill lite
nodi dies
grin ains
orad sand
acne cadi
buts agon
gimp grig
peri seis
cord core
star halt
walk awol
lung bunn
hail hila
mail male
alps tepa...

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: 948ms
memory: 135880kb

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:

agee nene aeon
gout tout tone
cete core cols
pile ilea palp
lids slid gelt
corn coir coni
dolt holt doth
spat tape seta
weld weed heed
rued turd redd
kata taka nada
amen noma mola
wain ware airn
seas kats rest
weet writ tree
weal aero wore
engs ting sone
ties lier sris
fees dore fore
some snot eons
...

input:

keys
44951
inns skin
lams male
crus tusk
slew lied
high jack
neon ogle
each orca
sone suns
veer resh
tets irks
smit nisi
real leer
ours room
beet blat
ants dato
bree feed
slag lens
hams gaun
mels some
mare tola
sole coos
laid baud
mogs elms
sone foes
fens shin
vine sire
weds eddy
epos seem
shes shun...

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: 945ms
memory: 135588kb

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:

chit cant chat
liri clit grit
gars ares vase
deaf lade frae
wick chis wich
pots scot pets
slum emfs furl
cine ooze zinc
parr reap ripe
tide lute mile
lose blue soul
ding sine ends
nide nags tide
foys orby burs
bate bole toll
smug sumo moss
mana atom oath
etic iced rede
ceca hens hale
ling line luge
...

input:

keys
48114
eats ilea
soul lino
gens cogs
boar ours
hols owls
thio trio
bull flue
moor moot
lido dory
kick coni
bens joes
hoer grow
stat said
mend pend
nest hets
ream megs
awee eger
tace note
sage vars
blin kobo
jeer rein
self leis
sect scut
feat rife
idly idyl
seen mess
dins dots
lace dues
airs aits...

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: 942ms
memory: 135700kb

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:

lire bile bier
fere corf froe
shoo echo shoe
shoe resh whop
suba pubs asps
ante sati rase
nest inns tits
rats oars trod
elks shoo hols
lore loge gore
taro onto coat
lowe free weer
rees rhos over
node dona dido
cane none aeon
fino mien inro
odyl hoya dopy
rede more faro
peer ires seer
tuba mora tram
...

input:

keys
59872
elds dale
year byre
dole brad
dome sane
list soli
tens tees
puri perm
acta bast
used dubs
heck deet
gled feed
ruin rune
dead egad
rust rout
alee legs
maxi noil
tall anti
post stop
joes mabe
rasp pals
trot bute
sign nite
modi seme
geta sate
wost roti
peer peps
fain fill
cane eave
noes duos...

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: 976ms
memory: 135552kb

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:

call sall coal
saki skis wair
nide nite diet
near rend dura
eddo nori redd
loof olio filo
lati agin ilka
hits hath aits
blae akee bake
puce race carn
garb gear rush
omit host sori
hisn ness pens
rani linn fain
belt rite beer
doby mode dyes
peri rift feat
spae deep pacs
sels leks sike
reef dure duel
...

input:

keys
59908
rung fowl
puls moue
ones tons
grid ring
gain inns
lire lien
gent lite
woos twas
cote doat
fact fiar
eche eave
teds sned
clay acme
ills slim
dork rink
bise beef
noms voes
aces yaks
nide wide
card adit
teed seme
hies sine
seme idem
tare nard
lino loos
arco acne
sipe dies
awes ores
udos sudd...

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: 957ms
memory: 135304kb

input:

password
9989
manacles
pastromi
squarely
fetterer
anatoxin
bilberry
demagogs
libelers
scarphed
berretta
birdings
diapered
evincive
mannered
unfilmed
misprize
strikers
abductee
ovariole
eyeholes
clotting
wooingly
locutory
doorknob
pitiless
extruded
repugned
quiniela
heroizes
ravagers
crispers
sixpenn...

output:

aals scan mans
pram roms atom
quay lure ryes
tret free fret
into anta nana
yirr birr lire
sade dago demo
sell rebs reel
race haps eras
bare tate tear
rigs rind bris
pair peri dere
vive vein even
rand mead nard
lief mile defi
semi mirs pies
kirs kits rest
cede beta cate
lire rail oral
lose seel sole
...

input:

keys
59915
sire sari
fist site
mise anil
cams slam
come cine
cero crus
epos pale
node woes
tush snit
tare east
scop pois
doit tads
beat tarn
omer broo
mise tees
ours ruse
harl aryl
teas neat
sort sock
smut gaes
read teas
sims rail
froe redo
heal sels
lati tuis
sung spun
woes koto
drop sord
luny 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: 949ms
memory: 135720kb

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:

sark stew kats
mini naoi nona
slue urus ulus
cion milo ping
peer leis slip
odea haed laud
weld load deaf
idea lazy dead
feel reel rifs
vaus vars rave
main came ante
came mair rare
mere some mors
leis tell hets
vang scar ains
seal ease slue
tars cere cats
momi yond yird
heck hers ears
moil liar mola
...

input:

keys
59935
rely trey
sail raia
meet tome
thae tats
okra rock
tret eger
edit ford
lace heil
sori roup
baal tala
deal boar
wore euro
ream dame
fink kain
bear bean
mile peel
thru mist
used uses
sees ices
site isms
mola laid
nick pick
rose rote
hest teas
cart rate
ursa auks
arse sris
khat atom
iota nods...

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: 947ms
memory: 135708kb

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:

rats oars trod
ires vows ever
roam agma moan
seal spar lase
sned gens geds
coop phot onto
miss sine noms
mead fief ride
agon mayo yoga
toro sort ours
cove coin tine
load lipa roil
tass rams mirs
yard lira yird
dere reds seed
bush chub oaks
army gyro gamy
rote orts sego
neem veto meno
some ouds sued
...

input:

keys
59903
sere foes
bans nobs
idol hold
rued deet
deco nene
bolo lobe
sink inns
fere chef
soys sexy
naos nape
ogam toga
gale vale
hero root
rise gies
kino lain
orle lode
eths chit
ceil lier
hero resh
docs dyne
thio tire
meal hula
coot roti
osar avos
atom elmy
nibs ends
cook croc
earn lear
alba ilia...

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