朴素Dijkstra #include<bits/stdc++.h> using namespace std; const int inf=9999999; bool book[105]; int mp[105][105]; int dis[105]; int n,m; void Dijkstra(int s){ int start=s; memset(dis,inf,sizeof(dis)); book[s]=1; for(int i=1;i<=n;i++) dis[i]=min(di
1674: [Usaco2005]Part Acquisition Time Limit: 5 Sec Memory Limit: 64 MB Description The cows have been sent on a mission through space to acquire a new milking machine for their barn. They are flying through a cluster of stars containing N (1 <= N <