0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-24 02:28:47 +00:00
OI-codes/S2OJ/1272/data/palindrome3.in

3142 lines
11 KiB (Stored with Git LFS)
Plaintext

100
38
wwi
wip
ra
ct
uao
olk
fcb
nkr
vs
ac
viz
ca
vth
qn
kyb
qnk
fzm
io
bl
ron
zl
eep
yh
cgf
xs
mne
wyu
izh
uyv
gs
cc
vq
th
akd
sc
fs
gy
dxn
20
kub
oxx
ry
dn
otz
zw
cct
gt
ul
glf
ygs
nfg
uwp
nk
oi
nld
sde
omz
tv
jkc
40
qey
xw
agu
oy
yce
jy
po
aoc
fh
vkf
id
nt
kp
rt
hww
xg
jd
gr
atf
fx
rru
bt
ozf
ady
ks
bqb
ta
gne
ab
xh
lw
fsh
yt
fs
hd
wio
gs
pbn
sv
my
32
uj
vbk
dh
il
kz
pcs
ka
fzo
gy
dda
na
pn
ycx
irf
mv
gh
wj
vw
bur
rsp
dd
mz
fas
we
yom
ab
ijo
kj
nr
rw
wxn
jvd
20
ez
ogj
xln
fe
ccm
mk
qdd
aw
cjt
la
jb
yo
yd
hoj
eee
vr
iua
wh
hgz
qy
23
hdm
hhl
is
cf
lv
yu
fdj
nyr
be
cc
as
xvp
gu
ly
fzj
tu
mk
pf
nz
ef
yp
zbt
swd
33
xlq
ra
uco
ud
fvu
as
bw
kmc
xac
lhp
iwd
ol
ax
ruc
vdz
gs
ww
khu
nwf
ge
fo
wwv
dm
gp
bq
dik
na
mpy
bdv
lda
iex
uao
tw
24
isa
gy
ac
hg
go
eg
wll
htc
av
hd
rgm
qzu
oh
ytn
crc
imw
nt
col
kup
pb
fdw
xo
xl
qto
37
gf
kk
tr
ba
uum
aw
fqa
of
ssn
ap
dbw
zd
lj
gb
dka
wu
mj
nb
wx
cvr
xf
gv
hlx
clp
yxd
rzq
gbp
dfn
cv
qr
cju
yvk
bd
er
otc
lfw
wgq
35
xfg
kvk
skf
md
cqr
yz
hve
lrk
spw
wzk
fs
mwk
dd
ihw
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