#include #include #include #include #include using namespace std; set s; bool solve(string stri, int c){ if(stri=="" && c>1) return true; //if(s.find(stri)!=s.end()) // return true; string aux=""; for(int i=0; i>n; string stri; for(int i=0; i>stri; s.insert(stri); } string sol=""; bool ok=false; for(string stri:s){ if(sol.size()