Given a sequence of words, we wish to know:
The longest word appearing in the sequence.
All the letters that do not appear in any of its words (the first in the input sequence, when ties occur).
For solving this second item, your program must implement the function
void print_false(const vectorbool& @v@);
which prints, for any position of vector @v@ holding value @false@, the character with ASCII code .
The input is formed by a natural followed by non-empty words. Each word is composed exclusively by lowercase letters.
Print the longest word in the input sequence (the first in the input sequence, in case of a tie), followed by the ordered list of lowercase letters that do not appear in any word of the sequence.
You may find useful to define and use the constant @LENGTH_ALPHABET@,
const int LENGTH_ALPHABET = ’z’ - ’a’ + 1;
Author: Unknown
Translator: Maria Serna
Generation: 2026-01-25T14:35:50.119Z
© Jutge.org, 2006–2026.
https://jutge.org