Advertisement
dahao

BAI4

Feb 22nd, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. typedef long long ll;
  6. typedef long double ld;
  7. typedef unsigned long long ull;
  8. typedef pair <ll, ll> ii;
  9. typedef pair <ll, ii> iii;
  10.  
  11. const ll N = 1e6 + 5;
  12. const ll INF = 1e9 + 7;
  13.  
  14. ll n;
  15. string a[N], b[N], c[N];
  16.  
  17. int main() {
  18.     //freopen("CAU4.INP", "r", stdin);
  19.     //freopen("CAU4.OUT", "w", stdout);
  20.     ios_base::sync_with_stdio(false);
  21.     cin.tie(NULL);
  22.     cout.tie(NULL);
  23.     cin >> n;
  24.     for (ll i = 1; i <= n; i++) cin >> a[i];
  25.     for (ll j = 1; j <= n; j++) cin >> b[j];
  26.     //********************
  27.     ll k = 0;
  28.     for (ll i = 1; i <= n; i++) {
  29.         c[++k] = a[i];
  30.         c[++k] = b[i];
  31.     }
  32.     //********************
  33.     for (ll i = 1; i <= k; i++) cout << c[i] << " ";
  34.     return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement