Can't pass test cases
[CLOSED] Thanks for everyone who answered! Hey there! Advice needed. This is my attempt to solve the Halloween Candy task. It was able to pass the first two test cases, but the rest three of them are being failed again and again. I can't figure out, why. Any ideas? https://code.sololearn.com/cRnGO2C561Zi/?ref=app UPD. Maybe my hands grow where from the legs must to, but ceil() didn't help for the unknown reason :( UPD 2. Fixed ceil() and floor() functions. Now the code (below) passes all the test cases... except the first one -_- https://code.sololearn.com/cSU24o2Q35eL/?ref=app UPD 3. Err... At least, it works. ¯\_(ツ)_/¯ Final code: https://code.sololearn.com/cT2efElb0sTl/?ref=app I still can't guess why this code decides "x" and "x+0" aren't the same thing.