/* Problem: 2028 - Excuses, excuses! (From the TJU Online Judge) Author: Andres Mejia-Posada http://blogaritmo.factorcomun.org */ #include #include #include #include #include using namespace std; int main(){ int k, e; int Set = 1; while (cin >> k >> e){ while (getchar() != '\n'); set keys; while (k--){ string s; cin >> s; keys.insert(s); } vector verbatim(e), a(e); while (getchar() != '\n'); for (int i=0; i r; int best = -1; for (int i=0; i> s){ if (keys.count(s)){ score++; } } if (score == best){ r.push_back(i); }else if (score > best){ best = score; r.clear(); r.push_back(i); } } cout << "Excuse Set #" << Set++ << endl; for (int i=0; i