[20250212] BOJ / G5 / 카드게임 / 권혁준 #90
Merged
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/10835
🧭 풀이 시간
22분
👀 체감 난이도
✏️ 문제 설명
left, 오른쪽 뭉치를right라 하면, 한 차례에 세 가지 행동 중 하나를 할 수 있다.left의 맨 위 카드를 없앤다.left와right의 맨 위 카드를 없앤다.left의 맨 위에 적힌 수 > right의 맨 위에 적힌 수이면, right의 맨 위에 적힌 수만큼 점수에 더하고 그 카드를 없앤다.🔍 풀이 방법
⏳ 회고
불가능한 경우에 대해 처리를 따로 안해주니까 40%쯤에서 계속 틀렸다.