Challenge Help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

9th Mar 2020, 11:37 AM
Ahmed Hushaan
1 Answer
+ 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
9th Mar 2020, 11:42 AM
Arsenic
Arsenic - avatar