[20250205] BOJ / 골드2 / Catch-Up / 권혁준 #40
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/28428
🧭 풀이 시간
25분
👀 체감 난이도
✏️ 문제 설명
술래는 매 초 다음과 같이 움직일 수 있다
도망자는 (0,0)에서 시작해서 매 초$(mx,my)$ 만큼 움직인다.
술래가 도망자를 잡을 수 있는지 판별하자
🔍 풀이 방법
도망자, 술래의 시작점을 각각$(a,b), (c,d)$ 라고 하면,
$b-a$ 와 $d-c$ 의 부호에 따라 답이 정해짐을 알아챘다.
⏳ 회고
무지성 제출하지 말자