0

Can’t understand Code coach question

https://sololearn.com/coach/4/?ref=app I am unable to understand the question. I am not asking for solution but only an explanation. It is given that “all but three of the houses are giving candy.” Does this mean that in any number of houses the numbers of houses giving dolour bill is 2?

12th Jul 2020, 7:28 AM
Abhinav
Abhinav - avatar
6 Respuestas
+ 7
Just 2 dollar bills in every test case... The difference is how much houses in every test case //just ignore the candy and the toothbrush too 😅
12th Jul 2020, 7:38 AM
᮴Ridwan_
᮴Ridwan_ - avatar
+ 5
One hint : Just take an input and please set instead of your input. import math Math.ceil( 2 * 100 / #your input )
12th Jul 2020, 7:47 AM
Nilesh
Nilesh - avatar
+ 5
Abhinav do 200.0 //Instead //200
12th Jul 2020, 8:42 AM
᮴Ridwan_
᮴Ridwan_ - avatar
0
still doesn’t work. In test case 1 my output is 66, but it is asking 67. i used Math.round and Math.rint functions too but still doesn’t work
12th Jul 2020, 8:12 AM
Abhinav
Abhinav - avatar
0
Nilesh ᮴R1 Thanks. Both of your answers combined was the correct answer🙇🏻‍♂️
12th Jul 2020, 9:13 AM
Abhinav
Abhinav - avatar