<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiromerton</author_name>
  <author_url>https://blog.hatena.ne.jp/hiromerton/</author_url>
  <blog_title>I live while I’m alive</blog_title>
  <blog_url>https://hiromerton.hatenadiary.org/</blog_url>
  <categories>
    <anon>R</anon>
  </categories>
  <description>全然別の物を探していて偶然見つけた問題． このプログラミング問題が分からん - コンピュータ勉強にっき(｀・ω・´) Rで書いてみた．ふっと思いつくまま書いたのでもっとエレガントな方法はゴマンとあると思うが． subset()に全体集合の要素数(n)と部分集合の要素数(k)を与えると，数字を文字列として出力する．subset()は，全体集合と同じ要素数(n)を持つ配列を作る．ビット配列のつもりなんだけど，Rってビット演算あるのか知らないので自分で書いた．それに1ずつ加算して，全体の和が部分集合の要素数と同じときだけ，ビットが立っている要素を出力する． # 部分集合を出力する subset &lt;-…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiromerton.hatenadiary.org%2Fentry%2F20080208%2F1202479203&quot; title=&quot;部分集合の列挙プログラム - I live while I’m alive&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-02-08 23:00:03</published>
  <title>部分集合の列挙プログラム</title>
  <type>rich</type>
  <url>https://hiromerton.hatenadiary.org/entry/20080208/1202479203</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
