Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Sep 4, 2025

🧷 문제 링크

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

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

돌 N개가 일렬로 놓여있고, i번 돌에서는 i+x (1<=x<=K)번 돌, i-1번 돌로 갈 수 있다.
1 -> N으로 가는 경우의 수를 구해보자.

🔍 풀이 방법

  • DP

dp[n][k] = n-k번 돌에서 k번 돌로 바로 가는 경우의 수로 정의하고 O(NK^2) DP를 돌렸다.

⏳ 회고

복잡한 예제에서까지 답이 잘 나오는 것 같은데 진짜 왜 틀린지 모르겠음
상태 정의를 잘못 했나 싶기도 함

@oncsr oncsr added the fail 😢 해설을 보고 풀었거나, 못 풀었을 때 label Sep 4, 2025
@ShinHeeEul ShinHeeEul merged commit f913844 into main Sep 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fail 😢 해설을 보고 풀었거나, 못 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants