<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Area1</author_name>
  <author_url>https://blog.hatena.ne.jp/Area1/</author_url>
  <blog_title>Area1のif(memo[i][j])</blog_title>
  <blog_url>https://area.hateblo.jp/</blog_url>
  <categories>
    <anon>POJ</anon>
    <anon>包除原理</anon>
    <anon>整数問題</anon>
  </categories>
  <description>問題 n(1自然数の個数を求めよ。 やりかた 包除原理。 nの素因数p[]を求めておく。するとnと互いに素でないn未満の自然数の数は、をn未満のp[i]の倍数の集合とするとで求めることができる。これは包除原理をもとにすぐ計算できる。(Kはnの素因数の個数)以下ソース。 vector&lt;int&gt; pf(int n){ vector&lt;int&gt; ans; for(int i = 2; i * i &lt;= n; i++){ if(n % i == 0){ ans.push_back(i); while(n % i == 0) n /= i; } } if(n != 1) ans.push_back(n);…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2016%2F05%2F23%2F160853&quot; title=&quot;POJ 2407 Relatives - Area1のif(memo[i][j])&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>http://chart.apis.google.com/chart?cht=tx&amp;chl=A_i</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-23 16:08:53</published>
  <title>POJ 2407 Relatives</title>
  <type>rich</type>
  <url>https://area.hateblo.jp/entry/2016/05/23/160853</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
