/* Problem Hard to Believe, but True! ** Algorithm Straight-Forward ** Runtime O(1) ** Author Walter Guttmann ** Date 14.06.2001 */ #include #include #include int main () { FILE *in = fopen ("hard.in", "r"); char s[32], t[32]; int a, b, c, i, l; while (fscanf (in, " %s ", s) == 1) { l = strlen (s); t[l] = 0; for (i=0 ; i