摘要:本人发现20017002是“山无棱,天地合,乃敢与君绝”的数学表示。为什么呢?首先,从形上看,1和7是咬合的,然后头尾是回环的。其次,从性质上看,20017002可分解为2x3x3336167,取3336167,3336167是第239293个素数,239293是第21165个素数,21165分解成
阅读全文
摘要:#include <iostream> #include <cstdlib> #include <ctime> using namespace std; /* run this program using the console pauser or add your own getch, syste
阅读全文
摘要:把数字看成是年份,然后根据生肖赋值。这里把鼠年赋值为1,牛年赋值为2,虎年赋值为3,兔年赋值为4,龙年赋值为5,蛇年赋值为6,马年赋值为7,羊年赋值为8,猴年赋值为9,鸡年赋值为10,狗年赋值为11,猪年赋值为12。比如数字1,我们把它看成是公元1年,公元1年是鸡年,赋值10,用1和10做差得绝对值
阅读全文
摘要:#include <iostream> #include <cstdlib> #include <ctime> #include <fstream> using namespace std; const int n = 40; const int m = 66; const int lenth =
阅读全文
摘要:#include <iostream> #include <cmath> #include <fstream> using namespace std; /* run this program using the console pauser or add your own getch, syste
阅读全文
摘要:#include <iostream> #include <time.h> #include <stdlib.h> #include <cmath> using namespace std; #define random(a,b) (rand() % (b-a+1))+ a /* run this
阅读全文
摘要:观察生活,我们不难发现,吃饭的时候,有时候左边的东西会到右边来,这是为什么呢?就是舌头的作用了。 下面的代码将模拟舌头的运动: #include <iostream> #include <cstdlib> #include <time.h> #define random(a,b) (rand()%(
阅读全文
摘要:首先,我们要下载ygopro,进入到里面的pics目录。 可以看到这里的卡片是用编号命名的,我们的目的是要弄到图片的编号,因为有编号就能通过编号查到那张卡。 我们新建一个txt文档,输入如下代码: dir /a-d /b>scr.txt echo Topbook 文件名已导出! pause 然后把该
阅读全文
摘要:突然想到一个数学问题,一串数字经过折叠后,可能会出现连连看的情况,那么如何用最小步数判断这串数字经过不同的折叠后有多少种会出现连连看的情况? #include <iostream> #include <cmath> #include <time.h> using namespace std; con
阅读全文
摘要:探究有一道数学题不知道,是否能从而知道全部。上代码: #include <cstdlib> #include <iostream> #include <ctime> #include <sstream> using namespace std; #define random(a,b) (rand()
阅读全文
摘要:这里使用的区间是36,144,576,2304,9216,36864,147456,589824,2359296,9437184。至于这个区间是怎么得到的,感兴趣的同鞋可前往(https://www.cnblogs.com/chanji/p/12808117.html)观看。 首先附上程序: #in
阅读全文
摘要:(一)一个比较问题: 一个人想每天努力多一点。 (二)对比较问题的模拟: 一个人在第一天画一个正方形 (图4-1) 在第二天画两个正方形 (图4-2) 在第三天画三个正方形 (图4-3) 。。。。。。 在第n天画n个正方形 (图4-4) (三)关于比较问题的模拟的疑问 那个人在第一天之后是否在原来的
阅读全文
摘要:不难发现,9和8,8和7,7和6等等制饼图,会呈现不同的比例,但是这些都是相差1的。这里我们用C++程序跑一遍。 int main(){ int sum = 0; double temp1; double temp2; for(int i = 1;i < 10000;++i) { sum = i +
阅读全文
摘要:三门问题(换门): #include <iostream> #include <cstdlib> #include <ctime> #define random(a,b) (rand() % (b-a+1))+ a using namespace std; int main() { srand((i
阅读全文
摘要:背景:在一个很大的方形透明容器内,从某个位置放入适量的蚊子,等待几分钟后观察蚊子的分布. #include <iostream> #include <cstdlib> #include <ctime> #define random(a,b) (rand() % (b-a+1))+ a using n
阅读全文
摘要:The Codes of Matrix ClassMatrix.h:#ifndef MATRIX_H#define MATRIX_H #include #include #include #include #include"MatrixTypedef.h"// declare typedef's h...
阅读全文