Skip to content

Conversation

@Ukj0ng
Copy link
Contributor

@Ukj0ng Ukj0ng commented Sep 24, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/4395

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

첫 이동과 마지막 이동은 반드시 1칸
이동할 때마다 이전 이동거리의 ±1 or 0 이동 가능

🔍 풀이 방법

대칭 구조를 가짐

  • d = k²2k-1
  • k² < d ≤ k²+k2k
  • k²+k < d ≤ (k+1)²2k+1

⏳ 회고

x, y가 같은 걸 체크안했다.

@lkhyun lkhyun merged commit 8e3ac81 into main Sep 24, 2025
1 check passed
@lkhyun lkhyun changed the title [20250923] BOJ / G5 / Steps / 한종욱 [20250924] BOJ / G5 / Steps / 한종욱 Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants