<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mzp</author_name>
  <author_url>https://blog.hatena.ne.jp/mzp/</author_url>
  <blog_title>みずぴー日記</blog_title>
  <blog_url>https://mzp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>30分プログラム</anon>
  </categories>
  <description>30分プログラム、その776。anarchy golf - Negatenaryにインスパイアされて、-3進数への変換をやってみました。 基数が負の変換はやったことがなかったので、わりと苦戦しました。各桁が必ず正の数になるようにするのがむずい! 使い方 *Main&gt; negatenary (-60) &quot;2020&quot; ソースコード negatenary :: Integral a =&gt; a -&gt; String negQuotRem x y = let (q,r) = x `quotRem` y in if r &lt; 0 then (q+1, r-y) else (q,r) negatenary 0 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20100627%2Fnegateary&quot; title=&quot;-3進数への変換 - みずぴー日記&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>2010-06-27 00:00:00</published>
  <title>-3進数への変換</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20100627/negateary</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
