3098. 字符串的交织

Naive字符串

时间限制:2000 ms

内存限制:256 MiB

题面

在一行中输入 2 个字符串 S1 和 S2,字符串本身不含空格的字符串 (长度均不超过 80),2 个字符串之间以 1 个空格分隔。

将这 2 个字符串交织在一起 (laceString),输出 laceString 后的字符串。

Note:

字符串交织指:先取第一个字符串的第 1 个字符,后取第二个字符串的第 1 个字符,再取第一个字符串的第 2 个字符,再取第二个字符串的第 2 个字符,如此重复,直至取完其中一个字符串的全部字符,最后取另一个字符串的全部剩余字符。

例子:

abc 123 ---> a1b2c3

123 abc ---> 1a2b3c

abcde 123 ---> a1b2c3de

abc 1234567 ---> a1b2c34567

输入格式

<font color="#000000"><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "> 在一行中输入 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-size: 14pt; font-family: ">2</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "> 个字符串,字符串本身不含空格的字符串 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-size: 14pt; font-family: ">(</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "> 长度均不超过 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-size: 14pt; font-family: ">80)</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "></span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-size: 14pt; font-family: ">2</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "> 个字符串之间以 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-size: 14pt; font-family: ">1</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "> 个空格分隔。</span></font>

输出格式

<font color="#000000"><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "> 输出 </span><span courier="" lang="EN-US" mso-ansi-language:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-font-family:="" mso-fareast-language:="" mso-fareast-theme-font:="" style="font-size: 14pt; font-family: ">laceString</span><span courier="" mso-ansi-language:="" mso-bidi-font-family:="" mso-bidi-font-weight:="" mso-bidi-language:="" mso-fareast-language:="" mso-fareast-theme-font:="" mso-hansi-font-family:="" style="font-size: 14pt; font-family: 宋体 ; mso-ascii-font-family: "> 后的字符串。</span></font>

样例

输入

abc 123

输出

a1b2c3