#include <iostream> #include <map> using namespace std; int main() { int a, b; int totalCase = 0; cin >> totalCase; while (totalCase--) { // 注意 while 处理多个 case int count = 0; cin >> count; int arr[count]; int res[count]; std: map<int, bool> flags; for (int k = 0; k <...