摘要:
朴素版Dijkstra(适用于 无负权变的稠密图) #include <iostream> #include <cstring> using namespace std; const int N = 510; int n, m; int dis[N], g[N][N]; // dis数组存放起点到各 阅读全文
摘要:
#include <iostream> #include <unordered_map> using namespace std; int main(){ unordered_map<int, int> hash; for(int i = 1; i <= 100; ++i){ int t = i; 阅读全文