[Python] ๋ฐฑ์ค #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 ํ์ด ํ์์ง๋ง ๋ค๋ฅธ์ฌ๋๋ค์ ์ฝ๋๊ฐ ๋ ์ข์๋ณด์ฌ์ ๊ฐ์ ธ์๋ดค๋ค! ๋ด ์ฝ๋๋ ๋ฐ์ ์์.. ๋ฐ์ฑํ์,, n = int(input()) s = [] op = [] count = 1 temp = True for i in range(n): num = int(input()) while count