Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- long long test=1; cin>>test;
- while(test--){
- long long n,i,j;cin>>n;
- for(i=2;i<=n;i++) cout<<i<<" ";
- cout<<1<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement