<jupyter_start><jupyter_text>2020년 4월 25일 토요일 BaekJoon - 1463번 : 1로 만들기 (Python) 문제 : https://www.acmicpc.net/problem/1463 블로그 : https://somjang.tistory.com/entry/BaekJoon-1463%EB%B2%88-1%EB%A1%9C-%EB%A7%8C%EB%93%A4%EA%B8%B0-Python  첫번째 시도<jupyter_code>inputNum = int(input())
arr = [0] * (inputNum + 1)
 
for i in range(1, inputNum + 1):
    if i == 1:
        continue
 
    values = []
 
    if i % 3 == 0:
        values.append(arr[i//3] + 1)
    if i % 2 == 0:
        values.append(arr[i//2] + 1)
    values.append(arr[i-1] + 1)
 
    arr[i] = min(values)

    
print(str(arr[inputNum]))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18298555377207062, 'fraction_numerical': 0.07704654895666131, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '468684', 'license': 'MIT', 'n_tokens_mistral': 330, 'n_tokens_neox': 310, 'n_words': 48, 'path': 'DAY 001 ~ 100/DAY079_[BaekJoon] 1로 만들기 (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '623'}