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 1915. Titan Ruins: Reconstruction of Bygones

Can some one explain to me?
Posted by enoyps 25 Oct 2012 09:22
8  -> 8
3  -> 8 3
4  -> 8 3 4
0  -> 8 3 4 8 3 4
-1 -> 8 3 4 8 3    output 4
-1 -> 8 3 4 8      output 3
-1 -> 8 3 4        output 8
-1 -> 8 3          output 4
1  -> 8 3 1

why the answer is
4 3 4 3?
Re: Can some one explain to me?
Posted by Bogatyr 25 Oct 2012 11:23
8 -> number of operations
3 -> 3
4 -> 3 4
0 -> 3 4 3 4
etc.