Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

tzhamoidin_twink's blog

By tzhamoidin_twink, history, 4 years ago, In English

We have unweighted undirected graph with n vertices and m edges (n < 1e5, m < 1e6). You need to find sum of d(u, v) over all pairs of u v, where d(u, v) — minimal distance between u and v.

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it