文件名称:1130
-
所属分类:
- 标签属性:
- 上传时间:2013-05-21
-
文件大小:1.25kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
统计字符
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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.