题解
2026-08-10 11:22:38
发布于:广东
3阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
string ma;
cin>>n>>ma;
n--;
while(n--)
{
string _;
cin>>_;
if(_.size()>ma.size())ma=_;
else if(_.size()==ma.size())ma=max(_,ma);
}
cout<<ma;
}
这题非常简单,直接比就行,没那么复杂
这里空空如也




有帮助,赞一个