The output is wrong, CSID is found at: 4,2 1,2
Post or send me your code if you need help.
422 - Word-Search Wonder
Moderator: Board moderators
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 422 word search wonder
Check input and AC output for thousands of problems on uDebug!
Re: 422 word search wonder
WA code:
prune() or not, it doesn't get the right answer... there's probably a small problem in reading the input or something, and not in the algorithm
Code: Select all
//facepalm
Last edited by mgavin2 on Tue Jul 29, 2014 6:21 am, edited 1 time in total.
all that matters is AC
Re: 422 word search wonder
My advice to you -> always copy/paste output format from problem description or sample.
Don't forget to remove your code after getting accepted. 
If a word is not found, the string ``Not found'' should be output instead of a pair of coordinates.
This is your output part1,2 4,2
2,1 2,4
Not found
Code: Select all
//output coords
if (is_match)
printf("%d,%d %d,%d", j, k, l, m);
else
printf("Not Found");

A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman
Re: 422 word search wonder
...thank you...lighted wrote:My advice to you -> always copy/paste output format from problem description or sample.

all that matters is AC