Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Sep 24, 2025

🧷 문제 링크

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

🧭 풀이 시간

10분

👀 체감 난이도

✏️ 문제 설명

N명의 학생들은 제마다 최대 M개의 블록을 가질 수 있음.
각자의 학생들이 블록을 쌓을 거임. 안 쌓을 수도 있음.
이때 정확히 H를 쌓는 경우의 수를 구하자.

🔍 풀이 방법

dp
그냥 N명의 학생에 대해서 H 높이만큼 각 학생들의 블록을 다 고려하면 된다.

⏳ 회고

초기화만 잘하자. ez

@lkhyun lkhyun self-assigned this Sep 24, 2025
@lkhyun lkhyun added the success 👍 해설을 보지 않고 풀었을 때 label Sep 24, 2025
@ShinHeeEul ShinHeeEul merged commit 76fccc7 into main Sep 24, 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