Open
Conversation
sforseohn
reviewed
May 8, 2025
sforseohn
left a comment
There was a problem hiding this comment.
[백트래킹 구현 문제 추가 제출 확인]
송희님 안녕하세요! 구현 문제 추가 제출해주신 것 확인했습니다. 주석 보니 잘 이해하신 것 같아요~! 나중에 비슷한 유형의 문제도 풀어보시는 거 추천 드려요 👍
https://www.acmicpc.net/workbook/view/1152
ZERO-black
reviewed
May 8, 2025
ZERO-black
left a comment
There was a problem hiding this comment.
알고리즘 문제 코드리뷰가 완료되었습니다.
리뷰에 대한 질문이 있으시면 언제든지 슬랙 DM으로 찾아와주세요~!
- 지금 기본 배열을 사용해주셨는데, 기본적으로 벡터를 사용하시는 습관을 들이시는 것을 추천드립니다. 벡터가 훨씬 유연한 자료구조이기 때문에, 활용성이 높아요!
- 알튜비튜의 코딩 컨벤션을 따라주시면 좋겠습니다. 변수 이름을 규칙에 맞추는 연습도 중요해요!
09-백트래킹/필수/10971.cpp
Outdated
Comment on lines
+34
to
+39
There was a problem hiding this comment.
p2. 문제의 조건은 한바퀴 도는 것이었어요!
만약 cycle이 존재한다면, 어느 도시에서 출발하든 한 바퀴 돌아 다시 돌아올 수 있어요.
다시 말해, 출발을 어디서 하는지는 중요하지 않답니다!
09-백트래킹/필수/10971.cpp
Outdated
There was a problem hiding this comment.
P2. 지금 목표가 최솟값을 찾는 것이니, 그보다 큰 값은 끝까지 탐색하지 않아도 괜찮아요!
이 조건을 넣어주면 탐색의 효율이 더 높아질 수 있습니다!
09-백트래킹/필수/10971.cpp
Outdated
Comment on lines
+18
to
+24
09-백트래킹/필수/14888.cpp
Outdated
Comment on lines
+20
to
+34
There was a problem hiding this comment.
p3. 이 부분을 함수로 빼주면 조금 더 깔끔한 코드가 될 것 같아요!
09-백트래킹/필수/14888.cpp
Outdated
Comment on lines
+30
to
+32
There was a problem hiding this comment.
이 부분은 계산 결과가 달라지지 않아서 조건을 나누실 필요가 없습니다!
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.
###인적사항
학번: 2391035
이름: 한송희
###과제제출
기존 제출: 14888,10971
추가 제출: 20055