<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>h0rnet</author_name>
  <author_url>https://blog.hatena.ne.jp/h0rnet/</author_url>
  <blog_title>0w1</blog_title>
  <blog_url>https://h0rnet.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>Mobius</anon>
  </categories>
  <description>Problem - 547C - Codeforces題意： 給 N 個數字的數列 A。接著 Q 筆操作，每次將 A[ idx ] 取出 / 放入一個櫃子。求每次操作完，櫃子裡有多少無序對，其最大公因數為 1。資料規模： N, Q ≤ 2e5 max{ A } ≤ 5e5 TL: 2000 ms解法： 令 p 序列為當前櫃子裡的值，N 為 p 序列的大小： 在給定的數據範圍內，每次操作至多只會更改 2^6 個 bai 值，因此暴力維護 bai 值和答案即可。時間 / 空間複雜度： O( MAXA lg MAXA + Q * 2^6 ) / O( MAXA ) #include &lt;bits/st…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh0rnet.hatenablog.com%2Fentry%2F2017%2F03%2F13%2FCFR_547_C__Mike_and_Foam_%2528_Mobius_Inversion_%2529&quot; title=&quot;CFR 547 C. Mike and Foam ( Mobius Inversion ) - 0w1&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/h0rnet/20170313/20170313233433.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-13 23:46:44</published>
  <title>CFR 547 C. Mike and Foam ( Mobius Inversion )</title>
  <type>rich</type>
  <url>https://h0rnet.hatenablog.com/entry/2017/03/13/CFR_547_C__Mike_and_Foam_%28_Mobius_Inversion_%29</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
