ural 1723 Sandro's Book
2024-10-21 10:03:06
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 ;
}
最新文章
- UWP开发之Mvvmlight实践九:基于MVVM的项目架构分享
- Learn ES2015
- FTPClient使用中的问题--获取当前工作目录为null
- The Same Game-POJ1027模拟
- kmod编译找不到函数kmod_log
- mvc 导出excel
- JavaBean基本用法示例(二)
- KVM切换声音关闭
- 通过spring工厂读取property配置文件
- discuz之搭建
- [编译原理代码][NFA转DFA并最小化DFA并使用DFA进行词法分析]
- 【转】调用getActionBar()报Call requires API level 11 (current min is 8): android.app.Activity#getActionBar
- 原生JS和JQuery代码编写窗口捕捉函数和页面视觉差效果(scroll()、offsetTop、滚动监听的妙用)
- PXE搭建
- PAT L3-010 是否完全二叉搜索树
- Python开发——1.基础知识
- Windows Server 2008 R2 小技巧 (转)
- MATLAB R2018a 输入中文却显示方框问号的问题
- Android Google Maps API 网络服务用于网络定位、计算路线、获取经纬度、获取详细地址等
- 935. Knight Dialer
热门文章
- XML的四种解析器原理及性能比较
- struts2校验器规范错误解决
- Android中如何将dp,dip,sp与px相互转化
- Hadoop32位和64位的查询
- spring02IOC
- call和apply区别
- 封装函数--->;切换,添加,删除class
- Android Studio Gradle 版本不同报错解决方法
- &#39;Invalid update: invalid number of rows in section xx. The number of rows contained in an existing section after the update (xxx)...
- 武汉科技大学ACM :1007: A+B for Input-Output Practice (VII)