tzhamoidin_twink's blog

By tzhamoidin_twink, history, 21 month(s) 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