<jupyter_start><jupyter_text>2021년 8월 2일 월요일 BaekJoon - 잃어버린 괄호 (Python) 문제 : https://www.acmicpc.net/problem/1541 블로그 : https://somjang.tistory.com/entry/BaekJoon-1541%EB%B2%88-%EC%9E%83%EC%96%B4%EB%B2%84%EB%A6%B0-%EA%B4%84%ED%98%B8-Python  Solution<jupyter_code>def lost_bracket(expression):
    split_minus = expression.split('-')
    
    temp = []
    
    for exp in split_minus:
        sum_num = 0
        for num in exp.split('+'):
            sum_num += int(num)    
        temp.append(sum_num)
    
    result = temp[0]
    
    for num in temp[1:]:
        result -= num
        
    return result

if __name__ == "__main__":
    expression = input()
    print(lost_bracket(expression))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14266117969821673, 'fraction_numerical': 0.05075445816186557, 'mean_word_length': 2.8219895287958114, 'pattern_counts': {'":': 1, '<': 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': '348236', 'license': 'MIT', 'n_tokens_mistral': 325, 'n_tokens_neox': 313, 'n_words': 46, 'path': 'DAY 401 ~ 500/DAY441_[BaekJoon] 잃어버린 괄호 (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '729'}