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