Skip to content

Commit 0944c20

Browse files
committed
Added 1454A - Special Permutation.cpp
1 parent e3ec88e commit 0944c20

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

1454A - Special Permutation.cpp

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// ॐ नमः शिवाय
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
#define ll long long
5+
6+
// Code Written By: Vikash Patel
7+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
8+
9+
int main()
10+
{
11+
int t;
12+
cin>>t;
13+
while(t--)
14+
{
15+
int n;
16+
cin>>n;
17+
int i = 2;
18+
while(i <= n)
19+
{
20+
cout<<i<<" ";
21+
i++;
22+
}
23+
cout<<1<<" ";
24+
cout<<endl;
25+
}
26+
return 0;
27+
}
28+
29+
30+
31+
32+
33+
34+
35+

0 commit comments

Comments
 (0)