摘要: 题目链接 点击打开链接 题目解法 这么牛的题!!! 先套路地建图,连边 \(i\to a_i\) 考虑交换 \(a_i\) 和 \(a_{a_i}\) 的含义,我们把边 \(i\to a_i,\;a_i\to a_{a_i}\) 变成了 \(i\to a_{a_i}\) 和 \(a_i\) 的自环 阅读全文
posted @ 2024-04-23 14:12 Farmer_D 阅读(46) 评论(0) 推荐(0)