0
How to solve this?
8 Respostas
+ 10
Share your attempt first
+ 10
houses = int(input())
import math
percent = math.ceil( 2 * 100 / houses )
print ( percent )
+ 8
Ryan Daniel he shows his attempt after it , I provide him answer
+ 4
This is the solution, use this, it will probably help you :)
import math
houses = int(input())
#probability of dollar per one house
probability_dollar=2.0/houses
#percentage of dollar for all houses
percentage_dollar = probability_dollar * 100.0
#rounding up value
print(math.ceil(percentage_dollar))
+ 3
Hey ÃKR And Baratov Hojiakbar I Request Both Of You To Not To Provide Solutions Directly
You Guys Can Better Help A K With Logical Concepts.
+ 3
That’s Okay But Yes Few Days Before A Golden Moderator Suggest Me To Not To Share Solutions Because Everyone Has Their Own Mind Set The Way You Think May Be He Don’t Think That Way And Programming Is About Brain Storming So If We Better Provides Only Logic Then He Or She Will Storm His Mind For That Concept.
+ 1
houses = int(input())
#your code goes here
if (houses>=3):
print (int(round((100*(2/houses)),0)))
else :
print ('Not enough data')
+ 1
A K
It won't work.
Here is the solution.
#Oneliners
print(int(200/int(input())+8.99/9))