PAT Top 1022 Werewolf (35)
题目描述
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190217224120459.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2dxX185Nw==,size_16,color_FFFFFF,t_70)
Input Specification:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190217224145434.png)
Output Specification:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190217224202273.png)
Sample Input:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190217224220640.png)
Sample Output:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190217224237524.png)
解题思路
从甲级过来的。。没想到有一天我也能更新一篇top题解。。
Code
#include<bits/stdc++.h>
using namespace std;
int N, M, L;
int id[110], vis[110];
vector<int> v;
void dfs(vector<int> res) {
if(res.size() == M)<