Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Dec 11, 2025

🧷 문제 링크

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

🧭 풀이 시간

5분

👀 체감 난이도

✏️ 문제 설명

수열 1 2 3 ... N 사이에 공백 or 더하기 or 빼기를 삽입했을 때 결과가 0이 되는 경우의 식을 모두 사전순으로 출력해보자.

🔍 풀이 방법

재귀 + 완탐으로 직접 식을 문자열 형태로 만들고, python의 eval함수로 값이 0인지 확인해줬다.

⏳ 회고

eval은 사기인 것 같다

@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Dec 11, 2025
@ShinHeeEul ShinHeeEul merged commit 3f35c28 into main Dec 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants