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 (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>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 "stdio.h" //数值较大时会挂掉#include "string.h"#define max(a,b) a>b?a:b…… 题解列表 2018年11月09日 0 点赞 0 评论 634 浏览 评分: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> int main() { double m[100],n[100],a,b; …… 题解列表 2018年11月01日 2 点赞 1 评论 419 浏览 评分: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 "stdafx.h" //不通过 参考int count = 0; int f(int n){ if (n == 1) { int k = count + 1;…… 题解列表 2018年10月31日 0 点赞 0 评论 337 浏览 评分:0.0
The 3n + 1 problem (C语言代码)韩哥哥的解法,有冒泡排序哦 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,n,t,x,y,p,q,o,temp; int a[100]; while(~scanf("%…… 题解列表 2018年09月23日 0 点赞 0 评论 785 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:求解每一个数的循环长度,然后再求最大值。注意事项:注意前面的大,后面的小时,要先交换两个数,但是也要注意先输出或保存交换前的两个数,因为是按输入顺序输出前面两个数的参考代码:#include…… 题解列表 2018年09月08日 0 点赞 0 评论 554 浏览 评分:0.0