<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinichiro_h</author_name>
  <author_url>https://blog.hatena.ne.jp/shinichiro_h/</author_url>
  <blog_title>兼雑記</blog_title>
  <blog_url>https://shinh.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>http://herumi.in.coocan.jp/diary/1804.html#13を解いた時の話。光成さんは実験的に解かれたようだったんですが、割と理詰めで解けたので、思考過程をダンプしてみます。元のコードは int calc(int a, int b, int s) { const int Q = 1 &lt;&lt; s, Q2 = Q * 2, Q3 = Q * 3; assert(0 &lt;= s &amp;&amp; s &lt;= 16 &amp;&amp; &amp;&amp; 0 &lt;= b &amp;&amp; b &lt; a &amp;&amp; a &lt; Q * 4); int n = 0; for (;;) { if (a &lt; Q2) { // A n = n * 2;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinh.hatenablog.com%2Fentry%2F2018%2F04%2F14%2F072501&quot; title=&quot;ビット演算クイズを解いた時の話 - 兼雑記&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>2018-04-14 07:25:01</published>
  <title>ビット演算クイズを解いた時の話</title>
  <type>rich</type>
  <url>https://shinh.hatenablog.com/entry/2018/04/14/072501</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
