#include<iostream>
#include<string>
#include<map>
#include<algorithm>
using namespace std;
bool comp(int i,int j)
{
return i>j;
}
int main()
{
string ss;
map<int,string> mapper;
int a[100],count=0;
cin>>ss;
mapper[ss.length()]=ss;
a[count++]=ss.length();
char c;
while((c=cin.get())!='\n')
{
cin>>ss;
mapper[ss.length()]=ss;
a[count++]=ss.length();
}
sort(a,a+count,comp);
cout<<mapper[a[0]]<<endl;
return 0;
}
0.0分
1 人评分
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:676 |
【出圈】 (C语言代码)浏览:794 |
C语言训练-数字母 (C语言代码)浏览:649 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:640 |
WU-输入输出格式练习 (C++代码)浏览:1076 |
三角形 (C++代码)递推浏览:755 |
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)浏览:520 |
计算质因子 (C语言代码)浏览:696 |
敲七 (C++代码)浏览:1050 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:563 |