求哪里错了?? 摘要:解题思路:注意事项:参考代码:#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 评论 1156 浏览 评分: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 评论 1073 浏览 评分: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 评论 895 浏览 评分:0.0
The 3n + 1 problem (C++代码) 摘要:解题思路:就是扫雷游戏规则注意事项:一定要注意格式,一定,一定!!!!!参考代码:#include<iostream>#include<cstdio>using namespace std;int a…… 题解列表 2018年11月15日 0 点赞 0 评论 803 浏览 评分: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 评论 927 浏览 评分:0.0
The 3n + 1 problem (Java代码) 摘要:解题思路: 1、这个题的解题思路,很简单。基本已经写出来了。很容易就写好。但是有几个小细节却很容易出错注意事项: 1、题目,并没有说 j > i ,那么我就得写一个判断来确定谁大。让 j …… 题解列表 2018年12月14日 1 点赞 0 评论 1200 浏览 评分: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 评论 596 浏览 评分: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 评论 601 浏览 评分: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 评论 865 浏览 评分: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 评论 681 浏览 评分:0.0