题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
import sys
num = int(input())
if num % 10 == 0:
print("making sure the last number is not 0")
else:
string = str(num)
temp_list = []
for n in range(len(string)):
index = len(string) - n - 1
st = string[index]
# print(st)
if st not in temp_list:
print(st, sep='', end='')
temp_list.append(st)
查看4道真题和解析