/* Kristoffer Hansen. arnsfelt@daimi.au.dk */ #include #include #include int main() { int N; set prev,cur; set::const_iterator sI; string s; string::size_type i; cin >> N; while (N-->0) { cin >> s; cur.clear(); cur.insert(""); for (i=0; ilength()>0 && (*sI)[0]==s[i]) cur.insert(sI->substr(1)); if (sI->length()<10) cur.insert(*sI+s[i]); } } if (cur.find("")!=cur.end()) cout << "An echo string with buffer size ten\n"; else if (cur.size()!=0) cout << "Not an echo string, but still consistent with the theory\n"; else cout << "Not consistent with the theory\n"; } return 0; }