Hi, Why it outputs 32 instead of 31? | Sololearn: Learn to code for FREE!
+ 4

Hi, Why it outputs 32 instead of 31?

When I input 16, it outputs 5-correct. But if input is 10, it outputs 32-wrong. https://code.sololearn.com/c3ClKpzwOjjv/?ref=app

9th Nov 2021, 9:56 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
3 ответов
+ 6
Vasiliy ,Thank You very much☺️
9th Nov 2021, 11:45 AM
Egor Tonchev(EGO)
Egor Tonchev(EGO) - avatar
+ 3
'>=' !!!Debug ☺️
9th Nov 2021, 10:47 AM
Solo
Solo - avatar
+ 1
The flaw must be in your data info if you are convinced that 31 is the correct answer for an input of 10. I noticed that when I remove the int() & the *100, I get the following results 16 -> .058 10 -> .320 So both results are high, but the first result is mitigated by the int()
9th Nov 2021, 10:39 AM
Rik Wittkopp
Rik Wittkopp - avatar