L2-044 大众情人(25分) //用距离感建有向图,Floyd计算全图最短路即可,不知道哪里错了,重写一遍过了#include<bits/stdc++.h>usingnamespacestd;typedeflonglongLL;constintmaxn =1e6+10;constintinf =1e9+10;structnode{intto, d;};inte[510][510];intsex[510];intmain(){ ios::sync_with_stdio(0)...
L2-044 大众情人(25分) //用距离感建有向图,Floyd计算全图最短路即可,不知道哪里错了,重写一遍过了 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int maxn = 1e6+10; const int inf = 1e9+10; struct node{int to, d;}; int e[510][510]; int sex[510]; in...