ryKids
2100年1月1日 星期五
2017年4月8日 星期六
NASA Glenn Research Center
NASA Glenn Research
Center
The Beginner's
Guide to Aeronautics
What is
Aeronautics?
What are the
different kinds of careers in aerospace?
Preparing for an
Aerospace Career
2017年2月25日 星期六
2016年8月30日 星期二
ry禮物交換.py
https://dl.dropboxusercontent.com/u/33089565/ryKids/ry%E7%A6%AE%E7%89%A9%E4%BA%A4%E6%8F%9B.py
#
# ry禮物交換.py
#
# 基本題:
# 5人(a,b,c,d,e) 帶來 5 相異禮物(0,1,2,3,4),
# 彼此交換,不會拿到自己帶來禮物的機率 ==> 44/120
#
# 變化題:
# 其中2人,就說是 a,b,所帶之禮物相同(0==1),
# 彼此交換,不會拿到自己帶來禮物的機率 ==> 24/120
#
所用的原理:



In its general form,

In applications it is common to see the principle expressed in its complementary form.
#
# ry禮物交換.py
#
# 基本題:
# 5人(a,b,c,d,e) 帶來 5 相異禮物(0,1,2,3,4),
# 彼此交換,不會拿到自己帶來禮物的機率 ==> 44/120
#
# 變化題:
# 其中2人,就說是 a,b,所帶之禮物相同(0==1),
# 彼此交換,不會拿到自己帶來禮物的機率 ==> 24/120
#
所用的原理:
Inclusion–exclusion principle
In its general form,
In applications it is common to see the principle expressed in its complementary form.
2016年8月19日 星期五
2016年8月18日 星期四
訂閱:
意見 (Atom)
