1405A - Permutation Forgery
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
using ll = long long;
using vi = vector<int>;
int main(void)
{
int t;
cin >> t;
while (t--)
{
int n;
cin >> n;
vi a(n);
for (auto &ai : a)
cin >> ai;
reverse(a.begin(), a.end());
for (auto ai : a)
cout << ai << " ";
cout << endl;
}
return 0;
}