Skip to content

Commit 7085f92

Browse files
committed
Special Permutation
1 parent d1cf50c commit 7085f92

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

1454A.cpp

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
int main(){
5+
int t;
6+
cin>>t;
7+
int n;
8+
while(t--){
9+
cin>>n;
10+
for(int i = 2; i <= n; i++){
11+
cout<<i<<" ";
12+
}
13+
cout<<1<<endl;
14+
}
15+
return 0;
16+
}

0 commit comments

Comments
 (0)