[20251211] BOJ / G5 / 0 만들기 / 권혁준 #1647
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
https://www.acmicpc.net/problem/7490
🧭 풀이 시간
5분
👀 체감 난이도
✏️ 문제 설명
수열 1 2 3 ... N 사이에 공백 or 더하기 or 빼기를 삽입했을 때 결과가 0이 되는 경우의 식을 모두 사전순으로 출력해보자.
🔍 풀이 방법
재귀 + 완탐으로 직접 식을 문자열 형태로 만들고, python의 eval함수로 값이 0인지 확인해줬다.
⏳ 회고
eval은 사기인 것 같다