The 3n + 1 problem (C语言代码) 摘要:#include "stdafx.h" //不通过 参考int count = 0; int f(int n){ if (n == 1) { int k = count + 1;…… 题解列表 2018年10月31日 0 点赞 0 评论 336 浏览 评分: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 评论 327 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:这里选择的是几组数据一起输入,再一起输出。参考代码:#include <stdio.h> int main() { double m[100],n[100],a,b; …… 题解列表 2018年11月01日 2 点赞 1 评论 419 浏览 评分: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 评论 607 浏览 评分: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 评论 633 浏览 评分: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 评论 442 浏览 评分:0.0
The 3n + 1 problem (C++代码) 摘要:解题思路:就是扫雷游戏规则注意事项:一定要注意格式,一定,一定!!!!!参考代码:#include<iostream>#include<cstdio>using namespace std;int a…… 题解列表 2018年11月15日 0 点赞 0 评论 475 浏览 评分: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 评论 561 浏览 评分:0.0
The 3n + 1 problem (Java代码) 摘要:解题思路: 1、这个题的解题思路,很简单。基本已经写出来了。很容易就写好。但是有几个小细节却很容易出错注意事项: 1、题目,并没有说 j > i ,那么我就得写一个判断来确定谁大。让 j …… 题解列表 2018年12月14日 1 点赞 0 评论 683 浏览 评分: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