<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiwawa_star</author_name>
  <author_url>https://blog.hatena.ne.jp/chiwawa_star/</author_url>
  <blog_title>C++競プロ学習日記(仮)</blog_title>
  <blog_url>https://chiwawa-star.hatenablog.com/</blog_url>
  <categories>
    <anon>アルゴリズムとデータ構造</anon>
    <anon>コード</anon>
    <anon>関数</anon>
  </categories>
  <description>#include &lt;bits/stdc++.h&gt; using namespace std; int sum( int N ) { if( N == 0 ) //基底部 { return 0; } else //再帰部 { return sum( N - 1 ) + 1; } } int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin &gt;&gt; n; cout &lt;&lt; sum(n) &lt;&lt; endl; return 0; } 再帰難しい...。 色々調べた結果、初めのうちは if (基底部) と else (再帰部) を きちんと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchiwawa-star.hatenablog.com%2Fentry%2F2016%2F07%2F07%2F180626&quot; title=&quot;再帰①｜等差数列の和 - C++競プロ学習日記(仮)&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>2016-07-07 18:06:26</published>
  <title>再帰①｜等差数列の和</title>
  <type>rich</type>
  <url>https://chiwawa-star.hatenablog.com/entry/2016/07/07/180626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
