题解列表

筛选

一笔画问题(dfs)

摘要:#include<bits/stdc++.h>using namespace std;int n, m, c;const int N = 1e3 + 5;int mapp[N][N], s……

年会-树形DP

摘要:解题思路:树形DPf[x][0]表示以x为根的子树,且x不参加舞会的最大快乐值f[x][1]表示以x为根……

密码截获:模拟 + 剪枝

摘要:解题思路:模拟 + 剪枝注意事项:参考代码:#include<iostream>usingnamespacestd;boolispd(strin……

孤独的骑士-模拟

摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intd[8][2]=&n……