<?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>Ruby</anon>
    <anon>30分プログラム</anon>
  </categories>
  <description>30分プログラム、その322。Problem48 - Project Euler。 次の式は、11 + 22 + 33 + ... + 1010 = 10405071317 である。 では、11 + 22 + 33 + ... + 10001000 の最後の10桁を求めよ。 正直にやったらどうなるんだろう、とRubyでワンライナーを書いたら解けてしまった。ま、これでいいか。 使い方 $ ruby -e &quot;puts (1..1000).map{|n|n**n}.inject{|x,y|x+y}.to_s[-10..-1]&quot; 9110846700 ソースコード puts (1..1000).map…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080615%2Feuler&quot; title=&quot;Problem48 - みずぴー日記&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>2008-06-15 00:00:00</published>
  <title>Problem48</title>
  <type>rich</type>
  <url>https://mzp.hatenadiary.org/entry/20080615/euler</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
