<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gomi-box</author_name>
  <author_url>https://blog.hatena.ne.jp/gomi-box/</author_url>
  <blog_title>毛のはえたようなもの</blog_title>
  <blog_url>https://gomi-box.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>ProjectEuler</anon>
  </categories>
  <description>n × (n - 1) × ... × 3 × 2 × 1 を n! と表す。100! の各桁の数字の合計を求めよ。 Problem 20 - PukiWiki def make_array(num) array = [] while num &gt; 0 num,tmp = num.divmod(10) array.unshift(tmp) end return array end sum = 1 (2..100).each{|n| sum = sum * n} ans =0 make_array(sum).each{|i| ans += i} p ans 答え：648</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomi-box.hatenablog.com%2Fentry%2F20081026%2FPE_P20&quot; title=&quot;Problem 20 - 毛のはえたようなもの&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-10-26 00:00:00</published>
  <title>Problem 20</title>
  <type>rich</type>
  <url>https://gomi-box.hatenablog.com/entry/20081026/PE_P20</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
