cswork / OA打开练习工作台

IBMOA #5

New Password (Interleave Two Strings)

估计简单可在线判题

考点(AI 标注)字符串

Take the first character of a, the first character of b, the second character of a, the second character of b, and so on; once one string is used up, append the rest of the other string.

输入格式

Two lines containing a and b respectively. On this site each string has 0 to 100000 printable ASCII characters (spaces allowed, but no newlines).

输出格式

Output the merged string as one whole line, preserving spaces.

样例 1

输入:

hackerrank
mountain

输出:

hmaocuknetrariannk

样例 2

输入:


abc

输出:

abc

样例 3

输入:

ab
XYZ

输出:

aXbYZ

样例说明

The correct outputs are hmaocuknetrariannk; abc; and aXbYZ. A spelling error in the original site's first example has been corrected.