ICPC Asia Taipei-Hsinchu Regional 2019 The League of Sequence Designers(构造)
ProblemDescriptionConsiderthefollowingsequenceproblem:givennnintegersa_{1},a_{2},\ldots,a_{n},a1,a2,…,an,where\left|a_{i}\right|\leq10^{6}∣ai∣≤106forall1\leqi\leqn1≤i≤nand1\leqnusingnamespacestd;typed