<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>CodeForces</anon>
  </categories>
  <description>問題 codeforces.comq 個のクエリが飛んでくる。それぞれのクエリは type, x の二つの整数から構成され, type = 1 の時, 種類 x のボールが飛んでくる type = 2 の時, 今までに飛んできた種類 x のボールをすべて捨てる type = 3 の時, 今まで飛んできたすべてのボールのうち, 最初の x 個のボールを捨てる それぞれのクエリが投げられた直後, 手元にあるボールの数を求めよ。 解法 D[x]: 種類 x のボールが投げられたタイミングをすべて記録したもの S[x], T[x]: 種類 x のボールのうち, 手元にあるものの区間([S[x], T[…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F08%2F31%2F162236&quot; title=&quot;Codeforces Round #366 (Div. 2) C. Thor - mayoko’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>2016-08-31 16:22:36</published>
  <title>Codeforces Round #366 (Div. 2) C. Thor</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/08/31/162236</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
