Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Oct 26, 2025

🧷 문제 링크

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

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

N개의 카드를 3명의 플레이어에게 나눠주는데, 특정 섞기 방법을 반복 적용해서 각 카드가 원하는 플레이어에게 가도록 하는 최소 섞기 횟수를 구하는 문제

🔍 풀이 방법

  • current[i] 배열로 초기 위치 i의 카드가 현재 어느 위치에 있는지 추적
  • 매 섞기마다 next[i] = current[S[i]]로 카드 위치 업데이트
  • 순열의 사이클 특성상 원점으로 돌아오면 불가능 판정

⏳ 회고

음 귀찮네

@Seol-JY Seol-JY added the success 👍 해설을 보지 않고 풀었을 때 label Oct 26, 2025
@ShinHeeEul ShinHeeEul merged commit 314ba91 into main Oct 26, 2025
1 check failed
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