Skip to content

Conversation

@LiiNi-coder
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

45 분

👀 체감 난이도

✏️ 문제 설명

  • 1~n까지의 수가 한 줄로 임의로 섞여있음. 이때, 수를 한개씩 옮길수있는데, 옮겨지는 수의 최소 개수를 출력

🔍 풀이 방법

  • 옮긴 수 개수 구하기==최장부분증가 개수 구하기 이것과 동치
  • lis(최장 부분 증가 수열)를 dp로 구함

⏳ 회고

  • 이것은 dp문제임을 알고 푼 문제이지만, 도대체 어떻게 dp를 할지감이 안옴.
  • 그래서 찾아보니, 역으로 생각하는 센스가 필요했음.
  • 앞으로 여사건(역) 으로 생각해보는 센스도 지녀보자

@LiiNi-coder LiiNi-coder added the fail 😢 해설을 보고 풀었거나, 못 풀었을 때 label Sep 21, 2025
@ShinHeeEul ShinHeeEul merged commit 83ceb2f into main Sep 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fail 😢 해설을 보고 풀었거나, 못 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants