+ 1
Please tell me how to solve the problem of Kaleidoscopes? Thank you. My attempt⬇️.
11 ответов
+ 2
I'm not sure how it is in c++, but my Python solution worked only when I formatted the output as they said -- always with exactly two decimal places.
+ 1
Тимофей Орловский You have to indent line 15
0
Seems to be working alright... Doesn't it pass all the tests?
0
Does not pass #5. I tried even negative values.
0
Must be the rounding issue, most likely.
0
I tried ceil () and just h even floor () and round () . The number b = 1023 picked up. And the test is hidden, and I can’t understand what the problem is.
0
I formatted using the ceil () function
0
I draw a simple conclusion with the number 1023 without rounding and it gives out what is correct. Without rounding, 4925.74 and 5 are discarded, and with rounding 4925.75.
0
I tried to solve using Python. Please tell me why it displays an error.
https://code.sololearn.com/cLI7LvtWWqRb/?ref=app
0
Everything is equal
0
Also, you defined a method floor which should use math.floor inside
Or you could simply:
from math import floor and then just use it without separate definition