#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语言程序设计教程(第三版)课后习题10.4 (C语言代码)浏览:586 |
简单的a+b (C语言代码)浏览:726 |
C语言训练-列出最简真分数序列* (C语言代码)浏览:506 |
【亲和数】 (C语言代码)浏览:495 |
妹子杀手的故事 (C语言代码)浏览:1234 |
C语言程序设计教程(第三版)课后习题8.1 (C语言代码)浏览:531 |
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)浏览:609 |
母牛的故事 (C语言代码)浏览:1428 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:462 |
简单的a+b (C语言代码)浏览:546 |