Challenge Help | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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