[20250729] BOJ / G5 / 방탈출 / 김수연 #569
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/23352
🧭 풀이 시간
50분
👀 체감 난이도
✏️ 문제 설명
위 2가지 조건을 만족하면서 시작 방과 끝 방에 적힌 숫자의 합이 가장 큰 값 구하기
🔍 풀이 방법
bfs 사용
전역 변수로 dep 설정해두고, 가장 긴 경로일 때만 answer 변수 값 변경해줌
⏳ 회고
사소한 오류 몇 개 때문에 시간이 오래 걸렸다...
전역/지역 변수 꼼꼼히 설정하기....