- 链接地址:https://blog.csdn.net/qq_23903863/article/details/104172261
- 链接标题:剑指Offer第43题(n个骰子的点数)-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9990
文章浏览阅读127次。(本博客旨在个人总结回顾)题目描述: 把n个骰子扔在地上,所有骰子朝上一面的点数之和为s。输入n,打印出s的所有可能值出现的概率。解法一:递归解法#include "stdafx.h"#include<iostream>using namespace std;int g_maxValue = 6;void Probability(int or...
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除