Challenge Help | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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