#2271. 考试二十一:字符替换(2)

考试二十一:字符替换(2)

题目描述

输入两个字符串str1,str2,将str2中前strlen(str1)个字符替换为str1,剩下的保留,输出结果;

输入格式

输入个字符串,分两行输入

输出格式

输出一行字符串

样例

样例 1

输入:

nice
beautiful girl

输出:

nicetiful girl