1765: 词频统计-CCF-GESP2025年3月三级C++

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Input

第一行,一个整数n ,表示单词的个数;
接下来n 行,每行包含一个单词,单词由大小写英文字母组成。

Output

输出一行,包含出现次数最多的单词(输出单词为小写形式)。

Sample Input Copy

6
Apple
banana
apple
Orange
banana
apple

Sample Output Copy

apple