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 | 31 |
Tags
- 백준1476
- kotlin
- 기본메신저
- debugSymbolLevel
- 10430
- 1330
- Android
- dp
- safari world
- 10926
- BitMasking
- 18108
- 코틀린
- 2525
- 10807
- 꼬마 정민
- baekjoon
- 백준1107
- Counting The number
- 사파리 월드
- 디버그심볼
- 새싹
- 파이썬
- PreferenceManager
- 브루트포스
- 백준
- 개수 세기
- Class Delegation
- 25083
- 백준3085
Archives
- Today
- Total
목록1874 (1)
세상을 더 좋게
[백준] 1874 '스택 수열' 파이썬(python)
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 n = int(input()) stack = [] //실제 주어지는 리스트를 스택으로 저장하는 리스트 result = [] //결과를 출력할 리스트 count = 1 // 숫자를 차례대로 넣는다는 문제에서 1부터 시작. temp = True for i in range(n): num = int(input()) whil..
카테고리 없음
2021. 10. 27. 16:06