Advertisement
Saleh127

CF 1391A

Aug 9th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. ios_base::sync_with_stdio(0);
  6. cin.tie(0);cout.tie(0);
  7.  
  8. int t;
  9. cin>>t;
  10. while(t--)
  11. {
  12. int a,i;
  13. cin>>a;
  14. cout<<a<<" ";
  15. for(i=1;i<=a-1;i++)
  16. {
  17. cout<<i<<" ";
  18. }
  19. cout<<endl;
  20. }
  21.  
  22.  
  23.  
  24. return 0;
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement