#include#include #include #include #include using namespace std; const int maxn=1e4+9; int dist,p,n; struct S { int d,f; bool operator <(const S & xx) const { return d ,cmp> q; while(p
#include#include #include #include #include using namespace std; const int maxn=1e4+9; int dist,p,n; struct S { int d,f; bool operator <(const S & xx) const { return d ,cmp> q; while(p