Type: RemoteJudge 1000ms 256MiB

练61.1 统计字符数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

给定一个由 a za ~ z2626 个字符组成的字符串,统计其中哪个字符出现的次数最多?

输入格式

输入包含一行,一个字符串,长度不超过 10001000

输出格式

输出一行,包括出现次数最多的字符和该字符出现的次数,中间以一个空格分开。如果有多个字符出现的次数相同且最多,那么输出 ascii 码最小的那一个字符。

样例

abbccc
c 3

2024021901

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
10
Start at
2024-2-19 17:00
End at
2024-2-19 18:30
Duration
1.5 hour(s)
Host
Partic.
11