// 想定解: 全探索 #include using namespace std; template void rc(_T v,_T mn,_T mx){if(v> S; rc((int)S.size(), 1, 11); set res; sort(S.begin(), S.end()); do { res.insert(S); } while(next_permutation(S.begin(), S.end())); cout << res.size()-1 << endl; }