MAXPR - Editorial

why i am getting wrong answer for http://www.codechef.com/viewsolution/6303162

no , this is not simplicity but carelessness in considering upper and lower bounds . Can confuse a lot of people and consumes more time during computation.