#P1583. Choose Your Words Carefully
Choose Your Words Carefully
本题没有可用的提交语言。
描述
说实话,大多数在编程竞赛题目上表现优异的学生并非写作高手。然而,优秀的程序员可以通过编写一个小程序来自动化整个创作过程,从而提升创作效率。 在这种情况下,你的写作问题是使用单词过于频繁。为了检查这一点,你需要编写一个程序,在你的论文中搜索你最常用的一个或多个单词。
输入
输入内容完全由你的论文组成。每行不超过 80 个字符,包含单词、标点符号和数字。单词由字符 {a-z,A-Z,0-9} 组成。单词之间由空格、行尾符和标点符号分隔。可能出现的标点符号包括字符
,.;\' ' \"()/:-
输入中不会找到其他字符。 输入在文件末尾结束。
单词比较不区分大小写。
输出
您的输出以以下行开始:
< n > occurrences
,其中n是出现频率最高的单词出现的次数。
该行之后是出现n次的单词,每行一个。
Fourscore and seven years ago our fathers brought forth on this
continent a new nation, conceived in liberty and dedicated to the
proposition that all men are created equal. Now we are engaged in
a great civil war, testing whether that nation or any nation so
conceived and so dedicated can long endure.
3 occurrences
and
nation