weixin_39965936
2021-07-08 23:56
采纳率: 68.8%
浏览 112

C语言求输出为出现次数最多的单词(有且仅有一个)及次数。

输入

输入若干行字符串(不超过10行)。每行字符数少于500个。

输出

输出一个单词和出现的次数,之间用一个空格隔开。

输入示例

there is more in the frying pan sweetgums i said turning misty eyes on her massive son we must build you up while we have got the chance i do not like the sound of that school food
nonsense petunia i never went hungry when i was at smeltings said uncle vernon heartily 00

输出示例

i 4

数据范围

输入为字符串,输出为字符串和int范围的整数

2条回答 默认 最新

相关推荐 更多相似问题