该文被密码保护。 阅读全文
posted @ 2019-02-21 22:50
Hello_World2020
阅读(41)
评论(0)
推荐(0)
摘要:
n表示长度 k表示幂数 内存超限%91 // #include<iostream> using namespace std; int test(string a){ int len=a.length(); int tag=0;//标记无循环 string str=" ",arr; //测试 1... 阅读全文
posted @ 2019-02-21 18:21
Hello_World2020
阅读(202)
评论(0)
推荐(0)
摘要:
考虑下面的算法来生成一个数字序列。以整数n开始。如果n为偶数,则除以2。如果n是奇数,乘以3再加1。用新值n重复此过程,n=1时终止。例如,将为n=22生成以下数字序列:22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1该算法对于每个整数n将终止于n=1(但尚未证明 阅读全文
posted @ 2019-02-21 14:50
Hello_World2020
阅读(756)
评论(0)
推荐(0)

浙公网安备 33010602011771号