Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Jul 26, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/16637

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

길이가 N인 수식에 괄호를 추가해서 최댓값을 구하는 문제

  • 수식은 0~9 정수와 +, -, × 연산자로 구성
  • 연산자 우선순위는 모두 동일해서 왼쪽부터 순서대로 계산

🔍 풀이 방법

DFS + 백트래킹으로 모든 경우의 수 탐색
각 연산자 위치에서 괄호를 넣을지 말지 선택하는 문제, 괄호를 넣으면 해당 연산을 먼저 계산하고, 안 넣으면 순차적으로 계산

⏳ 회고

그냥 DFS로 각 단계에서 괄호를 넣을지 말지만 결정하면 됨

@ShinHeeEul ShinHeeEul merged commit 6a378e6 into main Jul 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants