{"provider_url":"https://hatena.blog","blog_title":"blanket log","title":" div/mod \u3068 quot/rem","author_url":"https://blog.hatena.ne.jp/blanketsky/","provider_name":"Hatena Blog","type":"rich","version":"1.0","url":"https://blanketsky.hatenadiary.org/entry/20080610/1213156189","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblanketsky.hatenadiary.org%2Fentry%2F20080610%2F1213156189\" title=\" div/mod \u3068 quot/rem - blanket log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://blanketsky.hatenadiary.org/","categories":["Haskell"],"author_name":"blanketsky","published":"2008-06-10 12:49:49","description":"Haskell \u306f\u8ca0\u6570\u306e\u5272\u308a\u7b97\u3092\u304d\u3061\u3093\u3068\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u3066\u3001\u5270\u4f59\u306e\u7b26\u53f7\u304c\u3001\u5272\u308b\u6570\u3068\u5272\u3089\u308c\u308b\u6570\u306e\u3069\u3063\u3061\u306b\u4f9d\u5b58\u3059\u308b\u304b\u30672\u7a2e\u985e\u3042\u308b\u3002 quotRem x y = (q,r) \u306a\u3089\u3070 x = qy + r divMod x y = (d,m) \u306a\u3089\u3070 x = dy + m \u9055\u3044\u306f\u3001r \u306e\u7b26\u53f7\u306f x \u3068\u540c\u3058 (restoring method) m \u306e\u7b26\u53f7\u306f y \u3068\u540c\u3058 (non-restoring method) http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=%A5%B9%A5%AF%A5%EA%A5%D7%A5%C8%B8%C0%\u2026","height":"190","image_url":null,"width":"100%"}