Saleh127

CF 1405A

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