+ 2
Challenge Help
I am doing the paint costs challenge and my code won't pass. Can somebody tell me what the problem is? Much appreciated. https://code.sololearn.com/cWiGE47JEeTo/?ref=app
1 Réponse
+ 3
The problem is that you are not rounding up the integer to nearest whole number istead you are type casting it to integer
a simple fix is to use (ceil() function from cmath header file)
Here is the fix👇
https://code.sololearn.com/ccLxAVtMCbMU/?ref=app