Wrong Answer
Code
#include <bits/stdc++.h>
#define fast ios::sync_with_stdio(false)
#define ct cin.tie(nullptr)
#define ll long long
#define nl '\n'
#define newline cout<<'\n'
#define yes cout<<"YES"<<'\n'
#define no cout<<"NO"<<'\n'
using namespace std;
void solve()
{
int n;
cin>>n;
vector<int>arr(n);
for(int i=0; i<n-1;i++)
arr[i]=i+2;
arr[n-1]=1;
for(auto x:arr)
cout<<x<<" ";
cout<<nl;
}
int main()
{
fast;
ct;
int t;
cin>>t;
while(t--)
{
solve();
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1210 A. Smallest Permutation
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-08-30 19:32:36
- Judged At
- 2025-08-30 19:32:36
- Judged By
- Score
- 0
- Total Time
- 2ms
- Peak Memory
- 580.0 KiB