본문 바로가기

IT recording...

검색하기
IT recording...
프로필사진 I-one

  • 분류 전체보기 (162)
    • Spring (20)
    • DevBookReview (5)
    • Operating System (12)
    • Network (6)
    • Algorithm (56)
    • Database (8)
    • Android (14)
    • Git (8)
    • V&V (16)
    • SOPT (0)
    • Adasone(인턴) (2)
    • OPIC (4)
    • 머신러닝 & 딥러닝 (1)
    • 이모저모 (1)
    • 금융자격증 (7)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • 안드로이드
«   2025/07   »
일 월 화 수 목 금 토
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 31
Tags
  • 프로세스
  • 백트래킹
  • dfs
  • 반효경교수님
  • Spring
  • 삼성
  • 메모리관리
  • 카카오
  • DDD
  • V&V
  • MVC
  • GIT
  • 펀투
  • OS
  • 펀드투자권유자문인력
  • BOJ
  • 펀드
  • 서블릿
  • 도메인
  • 프로그래머스
  • DP
  • 운영체제
  • 네트워크
  • 가상메모리
  • BFS
  • 펀투후기
  • stage
  • 구현
  • 투자권유자문인력
  • Redis
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록boj #알고리즘 #python (1)

IT recording...

[BOJ] 10828 스택 - python

더보기 최종 코드 import sys def input(): return sys.stdin.readline().rstrip() N = int(input()) stck = [] for _ in range(N): line = input().split(" ") if line[0] == "push": #stack에 하나씩 넣기 stck.append(line[1]) elif line[0] == "pop": #stack가장 위에 있는 정수 빼고 출력(Last In First Out) if len(stck) 0: print(0) else: print(1) elif line[0] == "top": #stack가장 위에 있는 정수 출력 = 가장 마지막에 넣은 정수 출력 if len(stck)

Algorithm 2021. 12. 6. 12:04
Prev 1 Next

Blog is powered by kakao / Designed by Tistory
Total : Today : Yesterday :

티스토리툴바