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

output
Posted by jagatsastry 2 Dec 2007 19:31
should the op for "aa" be
+++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++..

and "aba" be
+++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++.>+++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++.<.
Re: output
Posted by Bohdan Istrashkin 3 Dec 2007 23:13
no. Output of "aba" don't use two cells. You should use one.
after you output 'a' do next:
+.-.
to output 'b' and return back to 'a'. Your task is to minimalize output length