i am not able to get where i am wrong http://www.codechef.com/viewsolution/4135432
@admin can anyone see y im getting a wrong answer for this submission… I used bubble sort… a tle is expected but its giving wrong answer… Test cases and max values seem fine… http://www.codechef.com/viewsolution/4135140
http://www.codechef.com/viewsolution/4137798 this is an accepted solution… while http://www.codechef.com/viewsolution/4137241 shows runtime error…can admins tell me why i got an error in the second one even though code is same…
I think you have misunderstood.To know why refer this link :
@achaitanyasai i do understand them… thats i wanted to clarify… i used the same logic but different sorting in the below comment… It is accepted solution…
Can’t understand , how we have to paint only n*m cells…??and what’s this mean"vertical column in layer"…??
ok… i understood
optimization : Inside the for loop add if(topaint==0)break;