#include using namespace std; using ll = long long; using P = pair; vector g[2*100000]; vector> vp; double G[200000]; int n,m; int X,Y; int main() { cin >> n >> m; cin >> X >> Y; X--;Y--; for(int i = 0;i < n;i++) { int x,y; cin >> x >> y; vp.emplace_back(x,y); } for(int i = 0;i> x >> y; x--;y--; g[x].push_back(y); g[y].push_back(x); } for(int i =0;i<200000;i++) { G[i] = 1e9; } priority_queue,greater

>PQ; G[X] = 0.0; PQ.emplace(0.0,X); while(!PQ.empty()) { auto now = PQ.top(); PQ.pop(); int v = now.second; //cout<G[v]+div) { G[i]=G[v]+div; PQ.emplace(G[i],i); } } } printf("%.7lf\n",G[Y]); }