[20251030] BOJ / G4 / 빠른 무작위 메시지 전달 / 김민진#1271
Merged
ShinHeeEul merged 2 commits intomainfrom Oct 30, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
빠른 무작위 메시지 전달
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
12명의 사람이 있고 친구 그룹
(i, i+1)으로 구성됨한 그룹에서 다른 그룹으로 메시지를 전달하는데 한 그룹 내에서 메시지를 전달 받은 사람은 그룹의 다른 사람에게 전달하고 메시지를 전달 받은 사람이 다른 그룹에 메시지를 전달함
메시지를 전달할 수 있는 최소 비용
🔍 풀이 방법
백트래킹
⏳ 회고
그룹 내에서도 메시지 전달 비용이 든다.. 문제를 잘 읽자
그리고
next → next + 1을 했으면 다음 시작점은next + 1인데next로 해놔서 계속 틀렸음