题解 | #提取不重复的整数#
提取不重复的整数
http://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
#字符串先逆序 #没放进输出结果里的,就添加,已经放过的,就不处理 import sys while True: try: n = input() res = "" for c in n[::-1]: if c not in res: res += c print(res) except: # print(sys.exc_info()) break