题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
num = input().strip('0')[::-1]
b = ''
for i in num:
if i in b:
continue
b += i
print(b)
b = ''
for i in num:
if i in b:
continue
b += i
print(b)
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
相关推荐