题解 | #字符统计#
字符统计
https://www.nowcoder.com/practice/c1f9561de1e240099bdb904765da9ad0
s = input()
l = list(set(s))
l.sort()
l.sort(key=lambda x:s.count(x),reverse=True)
print(''.join(l))
字符统计
https://www.nowcoder.com/practice/c1f9561de1e240099bdb904765da9ad0
s = input()
l = list(set(s))
l.sort()
l.sort(key=lambda x:s.count(x),reverse=True)
print(''.join(l))
相关推荐