Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Nov 5, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

물병 N개로 K개를 넘지않는 비어있지 않은 물병을 만드려고 할 때, 상점에서 사야하는 물병의 최솟값 구하기

🔍 풀이 방법

N을 비트로 나타내서 1의 개수가 하나의 병이라고 가정
N을 1씩 더해서 비트 1의 개수가 K보다 작거나 같으면 수행 중지

⏳ 회고

비트마스킹..쩝..

@suyeun84 suyeun84 self-assigned this Nov 5, 2025
@suyeun84 suyeun84 added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Nov 5, 2025
@suyeun84 suyeun84 merged commit f3cf9e6 into main Nov 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants