题解 | #提取不重复的整数#
提取不重复的整数
https://www.nowcoder.com/practice/253986e66d114d378ae8de2e6c4577c1
import sys
a = ''
for line in sys.stdin:
if line == '\n':
break
a = line.strip()
o = {}
for i in a[-1:-len(a)-1:-1]:
if not o.get(i):
o[i] = True
print(i, sep='', end='')
查看4道真题和解析
深信服公司福利 885人发布
