题解 | #提取不重复的整数#
提取不重复的整数
http://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
无脑字符串解题。
while True:
try:
a = int(input())
s = str(a)[::-1]
l = []
for i in s:
if i not in l:
l.append(i)
for i in l:
print(i,end='')
except:
break