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

1st Sep 2020, 3:13 AM
Rushdi Zamani
Rushdi Zamani - avatar
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)
1st Sep 2020, 3:55 AM
Abhay
Abhay - avatar
+ 1
Try this: from math import ceil print(ceil(200/(int(input())))
1st Sep 2020, 3:32 AM
Namit Jain
Namit Jain - avatar
0
It is working well
1st Sep 2020, 3:23 AM
Muhammadamin
Muhammadamin - avatar