The 3n + 1 problem (C语言代码) 摘要:#include <stdio.h> int CL(int k) { int tmp=k; int cnt=1; while(tmp!=1&&tmp>0) …… 题解列表 2019年01月01日 0 点赞 0 评论 350 浏览 评分:0.0
The 3n + 1 problem (C++代码) 摘要:解题思路:将每一个区间内的数进行运算,找出其中循环次数最多的那一个注意事项:/*1 41 4 84 14 1 85 15 1 86 16 1 9 7 17 1 17*/先后输入的俩个数需要比大小让小的…… 题解列表 2019年01月19日 0 点赞 0 评论 407 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,l,r,n; int max,count,flag; while(~scanf("%d %d",…… 题解列表 2019年01月19日 0 点赞 0 评论 413 浏览 评分:0.0
The 3n + 1 problem (C++代码) 摘要:解题思路:注意事项: 输入的i不一定比j小参考代码:#include<iostream>using namespace std;int main(){ int i,j; while(cin>>i>>j…… 题解列表 2019年02月14日 2 点赞 0 评论 400 浏览 评分:0.0
The 3n + 1 problem (C++代码) 摘要:#include<iostream> using namespace std; int xh(int n); int main() { int i,j,t,MaxLen; while(…… 题解列表 2019年03月05日 0 点赞 0 评论 326 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:注意事项:相信很多人踩雷在了 当输入的n>m的情况上了参考代码:#include <stdio.h>#include <string.h>int main(){ int n,m,i,…… 题解列表 2019年04月18日 0 点赞 0 评论 316 浏览 评分:0.0
The 3n + 1 problem -题解(C语言代码) 摘要:#include int main() { int i,j,k,t,n; while(scanf("%d%d",&i,&j)==2)//当i,j都录入成功时返回值为2 { int…… 题解列表 2019年07月15日 0 点赞 0 评论 302 浏览 评分:0.0
The 3n + 1 problem -题解(C++代码) by Zfans. 摘要:```cpp #include using namespace std; int main() { long long begin, end; while (cin >>…… 题解列表 2019年07月19日 0 点赞 0 评论 353 浏览 评分:0.0
The 3n + 1 problem -题解(C语言代码) 摘要:#### 1095: The 3n + 1 problem [原题连接:The 3n +1 problem](https://www.dotcpp.com/oj/problem1000.html "…… 题解列表 2019年10月16日 0 点赞 0 评论 329 浏览 评分:0.0
The 3n + 1 problem -题解(C语言代码) 摘要:我是看了评论才注意到i,j输出的问题。但是我还有一个问题,输入1和1000000就得不到答案了,还想请教各位大佬。 ```c #include int fun(int m) { …… 题解列表 2019年10月28日 0 点赞 0 评论 309 浏览 评分:0.0