Skip to content

Instantly share code, notes, and snippets.

@qjatn0120
Last active October 19, 2022 00:14
Show Gist options
  • Save qjatn0120/b8c7376f6904898db3526605bfc1209a to your computer and use it in GitHub Desktop.
Save qjatn0120/b8c7376f6904898db3526605bfc1209a to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
using namespace std;
int t, n, ans[55];
int main(){
cin.tie(nullptr), ios::sync_with_stdio(false);
cin >> t;
while(t--){
cin >> n;
cout << "1 ";
for(int i = n; i >= 2; i--) cout << i << ' ';
cout << "\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment