摘要: CF840C On the Bench 题解 Link. Codeforces Luogu Description. 给定序列 \(\{a_i\}\),求有多少个排列是好的。 一个排列 \(\{p_i\}\) 是好的,当且仅当 \(\forall i\in[2,n],a_{p_{i-1}}\times a_{p_i}\) 是完全平方数。 Sol 阅读全文
posted @ 2021-10-18 22:07 Peal_Frog 阅读(25) 评论(0) 推荐(0) 编辑
摘要: CF1528F AmShZ Farm 题解 Link. Luogu Codeforces Description. 称一个数列 \(\{a_i\}\) 是好的,当且仅当 \(\exists \{b_i\}\),满足 \(\forall i\in[1,n],b_i\ge 0\) \(\{a_i+b_i\}\) 是个排列。 一个数列的权值是所有数 阅读全文
posted @ 2021-10-18 09:08 Peal_Frog 阅读(52) 评论(0) 推荐(0) 编辑