题解 | #字符统计#这思路真的清奇
字符统计
http://www.nowcoder.com/practice/c1f9561de1e240099bdb904765da9ad0
while True:
try:
str_input = input()
new_list = list(set(str_input))
print(''.join(sorted(new_list, key=lambda x: str_input.count(x) * 1000 - ord(x),reverse=True)))
except:
break