COOLING PIES

help me with my code…http://www.codechef.com/viewsolution/5648230
it’s showing WA…tried many cases…

@surya , your code is correct :slight_smile: . You just needed to initialize the values of all the elements of the arrays p[] and r[] to 0. here is the AC submission: www.codechef.com/viewsolution/5649178

1 Like

Thanks a lot for ua reply…but ‘static’ declaration of arrays is meant to initialize them to 0, isn’t it??