<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yosupo</author_name>
  <author_url>https://blog.hatena.ne.jp/yosupo/</author_url>
  <blog_title>よすぽの日記</blog_title>
  <blog_url>https://yosupo.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>a * b + c * d * eみたいに+と*のみからなる式が与えられた時に，いろんな部分文字列を高速に評価するのが本質です。 こういう変なのはad-hocにやろうとすると大体大変だしバグると詰むんですが，SegTreeで強引にやってしまえばノード2個のマージに落とせるため，(SegTreeが思考停止で書けるという前提のもとでは)思考停止で掛けてそこまでバグりません ↓頑張ってコメントを足したコードです #include &lt;bits/stdc++.h&gt; using namespace std; using ll = long long; template&lt;class T&gt; using V =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyosupo.hatenablog.com%2Fentry%2F2018%2F07%2F09%2F164545&quot; title=&quot;ICPC Domestic G: 数式探し - よすぽの日記&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>2018-07-09 16:45:45</published>
  <title>ICPC Domestic G: 数式探し</title>
  <type>rich</type>
  <url>https://yosupo.hatenablog.com/entry/2018/07/09/164545</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
