Not getting the desired output for COOLING

Problem link : COOLING

My code : COOLING

You are not allowed to discuss problems from ongoing contests here.Please delete your question.Discuss it after the completion of the contest

This is not a current contest problem. It’s from the October 2010 cookoff.

First, @maheshwar44 it’s not the problem of ongoing contest.

Second, There is one thing you are doing wrong. While checking the condition a[i] <= b[i], you simply continues the loop when the condition fails. Due, to this you skip one cooling rack which you don’t have to do.

Here is the correct


[1]. Hope, it helps.


  [1]: http://ideone.com/XLbhcE
1 Like
//