Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Feb 18, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

N명의 학생이 이전에 사용하던 기숙사와 같은 기숙사를 배정 받지 않도록 하는 경우의 수 구하기

🔍 풀이 방법

수학공식 활용해서 dp로 풀었다.

⏳ 회고

dp[i] = (dp[i-1] + dp[i-2]) * (i-1)
이게 짧은 점화식이라는데 이거 어케 생각해.................. 외워야겠다...............

@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Feb 18, 2025
@ShinHeeEul ShinHeeEul merged commit b170360 into main Feb 18, 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