14th Aug 2020, 5:36 AM
A K
A K - avatar
8 Respuestas
+ 10
Share your attempt first
14th Aug 2020, 5:37 AM
ÃKR
ÃKR - avatar
+ 10
houses = int(input()) import math percent = math.ceil( 2 * 100 / houses ) print ( percent )
14th Aug 2020, 5:55 AM
ÃKR
ÃKR - avatar
+ 8
Ryan Daniel he shows his attempt after it , I provide him answer
14th Aug 2020, 6:14 AM
ÃKR
ÃKR - avatar
+ 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))
16th Aug 2020, 4:39 AM
Priya Sharma :)
Priya Sharma :) - avatar
+ 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.
14th Aug 2020, 6:12 AM
Rahul Saxena
Rahul Saxena - avatar
+ 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.
14th Aug 2020, 6:52 AM
Rahul Saxena
Rahul Saxena - avatar
+ 1
houses = int(input()) #your code goes here if (houses>=3): print (int(round((100*(2/houses)),0))) else : print ('Not enough data')
14th Aug 2020, 5:40 AM
A K
A K - avatar
+ 1
A K It won't work. Here is the solution. #Oneliners print(int(200/int(input())+8.99/9))
14th Aug 2020, 5:46 AM
Baratov Hojiakbar
Baratov Hojiakbar - avatar