// g++ -O2 -Wall -Wextra -pedantic -s -o ll ll.cc -ldstr #include int main() { Dstr buf; unsigned mlen = 0; while (!(buf.getline(stdin).isNull())) if (buf.length() > mlen) mlen = buf.length(); printf ("%u\n", mlen); return 0; }