581 - Word Search

All about problems in Volume 5. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
Even
Learning poster
Posts: 75
Joined: Thu Nov 22, 2001 2:00 am
Location: Taiwan

581 - Word Search

Post by Even »

After Rejudge...beside Multiple Input...

I can't find any different ??...

Please tell me ...thank you ~~~~

<font size=-1>[ This Message was edited by: Even on 2002-02-18 16:05 ]</font>
Adrian Kuegel
Guru
Posts: 724
Joined: Wed Dec 19, 2001 2:00 am
Location: Germany

Post by Adrian Kuegel »

Did you consider a input <=0 for the skip value (Output: Not found)?
And the precedence of the directions has to be considered (i. e. search word A -> direction N, if found).
Even
Learning poster
Posts: 75
Joined: Thu Nov 22, 2001 2:00 am
Location: Taiwan

Post by Even »

hello~if input...

3

4
1
AB
4
CCBC
CACC
BACC
CCCC

2
0
1
AAA

0
1
A
1
A

output??

and how large the array use?

<font size=-1>[ This Message was edited by: Even on 2002-02-19 03:45 ]</font>
Adrian Kuegel
Guru
Posts: 724
Joined: Wed Dec 19, 2001 2:00 am
Location: Germany

Post by Adrian Kuegel »

Output:

Code: Select all

AB 5 NE


A NOT FOUND
I used a C++ vector, therefore I don't know the needed size of array.
Post Reply

Return to “Volume 5 (500-599)”