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 1689. Fisherman and Barbell

Test #16
Posted by Alexander Kouprin 5 Mar 2009 03:41
If you have some troubles with passing 16th test, try

20 3
10 5
5
1 4 8 12 16
Re: Test #16
I've passed test 16, but stuck on 17...
And, by the way, what is right answer on your test?
Re: Test #16
Posted by Sfairat 5 Mar 2009 20:10
If my solution is correct(it got AC),then it's 0
Re: Test #16
Posted by OpenGL 6 Mar 2009 01:32
I'm can't pass test #22 :(
Re: Test #16
Posted by OpenGL 9 Mar 2009 14:55
This tests very helped me to pass test #16 and test #22:

7 3
5 2
1
1

answer 0

7 4
6 2
1
1

answer 0

Edited by author 09.03.2009 14:55
Re: Test #16
Posted by toweleen 27 Jan 2012 23:37
Could you explain please how to get answer 0 in your tests?
like in 1st for example:

worm is from 1 to 4 [1;4)
it means that empty part are only [0;1) and [4;7)
and I couldn't place the barbell without squashing the worm.

I'm wrong somewhere, please tell me.