<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakusaku858</author_name>
  <author_url>https://blog.hatena.ne.jp/sakusaku858/</author_url>
  <blog_title>さくBは折り紙を折っている</blog_title>
  <blog_url>https://sakusaku858.hatenablog.com/</blog_url>
  <categories>
    <anon>数学</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>さっくです。 友人に誘われてAtCoderの過去問を解いています。 結構悩んだ問題があったので紹介したいと思います。 -2進数を2進数と同じように定義します。 すなわち、あるn桁の-2進数がで表されるとき を10進数に直すと となります。ここで、の各桁は0か1です。 具体的な例を上げてみましょう。 例えば-2進数11001は です。 さてここからが問題で、 与えられた10進数の整数を -2進数に変換する方法を考えてください という内容でした。 以下、僕が解説を見てやんわり理解できた部分について説明しますので ネタバレが嫌な方はそっ閉じしてください 13（10進数）を例にとって考えてみましょう。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakusaku858.hatenablog.com%2Fentry%2F2019%2F01%2F14%2F204458&quot; title=&quot;10進数から-2進数（マイナス２進数）への変換 - さくBは折り紙を折っている&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://chart.apis.google.com/chart?cht=tx&amp;chl=S</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-14 20:44:58</published>
  <title>10進数から-2進数（マイナス２進数）への変換</title>
  <type>rich</type>
  <url>https://sakusaku858.hatenablog.com/entry/2019/01/14/204458</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
