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

Clarification
Posted by Yana 22 Sep 2007 13:26
You may assume that optimal program will not have to modify more than four memory cells.
Does this mean that an optimal solution only uses 4 out of the 30000 given cells? If not, can someone clarify it?
Re: Clarification
Posted by Stefan Istrate 22 Sep 2007 13:43
The statement is ambiguous. The input string contains only letters ('a'-'z') and the array of 30000 memory cells is full of 0. It seems that all the cells should be modified. Please clarify this.