#include<bits/stdc++.h> #define fi first #define se second #define pii pair<int,int> using namespace std; ; const int inf = 0x3f3f3f3f; vector<int> vs[maxn]; priority_queue<pii> que; int dis[maxn]; void dij(int s){ memset(dis,inf,s…
传送门 Description Dynamic Programming, short for DP, is the favorite of iSea. It is a method for solving complex problems by breaking them down into simpler sub-problems. It is applicable to problems exhibiting the properties of overlapping sub-problem…