We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
For the case n = 90 and m = 100 (given in sample input)
n/m == 0.9 right
So the number of No of BouncyNos / Total Numbers should be 0.9
But the output given as the answer -> 21780 (for which
No of BouncyNos / Total Numbers = 0.857414
)
where as my output is occuring is 71980 (for this No of BouncyNos / Total Numbers = 0.9)...Correct me if i am wrong
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #112: Bouncy numbers
You are viewing a single comment's thread. Return to all comments →
For the case n = 90 and m = 100 (given in sample input) n/m == 0.9 right So the number of No of BouncyNos / Total Numbers should be 0.9
But the output given as the answer -> 21780 (for which No of BouncyNos / Total Numbers = 0.857414 ) where as my output is occuring is 71980 (for this No of BouncyNos / Total Numbers = 0.9)...Correct me if i am wrong