http://acm.timus.ru/problem.aspx?space=1&num=1723

 #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std; int main()
{
char s1[];
cin>>s1;
int k=strlen(s1);
int b[];
memset(b,,sizeof(b));
for(int i=; i<k; i++)
{
b[s1[i]-'a']++;
}
int c;
int max1=;
for(int i=; i<; i++)
{
if(b[i]>max1)
{
max1=b[i];
c=i;
}
}
printf("%c\n",(c+'a'));
return ;
}

最新文章

  1. UWP开发之Mvvmlight实践九:基于MVVM的项目架构分享
  2. Learn ES2015
  3. FTPClient使用中的问题--获取当前工作目录为null
  4. The Same Game-POJ1027模拟
  5. kmod编译找不到函数kmod_log
  6. mvc 导出excel
  7. JavaBean基本用法示例(二)
  8. KVM切换声音关闭
  9. 通过spring工厂读取property配置文件
  10. discuz之搭建
  11. [编译原理代码][NFA转DFA并最小化DFA并使用DFA进行词法分析]
  12. 【转】调用getActionBar()报Call requires API level 11 (current min is 8): android.app.Activity#getActionBar
  13. 原生JS和JQuery代码编写窗口捕捉函数和页面视觉差效果(scroll()、offsetTop、滚动监听的妙用)
  14. PXE搭建
  15. PAT L3-010 是否完全二叉搜索树
  16. Python开发——1.基础知识
  17. Windows Server 2008 R2 小技巧 (转)
  18. MATLAB R2018a 输入中文却显示方框问号的问题
  19. Android Google Maps API 网络服务用于网络定位、计算路线、获取经纬度、获取详细地址等
  20. 935. Knight Dialer

热门文章

  1. XML的四种解析器原理及性能比较
  2. struts2校验器规范错误解决
  3. Android中如何将dp,dip,sp与px相互转化
  4. Hadoop32位和64位的查询
  5. spring02IOC
  6. call和apply区别
  7. 封装函数---&gt;切换,添加,删除class
  8. Android Studio Gradle 版本不同报错解决方法
  9. &#39;Invalid update: invalid number of rows in section xx. The number of rows contained in an existing section after the update (xxx)...
  10. 武汉科技大学ACM :1007: A+B for Input-Output Practice (VII)