QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#503102#5734. Issuing Platesxiaowuc1AC ✓79ms40764kbJava8977b2024-08-03 16:24:582024-08-03 16:25:00

详细

Test #1:

score: 100
Accepted
time: 51ms
memory: 38584kb

input:

7 2
AWFUL
BAD
CRUMMY
LOUSY
POOR
SAD
TERRIBLE
SO5OD
TROUBADOUR

output:

VALID
INVALID

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 68ms
memory: 39104kb

input:

100 100
VPTRZGMVNOIPKBATVKYUKBW
HZNDYGKCFTMITPOGBWMVPPHMJ
VHNEYPPUYLZVOSO
ABTGHQAINFHE
ZLUHFHNAAZBK
TVZDDUYVELOPEWZGOCVXNFRKX
BCUNRSKHVTCPPMPLYUYTJJYD
YSVVDDIWZMUD
PIYTPZB
CIIHPTLUJDODKSAROCK
WDP
ZZOYWYLMPZURKYIUGSZRXBTT
PXSJQMINFOQORDMQJGRLGHOT
APRGCELXVOEZTOIM
KBMZ
WNMLCRDM
NIEYIKPYLOCTNIM
FZEDDPQ...

output:

INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
...

result:

ok 100 lines

Test #3:

score: 0
Accepted
time: 68ms
memory: 39792kb

input:

100 100
EGHJXUVYMYTRHUYYUBAFMRNR
G
EJPNPXJTRQGQFPQWERCC
QUA
KLZSMUXRXMYQTBC
MNOCMDYAIQNKTODYRK
CICPHCGS
JBIEWYHNBFAYOKXVLOBRAW
VPZFXDZL
GLHGNPJAZPCDMOUV
ILGAVUVMWQUSOJVEJSTU
UIVDREQAYZIFCTDIWZSHOK
GMNBGPBDRQDJNR
CBYNQFMIDB
L
MHEADJYINCGRPHBFDJ
ZRYHOGQVKBAOWSQ
QDEFJFGSSXXQOVOLYL
WSLZOZFVEXOWX
ZOLZPSQ...

output:

INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
INVALID
INVALID
VALID
INVALID
INVALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
VALI...

result:

ok 100 lines

Test #4:

score: 0
Accepted
time: 61ms
memory: 39240kb

input:

100 100
VQYJQUZSNQLHQYDRGURIHYMXQ
UHUZMEPDSVH
EFMZBMPSQSEHJRBNO
YLU
EHRVCUSOBFAUH
MBOKEUWOLJD
TUHXUFOOYONRORT
SW
PPGGHLEYCRNLNKYIKEIZA
MOCFLWHKNEVNQJOGLGQUHBJH
LAEYOOPBH
WSCHGRP
JCOBDEJNJFHCUPR
HFUITTKPJYJTYGBAZCHVU
KRWVHEDMIJVEC
HD
LCXUBQWQVXMLPVA
VTFYFDVADGXMKAPQMQRAZVAKA
WXMTYBSEWKRFVYZPQ
MRGJPQB...

output:

VALID
VALID
VALID
VALID
INVALID
VALID
VALID
VALID
VALID
VALID
VALID
INVALID
VALID
VALID
INVALID
INVALID
VALID
VALID
INVALID
VALID
INVALID
VALID
VALID
VALID
VALID
INVALID
VALID
VALID
VALID
VALID
INVALID
VALID
INVALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
INVALID
INVALID
INVALID
...

result:

ok 100 lines

Test #5:

score: 0
Accepted
time: 63ms
memory: 38928kb

input:

100 100
ZR
YYLOGRZZENIAMOQOCHXGAD
DVKLVVGKCSCX
TAGYJNSO
HMIGT
RYIRFPJQVZOKZPANNXCR
UPVADAGKADXOAVSWYVHKHA
DCMDRYVCPR
WMXNHNDQKYFS
TZFXBJTUTLPXYAVQ
ENSXWHQCXAKVSBMTPNEY
VJXVZQWWMZLCNEIAFPUM
QFAJWPFONRPJTTOCXAPHAYNO
MGZKRPERMNSHKRSNMNXVPW
O
MKQTHSONNMQFYZWCXYUTGJCXL
JITZGEHLQXMKYXXHKHEG
QVDBLASFZPTYMI...

output:

INVALID
INVALID
INVALID
INVALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
VALID
VALID
INVALID
INVALID
INVALID
INVALID
VALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
INVALID
VA...

result:

ok 100 lines

Test #6:

score: 0
Accepted
time: 79ms
memory: 40088kb

input:

100 100
VLZGRYPQQIV
YSEUYJYKMJVFYX
R
GDEBTTDQILLWAI
GEMPWGHXWZUPOQ
XGISWGDRLIOF
D
BWOVFSJCUSSFWMPMG
LEXMSEWJJEERGEZAXKME
BLAJGU
TQ
LEKFGMCLGJQIBJSC
QGKFRXAZNCMJNCMGSNDVDLJYD
FWDXY
CNJDAPSCHJEZLLROXV
VAKYRBUSNXNOWTEPO
CHSVLNXJZNMUTRXTMXFVMUFMI
KQGZRIMGVF
OXQOEDAWNID
NJ
GMXVXKYXQZBBJOOZQOBMRAU
UGEIDDR...

output:

VALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
VALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
...

result:

ok 100 lines

Test #7:

score: 0
Accepted
time: 77ms
memory: 40764kb

input:

100 100
QUBHTEIRFZOOO
L
JUSR
UAU
SZSNBGMRZHXHGRYBGKNZ
PTWE
VHXWLBHFNBURYPA
QIKUYCAZYNLOGLKA
IDTCFB
EYBLNDWQINCDXAGQVLU
UNFHG
SPOFFAWSQRJCIJGYDQPNCHSS
UCMXANPYZLLXSFSJV
N
PCSZJZJLBKCQUZL
ZZBVLGVY
VIYUGARXJZDIVTLGJBFXRPDZU
GQUJCIHYGRVT
Y
XDHVWGCODYFCTMJOUXEXCSM
FRYLCCQ
ARQNRBESWLZVODKLWYNWOXD
WODNBZLJ...

output:

INVALID
INVALID
VALID
INVALID
VALID
INVALID
VALID
VALID
INVALID
VALID
VALID
INVALID
VALID
INVALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
INVALID
VALID
VALID
INVALID
INVALID
VALID
INVALID
VALID
VALID
INVALID
INVALID
INVALID
VALID
VALID
INVALID
INVALID
INVALID
INVALID
VALID
INVALID
VALID
INVALI...

result:

ok 100 lines

Test #8:

score: 0
Accepted
time: 53ms
memory: 39120kb

input:

8 80
AOA
BLB
CZC
DED
ESE
FBF
GTG
HBH
A0A
A1A
A2A
A3A
A4A
A5A
A6A
A7A
A8A
A9A
B0B
B1B
B2B
B3B
B4B
B5B
B6B
B7B
B8B
B9B
C0C
C1C
C2C
C3C
C4C
C5C
C6C
C7C
C8C
C9C
D0D
D1D
D2D
D3D
D4D
D5D
D6D
D7D
D8D
D9D
E0E
E1E
E2E
E3E
E4E
E5E
E6E
E7E
E8E
E9E
F0F
F1F
F2F
F3F
F4F
F5F
F6F
F7F
F8F
F9F
G0G
G1G
G2G
G3G
G4G
G5G...

output:

INVALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
INVALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
INVALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
INVALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
VALID
INVALID
VALID
VALID
VA...

result:

ok 80 lines