Advertisement
Zeinab_Hamdy

Untitled

May 10th, 2022
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. #define ll long long
  3. #define ull unsigned long long
  4. #define newl cout<<"\n";
  5. #define space cout<<" ";
  6. #define sz(x) x.size()
  7. #define NumOfDigit(w) log10(w) + 1
  8. #define MOD 1'000'000'007
  9. #define inf 2'000'000'000
  10. #define PI 3.141592654
  11. #define modulo(a, b, mod) ((((a) % (mod)) + ((b) % (mod))) % (mod))
  12. #define ceil(w, m) (((w) / (m)) + ((w) % (m) ? 1 : 0))
  13. #define all(v) v.begin(), v.end()
  14. #define rall(v) v.rbegin(), v.rend()
  15. #define cin(v) for (auto&i:v) cin >> i;
  16. #define cout(v) for (auto&i:v) cout << i << " ";
  17. #define fixed(n) fixed << setprecision(n)
  18. using namespace std;  
  19. void zainab_hamdy(){
  20.   ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
  21.  // freopen("file.in" , "r" ,stdin);
  22.   #ifndef ONLINE_JUDGE  
  23.     freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  24.   #endif
  25. }
  26. void Solve(){
  27. ll q,n; cin>>q>>n;
  28. vector <string> v(q);
  29.  
  30. for(int i=0;i<q;i++){
  31. string s; cin>>s;
  32. v.push_back(s);
  33. }
  34.  
  35. for(int i=0;i<q;i++)  cout<<v[i]<<" ";
  36.  newl
  37. }
  38. int main(){
  39.   zainab_hamdy();
  40.   int t=1;
  41.  cin>>t;
  42.      while(t--)
  43.      Solve();
  44.  return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement