解题思路:
注意事项:
参考代码:
n = int(input()) dic={} for i in range(n): a=input() if a not in dic: dic[a]=1 else: dic[a]+=1 #print(dic) max_1=max([dic[i] for i in dic]) ls=[] for i in dic: if dic[i]==max_1: ls.append(i) ls.sort() for i in ls: print(i)
0.0分
0 人评分