题解 | #提取不重复的整数#
提取不重复的整数
http://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
mystr = str(input())[::-1] # 倒序输入的数字
L=[]
for x in mystr:
if x not in L: #C++用vector理解
L.append(x)
else:
continue
print(''.join(L))
提取不重复的整数
http://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
mystr = str(input())[::-1] # 倒序输入的数字
L=[]
for x in mystr:
if x not in L: #C++用vector理解
L.append(x)
else:
continue
print(''.join(L))
相关推荐