文件名称:1130
介绍说明--下载内容均来自于网络,请自行研究使用
统计字符
Acceteped : 85 Submit : 249
Time Limit : 1000 MS Memory Limit : 65536 KB
Descr iption
给一个字符串,请找出出现次数最多的大写英文字母。
输入
第一行是一个整数N,表示样例的个数。
以后的每行一个字符串,串长不超过2000,且只含大写英文字母。
输出
每个样例输出一行,先是出现次数最多的大写英文字母,然后是它的出现次数。如果存在多个大写英文字母符合题意,只要输出最小的那个。
Sample Input
2
ABCDEFGHIJKLMNOPQRSTUVWXYZ
AAAAABBBB
Sample Output
A 1
A 5
-Statistical character Acceteped: 85 Submit: 249 Time Limit: 1000 ms Memory Limit: 65536 KB Descr iption to a string, to identify the most frequently capital letters. Input The first line is an integer N, the number of sample. After each line is a string, the string length does not exceed 2,000, and only with capital letters. The output of each sample output line, first by the highest number of capital letters, then it is the number of occurrences. If there are multiple capital letters the meaning of the questions, as long as the minimum output that. Sample Input 2 ABCDEFGHIJKLMNOPQRSTUVWXYZ AAAAABBBB Sample Output A 1 A 5
(系统自动生成,下载前可以参看下载内容)
下载文件列表
说明.txt