#include using namespace std; #define all(a) a.begin(),a.end() using ll=long long; int n=22,m=50; vector s(n); bool func(int u){ //使った集合がuの時に一意に定まるか string t=string(m,'o');int o=m; for(int i=0;i>n>>m; for(int i=0;i>s[i]; vector dp(1<