Advertisement
Saleh127

CF 1435A

Oct 25th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 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; for(int cs=1;cs<=t;cs++)
  5. int main()
  6. {
  7. ios_base::sync_with_stdio(0);
  8. cin.tie(0);
  9. cout.tie(0);
  10.  
  11. test
  12. {
  13.  
  14. ll a[10000],c,d,e,f,i,j,k,l;
  15. cin>>c;
  16. for(i=1;i<=c;i++)
  17. {
  18. cin>>a[i];
  19. }
  20. for(i=c;i>=1;i--)
  21. {
  22. if(i>c/2) cout<<-1*a[i]<<" ";
  23. else cout<<a[i]<< " ";
  24. }
  25. cout<<endl;
  26. }
  27.  
  28. return 0;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement