2019.03.21) 소프트웨어 마에스트로 마지막 스퍼트 2편(dp, 삼분탐색) - 1766, 2169, 2504, 2512, 8986 (PyPy3)
위상정렬 복습이랑 삼분탐색까지 익혔다 1766번 1234567891011121314151617181920212223242526N, M = map(int, input().split()) graph = {i: list() for i in range(1, N + 1)}count = {i: 0 for i in range(1, N + 1)} for _ in range(M): a, b = map(int, input().split()) graph[a].append(b) count[b] += 1 queue = list()for i in range(1, N + 1): if count[i] == 0: queue.append(i) result = ''for _ in range(N): queue.sort() now = que..
2019.03.21