101102k专题

Codeforces Gym - 101102K Topological Sort 线段树+拓扑序

K. Topological Sort   time limit per test 8.0 s memory limit per test 256 MB input standard input output standard output Consider a directed graph G of N nodes and all edges (u→v) such th