You are viewing a single comment's thread. Return to all comments →
def decentNumber(n): a, b = divmod(n, 3) if b == 0: return '5'*n if n<=7 and n%5: return -1 threes = 5*(3-b) fives = n-threes return '5'*fives+'3'*threes
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 →