Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- typedef long double ld;
- typedef unsigned long long ull;
- typedef pair <ll, ll> ii;
- typedef pair <ll, ii> iii;
- const ll N = 1e6 + 5;
- const ll INF = 1e9 + 7;
- ll n;
- string a[N], b[N], c[N];
- int main() {
- //freopen("CAU4.INP", "r", stdin);
- //freopen("CAU4.OUT", "w", stdout);
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- cout.tie(NULL);
- cin >> n;
- for (ll i = 1; i <= n; i++) cin >> a[i];
- for (ll j = 1; j <= n; j++) cin >> b[j];
- //********************
- ll k = 0;
- for (ll i = 1; i <= n; i++) {
- c[++k] = a[i];
- c[++k] = b[i];
- }
- //********************
- for (ll i = 1; i <= k; i++) cout << c[i] << " ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement