摘要: 【题目大意】 给出一个$n$个数的序列$\{a_n\}$,其中有些地方的数为0,要求你把这个序列填成一个1到$n$的排列,使得: $(a_i, a_j) = 1$,当且仅当$(i, j) = 1$。多组数据。 $n \leq 3\times 10^5, T\leq 10$ CodeForces:无多 阅读全文
posted @ 2017-06-26 17:43 Galaxies 阅读(548) 评论(0) 推荐(0) 编辑