Boj 15828 Router python
문제 https://www.acmicpc.net/problem/15828] 15828번: Router 인터넷을 사용하기 위해서는 컴퓨터에 인터넷 회선을 연결하거나 Wi-Fi를 연결해야 한다. 이렇게 연결된 네트워크를 통해 컴퓨터에는 통신이 가능하다. 마음에 드는 노래나 동영상이 있는 곳에 www.acmicpc.net 내 풀이 from collections import deque import sys input=sys.stdin.readline storage=int(input()) buffer=deque() n=0 while n!=-1: n=int(input()) if n==0: buffer.popleft() else: if len(buffer)시간 초과 해결 참고용 다른 사람 풀이 import sys fr..
Algorithm/algorithm feedback
2021. 7. 23. 15:50