摘要:
#include<bits/stdc++.h> using namespace std; int a[1005][1005]; int n; bool b[10005]; int c[10005][10005]; int t=0; void dfs_xian(int x){ cout<<x<<" " 阅读全文
摘要:
#include<bits/stdc++.h>using namespace std; long long a[10005][10005];bool b[10005][10005];const long long p=100000007; void f(int x,int y){ if(x==1 | 阅读全文
摘要:
Floyd #include<bits/stdc++.h> using namespace std; int n,m,s,e; bool vis[10005]; int INF=0x3f3f3f3f; int d[1005][1005]; int p[1005][1005]; int G[1005] 阅读全文
摘要:
最短路径(迪科斯特算法模板) #include<bits/stdc++.h> using namespace std; int n,m,s; bool vis[10005]; int INF=0x3f3f3f3f; int d[10005]; struct node{ int v,w; }; vec 阅读全文
摘要:
分糖果 #include<bits/stdc++.h> using namespace std; int a[1005][1005]; int d[1005]; int minn=INT_MAX; bool b[1005]; vector<int> g[1005]; int y; int k; in 阅读全文