Untitled

Anonymous
plain_text
03/05/2023 1:57 PM
368 B
18
Indexable
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main()
{
	int n;
	string k, a;
	ifstream in("funk.txt");
	in >> n;
	for (int i = 0; i < n; i++)
	{
		in >> k;
		if (size(a) < size(k))a = k;
	}
	cout << size(a) << endl << a;
}
Editor is loading...