题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
http://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
import sys
from collections import Counter
for line in sys.stdin:
d=Counter(line.strip())
l=list(line.strip())
min_count=min(d.values())
for i in range(len(l)):
if d[l[i]]== min_count:
l[i]=''
print(''.join(l))