<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>amarui</author_name>
  <author_url>https://blog.hatena.ne.jp/amarui/</author_url>
  <blog_title>丸井綜研</blog_title>
  <blog_url>https://marui.hatenablog.com/</blog_url>
  <categories>
    <anon>PAIP</anon>
  </categories>
  <description>累乗の計算をするプログラムを書くという課題。簡単簡単。 ;;; Exercise 1.2 (defun power (n p) (if (= p 0) 1 (* n (power n (- p 1))))) 演習問題の解答を見たら、pが偶数の時には(expr (power n (/ p 2)) 2)とすることでO(N)→O(log(N))への高速化を図ったものが載っていました。なるほど、どこかで見たことのあるアルゴリズム。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarui.hatenablog.com%2Fentry%2F20120626%2F1340662515&quot; title=&quot; 演習1.2 - 丸井綜研&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>2012-06-26 07:15:15</published>
  <title> 演習1.2</title>
  <type>rich</type>
  <url>https://marui.hatenablog.com/entry/20120626/1340662515</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
