有4个小朋友,每个人手里有一个玩具,现在要求大家交换玩具,每个人各拿一个但不能是原先自己的玩具,问共有多少种分配方法?( )A.6 B.9 C.12 ...

作者: tihaiku 人气: - 评论: 0
问题 有4个小朋友,每个人手里有一个玩具,现在要求大家交换玩具,每个人各拿一个但不能是原先自己的玩具,问共有多少种分配方法?( )
选项 A.6 B.9 C.12 D.15
答案 B
解析 本题可使用列举法 1号小朋友 2号小朋友 3号小朋友 4号小朋友 2 1 4 3 2 3 4 1 2 4 1 3 3 1 4 2 3 4 1 2 3 4 2 1 4 1 2 3 4 3 1 2 4 3 2 1 共9种。其实,可直接根据错位排序公式D1=0,D2=1,Dn=(n-1)×(Dn-1+Dn-2),可得D3=(3-1)×(1+0)=2,D4=-1)×(2+1)=9。

相关内容:小朋友,手里,玩具,要求,大家,各拿,共有,分配,方法

更多 网友评论0 条评论)
暂无评论
错误啦!

错误信息

  • 消息: [程序异常] : MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
  • 文件: /twcms/kongphp/cache/cache_redis.class.php
  • 位置: 第 85 行
    <?php echo 'KongPHP, Road to Jane.'; ?>