<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pytran</author_name>
  <author_url>https://blog.hatena.ne.jp/pytran/</author_url>
  <blog_title>ウホウホゴリラッホ</blog_title>
  <blog_url>https://pytran.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>競プロ</anon>
  </categories>
  <description>実装例 Misteerさんのコードを眺めてたら賢いと思ったので記録。 i番目とi+1番目のbitが立っていること独立にやるのではなく(b &gt;&gt; i) % 4 == 3でチェックする。賢い。 ※ 元コードだとvalidationだけど加算に書き換えている。 int w = 8; int sum = 0; for (int b = 0; b &lt; (1 &lt;&lt; (w - 1)); ++b) { for (int i = 0; i &lt; w - 2; ++i) { if ((b &gt;&gt; i) % 4 == 3) sum++; } } Submission #3536111 - AtCoder Beginne…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpytran.hateblo.jp%2Fentry%2F2019%2F07%2F16%2F195717&quot; title=&quot;隣合うbitのチェック - ウホウホゴリラッホ&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>2019-07-16 19:57:17</published>
  <title>隣合うbitのチェック</title>
  <type>rich</type>
  <url>https://pytran.hateblo.jp/entry/2019/07/16/195717</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
