You are viewing a single comment's thread. Return to all comments →
def decentNumber(n): fives_count = (n // 3) * 3 while fives_count >= 0: threes_count = n - fives_count if threes_count % 5 == 0: print('5' * fives_count + '3' * threes_count) return fives_count -= 3 print(-1)
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 →