백준 14888번 연산자 끼워넣기
[BaekJoon] 백준 14888번 연산자 끼워넣기
[BaekJoon] 백준 14888번 연산자 끼워넣기 🎈문제 https://www.acmicpc.net/problem/14888 💬설명 연산자로 만들 수 있는 모든 조합 구해서 계산해주면 된다. 조합을 Itertools 를 사용하지 않고 직접 구현해보았다. 어렵지 않은 문제 👩💻코드 # BaekJoon14888.py N = int(input()) arr = list(map(int, input().split())) # 숫자들 ops = list(map(int, input().split())) # + - * % 의 개수 max_result = float('-inf') min_result = float('inf') def dfs(lis): global ops, arr, max_result, min_resul..