Skip to content

Conversation

@ksinji
Copy link
Contributor

@ksinji ksinji commented Jan 25, 2026

🧷 문제 링크

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

🧭 풀이 시간

50분

👀 체감 난이도

✏️ 문제 설명

호텔은 최소 C명 이상 고객을 늘려야 한다.
도시마다 (비용, 늘어나는 고객 수)가 주어지고, 광고는 같은 도시에서 여러 번 해도 된다.
최소 비용을 구하면 된다.

🔍 풀이 방법

dp[x] = x명 늘리는 최소 비용으로 두고, 각 도시마다 dp[j] = min(dp[j], dp[j-gain] + cost) 갱신하면 된다.
한번에 늘릴 수 있는 고객의 최댓값이 100이라서, C명을 넘기는 경우도 최대 100만 더 보면 충분하므로 c~c+100 중 최솟값이 답이다.

⏳ 회고

@ksinji ksinji self-assigned this Jan 25, 2026
@ksinji ksinji added the success 👍 해설을 보지 않고 풀었을 때 label Jan 25, 2026
@ShinHeeEul ShinHeeEul merged commit e49eccd into main Jan 25, 2026
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