题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
http://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
while True:
try:
d={}
n=input()
for i in n:
if i in d:
d[i]+=1
else:
d[i]=1
a=min(d.values())
for i in n:
if d[i] == a:
n=n.replace(i,"")
print(n)
except:
break