Skip to content

Conversation

@LiiNi-coder
Copy link
Contributor

🧷 문제 링크

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

🧭 풀이 시간

60 분

👀 체감 난이도

✏️ 문제 설명

  • 버튼이 몇개 고장난 리모콘에서 특정 채널이 주어졌을때 해당 채널까지 가는데 누르는 버튼 최소개수

🔍 풀이 방법

  • 완탐

⏳ 회고

  • 처음엔 가능한 숫자를 모두 나열한후 이분탐색으로 가장 가까운것을 찾으려했지만 시간 문제로 그냥 무지성 완탐함
  • String.valueOf(num).length() 이것으로 int의 string 글자수를 셀수있다.

@ShinHeeEul ShinHeeEul merged commit 55c488a into main Oct 12, 2025
1 check passed
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