Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Sep 26, 2025

🧷 문제 링크

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

🧭 풀이 시간

10분

👀 체감 난이도

✏️ 문제 설명

교도소에 N개의 방이 원형으로 배치되어 있고, 한 방향으로만 이동 가능하다.
각 방에는 A[i]명의 수감자가 있을 때, 모든 방에 있는 수감자 수를 동일하게 만드는 이동 횟수의 최솟값을 구해보자.

🔍 풀이 방법

두 바퀴 돌면서 목표 인원 수보다 많으면 옆으로 토스해줬다.

⏳ 회고

이게 왜 골드지?

@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Sep 26, 2025
@ShinHeeEul ShinHeeEul merged commit 0fb7a91 into main Sep 26, 2025
1 check passed
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