Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 다이나믹 프로그래밍
- 힙
- dict
- MYSQL
- 프로그래머스
- level3
- 가상메모리 관리
- 수학
- 스택
- 파이썬
- 그리디
- level2
- 브루트포스
- programmers
- DP
- level0
- 가상메모리
- level1
- 재귀
- BOJ
- 운영체제
- 코딩테스트
- 다익스트라
- BFS
- N과M
- 구현
- python
- dfs
- 백준
- 딕셔너리
Archives
- Today
- Total
목록1874 (1)
동캄의 코딩도장
백준 1874 [스택 수열] 파이썬
https://www.acmicpc.net/problem/1874 1874번: 스택 수열 1부터 n까지에 수에 대해 차례로 [push, push, push, push, pop, pop, push, push, pop, push, push, pop, pop, pop, pop, pop] 연산을 수행하면 수열 [4, 3, 6, 8, 7, 5, 2, 1]을 얻을 수 있다. www.acmicpc.net import sys input = sys.stdin.readline N = int(input()) arr = [0]*(100001) answer = [] prev = 0 check = 0 for _ in range(N): curr = int(input()) if arr[curr] == 1: check = 1 brea..
코테/BOJ
2022. 3. 7. 11:54