<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>clarinet758</author_name>
  <author_url>https://blog.hatena.ne.jp/clarinet758/</author_url>
  <blog_title>♥ﾟ*:;恋の因数分解;:*ﾟ♥</blog_title>
  <blog_url>https://eromog.hatenablog.com/</blog_url>
  <categories>
    <anon>aoj</anon>
  </categories>
  <description>はい。 http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_7_B 1 から n までの数の中から、重複無しで３つの数を選びそれらの合計が x となる組み合わせの数を求める というので3重ループで書いていたのだが他の人の回答を見たら2重ループに出来る方法があって感動したので書いておくことに。 ・3重ループの場合 for i in range(1,n-1): for j in range(i+1,n): for k in range(j+1,n+1): if i+j+k==x:ans+=1 print ans 2重、3重がi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feromog.hatenablog.com%2Fentry%2F2014%2F09%2F15%2F025211&quot; title=&quot;Structured Program II - How many ways? - ♥ﾟ*:;恋の因数分解;:*ﾟ♥&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>2014-09-15 02:52:11</published>
  <title>Structured Program II - How many ways?</title>
  <type>rich</type>
  <url>https://eromog.hatenablog.com/entry/2014/09/15/025211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
