QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#738931#7994. 勿蹖宠物NailongGroupWA 1421ms15052kbC++205.9kb2024-11-12 20:18:392024-11-12 20:18:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 9944kb

input:

7 9
cats
eel
eve
evil
lee
olive
stack

output:

5

result:

ok single line: '5'

Test #2:

score: 0
Accepted
time: 1ms
memory: 5880kb

input:

2 2
a
aa

output:

2

result:

ok single line: '2'

Test #3:

score: 0
Accepted
time: 1ms
memory: 5908kb

input:

6 12
aa
aab
no
on
pets
step

output:

43

result:

ok single line: '43'

Test #4:

score: 0
Accepted
time: 11ms
memory: 7788kb

input:

26 1000
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z

output:

710955506

result:

ok single line: '710955506'

Test #5:

score: 0
Accepted
time: 2ms
memory: 7880kb

input:

33 18
zrkodfkhhkfdokrzo
ytcbwrgyygrwbcty
makgiybggbyigkamc
aptmvovgccgvovmtpa
yydxdzhhhhzdxdyy
iadqfexoxacojythvk
iagcfiwlaalwifcgai
rtfzhddzzddhzftrm
vkreigbdyxfiuvyqid
mbcgnvrvvrvngcbmc
lywbtspuyyupstbwyl
bmjxalsyyslaxjmb
jrbminaooanimbrj
wwrajerkkrejarww
grocaiqccqiacorg
efvibgurrugbivfec
ilyzrft...

output:

9

result:

ok single line: '9'

Test #6:

score: 0
Accepted
time: 0ms
memory: 7812kb

input:

33 18
babbababbbbababbab
abbabaabaabaababba
aaabbbaabbaabbbaaa
aaabaababbabaabaaa
ababbaabbbbaabbaba
baababbbbbbbbabaab
aababbbaaaabbbabaa
bbbbbabaaaababbbbb
aabbbaaaaaaaabbbaa
aabbbabaaaababbbaa
bbabbaabaabaabbabb
aababbabbbbabbabaa
baaaaaabbbbaaaaaab
aaabababaabababaaa
bbaabbaaaaaabbaabb
bbbababab...

output:

33

result:

ok single line: '33'

Test #7:

score: 0
Accepted
time: 2ms
memory: 7936kb

input:

33 18
babababaaaabababa
abbbabbaaaabbabbba
bbaaaabbaabbaaaabb
baabbbbaaaabbbbaab
abbbaababbabaabbb
aaababbabbabbabaaa
abbbbbbabbabbbbbba
bbaabaaaaaaaabaabb
aaaaabaaaaaabaaaaa
abbbaabbbbbbaabbba
abbbbaaaaaaaabbbba
bbbbbbbbaabbbbbbbb
baabaabbbbaabaab
bbaababaaaababaabb
baaabaabbbbaabaaab
bbaaaabbbbbba...

output:

27

result:

ok single line: '27'

Test #8:

score: 0
Accepted
time: 0ms
memory: 9872kb

input:

33 18
bbbababaabababbb
abaabaaabbaaabaaba
aaabbbbbbaaaabbbab
aaabbababbababbaaa
abbaaabaabaaaaabbb
abababaaaaaabababa
bbabaaaaaaaababb
bababbaaaaaabbaba
aaaaababbbbabaaaa
aaabaababbabaabaa
abbbbbabbabbbbbaa
abbbbbaabbaabbbbba
abaaabbabaabbbabbb
aabaabbbaabbbaabaa
aaababbbbbabababaa
abaaabbaabbaaabab...

output:

8

result:

ok single line: '8'

Test #9:

score: 0
Accepted
time: 1398ms
memory: 14308kb

input:

199 999
lbl
buei
ieub
uw
wu
impv
vpmi
yrek
kery
cw
wc
hjs
sjh
bct
tcb
up
pu
wh
hw
ftn
ntf
iv
vi
ejpj
jpje
qjgh
hgjq
kvny
ynvk
xo
ox
pr
rp
sdh
hds
go
og
qw
wq
bgt
tgb
czwk
kwzc
coqr
rqoc
af
fa
ms
sm
gs
sg
hnz
znh
rugm
mgur
lak
kal
xlv
vlx
na
an
fdoe
eodf
oixg
gxio
mb
bm
bjt
tjb
bto
otb
oxq
qxo
tg
gt
...

output:

810133722

result:

ok single line: '810133722'

Test #10:

score: 0
Accepted
time: 1391ms
memory: 15052kb

input:

198 999
eme
hm
mh
msi
ism
ig
gi
kmm
mmk
nkxq
qxkn
uv
vu
mgj
jgm
zyap
payz
xz
zx
oi
io
spe
eps
kr
rk
pqp
pvyw
wyvp
pk
kp
nrin
nirn
ehj
jhe
vb
bv
fnzq
qznf
lem
mel
lxek
kexl
sy
ys
smcs
scms
xaq
qax
zdsn
nsdz
pudp
pdup
zt
tz
op
po
oe
eo
cea
aec
df
fd
om
mo
zr
rz
wabq
qbaw
ehde
edhe
cq
qc
utd
dtu
rj
jr
...

output:

165733504

result:

ok single line: '165733504'

Test #11:

score: 0
Accepted
time: 1406ms
memory: 15032kb

input:

187 999
dcd
ede
bbb
ga
ag
aead
daea
ec
ce
bf
fb
ffg
gff
bde
edb
efc
cfe
bb
aged
dega
cea
aec
accg
gcca
cge
egc
gb
bg
cfcg
gcfc
fgg
ggf
bffc
cffb
fg
gf
bac
cab
adfb
bfda
ff
adfe
efda
ggaf
fagg
age
ega
cb
bc
acbd
dbca
bbdd
ddbb
ee
fegg
ggef
gca
acg
ffab
baff
gdb
bdg
gee
eeg
babb
bbab
bfe
efb
be
eb
ddb...

output:

359867349

result:

ok single line: '359867349'

Test #12:

score: 0
Accepted
time: 1421ms
memory: 13912kb

input:

189 999
beb
dfd
fbf
bcb
fef
aaa
gdg
eg
ge
ebc
cbe
eaf
fae
bf
fb
daa
aad
caec
ceac
df
fd
eca
ace
gdge
egdg
adfb
bfda
dda
add
bcdc
cdcb
ed
de
ggaa
aagg
bge
egb
fgf
efd
dfe
acbb
bbca
ac
ca
bg
gb
dbge
egbd
da
ad
gbf
fbg
ccae
eacc
eaa
aae
cea
aec
gc
cg
feg
gef
eebg
gbee
ccga
agcc
ag
ga
aa
bb
gdf
fdg
bagd...

output:

559580115

result:

ok single line: '559580115'

Test #13:

score: -100
Wrong Answer
time: 1421ms
memory: 13916kb

input:

201 1000
cni
inc
shxg
gxhs
xfpi
ipfx
ymt
tmy
sx
xs
bqe
eqb
mwg
gwm
mb
bm
lbtj
jtbl
dx
xd
srra
arrs
gmyd
dymg
ot
to
zrv
vrz
eojb
bjoe
he
eh
fq
qf
vrc
crv
wdev
vedw
ey
ye
nrh
hrn
kuee
eeuk
syy
yys
xw
wx
hjrn
nrjh
btyx
xytb
cdop
podc
uj
ju
il
li
kief
feik
ao
oa
hhfc
cfhh
ev
ve
jbs
sbj
plle
ellp
iz
zi
q...

output:

765337813

result:

wrong answer 1st lines differ - expected: '56283946', found: '765337813'