Skip to content

Conversation

@ksinji
Copy link
Contributor

@ksinji ksinji commented Dec 5, 2025

🧷 문제 링크

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

🧭 풀이 시간

40분

👀 체감 난이도

✏️ 문제 설명

3 7 5 2 6 1 4
위와 같은 식으로 나열된 숫자를 오름차순으로 다시 나열하려고 함
최소한 몇 개의 수를 움직여야 하는지?

🔍 풀이 방법

최장 증가 부분 수열을 구해서 전체 숫자의 수에서 빼면 됨

⏳ 회고

쉬운 문제인데 LIS 쓰면 된다는 생각을 못했다...

@ksinji ksinji self-assigned this Dec 5, 2025
@ksinji ksinji added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Dec 5, 2025
@ShinHeeEul ShinHeeEul merged commit 677a18d into main Dec 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.

3 participants