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 (Python代码) 摘要:解题思路: 这道题真的是....无法克说.... 太坑了吧也.................. 上图: 注意事项: 1. 输入 题解列表 2019年04月17日 1 点赞 2 评论 1635 浏览 评分:9.4
答案不管怎么改都错误33%的同学看过来! (C++代码) 摘要:解题思路:明明写的很对,可就是错误33%,查了两小时的资料,终于知道问题出在哪里了!注意事项:输入i,j时,并不知道大小情况,所以输入后需要比较一次,但是输出时,如果在最后输出,那可能输出的是比较大小…… 题解列表 2019年03月07日 1 点赞 16 评论 1865 浏览 评分:9.8
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++代码) 摘要:解题思路:注意事项: 输入的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 <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++代码) 摘要:解题思路:将每一个区间内的数进行运算,找出其中循环次数最多的那一个注意事项:/*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 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语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; int i,t; int n,m,max; while(scanf(…… 题解列表 2018年12月17日 0 点赞 0 评论 321 浏览 评分:0.0
The 3n + 1 problem (Java代码) 摘要:解题思路: 1、这个题的解题思路,很简单。基本已经写出来了。很容易就写好。但是有几个小细节却很容易出错注意事项: 1、题目,并没有说 j > i ,那么我就得写一个判断来确定谁大。让 j …… 题解列表 2018年12月14日 1 点赞 0 评论 683 浏览 评分:0.0