摘要: ABC226F Score of Permutations Statement F - Score of Permutations (atcoder.jp) Solution 我们可以想到连边 \(i\to p_i\) 那么每一个点有出度 \(1\) ,最后显然会形成若干个环 于是,容易知道一个环的 阅读全文
posted @ 2021-11-09 10:29 _Famiglistimo 阅读(49) 评论(0) 推荐(0) 编辑