摘要:
#include #include #include #include #include using namespace std; const int maxn=30; char maps[maxn][maxn]; int vis[maxn]; int n, k, ans, num; void dfs(int m) { if(num==k) { ans++; ... 阅读全文
摘要:
#include #include #include #include #include #include #include using namespace std; const int maxn=1007; const int INF=0x3f3f3f3f; int maps[maxn][maxn], dist[maxn], vis[maxn]; int path[maxn], pathnu... 阅读全文
摘要:
#include #include #include #include #include #include #include #include using namespace std; const int maxn=1007; const int INF=0x3f3f3f3f; int main() { int n, num; sets; set::iterator ... 阅读全文