<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rsc96074</author_name>
  <author_url>https://blog.hatena.ne.jp/rsc96074/</author_url>
  <blog_title>rscのブログ</blog_title>
  <blog_url>https://rsc.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>知恵袋の同じものを含む順列の確率の問題をPythonで解いてみました。タイトルがなんか変ですが、お察しください。(^_^; BALLOON の７文字を並べるとき、母音と子音が交互に並ぶ確率 確率の問題では見た目が同じものでも区別して考えますが、Pythonの場合、set()を使わないと同じものでも異なるものとして順列を生成するのでitertools.permutations()がそのまま使えます。 生成した順列を母音(V)と子音(C)の文字列に変換して、「VV」と「CC」を含まないものをカウントして題意の確率を求めました。● baloon1.py # coding: UTF-8 # baloo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frsc.hatenablog.com%2Fentry%2F20160420%2F1461100492&quot; title=&quot;知恵袋の同じものを含む順列の確率の問題をPythonで解いてみた。 - rscのブログ&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>https://images-fe.ssl-images-amazon.com/images/I/51RPT4ckkGL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-20 06:14:52</published>
  <title>知恵袋の同じものを含む順列の確率の問題をPythonで解いてみた。</title>
  <type>rich</type>
  <url>https://rsc.hatenablog.com/entry/20160420/1461100492</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
