The 3n + 1 problem (C语言代码) 摘要:解题思路:注意事项:相信很多人踩雷在了 当输入的n>m的情况上了参考代码:#include <stdio.h>#include <string.h>int main(){ int n,m,i,…… 题解列表 2019年04月18日 0 点赞 0 评论 654 浏览 评分: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 评论 728 浏览 评分: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 评论 655 浏览 评分: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 评论 650 浏览 评分:0.0
The 3n + 1 problem (C语言代码)不知道为什么超时,求解释!! 摘要:#include<stdio.h> #include"math.h" int main() { long i,j,k,temp; int count,max; wh…… 题解列表 2018年11月19日 0 点赞 0 评论 963 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int cyclen(int num);int main(){ int a,b,i,max=0,temp; while(sc…… 题解列表 2018年11月15日 0 点赞 0 评论 945 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:#include "stdio.h" //数值较大时会挂掉#include "string.h"#define max(a,b) a>b?a:b…… 题解列表 2018年11月09日 0 点赞 0 评论 1128 浏览 评分:0.0
求哪里错了?? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,freq,num,max=0,temp; int i,j; while(scanf("%d%d"…… 题解列表 2018年11月05日 0 点赞 0 评论 1195 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:这里选择的是几组数据一起输入,再一起输出。参考代码:#include <stdio.h> int main() { double m[100],n[100],a,b; …… 题解列表 2018年11月01日 2 点赞 1 评论 711 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:#include "stdio.h"int count = 0;int f(int n){ if (n == 1) { int k = count + 1; count = 0; return …… 题解列表 2018年10月31日 0 点赞 0 评论 663 浏览 评分:0.0