QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#842532#9959. Acronymucup-team3862#AC ✓1ms3864kbC++14662b2025-01-04 13:19:532025-01-04 13:20:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3852kb

input:

5
ANIA
IMIENINY
AGI
AKRONIM
NA

output:

4
AKRONIM NA IMIENINY AKRONIM 

result:

ok OK

Test #2:

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

input:

1
XX

output:

2
XX XX 

result:

ok OK

Test #3:

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

input:

1
AA

output:

2
AA AA 

result:

ok OK

Test #4:

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

input:

1
ZZ

output:

2
ZZ ZZ 

result:

ok OK

Test #5:

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

input:

1
DX

output:

-1

result:

ok OK

Test #6:

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

input:

1
OOOOOOOO

output:

8
OOOOOOOO OOOOOOOO OOOOOOOO OOOOOOOO OOOOOOOO OOOOOOOO OOOOOOOO OOOOOOOO 

result:

ok OK

Test #7:

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

input:

2
PQKJPTEW
PPPPPPPP

output:

8
PPPPPPPP PPPPPPPP PPPPPPPP PPPPPPPP PPPPPPPP PPPPPPPP PPPPPPPP PPPPPPPP 

result:

ok OK

Test #8:

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

input:

3
QQQQZQQQ
ZZZZZZQQ
QHCRZWFR

output:

8
QHCRZWFR QHCRZWFR QHCRZWFR QHCRZWFR ZZZZZZQQ QHCRZWFR QHCRZWFR QHCRZWFR 

result:

ok OK

Test #9:

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

input:

15
CCLNVN
DMHYTJED
TZO
KFOSI
YZCNZL
AGISS
JSLLNF
XWW
CUZZYRMQ
NSSVJB
IOGRFV
BZO
PHTH
GHOWQLT
UMVIKI

output:

-1

result:

ok OK

Test #10:

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

input:

30
QTYXRCI
SISSXEE
WJQVD
NVEALPGA
PFCWXX
BZFY
INNEGUSH
ASDSK
KXIMISR
AELOAQ
APVPR
EWTNTK
GHQEAPMD
ZIMKMDW
HPIOT
EQNF
JBVT
ECXRSF
VQTHQVF
WUNRN
AVIMNXZ
IUWSV
JONHFOQM
WCTVK
HCYF
GUQKJQ
BXFBXR
OSFQO
WXCV
JCAZMOS

output:

-1

result:

ok OK

Test #11:

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

input:

20
FDNYU
FXGI
FEOIOFX
FQXW
FQWH
FZ
FKAS
FIMXO
FIM
VWVF
MJFI
QCG
JLOMQFQM
XGQQ
FFD
FJQESV
EWAVJ
FOQEXJMV
FOSXXXQM
OJBQEX

output:

8
FOSXXXQM OJBQEX QCG EWAVJ XGQQ JLOMQFQM MJFI VWVF 

result:

ok OK

Test #12:

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

input:

20
BXLJJGVD
PLLSL
KHYQVT
COBT
CTDGDDY
CKKKBTOB
CSSEDDHU
CZVP
CPTXGK
CMTXULXZ
CCKUP
CGBFDTKP
CNFXAWN
CJPK
CGKTWPCD
CBFECP
GLNUP
DPCA
FSWZK
TBDXF

output:

8
CBFECP GLNUP BXLJJGVD FSWZK DPCA TBDXF KHYQVT PLLSL 

result:

ok OK

Test #13:

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

input:

30
SARJWT
SOMOS
SHEATW
SPJJRS
SXXCHPGF
SCLVC
SRIBM
SPYNZGBQ
SUFK
SWZT
SYQXCHW
SPSGJUAO
SPUMRYB
SECC
SGLQQGNX
SQHD
SJUZGU
SSSSSSS
SNIM
SEIZVXE
SQXVJIWY
SVCPN
SOVJG
SOAVCE
SWWRVY
SZBTOM
SFYZI
SYEWICQ
SIAWGEP
SWRN

output:

7
SWRN SWRN SWRN SWRN SWRN SWRN SWRN 

result:

ok OK

Test #14:

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

input:

30
EWDEEDUE
UHEUUE
HDHWDW
HDHWD
WDUUE
EWHDUD
DWUHDDU
UDUWWWHH
EDWDDD
UHUUUUH
DEHWEUWD
EHDHU
UDDUDU
EDHWWHEH
DHUHUE
UUWUW
HEDEE
EDEHUD
DDDDUUED
EUUDHWE
UUHDDEWW
EWDUE
EHWEWHHU
DEHEUUUD
DWWDUUD
HWEDDUUH
WWHHUWH
EEEWD
HHEUUHHH
WEHUWDH

output:

8
EEEWD WEHUWDH DWWDUUD EEEWD EEEWD DWWDUUD UUHDDEWW EEEWD 

result:

ok OK

Test #15:

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

input:

30
UZBMMIE
LZCSBIAE
ABMHMOJO
JUFYBZL
SMNLLAB
TFBCYDVT
DKGVWUCB
RBATRNL
ZBMJWGGI
SWEEBOPB
AWBYHAJE
VSCRABB
QNJQJBH
CYWTAUB
WNYKBJI
DVFYISB
ULRNEBBQ
XVATMBBX
IVABCRWH
TOBETQIB
FOUOQMB
EPBLSTV
ONBSNEI
GLJUWZB
NJTRBOZB
MFUNWMBV
YBVXCPAB
PBLLCDV
KAHDOZKF
HAGHXMB

output:

8
KAHDOZKF AWBYHAJE HAGHXMB DVFYISB ONBSNEI ZBMJWGGI KAHDOZKF FOUOQMB 

result:

ok OK

Test #16:

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

input:

42
PQN
PEUUXIFV
PNPFPPVS
PHCLDFLF
PVCOSYHM
PGUQY
PDK
PG
PXBU
PITFWZ
PVBGJZG
PNGYC
PL
PWXY
PKNWRZP
PKHZZWAY
PSFSAPSH
PHSVJNYS
PFQX
PPUQI
PYQYLL
PNYTMRQZ
PECEWIY
PMOS
PT
PNGRHLK
PNCWXTBI
PSDDWO
PVNBW
PBZAYSF
PIWKGDQ
PSQ
PPASUNPJ
PPZLHER
PMIEDRD
PMHLSG
PHE
POWYH
PDNKWKJ
PWMNVRS
PHBUGHP
PFE

output:

-1

result:

ok OK

Test #17:

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

input:

57
GXJZAIU
XQJHDZQW
DBQACZ
ONUZ
VZ
YZ
LZPTJBZR
KZTLI
VDZ
RVZE
BZ
KKAJZYMZ
TKOWYTZ
DIZJ
CYTLNRZN
IZ
HOLYSZ
OJZ
WSZW
KWWBDZD
GZD
BZA
UZO
MRJWZ
WZT
JRZZKEY
LZ
MBXZUMWH
SZ
TZB
YXVZNZX
IUVZCW
WWZE
NSKQUZXD
ECECITDZ
MKGKUZAP
GGZPTVOX
XVFAZRP
CSFIZKT
HZUXF
OMBZW
TZZA
FNERZSM
GLWFUDZ
UAUQNAEZ
LPUUZ
FURAZL
P...

output:

-1

result:

ok OK

Test #18:

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

input:

70
VTXPIIVL
IZVLVSVZ
ZDWASLYS
PSZWZVGG
PXXSFUJL
PZTLPITY
PZCGZPVZ
PPGPVLPQ
PDTLSDHI
PMGOQBPS
POPCLFSQ
PGVPTJLT
PWZUCIUE
PMLIMAHX
PFGSLUDM
PCLNHZNB
PBQFDEBK
PYNEUHUI
PPLLVVFL
PGTLWZVI
PPVWGPJT
PILVIPWM
PYRYPIMT
PJOLQVVF
PPITUVVZ
PPWRWVWZ
PPGPSTZT
POPTIWVG
PZGPGJGW
PGVVVTGQ
PWITDZII
PPLGYIPV
PKIXNHLM
...

output:

8
PIZUWTZP GCRGPCWN TTTGTAWG LLYINLEY WZGQTWZI ZDWASLYS VTXPIIVL IZVLVSVZ 

result:

ok OK

Test #19:

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

input:

70
BCLMWWUQ
BKHIIZPH
BYNJBYRP
BMSNRUSS
BXFQBEIH
BSSBSBDJ
BMYDNSRP
BHPGQYNP
BBMCDRBN
BLKZPQIH
BSZMDMBM
YUMIHGOQ
BDBDSYWR
BMXBMBDN
BDNNBWPB
BWMFFUSZ
BJLVHIBJ
RZNAMPUD
MMBDMUMR
BENQUPJG
BWQHZVEL
BNSDMYRE
BSJGXNWW
BMYRHPNY
BSYNNBPH
BBYMZSBB
BRSFYMRD
BRMOPYBN
BKVNVSGQ
BZTEWJZC
BMTDIUDM
BDPBRHSS
BUOSAKDO
...

output:

8
BXUGMSUK MMBDMUMR YUMIHGOQ DBENOUPO NWMNRRSP SEPMQGQV RZNAMPUD PDSSPROS 

result:

ok OK

Test #20:

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

input:

100
OLGUNBUL
OFPZUSQW
OLLDYZUZ
FGPUDEPF
OZTFDDPZ
OBGBLGYL
OLXUDGPD
OJTELTDQ
OGFPEBPU
ORFLOKMG
OLSBZPGG
OUOFAOPS
OAHMGVMI
OPHMPKJW
OOAQGVYG
OIFPBFGG
OMUFLLZG
OZGZZPED
OBPGDWBL
OYCIQAEG
OWBCCPZG
OOPBOUOJ
BGUFFDPK
OLOBHIYO
OQTLKQBY
OGQNBKIZ
OFGPKUBZ
OFUBGZHF
OSOGNYAR
GYDFIBZW
OUPCDPBD
OVINXTYC
OATQNVEX...

output:

8
ZUBGFDPL UBYUAHQX BGUFFDPK GYDFIBZW FGPUDEPF DQHRAGCP PULXGGUZ LZVNCVII 

result:

ok OK

Test #21:

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

input:

128
GXRTKX
XA
RM
IXHUS
IWAKOR
IWUUPCCN
IIMOIH
IQ
IFCKW
INICLRA
ICYY
IODIIG
IWSXKXO
IXGOREG
ILD
IYN
IFXFE
IWNV
IWWBSJAS
IL
IUO
IFKXS
IKXHR
IXOIRAGO
IWGGDXRW
IWDVS
IITG
IHLZLQ
IYRSHK
IFWNGWX
IKIWKPKK
IAV
IXBK
IMXN
IRRJ
ICR
IKCO
IFHXOW
IOEKKKKX
ICP
IUMS
IWLRGX
IWWM
IKH
ITJEI
IRWSTSE
IODC
IM
IVVEHVEX
IO...

output:

8
IVERIT OKLO WZOIXGXF KMX FOSIXOXX GXRTKX RM XA 

result:

ok OK

Test #22:

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

input:

129
CDJETYU
CAFVOBK
CBRB
CNETB
CBJJJM
CVJG
CVIWFXXP
CLRDCSAZ
CIEUTK
KM
CUZCLPDW
CHDI
CZJ
CTAO
VLT
CIIBXP
CTUD
CBJW
CETTJS
CIWKF
CDHACFPV
CVQZ
CM
CWYLXM
CUQQTDH
CMLCXY
CEZJ
CBBVEA
CRKUJEUQ
CGBTJ
CQTX
CYLY
CNQK
CTWBVJT
CGNCJQOE
CAWJGBXX
COOGJY
CZPSGFWN
CLG
CLUHHRX
CKG
CSRDZET
CXI
CMAO
CH
CIQVFFSB
CBZA...

output:

8
TUEVBJKQ UKRD EBBERUQ VLT BVJTBEA JD KM QF 

result:

ok OK

Test #23:

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

input:

200
EJ
TVEMQ
RUR
DMGVRLK
ENCIFYY
BZTXW
GC
SJQRG
PANF
SEOLOCX
SHXWVZ
FV
HUQQYGH
HIAXDMC
PRWMFS
AJW
YH
WI
DUO
AVDJFV
OCNO
QYLD
KKY
VWYA
SUAPBS
XRLRZ
QUDE
RAQTXN
JGXWALYC
QC
BTAIBVR
TINFS
FUNPYQRU
GHWUL
NXIDXAT
SB
MVM
ADGEK
KUMFWOO
QDH
CBXCWJX
PFBQ
BWWOVRSP
FCUJLNCH
WCU
HMVOVYCQ
ITVTOYPM
SJYKRIYX
NADZX...

output:

2
ERWWXJSC JQLKWJYO 

result:

ok OK

Test #24:

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

input:

199
NNHUXQSR
NISNCSV
NV
NKM
NMBMIDJ
NHDM
NSHQENX
NUINTNNQ
NHD
NHHUXIRX
NHNHNNHW
NTBVPV
NGLGD
NCEX
NKXEEHLF
NEAO
NVYHYZ
NJMYB
NNIXTX
NTY
NJCB
NPKK
NUSR
HHSHF
NUNTS
USSIQHY
NBJLJEFA
NSBQILCK
NCISNTUI
NQIK
NCKQS
NVLPRWL
NNBATYZG
NIQXGHQ
NINHCTHX
NDH
NAYFMP
NAXI
NTZETNJF
NJNZRVCI
NXCSNJ
NXL
NT
NTSQ
NXOS...

output:

8
NXWNH SCHWCN QUHSHHAX HHSHF IOUQSX USSIQHY CBMCZW XNSR 

result:

ok OK

Test #25:

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

input:

200
FGZOERAI
FWRS
FLDADZN
FYAYGINZ
FZUZH
FSEJK
FHWQVJWM
FGKGO
FTGAHYZU
FOMVKTLL
FKHVHVW
FJMZ
FJVSC
FYORKURA
FSLPHUEE
FJJYXQLM
FBH
INOAEWK
FSSWFHIK
OOZUAHGO
FKY
FPUYRAZY
FQE
FAK
FKFDR
FZPA
FGZE
FDUKF
FQGUKDW
FGOYRQR
FRGGE
FOZGQ
FFDVAQRP
FPCKTJ
FYGYZB
FYXR
FMWMLJG
FZURWYZ
FBVMS
FZN
AUZUQO
FAZANU
FUM
F...

output:

8
YAURZOGI AUZUQO UZAOWOY RYYZUS ZEBDQNV OOZUAHGO GURCIX INOAEWK 

result:

ok OK

Test #26:

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

input:

197
SVT
RMK
RNT
SEO
SHL
RJH
SH
RBD
RBF
SY
RQV
RG
SSG
SEU
RLE
SV
SXX
RTT
SQ
RYI
SWM
SWX
RD
STP
RXC
SUL
RWW
SA
SJY
SLS
SDB
SME
RJO
RL
SMM
SXL
SGQ
RUT
RIW
RNH
ROX
RMN
RDL
SJF
RF
RCL
SLG
SNF
RLO
SMP
RYK
SBM
RP
SPT
SWS
RNV
RQ
SEA
RRX
SJ
RKO
RDD
RI
RU
SDY
SB
REU
RGX
RZV
SX
SGD
SLC
RSC
RE
SCW
SIC
SWT
RZ
RF...

output:

3
RC RC RC 

result:

ok OK

Test #27:

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

input:

195
VE
EASFEB
EYRAUXW
EPSAV
VPB
VS
VDR
ESD
VAUYWT
EQXCCTIQ
VI
VCN
EGIF
ERL
VXLTUJUH
EKOKGSP
VK
VNKVAJ
EDSTKC
VWPNQNOZ
VFN
EKTIPJ
EPIS
EIDX
EMM
VPKYNEAB
EWNVZ
VCWT
ESEXXKS
VJOO
VDZBPLFG
VEG
EHYL
EZIVGUDL
EKVWEVR
VOXY
ETMWELJ
VUDDLSSU
VUXM
VKKLJHJC
VVS
EORRIGO
VZNXTSP
EMLCJJ
EEIX
VOGTAMYV
VBBGE
ENBC
V...

output:

2
VYBIQQ EWIX 

result:

ok OK

Test #28:

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

input:

200
UUGZBOXK
WXPEYGM
UBEBVOSV
YUUCVCWC
YZBISJL
VCMKNYS
UQJSMSGK
UWDEBJKS
WZKBICU
UCGAFIES
YZPLOGO
WOBIQYA
YUDXEWTZ
YPECVQJE
WTRFQUR
YCUQJWQL
CKAKOZSM
UONHHNH
YHHSVRZZ
YPVBKLI
YERGHZC
YJKNAJPM
CVBETGZZ
YKONPXPJ
WAEQTRS
VPSQXOXY
YUUEXQY
ULANGJE
WCQBWLT
VHROZKWD
CVNSMQW
VUYVCWUC
VSSBXITX
CGMLVKNH
WBSXE...

output:

8
YVDAICPJ UGIULUOT UGIULUOT CJNCGOUP VPWQBGI CJNCGOUP WAFXYHH CJNCGOUP 

result:

ok OK

Test #29:

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

input:

200
XTNNAN
SWN
MFAFM
GDN
RNDV
LNC
XV
TLBZ
XXG
JMLNB
FK
JWIRCBWN
DJPCUO
UXRN
ENKLW
LRKNM
YDN
PSNNV
ZMOUS
CFZNOH
JZSDJDNC
YWNANA
YN
FRCINB
IN
XPMOY
EXUYQVO
FUNLNH
RKFWRWNH
ERGSOEN
BKYN
FT
LW
ZECE
BMPEPV
JNVH
ANK
UZSCRU
UN
BDNG
RMDDYHN
VE
VTP
VQQMVP
RSGNTJWA
YNFXBKYM
WHFNJVKV
ZNEUIWPK
BNYPIFWX
LABNU
FB...

output:

5
MVVVPCWD FZCKZFWR AONOJR FZCKZFWR MVVVPCWD 

result:

ok OK

Test #30:

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

input:

200
JBA
QFO
NRS
JSW
GK
MSW
GCC
NEH
YXP
OPI
GOA
OOC
NRB
YAI
PZ
NJX
PZI
GV
OB
GCN
OK
GT
OTA
GIV
RNC
OCF
RV
OT
OE
NXC
PEZ
PDZ
QWI
QKP
HBX
JI
QMI
HK
PBK
OST
JGA
QV
RI
JL
MLV
NDT
OPV
YCW
PXY
QE
PAJ
JSU
QZ
PEX
GD
HKE
YIX
RUS
HS
HU
QT
RIP
YML
QS
MU
JE
MXC
HB
NZU
RW
PSH
NV
NPB
JX
GF
RTB
OF
OUK
JA
NUI
YIB
JN...

output:

-1

result:

ok OK

Test #31:

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

input:

196
NRSVN
NLEH
NETR
NGQC
NVOO
NJGHMAT
NOYZJ
NFYPHOH
NPXXHIUE
NWZ
NGRLFGGS
NQMUI
NDCRAZ
NDKAKEWT
NLWWIN
NGLWP
NQDWC
NKZAJFC
NSJKI
NFQWQPVL
NRTPTT
NFRSVY
NAFJJZDD
NEWNK
NUSS
NMQKQN
NYMJLEZS
NNAB
NUB
NC
NBNMCZW
NXOKHB
NFCIU
NSGOZZBL
NPNYHIR
NFIFGZ
NJCV
NOSLKVW
NETD
NPDYBLW
NZRMMIYQ
NZQ
NHENDDU
NZPF
NX
...

output:

-1

result:

ok OK

Test #32:

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

input:

200
TVPMPLP
GZZON
GH
KYDPJN
ESRV
ZISZGKBC
TMUJP
AFVIC
QYDBY
FGJ
GPMA
WLVGSB
QBB
AC
AUAO
KNEEXC
NSP
GHLATS
DCKJXWPY
TJVNED
ACC
AGAOWIR
TRAXJASN
NJFKZONY
KP
KJSUYBOB
ZFLINE
QV
EPJTOGB
KFQSYZ
FIHU
KZZOWZM
ZZPE
QOLW
ZSOAWXI
ZJ
KRY
TXCH
GSO
ARVUHXW
TYO
GKVQRRS
EIS
DVAM
KTBC
TKS
NTKH
DKB
ABUYN
ESQGCVU
TX
...

output:

-1

result:

ok OK

Test #33:

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

input:

200
EOIRV
XMR
HJXIRA
CTQPDCRK
HR
LAIR
TZOORI
QGSR
LYRCSTQ
SBJSPR
SFFRM
NRVRMJE
PRGG
JNORRJRN
LHRCRUW
KRFDB
CBYNRBD
GRNGDHNT
URMR
PERS
UNWJR
XROA
GIR
WCRMD
BNORPR
QVPR
SMATRY
JOTIRBPR
CGAROFCT
JORE
GARR
IRWD
NRCECJMV
IR
WGR
XERY
DSKRTVR
ZRTRRH
HAKTCRQ
FWQR
NORFO
XRJ
YQNREX
VCPORV
YHWSER
LFZRHP
VRWTAQ...

output:

-1

result:

ok OK

Test #34:

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

input:

200
SQWBJRQC
SSUQCRUH
SOGQGEGE
DFCPTMLR
DGIKQCDQ
DPRZBDST
SKVIMTZL
SNQGXIII
SETGJZQX
DJIIZQYP
SEQUWJAN
DVPFJNVT
DENFSKBC
DCSJNUCW
SLUFOUNL
DCUTNHKE
DRKRLKWH
DRARPWUR
DVUGVTGU
DPSJTONT
DGFOOGNR
DBGCVVTY
SYNVLKVC
STLYOAFG
DCRNHSWH
DPLNPMIP
SZYUXVYA
DEGPXFJE
SLCRXLQD
DBHFRZSS
SMLFJYTO
SXTPQKFR
SURAPTVX...

output:

8
SOLBEAGH SOLBEAGH SOLBEAGH SOLBEAGH SOLBEAGH DCNEJLME SOLBEAGH DCNEJLME 

result:

ok OK

Test #35:

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

input:

200
SFAEAOIV
TFZSNMOK
GYUHRDCX
GASTGBTW
TKNEVEVM
ALZOKWKI
FJQVWWCU
BKYRFUGH
BPQCKBAV
BXDJBDFK
GDLLAKFF
XHPKIPOF
BGCCLCZM
IEKZCRSX
TAMMPRJX
WSNLIQZH
FJCIIRCM
ACOWJRQO
TFYJFRPA
YGMKRMNS
GNOKYVFM
ADIJEDBG
FGMADFHE
XDJXOEQK
GZEEFKZK
YMNXULLF
FNXHVQLL
AITTCZXN
SUEGBFJS
YVVQREPW
FBSOSRNB
XGELHZKD
AFNIQZQV...

output:

8
GIHDQEBN AWNLFECL SYHRUJTG TUTRLZYH GIHDQEBN BWGJOXUE TUTRLZYH WMUYDHWM 

result:

ok OK

Test #36:

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

input:

200
DUIEMVBH
OROZVVQM
HMTJUMDJ
SLCRMPUY
FZMXWFRH
KIMPGTNQ
WOXCDFVM
ROMCLOMQ
HWACDKHM
HTYEWMNX
BQOMBEDQ
XMOEEDBB
XMRZKMLA
UMJJMEUT
RPMMZKWJ
HAPWZYMW
RMWDTQIU
XUDSNVMK
RCIUZXCM
RPVLMNJL
AKMOGKXL
GMZALOJE
IOUDDJMP
PCNDLMCD
ZTMVNHAQ
ENKYMWRO
QGBMMGLY
JHKXHAMR
ESINVMAA
NECYTVXM
CENIMGHP
IWYNKHIM
OJQCTDMX...

output:

8
RUAMMECI RUAMMECI QNTWJYMB TYTRMMWK ZMESHNOQ ZMESHNOQ LTMRXHVZ TYTRMMWK 

result:

ok OK

Test #37:

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

input:

200
YZWTDNTM
FPQJNOWC
YGWWBTBH
YQRKPKCQ
APWHKXTQ
YTPNWPRW
AIAXOTJI
FGGZZBKK
AVJSXGMX
YGOERPDY
YJRDHWAC
DBUMKNEU
AHTGSHSC
ACNXQGKI
FBULCXIM
YUHZXHUG
FYLVEUBW
YLXJZWBT
ALARFGLB
FZMSWUFG
FWJGSPKY
YZBQDJEU
YXVVUSJB
DMQXWYBA
FYDYYFFA
AVCFKEQJ
AFYSMTMT
YDQRPIXJ
YBEPKXNQ
FOMLYVTJ
DDUQGSEV
AQRENTWA
ASQTBWZM...

output:

8
FSFUSFYL YYJLBSQT DNWDBIKM YYJLBSQT YYJLBSQT FSFUSFYL FSFUSFYL ABEZZBLJ 

result:

ok OK

Test #38:

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

input:

200
ASYJWULD
WJKQQKKQ
QWLSQAHQ
YOPNVATQ
HSKDYQDL
EHLAIDDQ
EWIYKAIJ
LVXEZDCU
SHKWIESK
JIWXVICS
SMKACCPX
DNZCBBMJ
EDUKLQJK
HXDCUASP
SRVGBFFV
EUSZTTUR
WYIEEYSL
SIIWLIQA
HAQDYDJA
IDADIWIU
YUQDIYIA
JXLQLMSP
WHNMBCOT
JDEHNWMN
KHBBGQNW
YJAHWASI
HIPOUTSW
UKQKHAUD
UWWYYELS
JREOBXLH
HYQURIEL
AUATLKKG
SAYYYHUY...

output:

8
AGFIBFBG SEJYKWIS YDQORPFH JEHFENNW WKESLAYK UUSIQWEL LFQNPNDV DEYBRQOW 

result:

ok OK

Test #39:

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

input:

200
CFDCKALQ
TYUOOSZO
MZRIUKIT
IPQIAJZB
NSVSBDFF
XQHSXIMI
LHWFSDKG
NEFXKFAK
JSVABJFA
TMASUHEK
HJJNRSTS
OGSTCUWT
XGXJPOUA
WIOOBAHY
FLKUIJUC
HHSVGTIQ
XUGMBKQS
NSRTAQRX
BJRVEOXH
VZXTXREZ
JGBOGBXY
GUZPNFGV
KWBSUTCH
ZMPFVOQM
ODFGYPCQ
FJPZEOCG
ILHQCNTT
ZMAJBVMZ
SVMFVMBZ
JAIEGKWX
XBXCFOZD
FXYZCARJ
RTGGMCLJ...

output:

8
CPYUCHVQ FQTLKLDO DOBMQEXI CPYUCHVQ KTMHZHCR ARADMMBQ LCSPWHIS QGZSSIEQ 

result:

ok OK

Test #40:

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

input:

200
BRRPMXXC
BTHBHHJX
BSUSDUMD
BAVQOPII
BPNJNEPC
BGCPDBAO
BAYNMRCA
BRVAEUPA
BZJXZVAM
BMSEIFPD
BADITACA
BVGSBYWE
BQYJIMZS
BNJOPTQM
BCEZXHGX
BFTJKAPU
BRDYXHZU
BRZJHSTY
BTFOBFLI
BJIGHZLD
BPNCKYTG
BZYDTZPR
BMFDOFRR
BVTGZOKB
BZZQLNVJ
BTXKVCRB
BPMTFGCW
BXDTALLE
BMZSAXPA
BUYZDXLQ
BFUEKTSO
BECJHQDH
BAHXWTFL...

output:

-1

result:

ok OK

Test #41:

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

input:

200
KCNQFABZ
FPPCKLLG
THJFHCCH
LOHUJZKA
RTBNDBQU
KCVPKWCE
OQBJWZUK
FYLLVDSB
KBRHBXHI
RSQPEAJB
MSHVSFXO
ZBKKXWKH
ZMWJUEDX
OEVWPIHD
VAVQUUHF
IWWNERPW
RVIRTWYX
VKBLJDTD
ZJFBKSCS
LMJHNJBK
QZXGSYKH
OLAGWFFX
KTKQEESH
VGOPLHHM
YSEEVCWR
GOBVOSHT
VLMBZUAE
LSNMMPEM
MDOHVZLJ
FLSUDXAL
LFMLPKCZ
LPHRFBTA
RBOZPOIA...

output:

-1

result:

ok OK

Test #42:

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

input:

200
NBYZQMKX
HWMOFUNR
VUSLMFWT
IBSHPPZM
PFVMYMGP
GMINMFWH
VNZFEABM
CEBMWCOJ
PXAZAWMS
ODVSZSDM
OHMCYWPG
ADOZMZXS
UMYOIJVU
JAMOPQZK
IIKMHYUQ
LEMDFWJT
IFKMKXTT
SPZYAMKX
NUEMATFL
TXKUGUMO
BPKMEORS
ZLLMXDVJ
QMBBLLHY
FNJGFWPM
TUQDMWEP
DDCIUGMN
JIJJLTQM
DSGTPMKF
NMIKNJYS
AZJKTDMU
KJLMSFZE
EJBMEPHS
BMTMCYEI...

output:

-1

result:

ok OK

Test #43:

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

input:

200
MPCDVRIC
WKRFIGJS
HRXOENFH
ZSQCJYOW
GGJXNIMW
MXPDXBJS
LQZOGVAN
AWWIGDGW
WDHBQHLM
YHIJWRGF
XVXSKFBU
QUITXXLP
HEFBJJSP
XPMXNNRC
WFNSSUMM
HFYNIGSZ
ZUJDIAME
ANDRYDQY
SLEQCHUH
DONLJDZT
STKAPWJV
XQUOUZEO
TSSVHOQH
JKNXVUGI
ZXDFQMGY
BENKXSES
LFDKVFUR
HWVLCGWH
XRAHRCYC
VIIEJOLU
LEAFRIJA
DYZRAQMT
HBFXAFDJ...

output:

8
MCYLPKTQ PWMWDTQS CKHWSEHH DXTJHLUP VICGEIUM RONCWKUO INAHWQBX CKHWSEHH 

result:

ok OK

Test #44:

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

input:

200
HYOLIWAH
YYUHVTUY
UTTJWTAH
AYAAZIAH
ANACBRQM
ASDSRKBZ
AYOTUIXA
AZQHKCJX
AIITPYYU
AITUAYYD
ADMEPAXJ
ARNULRVC
AYPATOIO
AHKFGULB
AZZPLQXS
AOROYTWO
AOUTCOWH
AYZDJLVW
AATSAWWU
APOYIYHH
AQOVQYVD
AODITYUO
APLLGAMK
AMKTAZCC
AUTIYWHO
AUYYIURU
ATIOTYBO
AYOHEOHI
AUJOOUII
AVXQTBGI
ARCQDBAE
AUNUWATI
AOTWFIYO...

output:

8
AOYWAALA UTTJWTAH TVQRUMOK IQMGTEPA YYUHVTUY WWJTTHAO HYOLIWAH OLLQZVSW 

result:

ok OK

Test #45:

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

input:

200
ZSEAGYZM
ZAYHVBHH
ZEYZMGDM
ZSSYIGYG
ZZGUMEMW
ZYGYSZYB
ZUAFNSCZ
ZUURWDGL
ZZMCMYWM
ZYWGKYGR
ZBAFHPPX
ZSDGSYSY
ZUVLNVXI
ZNCAXLKS
ZWILVGWP
ZRYMWWKY
ZYZFEZSS
ZRZZIZEY
ZUMGZRER
ZRSYWMIS
ZWEYNZRG
ZZGYMFZR
ZLJUBAFP
ZGYERCME
ZSZRAESW
ZZZZRZXR
ZZCWHTOV
ZYYWMGZK
ZMEMHRRR
ZMELMWWR
ZRSEVYZM
ZIRPAZIP
ZZGZXWWZ...

output:

8
ZZMGMQSR WPVGCUML YYYSEYGT MNERZWSZ SPBPPXQB GQQMCEXM EKGBIAEC RWJWYZGE 

result:

ok OK

Test #46:

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

input:

200
CSGYMEKB
CLYLSGWE
CXIYXDYN
CLLGGYET
CGGLRNJJ
CPZMHVNQ
CPCACSBX
CGTHJPRL
CVZWIKYJ
CUHCHIOV
CRZYDSQM
CGJPJKGP
CCDBXLYQ
CKXPPEEP
CCBVQAXO
CUPAVHZX
CVXIUMUD
CPEDETGT
CJPEGJSG
CDZKIGRZ
CCBSEKVV
CSJJXIIJ
CRQXXTTT
CWRDKEHK
CVUELWZI
CFJMHYXC
CICBBFPZ
CJJEEZLP
CJZPELEG
CNVYWVFS
CGXWTRLL
CDVCAXCZ
CXPLLSER...

output:

8
PLXGRTJE LLJXAEPJ XXTLLPJV GGZBIZAQ RXJJLARP TGTJJIPE JQVQKTDL EGCGJRZU 

result:

ok OK

Test #47:

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

input:

200
KMGQWWQF
UTJWSTJF
IISTYWQF
ECGMPIJF
XYCCMGTF
ZIQMGCOF
RITCMJCF
USMOIMWF
LJOWCMPF
EWCWSTIF
EMATCPQF
VYITMJIF
EITQGTIF
ZAPJIOTF
IAIOYSCF
XISSPTTF
VQYPMYSF
BMGIMQMF
ZIIQJAMF
DMWMTCSF
ICMTTIGF
BMJQCJIF
ICYSYTTF
NSOCOOAF
NOWPOCSF
ETAPAPOF
KYOTSWWF
RQMAWPJF
LQMCTCYF
NTOOAGSF
IYMQAWTF
LAOYWMWF
ZTYYWTWF...

output:

-1

result:

ok OK

Test #48:

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

input:

200
WMCCKCLQ
VMKNCRKZ
JMDZBLLL
PMKZRCAK
OMIIDIND
EMZQQRFB
WMFBBBLL
VMKNDNDA
TMLNZZQB
GMKAYIBN
JMZDQIDN
UMCDQQKF
HMYBBRQC
JMQNIALF
GMACDBCF
GMBRYCCY
PMFKDFAR
SMQFNFLR
WMAYRBYQ
GMZKKNFI
WMNFDFYD
EMACRLCD
JMIABIFD
OMRLIDBZ
GMQABCFN
HMCRCYQF
UMBQBRKF
TMICRDKC
OMIFNRCC
EMKQDYRA
UMYNFCQN
WMZABABI
GMNNFNDI...

output:

-1

result:

ok OK

Test #49:

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

input:

200
NPJNEPVW
HGHGEVPW
KGJQKPQW
EVJNGEUW
PJQKGPKW
UVVZKNZW
GHKZHVPW
JVOJPOMW
ZHPJOOHW
MEOUJQNW
OEHONKEW
QZQHVEVW
SHKUPNPW
XNEGHVEW
ANOKNQEW
AOHNJKVW
FVOKKNUW
ANQJEQMW
VMMJQVKW
XUHMPJUW
AEHJVUGW
VKEKEKEW
VNUVJQZW
VJHJKJGW
IUGHGZMW
YVHGNGEW
VHGJGMJW
VUZPOPNW
RNKOGENW
TJVEUKKW
LGPQOUMW
XJQJQZGW
BOQENUQW...

output:

-1

result:

ok OK

Test #50:

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

input:

200
SOWZWACK
HOSGXUZY
YOSSHUWD
NOYNUAGC
XOYZDCWH
ZOKWCKKC
GOWUZAAU
DOWNCWYW
UOYXUWCW
KOCGWDWS
COCYHNGY
AOCNCGDH
EODYDWAX
VOGSGNCU
LONGXGXD
WOZXUXSH
MODUXSNC
LOXCZWSN
QONYDYCW
JOXGSDUZ
QOHKGGXY
FOZZXNGD
BOCKKNWX
QOCXDANA
POZWDACD
FOASKZHY
BONCGGAU
FOCKKDNY
IOZXWGCK
ROCDXUCC
FOCZADWC
MOWKDNSD
QOCGAWCD...

output:

-1

result:

ok OK

Extra Test:

score: 0
Extra Test Passed