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

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

说明

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

输入格式

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

输出格式

输出一行字符串
nice
beautiful girl
nicetiful girl

来源

输入输出练习