https://www.acmicpc.net/problem/10828👉 문제 분석스택에서 push, pop, size, empty, top을 구현하는 문제 👉 알고리즘 설계push함수는 append를 사용하여 데이터 추가stack의 길이로 size 출력stack[-1]로 스택의 가장 위에 있는 정수를 출력 👉 코드import sysstack = []x = int(sys.stdin.readline())for i in range(x): y = sys.stdin.readline().split() if y[0] == "push": stack.append(y[1]) elif y[0] == "pop": if len(stack) == 0: pri..