0
What's wrong with my simple code?
Python: bill = (2 / houses)*100 print(round(bill)) https://www.sololearn.com/coach/4?ref=app It's doesn't work for test case 3 to 5
3 odpowiedzi
+ 1
houses = int(input())
#your code goes here
p = float((2/houses)*100)
pi = int(p)
if pi<p:
pi+=1
print (pi)
+ 1
Try this:
from math import ceil
print(ceil(200/(int(input())))
0
It is working well