#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int t; cin >> t; while (t--) { int n; cin >> n; cin.ignore(); // 跳过换行 string s; getline(cin, s); // 读整行 string result; for (char c : s) { if (c != ' ') { re...