1.000s
128MB
第一行一个整数lns="http://www.w3.org/1998/Math/MathML">TT表示测试样例个数。lns="http://www.w3.org/1998/Math/MathML">(1 \le T \le 100)(1≤T≤100)
对于每一个测试样例:
第一行一个整数lns="http://www.w3.org/1998/Math/MathML">nn表示数组大小。lns="http://www.w3.org/1998/Math/MathML">(1 \le n \le 10^3)(1≤n≤103)
第二行lns="http://www.w3.org/1998/Math/MathML">nn个整数表示数组元素。lns="http://www.w3.org/1998/Math/MathML">(1 \le a_i \le 500)(1≤ai≤500)
2 5 1 1 3 2 2 3 1 2 3
1 2 3 1 2 3