文章目录 题意 题解 题意 给出一个序列,重排这个序列,使得 ∑ i = 1 n g c d ( a 1 , a 2 , a 3 , . . . , a i ) \sum_{i=1}^{n}gcd(a_1,a_2,a_3, ...,a_i) i=1∑ngcd(a1,a2,a3,...,