Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Dec 22, 2025

🧷 문제 링크

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

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

아래 조건을 만족하는 길이 K인 자연수 수열 A의 개수를 구해보자.
image

🔍 풀이 방법

K > 446이면? 못 만듬.

dp[k][s] = s번 돌까지 k개의 돌을 지나온 경우의 수라고 정의.
dp[1][x] = 1 (1 <= x <= D)

내가 현재 s번 돌에 있다면, 2s+1부터 2s+D까지 갈 수 있음
-> imos로 다음 스텝의 DP값을 계산하도록.

⏳ 회고

아오 왜 틀리는거야

@oncsr oncsr added the fail 😢 해설을 보고 풀었거나, 못 풀었을 때 label Dec 22, 2025
@ShinHeeEul ShinHeeEul merged commit 4ccfea3 into main Dec 22, 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