Repository navigation
[W09] 김대원 주간 풀이 - #63
Open
dae-won-kim wants to merge 2 commits into
Open
dae-won-kim wants to merge 2 commits into
dae-won-kim wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🤖 PR 자동 분석
변경된 풀이
|
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.
💡 핵심 접근
340213 동영상 재생기:
mm:ss를 초 단위로 바꿔 계산하고, 시작 위치와 매 명령(prev/next) 처리 후마다 오프닝 구간이면op_end로 건너뛰도록 처리했습니다. 범위는max(0, …),min(videoLen, …)로 제한했습니다.340212 퍼즐 게임 챌린지: 숙련도가 오를수록 총 소요 시간이 줄어드는 단조성을 이용해 숙련도
1 ~ max(diffs)구간을 이분 탐색했습니다. 틀린 횟수(diff - level)마다(time_cur + time_prev)가 더해지므로long long으로 누적했습니다.340211 충돌위험 찾기: 로봇마다 r 좌표 우선 → c 좌표 순으로 이동 경로를 시간별로 모두 기록한 뒤, 시간 t마다 칸별 로봇 수를 세어 정확히 2가 되는 순간에만 위험 횟수를 올렸습니다(3대 이상이 모여도 1회).
340210 수식 복원하기: 2~9진법을 모두 시도해, 식에 쓰인 숫자가 진법 범위 안에 있고 결과가 있는 식이 모두 성립하는 진법만 후보로 남겼습니다.
X식은 후보 진법마다 결과를 해당 진법 문자열로 바꿔 모두 같으면 그 값을, 다르면?를 채웠습니다.한글 주석이 GitHub에서 깨지지 않도록 풀이 파일 인코딩을 CP949 → UTF-8로 변경했습니다(코드 변경 없음).
🔍 리뷰 요청
levels배열을 따로 만들지 않고left/right숙련도 값을 바로 이분 탐색하는 반복문으로 바꾸는 게 더 깔끔할지 의견 부탁드립니다. 재귀 + 전역 변수(minLevel) 방식이 읽기 괜찮은지도 궁금합니다.stoi(str, nullptr, base)가 유효하지 않은 자리에서 멈추는 문제 때문에validDigits로 미리 검사했는데, 더 간단한 방법이 있을까요?🤖 Generated with Claude Code