Loading [MathJax]/jax/output/CommonHTML/jax.js
Merge array - ReimuOJ: Reimu Online Judge

Merge array

Time limit: 1000 ms
Memory limit: 256 MB
Given 2 non-decreasing integer array A,B, both of length n. Merge them into an non-decreasing array and print it. ### Input - The first line contains an integer n. - The second line contains n integers Ai. - The third line contains n integers Bi. ### Output - Print the merged array. ### Constraints - 1≤n≤105. - 1≤Ai,Bi≤109 ### Example Input: 3134123 Output: 112334