+ 4
Hi I am solving Halloween Candy Problem
import math houses = int(input()) if(houses>=3) : output = 200/houses print(int(round(output,0))) I pass only two test cases 3 and 4 are hidden . Please suggest my code has any bugs
3 Answers
+ 3
Use ceil function..
print(int(math.ceil(output)))
+ 1
Thanks you Jayakrishna🇮🇳
+ 1
Thanks you all for answering my questions.