ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1231. Turing: One, Two, Three, …

If you don't know why you get WA...look at here. (ADMIN, too!)
Posted by 198808xc 19 Oct 2008 08:33
One key word that is not mentioned clearly in the problem is that we can NOT place a "-" to the cell IF the cell is not "-" currently.

This can make many programmes WA.

For example, for n = 1, this code is NOT acceptable:
3
1 - 2 + >
2 # 2 # <
2 + 2 - =  (Here we can NOT replace a "+" with a "-")

while this one is acceptable:
4
1 - 2 - >
2 - 3 - <
2 # 4 # <
3 - 1 + >

Hope the ADMIN to make it clear in the STATEMENT.
This problem has driven me crazy for months!!!

Good luck.