no. it cannot work. it's like 0 --- 1 --- 2 --- 3 4 -- 5 there is no circle for one set. Cannot make them connected by doing operation mentioned above. So no solution, return -1
【在 t**r 的大作中提到】 : no. it cannot work. : it's like : 0 --- 1 --- 2 --- 3 : 4 -- 5 : there is no circle for one set. Cannot make them connected by doing : operation mentioned above. : So no solution, return -1