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 1901. Space Elevators

Thanks!!!
Had the same problem at the beginning, but finally solved it.
Good test that helped me to find a bug in my algorithm was:
3 6
2 1 5

When the solution is:
2 (not 3)
2 5 1

Edited by author 24.03.2014 16:32

Edited by author 24.03.2014 16:33
Why two? need to output the maximum amount of trips of the elevator. I dont understand it.