Skip to content

Conversation

@zinnnn37
Copy link
Contributor

🧷 문제 링크

감소하는 수

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

가장 큰 자릿수부터 가장 작은 자릿수까지 해당 자릿수의 숫자가 점점 작아지는 수이면 감소하는 수
N번째 감소하는 수 구하기

🔍 풀이 방법

0부터 num % 10 값을 확인하면서 num * 10 + i 하기..
마지막에 감소하는 수가 들어있는 리스트를 정렬해서 N번째 수 출력하기

0부터 9까지의 숫자로 만들 수 있는 경우의 수는 2^10 = 1024인데 공집합 포함이니까 숫자는 1023개
N ≥ 1023이면 -1

⏳ 회고

브루트포스가 싫다

@ShinHeeEul ShinHeeEul merged commit 853dacc into main Oct 20, 2025
1 check passed
@zinnnn37 zinnnn37 added the success 👍 해설을 보지 않고 풀었을 때 label Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants