반응형 108451 baekjoon - python - 10845 www.acmicpc.net/problem/10845 # @Author YoungMinKim # baekjoon from collections import deque import sys N = int(sys.stdin.readline()) class queue: def __init__(self): self.ls = deque([]) def push(self,num): self.ls.append(num) def pop(self): if self.size() == 0: return -1 else: return self.ls.popleft() def size(self): return len(self.ls) def front(self): if self.size() == 0: return -1 return sel.. 2020. 10. 10. 이전 1 다음 반응형