Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Dec 12, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

N이 주어지면, 1이상 N미만의 수의 합으로 N을 나타내는 경우의 수를 구해보자.

🔍 풀이 방법

1, 2, 4, 8, ...이라서 답은 2^(N-1)이다.

⏳ 회고

N = 0일 때 예외 처리를 안 해줘서 틀렸다...

@ShinHeeEul ShinHeeEul merged commit ce4a003 into main Dec 12, 2025
1 check passed
@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Dec 12, 2025
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