[20260227] BOJ / G5 / 주사위 쌓기 / 이준희#1976
Merged
ShinHeeEul merged 1 commit intomainfrom Feb 27, 2026
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/2116
🧭 풀이 시간
60분
👀 체감 난이도
✏️ 문제 설명
정육면체를 쌓으려고 합니다.
이 때 아래에 깔린 정육면체의 위에 잇는 숫자는 위에 있는 정육면체의 아래에 있는 숫자와 같습니다.
(같은 숫자가 맞닿아 있습니다)
이 때 주사위를 쌓았을 때 위 아래면이 아닌 옆면의 숫자의 합이 가장 큰 경우를 구하는 문제입니다.
🔍 풀이 방법
맨 아래에 있는 정육면체를 어떤식으로 놓을지에 따라 위의 정육면체들은 고정되기 때문에
아래에 있는 것의 각 면에 맞게 6번 순회합니다.
이 때 각 주사위마다 가장 큰 숫자들을 한 면으로 몰아서 계산했습니다.
⏳ 회고
약간 노가다식의 문제였습니다