摘要: https://atcoder.jp/contests/abc223/tasks/abc223_d 题意 找一个字典序最小的$1$到$n$的排列$P$,满足$m$条限制,每条形如$a,b$,表示$a$在$P$中的位置在$b$之前。 \(n,m\le 2\times 10^5,1\le a,b\le 阅读全文
posted @ 2021-10-18 10:52 hzy1 阅读(71) 评论(0) 推荐(0) 编辑