Untitled
unknown
plain_text
3 years ago
274 B
10
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...