백준 10845번 큐 import sys num = int(sys.stdin.readline()) result = [] for i in range(num): req = sys.stdin.readline().rstrip() try: if req == "back": print(result[-1]) elif req == "front": print(result[0]) elif req == "size": print(len(result)) elif req == "empty": print(0 if len(result) > 0 else 1) elif req == "pop": print(result.pop(0)) elif "push" in req: v = req.split(" ")[1] result.append(v) c..