<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>↓問題のページ↓ D - All Assign Point Add 問題文通り愚直にシミュレーションすると、全てのクエリが1である場合に\(\mathcal{O}(N Q)\)の処理となってTLEするのでちょっとした工夫が必要。クエリ1が2度以上連続で入力された場合、最後に入力されたものしか最終結果には影響しないことを利用する。また、クエリ2/3を実行する際、\(A_i\)に対して操作を行う前に、直近のクエリ1による影響を処理していなければ、\(A_i\)への代入を行ってからクエリ2/3の処理を実行するものとしても、クエリ3で出力される値は変化しない。したがって、以下のように実装すると良い。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2024%2F07%2F25%2F011937&quot; title=&quot;ABC278 D問題 - JunKobayashi&amp;#39;s Diary&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>2024-07-25 01:19:37</published>
  <title>ABC278 D問題</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2024/07/25/011937</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
