#18079. 考试二十一:字符替换(2)
考试二十一:字符替换(2)
说明
输入两个字符串str1,str2,将str2中前strlen(str1)个字符替换为str1,剩下的保留,输出结果;
输入格式
输入个字符串,分两行输入输出格式
输出一行字符串nice
beautiful girlnicetiful girl
输入两个字符串str1,str2,将str2中前strlen(str1)个字符替换为str1,剩下的保留,输出结果;
nice
beautiful girlnicetiful girl
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.