PAT乙级 1093 字符串A+B

把当时的代码放出来,大家共同学习,互相帮助
题目:
在这里插入图片描述
输入样例:

This is a sample test
to show you_How it works

输出样例:

This ampletowyu_Hrk

代码如下(Python):

str0 = input() + input()
str1 = ''
for i in str0:
    if i not in str1:
        str1 += i
print(str1)
发布了65 篇原创文章 · 获赞 25 · 访问量 1022

猜你喜欢

转载自blog.csdn.net/chongchujianghu3/article/details/104987461