[백준]14888번 연산자 끼워넣기 파이썬
N = int(input()) nums = list(map(int, input().split())) add, sub, mul, div = map(int, input().split()) min_, max_ = 1e9, -1e9 def dfs(i, res, add, sub, mul, div): #global max_, min_ if i == N: max_ = max(res, max_) min_ = min(res, min_) return else: if add: dfs(i+1, res+nums[i], add-1, sub, mul, div) if sub: dfs(i+1, res-nums[i], add, sub-1, mul, div) if mul: dfs(i+1, res*nums[i], add, sub, mul-..
더보기