摘要:
#include<bits/stdc++.h> using namespace std; int n,m; int x,y,ru[1005]; queue<int> q; bool l[1005][1005]; vector<int>g[1005]; bool ans1; int a[1005][1 阅读全文
摘要:
找路径 #include<bits/stdc++.h> using namespace std; bool pp=false; int n,m; int a[1005][2],w[1005][1005]; bool d[1005]; int b[1005][1005]; int k[10005],x 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; bool pp=false; int n,m,wn; int a[105][2],w[1005][1005]; bool d[20]; int b[105][105]; vector<int> g[15]; i 阅读全文
摘要:
边表邻接矩阵 #include<bits/stdc++.h> using namespace std; int n,m; int v1,v2; int a[105][105]; int main(){ cin>>n>>m; for(int i=1; i<=m; i++){ cin>>v1>>v2; 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int m,k; int nx,ny; queue<int> q1; int vis[100005]; string path[10000]; string p1= "DABC"; int main(){ me 阅读全文