Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
281 B
0
Indexable
Never
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main()
{
	int n, s = 0;
	cin >> n;
	string b;
	for (int i = 0; i < n; i++)
	{
		string a;
		cin >> a;
		int n = a.length();
		if (s<n)
		{
			s = n;
			b = a;
		}
	}
	cout << b;
}