05 2020 档案

用C++验证三门问题
摘要:三门问题(换门): #include <iostream> #include <cstdlib> #include <ctime> #define random(a,b) (rand() % (b-a+1))+ a using namespace std; int main() { srand((i 阅读全文

posted @ 2020-05-21 11:08 飞凤颖悟绝伦 阅读(763) 评论(0) 推荐(0)

用C++模拟蚊子的运动来检验概率论内容
摘要:背景:在一个很大的方形透明容器内,从某个位置放入适量的蚊子,等待几分钟后观察蚊子的分布. #include <iostream> #include <cstdlib> #include <ctime> #define random(a,b) (rand() % (b-a+1))+ a using n 阅读全文

posted @ 2020-05-02 16:36 飞凤颖悟绝伦 阅读(370) 评论(0) 推荐(0)

导航