Getting run time error for mixtures question

My solution is CodeChef: Practical coding for everyone for the problem MIXTURES.But Problem - CodeChef I am getting run time error.Please suggest me that why am getting run time error.Outputs are correctly coming for the test cases given.

Thanks in advance.

It solved your problem friend?

link text

1 Like

Run time error could be anything, even if your solution passes all the test cases given in the problem state, it doesn’t imply it will pass other test cases. Try to generate some test base on the problem statement and check it against your solution. Unless you can come up with more specific question, no one are willing to do all the hard work and debug the code for you.