zgjja


私信TA

用户名:zgjja

访问量:10629

签 名:

X_X

等  级
排  名 147
经  验 7076
参赛次数 0
文章发表 71
年  龄 0
在职情况 学生
学  校
专  业 X_X

  自我简介:

解题思路:


注意事项:

参考代码:

import collections
n = int(input())
nums = list(map(int, input().strip().split()))
cnt = collections.Counter(nums).most_common()
cnt.sort(key=lambda x: x[0])
for i, j in cnt:
    print(i, j)


 

0.0分

0 人评分

  评论区