QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#541149#8935. Puzzle: Easy as Scrabbleucup-team3705#WA 27ms16496kbC++238.0kb2024-08-31 18:45:412024-08-31 18:45:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 5
.CBA...
....x..
..x...C
A.....B
B..x..A
C......
.......

output:

YES
CBA.A
C.AAC
AAAAB
BA.AA
CAAAA

result:

ok Correct.

Test #2:

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

input:

1 2
....
Nx..
..O.

output:

NO

result:

ok Correct.

Test #3:

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

input:

5 5
.U.N.X.
U....xX
Ox....X
M...xxN
Vx....S
Ix.x..X
..IBHX.

output:

YES
UXNX.
.OBAX
MNN..
.VBAS
.I.HX

result:

ok Correct.

Test #4:

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

input:

10 10
.BAZEMIEKUJ.
A..........K
B..x.x.x..x.
K.........xT
A.x..x.....J
Hx....x....B
Q..x....x.xW
S...x......W
S...x.xxx..Z
...x......xZ
I..x..x.x.xR
.QKO.ID..RW.

output:

YES
.AZEMIEK..
BK.A.D.AU.
KKOAAAAAT.
A.OA.AAAAJ
.HOAA.AAHB
QK.AAAA.W.
.SO.AAAASW
.SO.A...Z.
.K.ZZDZZZ.
...II.A.R.

result:

ok Correct.

Test #5:

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

input:

5 10
.PTWIVVISPY.
T...x.x....Y
Xx.x.xx..x.K
P.x.xx.....K
S..........A
E.........xS
.SPEASDCYSA.

output:

YES
.TW.V.ISPY
.X.I..XA.K
P.A..VAAAK
SPAIAVAAAA
..EASDCYS.

result:

ok Correct.

Test #6:

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

input:

10 5
.HVYN..
Y.x...C
V..x..B
H...x.Z
....xxN
....x.P
B.x...G
Fx.x..D
Txx..xK
E..x.xR
Sx....B
.EPSBD.

output:

YES
..YNC
.V.AB
HPA.Z
NNN..
PPA.P
B.AAG
.F.FD
..TK.
EP.R.
..SB.

result:

ok Correct.

Test #7:

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

input:

50 50
.YDOGQIDENEUMONVSGZNMNHLEZCXIRMK.OOCKJOKXXZDUFEMPXS.
Y.x...x.x.x..x..........x.......x......x.....x....xX
N.........x.....x.....x....x.x.xxxxx.x...x.........E
U.....x.....x....x......x.....x........x..........xS
...x......x........x..x.....x.x.x........x.x.x.....S
Q.....x.x..x..........x....x....

output:

YES
Y.OGQ.D.N.UM.NVSGZNMNHL.ZCXIRMK.OOCKJO.XXZDU.EMPX.
NDAEEIEEE.EEOEE.EEAEG.EEAE.A.E.....E.EKJ.AAEFEOEE.
UAAAA.AAAEA.AAAA.AAAGAA.AAAAA.AAAAAAAA.JKAAAAAOAS.
AD.AAAAAA.AAAAAAAA.AA.AAAAA.A.A.AAAAAAAA.A.A.AAAAS
QAAAA.A.AA.AAAAAAAAAA.AAAA.AAA.AA.AAA..AAA.AAA.AAL
FAAAA.A.AA.AA.AAAA.AAA..AA..AAAAA.AAAAAAA...

result:

ok Correct.

Test #8:

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

input:

100 100
.NUXAMX.LNWZKRRKZIRNZVDJF.XRB.VEFQXHTGLGIKZYSRPPF.YGVTOSQCADEG.KYKH.NWWO.XDXJW.G.RBHABFLWHFVUNOLBHMKN.
U..x...x...x....xx........x.....x.....xxx..x..........x..x...x..xx..x..x..x............x.....x.....x.N
C...x.......x.............x....x.x.x..x........x..x.xx..x..xx.................x..........

output:

YES
.U.AMX.LNW.KRRK..RNZVDJFC.RBNVE.QXHTG...KZ.SRPPFKYGVT.SQ.ADE.PK..HZ.WW.QX.XJWYGBRBHABF.WHFVU.OLBHM.N
.CX.CAAAAAZ.AAAZIAAAADAAA.AAAA.F.R.BZ.GIAAYAAA.AK.A..OA.CA..GAAYKAZNAAOAADAAA.DBAUAAAA.AA...NAAO..KO
.OAAAAAAAAAAAAAA.AAAAA..A..AA.A..A.AAL....AAAAAAA.AA..AA.AA.AAAAAAAAA.AAAAA.AADAAUA.AA.AAAA.AA...

result:

ok Correct.

Test #9:

score: 0
Accepted
time: 9ms
memory: 6692kb

input:

500 500
..FHFDLGFGHREQBGILNRAGJ.ERZSAFGLQ.ESEBI.ELKM.RENLNFQSPT.TXUEIKHHOQWABSELMOPGTFGTXGYMTSU.N.O.AX.OGNSWTFSLUIMTUX.RUCECKZCXOJNPTFVAJUJTF.LHXURYIQIJCVWDBVZ.ZXFRAT.XIPXTDCSLHJHSZCW.RMNUGPIHYUQYUYAY.NHCBU.JPMLG.DDXAJWKNZJVKNAWAJZAHW.FCBEVATZ.YZ.HQ..QPLFARSHNP..EDPIKLYLF.FIFXEXR.XSUORAP.CZPMJXPUS.W...

output:

YES
A..FDL...HREQ..ILNRA..OERZSA.GL.Z.SE.IL.LK.H.ENLNFQS.TWTX.E.K.HOQWA.SE.M.PGTFG.XGY..SUC..OQAX.OGNS.TFSLUIM.UXR..CEC..CXOJNPT.VA..JTFJLHXURYIQI.CVWDB.ZI.XFR.T..IPXTD..LHJHSZCW.RMNUGPIHYUQY.YA.IN.CB.UJPM.GYDD.AJW.NZJ...AWAJZAHWAFCB...T.CYZ.HQLNQ.LFA.S.NPBWEDPI.LYLFI.IFXEX...SUO.APVCZP.JXPUSFW.D.WU...

result:

ok Correct.

Test #10:

score: 0
Accepted
time: 27ms
memory: 16496kb

input:

1000 1000
.SKFDQ.AV.GPTHMF.PL.YOQRQOXDOF.XVZ.H.MYOJIYT.QZNJQI.ZZMAJ.OAWBJBRXFW.CLEPPKGGAWGTVBKOBL.GPCO.ML.DBL.A.RJ..GF.EHK.CDXLLTCBCL.CGYJBMUSPIN.QELGYW.JE..CFVQF.LVYLFHYJ.MY.FZ.RU.ODLAYTWIZQOQZXBW.BVD.RFPLHLEHAU.G.PLFWFUKA.RSG..AVU.SA.PWRGJYO.OXD..S.Z.LIIADT.YXH..NHWXY.R.YFLS.URIJGPPURZPPVHJFLMKTDT...

output:

YES
S.FDQEAVSGPTHMFIP.TYOQRQOXD.FQXV.Q.M.YO.IYTQQZ.JQISZZMAJCOAWBJBRX..JC.EPP.GGAWGT.B..BLAGPCORMLVD.LHAQR.Q.GFPE.K.CDXLLT.BCLQCGYJB.USPIN..EL..WKJ.G.CFVQ.OLV.LFHYJCMY.FZDR.QODLAYTWIZQO.ZX.WI..DFR..LHLE.A.FG.PLFWFUKAQR.GBJA..TSAQ.WRGJ..QOXDIQ.QZ.L.I.DTQY.HFKN.WXY.RSY.LSL.RI.G.PU.ZP.V..FLMKT.TWI.ZKHZ...

result:

ok Correct.

Test #11:

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

input:

1 1000
.K.CCS...LC.....Y..J...E.W.B..Q..KQ...Q...L..U.XSWX..NB..K.OLF...Y.A....HG....RRQO..Y...J.LOS...IN..C......H......X.....B.B.PQRT....VB.........P...E....MF.E...RH.XADCQN.D.KT.W..XNI..PH.Q.L.H..G...ZJR.V.I.......O......J.X..N..QS......UN....HLS..Z..N....X.YH.W..E.Z..JHSAV......YXT.P..TX.WT.SHE....

output:

YES
KPCCSPP.LCPY.WPY.PJ.PPE.W.BPPQ..KQ.PEQD..LTPUPXSWXP.NB..K.OLF..PYPAPPP.HG.BH.RRQO.PY..PJ.LOSU.PINP.C..P.PPH.PPP.PX.PPPPBPBPPQRT...QVBP..VPPK..P...EP.P.MF.E..PRHPXADCQN.D.KTPW.PXNI.PPHPQPL.H..G..ZZJR.V.IP.PPP.POPPPPPDJPX.PNCPQS..P..PUN..P.HLS.TZ..NP.PPXPYHPW..EBZZPJHSAV..PPP.YXTPPPPTXPWT.SHEPP.YG...

result:

ok Correct.

Test #12:

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

input:

2 1000
.D..JPYBD.H..F.I.NTFC.VJKS..Q.PBW..XLW.ZS..ATCTMPPKRK.V.NN.MPE.SPN.QODI.H...OR.V..INXOZMGF.KIS.GANJ.WV.YLALHHXO..M.TMTJ..XYP.N.BUENZCUA.I.XJO.Q.NVG.B.TXNI.TVLY.N.CWE.ZEO.ANYRZ.W.PQI.LORBYIYJIK.JZ.PENB.HPJPTIIGVOMF.RPZ..WFM.IS..H..U.ZEX.DXZU.YHM.UOMPOHV.HW..SZ.RHWXW.SZH.....R.X.R.L.JRYLL.CE.IE...

output:

YES
..JJPYBD.H..FXI.N.FCQVJKSXXQXPBW.XXLWXZSXXATCTMPPKRK.VXNNXMP.XSPN..ODIXHK.X.R.VXXINXOZMGFXKISXGANJXWVXYLALHHXOXX.X.MTJ.W.Y.RNLBUENZCUA.IXXJOXQXN.G.BX...IXTVLYXN.CWE.ZEOVANYRZ.WBPQI.LORBYIY..KWJZXPENB.HPJPTI.GVOMFXRPZ..W.M.ISXX..QUXZ.X.D.ZU.Y.MXUO.POHV.HW..SZ..HWXWXSZ.X.X.XR..ZRXL.J.YLLXCEXIEZDX....

result:

ok Correct.

Test #13:

score: -100
Wrong Answer
time: 1ms
memory: 3712kb

input:

1000 1
.N.
N.N
G.G
...
...
.x.
U.U
...
.x.
P.P
K.K
..O
.x.
.x.
Y.Y
...
.x.
..D
.x.
...
J.J
Q.Q
E.E
.x.
A..
W..
.x.
H.H
D.D
...
...
E.E
..H
..A
.x.
...
C.C
..E
O.O
...
..Z
J.J
...
..Y
P.P
W.W
X.X
G.G
...
...
...
...
L.L
F.F
B.B
.x.
K.K
R.R
U.U
F.F
.x.
...
...
...
B.B
...
L.L
.x.
E.E
N.N
Z.Z
...
Z.Z
W...

output:

NO

result:

wrong answer Jury has answer but participant has not.