Skip to content

Conversation

@lkhyun
Copy link
Contributor

@lkhyun lkhyun commented Jul 28, 2025

🧷 문제 링크

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

🧭 풀이 시간

60분

👀 체감 난이도

✏️ 문제 설명

N자리 수에서 K개의 숫자를 빼서 가장 큰 수를 만들기

🔍 풀이 방법

덱?
덱으로 현재값이 덱의 꼭대기보다 크면 꼭대기 값 제거하기
그리고 K개만큼 제거했으면 이제 반대쪽으로 빼내면서 출력하기

⏳ 회고

스택 안쓰고 풀라다가 오래걸림 ㅎ
어떻게 해도 O(N^2) 나오더랑

@lkhyun lkhyun self-assigned this Jul 28, 2025
@lkhyun lkhyun added success 👍 해설을 보지 않고 풀었을 때 timeout ⌚ 목표 시간보다 오래걸렸을 때 labels Jul 28, 2025
@ShinHeeEul ShinHeeEul merged commit 698452f into main Jul 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때 timeout ⌚ 목표 시간보다 오래걸렸을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants