-
Notifications
You must be signed in to change notification settings - Fork 5
YoonYn9915/ 6월 3주차/ 3문제 #224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Mingguriguri
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BFS를 깊게 들어가니까 헷갈렸는데 좋은 문제 가져와주셔서 감사해요! 한 주간 고생 많으셨습니다 :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 for문을 썼는데, 윤상님 보니까 굳이 for문 쓸 필요가 없었네요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3가지이기도 하고 반복문으로 묶을 이유가 없다고 생각했어요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아래에 if 문에서 범위만 잘 지정하면 visited 배열의 크기도 S+1만큼 생성할 수 있다는 것을 알게 되었어요. 저는 아래 조건들을 처리 못해서 결국 vistied 배열의 크기를 1001로 설정했거든요..ㅜ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
붙여넣기에서 0부터 S까지인지 확인하는 조건만 달아주면 0부터 S까지 배열을 설정해도 괜찮다고 생각했습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i값에 따라 순간이동(0초), 걷기(1초)를 구분하신 것 같네요!
추후 확장할 때에는 좋은 코드인 것 같습니다.
zaqquum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이번 주도 고생하셨습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3가지 이동 방법(2*x , x-1 , x+1) 을 변화량 dx 와 인덱스 i 로 정리한 것이 인상적입니다.
민정님 말씀처럼 코드 확장할 때 용이 할 것 같네요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 여기 min_time의 역할은 무엇인가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사실 이전 숨바꼭질 2문제랑 유사하게 풀어가다가 필요없어서 지웠어야 했는데 놔둔거라서 없어도 되는 변수이긴 해요..
🔥2025-06 챌린지 진행 상황👉 그래프
👉 구현
|
🌱WIL
🚀주간 목표 문제 수: 3개
백준 #14226. 이모티콘: 그래프 / 골드 4
정리한 링크: (바로가기)
🚩제출한 코드
💡TIL
백준 #13549. 숨바꼭질 3: 그래프 / 골드 5
정리한 링크: (바로가기)
🚩제출한 코드
💡TIL
백준 #10828. 스택: 구현 / 실버 4
정리한 링크: (바로가기)
🚩제출한 코드
💡TIL