#include #include #include #include #include #define oo 1000000000 typedef vector tVec; typedef set tSet; ifstream in("genetic.in"); int n, l; int main() { while (1) { tVec words; in >> n >> l; if (!n && !l) break; for (int i=0; i> s; words.push_back(s); } int sum = 0; for (int i=0; i