Problem 285: Faulty input

The forum to report every bug you find or tell us what you'd like to find in UVa OJ

Moderator: Board moderators

Locked
Quantris
Learning poster
Posts: 80
Joined: Sat Dec 27, 2003 4:49 am
Location: Edmonton AB Canada

Problem 285: Faulty input

Post by Quantris »

I strongly suspect that there is something wrong with the input for problem 285 (alternatively, the statement needs to be adjusted).

Specifically, the statement says:

"The direction is given by a single character where u means upwards, r means right, d means down and l means left. Given crossword will always be correct."

However, the only difference (to my knowledge) between a WA and an AC for me was WA when assuming the character was 'u', 'r', 'd', or 'l', and AC when ignoring lines that did not end in those characters.

Please check the input file and ensure that the input follows the statement
Thanks!

Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos »

Actually, the input was legal but a bit tricky. Every direction was uldr, but the $ symbol wasn't at the endof the line. That way, you should reject whatever you find from that symbol to the end of line.

I've changed it, and added a tricky test case not included before. I'm rejudging every submission.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.

Locked

Return to “Bugs and suggestions”