링크텍스트
def solution(n): c =[] while n != 0: r = n % 3 c.append(r) n = n // 3 print(c) n_c = len(c) a = 0 for i in range(n_c): # a += c[n_c-i-1]*10**i # a += c[i]*3**i a += c[n_c-i-1]*3**i answer = a return answer