[20250704] BOJ / G3 / Dance Dance Revolution / 이강현#414
Merged
ShinHeeEul merged 1 commit intomainfrom Jul 4, 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/2342
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
DDR 게임을 진행한다.
눌러야 하는 버튼의 명령이 순차적으로 주어지고, 최소한의 힘으로 버튼을 누를 때, 그 힘을 출력.
🔍 풀이 방법
DP
현재 명령과 왼발 오른발을 상태를 정의하는 조건으로 사용하고
현재 명령을 처리하는 경우를 잘 생각해보자.
⏳ 회고
dp는 배열만 잘 만들어도 거의 해결인듯 싶다.