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.
defdecentNumber(n):# Write your code heret=n-n%3found=Falsewhilet>=0andnotfound:if(n-t)%5==0:found=Trueelse:t=t-3print("5"*t+"3"*(n-t))iffoundelseprint(-1)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and The Beast
You are viewing a single comment's thread. Return to all comments →
python3