i am gettin WA with my code.........in it i hav found the sum of all candies and checked whether its completely divisible by no of candies......if it is then i hav found the average of all the candies and then sum+=a[i]-avg(if no of candies in a packet is > avg) can nyone please explain wat is wrong in the algo........
created
last reply
- 11
replies
- 983
views
- 6
users