<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torus711</author_name>
  <author_url>https://blog.hatena.ne.jp/torus711/</author_url>
  <blog_title>torus711 のアレ</blog_title>
  <blog_url>https://torus711.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>グラフ</anon>
    <anon>DFS</anon>
    <anon>Segment Tree</anon>
    <anon>期待値</anon>
  </categories>
  <description>問題文 http://codeforces.com/contest/500/problem/D 問題概要 頂点からなる重み付きの木が与えられる．辺の情報は 3 つの配列 によって与えられ， 番の辺は 2 頂点 間を結び，その重みは である．また， を，2 頂点 間の単純道のコストとする． 今，以下のようなクエリが 回くるので，処理せよ． 番の辺の重みを に変更する その後，ランダムに異なる三点 を選んだとき， を答える</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorus711.hatenablog.com%2Fentry%2F20141231%2F1420035335&quot; title=&quot;Good Bye 2014, D : New Year Santa Network - torus711 のアレ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-12-31 23:15:35</published>
  <title>Good Bye 2014, D : New Year Santa Network</title>
  <type>rich</type>
  <url>https://torus711.hatenablog.com/entry/20141231/1420035335</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
