본문 바로가기

clohi 님의 블로그

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

  • 분류 전체보기 (29)
    • Backend (1)
      • Spring (1)
    • Algorithm (21)
      • BOJ (21)
    • 구름톤 유니브 (1)
    • CS (6)
      • 운영체제 (2)
      • 네트워크 (4)
      • 자료구조&알고리즘 (0)
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
  • 알고리즘
  • 시뮬레이션
  • 누적합
  • 24480
  • 5972
  • 백준
  • python
  • 3986
  • 스택
  • dp
  • 8983
  • 10431
  • BOJ
  • 그리디
  • 14248
  • BFS
  • 완전탐색
  • 10546
  • 16713
  • dfs
  • 투 포인터
  • 구현
  • 17299
  • 브루트포스
  • 이분탐색
  • 10799
  • 완전 탐색
  • 14503
  • 11726
  • 15900
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록17299 (1)

clohi 님의 블로그

[BOJ / Python] 17299 : 오등큰수

https://www.acmicpc.net/problem/17299 문제 코드 - 직접 구현from collections import dequeimport sysMAX_NUM = 1000001input = sys.stdin.readlinen = int(input())li = list(map(int, input().split()))li_cnt = [0] * MAX_NUMfor i in li: li_cnt[i] += 1ans = deque()stack = []while(1): if(len(li) == 0): break x = li[-1] if(len(stack) == 0): stack.append(x) ans.appendleft(-1) ..

Algorithm/BOJ 2025. 9. 28. 23:41
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바