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 1552. Brainfuck

why wa on test 30?
Posted by Cheryl 24 Sep 2007 08:24
help ~
I have WA on tes 30 too :(
Posted by Victor Barinov (TNU) 25 Sep 2007 15:03
I have WA on test 30 too :(
Posted by Victor Barinov (TNU) 25 Sep 2007 15:03
I know!
Posted by Victor Barinov (TNU) 25 Sep 2007 16:19
my WA on test 30 was because, I forgot:
"If the pointer before increment points to the rightmost byte of the array, then after increment it points to the leftmost byte."
and
"If the pointer before decrement points to the leftmost byte of the array, then after increment it points to the rightmost byte."
Re: why wa on test 30?
Posted by Alexander Georgiev 27 Nov 2007 19:44
In the statement it is said, that you may assume to use at most 4 bytes, but it is not said WHICH four bytes.. In the case of test 30, the best four are the rightmost one and the three leftmost.

However, now I'm stuck on 31...
Re: why wa on test 30?
Posted by svr 1 Jul 2009 11:33
Yes!Thank.But I resolved this situation in array[4] but
moving initial position in second cell.