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 1998. The old Padawan

WA #4
Posted by Sirius_Green 7 Nov 2013 14:52
Add some tests...
Re: WA #4
Posted by Adhambek 9 Nov 2013 12:22
Try this test.
5 3 6
1
2
3
4
5
4 5 6
answer : 11
Re: WA #4
Posted by Evgeniy[VVV] 3 Feb 2015 22:50
Why 11 but not 12?, please explain, i don't understand that
Re: WA #4
Posted by Jane Soboleva (SumNU) 3 Nov 2015 16:17
On first 3 seconds, we pick 1, 2, 3. On 4th second, we drop 1, 2, 3. On 5th and 6th second, we drop nothing. On 7th, 8th, 9th, 10th, 11th second, we pick 1, 2, 3, 4, 5. So the answer is 11.