#include #include void dfs(int N, int M, int now, int* result, int ResLen){ if(ResLen == M) { for(int i=0; i