[20250807] BOJ / G5 / 컨베이어 벨트 위의 로봇 / 이강현#626
Merged
ShinHeeEul merged 1 commit intomainfrom Aug 7, 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.
🧷 문제 링크
https://www.acmicpc.net/problem/20055
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
컨베이어 위 로봇을 올리는 위치와 내리는 위치가 주어진다.
컨베이어는 순환 구조를 가지며 1이 올리는 위치 N이 내리는 위치이다.
로봇은 컨베이어의 각 칸에 올라가며 로봇이 올리는 위치에 올라가거나 칸에서 이동하는 경우 해당 칸의 내구도가 1 감소한다. 로봇은 현재 칸의 내구도가 0이 아니고 옮길 칸에 로봇이 없는 경우에만 이동할 수 있다.
내구도가 0인 칸이 K개 이상이 될때 종료되는데 그때의 단계를 출력하자.
🔍 풀이 방법
구현
그냥 말하는대로 구현하면됨.
⏳ 회고
ez