QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#145194 | #4195. Looking for Waldo | ZhangYiDe | AC ✓ | 43ms | 4000kb | C++20 | 2.1kb | 2023-08-21 23:39:38 | 2023-08-21 23:39:40 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3472kb
input:
5 5 ABCDE FGHIJ KLMNO PQRST VWXYZ
output:
25
result:
ok single line: '25'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
5 10 ABCDEABCDE FGHIJFGHIJ KLMNOKLMNO PQRSTPQRST VWXYZVWXYZ
output:
20
result:
ok single line: '20'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3536kb
input:
5 10 WAALDLODOW AWWLAOODOW LOLADOWALO ADALLLWWOL WWOOAAAALO
output:
5
result:
ok single line: '5'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
2 3 WAL TER
output:
impossible
result:
ok single line: 'impossible'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
1 260 AWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWLDO
output:
260
result:
ok single line: '260'
Test #6:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
1 5 WALDO
output:
5
result:
ok single line: '5'
Test #7:
score: 0
Accepted
time: 1ms
memory: 3536kb
input:
5 5 WXXAL XALDO XDOXX ALXXX DOXXX
output:
9
result:
ok single line: '9'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3476kb
input:
7 115 DVGTNMMOMTPGLREEHPNWWOVARKFSSAQNWBBSUIUXDTRLZXHJAVOQPZWNJDMCBJRVSJNTUSOGUYKBWVUEDGJJJZRIJAJONHUSUJVGMYRDNRKZZLYOKRB VVPSQMSDLFLEHIBTFMMRAWJFZTRVXOQJCNMPLYMWAXRXPXQWEDMWYTCQQBDGUACGWIQBIIRMTCYBQPKNWPYIRPHEIFHCPKYTVRSBBXUXVOCSLPJFRWM DUSXXJPYFRNCGGDJPDVDXGKLDBABDGMWBELWYWMQMQCRAHINEYSMTLXGUOBGAC...
output:
8
result:
ok single line: '8'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
43 6 MSKXQI PGFKAO YZSLPS LVMBUX QQJWVW GWVLPM HDBTRG WKHMGP RLGDEB TXYZEY LQRDJI IFIJZU STLLPN HDJOID NTIAZG KHQVHO UBUERZ PWBOBI UTIEJW KWEPPZ TVWEBQ JVFXYB QHKYCG DXJXMD BZGFOV RRHFKI PZUCBJ NUOPLE ZWVFVP NACTWZ XAJRUG XOBZIC EGHUGF TODGGA AYQHYD QPVLIQ HJLKOV WTRZJJ AXSPON LWRXIG VPUZOR ZDZQXK C...
output:
11
result:
ok single line: '11'
Test #10:
score: 0
Accepted
time: 1ms
memory: 3484kb
input:
2 461 ZOXPGJHVSWLVZYOPKFWBPPMFSEHNPDFUAPHPJMXDFNAOEVGFLUZLHLOUMCSYYTHNKNYXAHHJXCSXHVEONVWYKTZCYUKWRBLIRFTCWHSGWNSULYTMNQSFQQKGXTUUPRYZMDBPPEYNSTCXFCUREDPGHSIGHJGDRCIQJUNUHTCNHFLHMEEPDIXSRRDBYIJSWGJCDAVIPCUYPARKSSXHDSLYDNHZJSYXWDTBCKFYILISHVJXFLSGPVPEEICHWKENYXBAACFXLNVTNQMUENNYCSUZSWHBYXFPYPGUTFEUAR...
output:
7
result:
ok single line: '7'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
10 62 MEBVDGFNDFAVGQOYMVVJPUOPIUXNJZBVTPGMNDYKVEFITSAEKRFIGVOZSEPAFU JYIRCBPVQCIUAMGHUTVOEDNLVDTNBXUAMMJFZQPVUOKYGILFEVEKRYOKJCZKSX IVNCDWFOUQKLEBOKKDKAXOKHFKPRUUAMSUDIBBWRICUALRRGAKMADEKSRWASKK EVUMONXCMASAGLDEQAKFFJYPMVLNRRDXVFJJLBUYAUCRLUXBQWCVHNLSGZOIUW XFKUOZQJHLAWSUPLBRBFJQXHAFMSBCMFUVDLKEFDLN...
output:
6
result:
ok single line: '6'
Test #12:
score: 0
Accepted
time: 1ms
memory: 3508kb
input:
24 4 PTLR CFSQ WJRS KMOA UTUI LLBX OMJV VAPR OHEA ETZA YGJA XWYF AHYC ZRXT WBQG QSQR JBWY VQTC ZGFF USJI APJH TTGF PVKC JNOU
output:
impossible
result:
ok single line: 'impossible'
Test #13:
score: 0
Accepted
time: 1ms
memory: 3468kb
input:
9 8 WSWLWZTQ SEIXFVUV VRBEKFKR EAKHTYEP CIYZFNNE XHFBOKWE DXFWSGRK ONFJKUQY KUJQCJME
output:
32
result:
ok single line: '32'
Test #14:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
29 6 BVROIF KSZROD RWYYFV CHKFXG NANVXJ KSCOCH QIDLUT KPPHPF HGWTTN CCOJEV QZPPHL LZAUXY XICHTP RSMYEI MJEWDF IYRXBW GLJVXM DOONIH OPMUZW YYYLSE SGSPVZ WVORGQ BTWOIS NPIQKT CORXPN KMNLGT QTMVSW WFOJNS GQQZKO
output:
12
result:
ok single line: '12'
Test #15:
score: 0
Accepted
time: 1ms
memory: 3464kb
input:
6 30 YIEWUARANVJHLMMFIBBGKNDINMKCIH MYGXZOGUNRHSICKEECSLTIFSEDFDYO OENJCWJZMAEUJLJOEHPBSCKUCGMBPO GCETCKSYVVOFSTAIODZDVDHYGBHQPP RTKBTULQAGCFHEIYSYKGJNPCYFNNTD UTBYRFXJGQIBREELOWWVMKUBEQDINX
output:
12
result:
ok single line: '12'
Test #16:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
27 6 DXKWIJ SQFIKD ZOBIUI UTQRJN TUVCQZ CBRXHF ULHYRV QEQYBE LVJZNT NDAJAQ NTTRSY ETAYBI LWLWHA DCXBVH HKLOQT DLICSA ZNIROE MJRAVY RZBDOE TIIQDG OTZAOV WZNBBN GXSSXT NBXKTJ VTWNAU LXHDLS PBTUCR
output:
14
result:
ok single line: '14'
Test #17:
score: 0
Accepted
time: 1ms
memory: 3480kb
input:
21 8 OZSOIHXZ HMQRLUXE HIVETDEP DQJCTXNE SXDOHCYG TFYKEFJW TJGXULLS PMEJGSEF UYAHBHKS WALAUWUJ DQXLTFVG NVHTNPNA ILITJIOS NNFUIMPX BCUYEIFL VJWISWVQ HZNPZZJF HIJPMRJI FCXYRPSA WVOKEXQB GHYDZKBM
output:
16
result:
ok single line: '16'
Test #18:
score: 0
Accepted
time: 1ms
memory: 3480kb
input:
5 5 LAXXW ODLAX XXODX XXXLA XXXOD
output:
9
result:
ok single line: '9'
Test #19:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
5 5 XXXOD XXXLA XXODX ODLAX LAXXW
output:
9
result:
ok single line: '9'
Test #20:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
5 5 DOXXX ALXXX XDOXX XALDO WXXAL
output:
9
result:
ok single line: '9'
Test #21:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
9 9 XXXODOXXX XXXLALXXX XXODXDOXX ODLAXALDO LAXXWXXAL ODLAXALDO XXODXDOXX XXXLALXXX XXXODOXXX
output:
9
result:
ok single line: '9'
Test #22:
score: 0
Accepted
time: 1ms
memory: 3504kb
input:
1 1 W
output:
impossible
result:
ok single line: 'impossible'
Test #23:
score: 0
Accepted
time: 22ms
memory: 3672kb
input:
176 472 KUMYIMXYCXUKCQXPDEOURBXYMTQVXOCYNZYCPKNAYWZMKMKBDYCCLJCWHRWKFAVYRDDQBNONSIQEKWJVUUGICMHFXTRUGLVHELGGSSFMEWXMWKUVMJHBSECGUFVXPKHJGDLNCYWPAAAOAVNKUXXKMLXJSLTJUAJJWVZMJCKTLDRELSUACYKBNRFFZMJODJQQYRTAFUJVENRLBFCQHKCSDBYSMYOYBUAXNDYCSSFYRGTLSMDOEVOWPXPBFBAQWFWEIGOEPUQTGTXTCLOCTUXKEWKFRKVSEPVIMFUA...
output:
5
result:
ok single line: '5'
Test #24:
score: 0
Accepted
time: 40ms
memory: 4000kb
input:
398 244 QUHZAOKHAAFETIKDGMDIOXCZTCNQGQOVKSVMGHWDBJJPZCGFVZOEVWEZQTGOTYHARAKLXBCBTONLOHBPSULLPTZPGLAFMIMFQWTWXZHDJVBEJVQRLCRDTWWDLHCLPQBFWFHOJAMSUHVQIUOKADYJXWCLPVJMULBAHOCXCKLTCIHZRANLLUPPENLIIVVDQSAQIJQPFMWQZEEKELEZTHOPIKOTUJOWPWSFXBENJNPOOWYRCPCGGZCP GZESAWOKTMDKVDBKPVDXIYXVCWVKSUSUQVUDBMWCWTFFMJR...
output:
6
result:
ok single line: '6'
Test #25:
score: 0
Accepted
time: 19ms
memory: 3756kb
input:
238 211 CORYOZFTAYVYKDDVPCNFQXWJNVKWJRVQNXGCIFBRIUVBKBJDERPYCJLDXLSGKNZKHHJWYEDPODCKAYFIJELZXJVKKWQICLXSUZRTZQNPGRQCOFCPGENFNZBRUZWKBNTMUNZEPAUMMAMWMTJWPBZKMENDJPMFFEEMTKITMKGOZXRYGGCGUTWMQEAMGKZFACJREXAXOLCPMLUFGHRBBDH HXRBZJEGCZKYRNJXNUIVJWROYDAPATLOJNJDPYYLHZCGBQDTGAPWIVNGIUZDLSOTWKBLWJELJWIFORGV...
output:
5
result:
ok single line: '5'
Test #26:
score: 0
Accepted
time: 2ms
memory: 3536kb
input:
293 43 HJXILPOWPUYLDYHSQHPDKCRVUSVROIQPJUJHOVOUDXR QFUEWEYZLSXJKPUNXGDUCVPGIZJUAXJUMIOAFIBSZJT BJFTQUWPOTLSPPRRMGQPRQYZDPSSORDIBYIKKRMQHUP BXCPCTEDPRPYZRNUQYLMKHNVCAGVAOPIGBKDWGJIIKV NQUYAFZEZSTUGYOVRYIISVGVKEVXDKBLTYBHDZNZTRQ VQHJKXGJZYNDBCNTYRPMOHOWVZBJXLDXXVKYOZQUVLU KJVRYGHWMJEYQVGHTNJQJWKOLFRFZ...
output:
6
result:
ok single line: '6'
Test #27:
score: 0
Accepted
time: 2ms
memory: 3664kb
input:
445 58 KGVWGWIMIGQVKDWAQXZCYKSEEXIXXBWHGPAJWXKCMXNTRRLEICEPLZJHQX TMPIZUDRGKATXPLULHFFTIDEHAWNWGHYCOTRIWGJIUDOAZUVBESNEQMGQM GEDWKZHNFVTRPPGGPYUJCISCENNROWSRBTWROXTEDOGGFHRTQCCDIITWCQ XPHWSDWZHEZBCIXQREGTYCAJLGBUQADEQMPHRYURLYTMATMRGYKSYTHMKY YWMMNBDNIIAUOUWEWLMNQYQRCREDBOGXDEXOAEMPCZBQEKCTDYVKWOGFO...
output:
6
result:
ok single line: '6'
Test #28:
score: 0
Accepted
time: 10ms
memory: 3708kb
input:
544 95 ZFVLAMXMQPASGTJZSABPYDSOQDVIXDUWJRJUAQKEBHCNHFZNIOTGZXUQIJHEHLICCEENVBZEJKBQBZFOLRKSJFZELDQEWUJ XZYESFYFLDFSBPAWVOPWEUOPLKZYFOFLWKWHHMVLGSSCPYEHUBOGRWRDXQLQLVGMOAALAIRCBXWUHKMEENNHVHMAZEDEECQ ODJUZXZOGXVSSSKWTCTJNVKZYDRWPBWFFAJVESWDEOQLOYAYFXNCDCMCFCOTHRWANPVSKCGAOFFCZCALAOVBHBOPWYDEJVY DKOKG...
output:
5
result:
ok single line: '5'
Test #29:
score: 0
Accepted
time: 7ms
memory: 3692kb
input:
61 950 ESBJPSCSQAEXMVGEVQUFMVAFHVXTPYQFWNJNLBZBAJXRNWIGQUUBBZHJKVFNRJHRVOLFGXNCXOPUZAXQZDYPHQICOGACPJUBLZJININNZPNNVCIAIZRWGKDZXOYAGLWQNXSRKHMAKJPAHNKIOHYGGOISXGSIFQBIJKWXDUDVLQSKGZUZJSXFYSJTSFEDIOQITYMFIPMCTJLHDFYFLVHGLLNCFNGDNLSINXSUEBAJSRRZEOACSTSOVPQJUCYGKYNRAAQGMNTZXIXLMAANUXXJGSPIPQCDROHLSXRDO...
output:
6
result:
ok single line: '6'
Test #30:
score: 0
Accepted
time: 26ms
memory: 3760kb
input:
283 234 ADHGGMRRPRGHQBLDXQDQBGUSXXFLPDQCDEBUSHAPDXRTSRCUKYTQYIPQMKFNPRTIJWFPSJPKPXDFKIGBBAZGPKLANSVTHLDOJNJNWGCLRTKAAIRYGPCNZZPTYUSYIQZZHEDOMHMANKKPCIPACNCMNRAHMAIBZKVPWEILETCCVMKUNFDTHGBHIKBMFDWTFKMYJWKMBSATOHQKVRHEGNCPQRSEBTEHIVZQEDSVOZMTUT CJWXZVIVIYZGENJMMXBZSGYHMYFDJBZKNJUVJIIDOTRCOFJYLXGHKOAIP...
output:
5
result:
ok single line: '5'
Test #31:
score: 0
Accepted
time: 2ms
memory: 3572kb
input:
46 122 WPQFCTULEZOUZQTUOQBFGBMGCVQCXUCAZHICDJYELAOQCHUWEIZCPBDBSQGGFXYINHOLZZJBOVDZQWHFCSXSIASTLRMJOWICVDLECOZBZGSNKDCSZPGGHJDMTK CEFHGGTJOHWBLZHOMUGGRRIUBVOPPGCFNWOFCRAANAYUSJWGKQMEICCRBOHDNYXXDQGQBFJVSTIYXTRZBTEZUGTDDBPRXRABYPGHYTPNUSCXWWNKKIGMWHQFUI TPEKCTRPXJEDFPDYLAGRFDHZDMOKXLYEBELAMGOHDJJGRQV...
output:
5
result:
ok single line: '5'
Test #32:
score: 0
Accepted
time: 5ms
memory: 3676kb
input:
46 1003 LFUCKMVFUPVHECFGASOYVWPPRYFRDQINNSGXSAJOTEXPQKXTBGYEQWKRGEWRAIBRKIWRVGYYNIAZRWGXAWSIHFNSLPGYELNFATKTOLFUQIDKMZTZUCIYHZIKKNZQUCIIWKZFMMWZMGPQUYBWTRBVUBYJWNMJXKBJIZNYFZCIETXBVUFCRUVKUBSNMTLZSIUPDYNMHRNFLINKOIBBMFEETHXRMSMQJZCFSMGDZCBNIRHUOKNUPQTFRLJBGJEMIPKLNOFMJWUJWUBAAMUZGXZLHPJKKBATXROMKGHY...
output:
6
result:
ok single line: '6'
Test #33:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
5 5 WALDO ALODW LODWA ODWAL DWALO
output:
5
result:
ok single line: '5'
Test #34:
score: 0
Accepted
time: 43ms
memory: 3624kb
input:
316 316 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXOXXXXXXXXXXXXXXXXXXXXXDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXDXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXLXXXDXXX...
output:
80264
result:
ok single line: '80264'
Test #35:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
5 5 XXXXX XXWXX XALDX XXOXX XXXXX
output:
9
result:
ok single line: '9'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
5 5 XXXXX XWXAX XXLXX XDXOX XXXXX
output:
9
result:
ok single line: '9'
Test #37:
score: 0
Accepted
time: 1ms
memory: 3492kb
input:
49 49 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
output:
25
result:
ok single line: '25'