본문 바로가기

clohi 님의 블로그

검색하기
clohi 님의 블로그
프로필사진 clohi

  • 분류 전체보기 (30) N
    • Backend (1)
      • Spring (1)
    • Algorithm (21)
      • BOJ (21)
    • 구름톤 유니브 (1)
    • CS (7) N
      • 운영체제 (2)
      • 네트워크 (4)
      • 자료구조&알고리즘 (1) N
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Tags
  • dfs
  • 백준
  • 완전 탐색
  • 3986
  • 완전탐색
  • 24480
  • 14248
  • 시뮬레이션
  • python
  • 15900
  • 누적합
  • 10546
  • 5972
  • 11726
  • 10799
  • 브루트포스
  • 투 포인터
  • 알고리즘
  • 14503
  • BOJ
  • 이분탐색
  • 스택
  • 16713
  • 10431
  • 8983
  • BFS
  • dp
  • 17299
  • 구현
  • 그리디
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록1038 (1)

clohi 님의 블로그

[BOJ / Python] 1038 : 감소하는 수

https://www.acmicpc.net/problem/1038 문제 코드 from itertools import combinationsimport sysinput = sys.stdin.readlinen = int(input())arr = []for i in range(1, 11): for j in combinations(range(10), i): num = sorted(j, reverse=True) arr.append(int("".join(map(str, num))))arr.sort()if(len(arr) 문제 풀이 - 완전탐색, 조합조합을 이용해서 감소하는 수를 모두 찾아 배열에 넣고 n번째 감소하는 수를 찾는 식으로 풀었다. for i in range(1, 11..

Algorithm/BOJ 2025. 7. 13. 21:29
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바