CodeMaster // Coal Company // All AC solutions are incorrect ?

Hi

I have an issue with this problem https://www.codechef.com/COMS1501/problems/CM1503/

I looked at several AC solutions, and then give the answer “3” for the following case:

1

5 4

1 2 6 5 10

I would have expected the answer to be “2”, because you can fill the containers in the following way:

1 --> 5 --> 10

2–>6

Either I dont’ understand the statement, or these solutions are wrong.

@beroul, thank you for notifying us. We shall ask the contest organizer to look into the issue and get back you.

Hello Participants,

For the the following case answer is 2 exactly.

1

5 4

1 2 6 5 10

link for the source code : <a href=https://docs.google.com/document/d/1b99lhuh4HAt8nQuJRwFa4j8wMrSQyvm_60uZ-ZQT9Eg/edit?usp=sharing>Google Docs