最近准备暑期实习,准备的太迟,很多基础都还没看,面试笔试都时常卡壳,带着整理一下基础知识。#基础算法# from collections import deque n, m = map(int, input().split()) graph = {v: set() for v in range(1, n+1)} indegree = {v: 0 for v in range(1, n+1)} result = [] for _ in range(m): u, v = map(int, input().split()) graph[u].add(v) indegree...