Hi, @cookie13 – Welcome.
Consider this test case…
1
3 INDIAN
BUG_FOUND 850
CONTEST_WON 20
CONTEST_HOSTED
The total Laddus = 850+300+50 = 1200. So the right answer is 1200/200 = 6.
But your code returns 1. Have a look at your program to see why it’s giving the wrong response here.
1 Like
I fixed the code,it’s working now. Thanks a lot for pointing out the bug!