编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:按题意注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; while(n!…… 题解列表 2022年03月14日 0 点赞 0 评论 321 浏览 评分:9.9
记录一蛤 T#T 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<string.h>#include<ctype.h>int even(int a){ …… 题解列表 2022年02月20日 0 点赞 0 评论 112 浏览 评分:0.0
Hifipsysta-1147题-C语言训练-角谷猜想(C++代码)普通递归法 摘要:```cpp #include using namespace std; int func(int n){ int result; if(n%2==0){ …… 题解列表 2022年01月31日 0 点赞 0 评论 207 浏览 评分:9.9
顺便练习一下函数 摘要:#include<stdio.h> int fun(int n) { int ret; if ( n%2==0 ) { ret=n/2; printf("%d/2=%d\n…… 题解列表 2022年01月27日 0 点赞 0 评论 176 浏览 评分:9.9
1147: C语言训练-角谷猜想 摘要:解题思路:首先获取输入的数值;使用scanf()函数;根据题目要求,需要在一个循环中依次输出针对该数值的运算过程;首先需要判断输入数是奇数或是偶数;通过if,else if判断进入不同的分支;使用m接…… 题解列表 2022年01月27日 0 点赞 0 评论 237 浏览 评分:0.0
角谷猜想(Java代码) 摘要:参考代码:import java.util.Scanner; public class 角谷猜想 { public static void main(String[] args) { …… 题解列表 2022年01月08日 0 点赞 0 评论 654 浏览 评分:9.9
1147: C语言训练-角谷猜想 摘要:解题思路:很有意思的一个猜想,在上世纪七十年还成为了一股风靡数学界的潮流,现在已经知道在7*10^11的数值里面角谷猜想都是成立的,不过如果无法在数学的角度给出证明,他只能停留在猜想的层面。如果有人能…… 题解列表 2021年12月28日 0 点赞 0 评论 993 浏览 评分:9.9
编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:n = int(input())while n != 1: if n%2==0: print(f"{int(n)}/2={int(n/2)}") …… 题解列表 2021年12月18日 0 点赞 0 评论 236 浏览 评分:0.0
角谷猜想,简洁明了(c语言代码) 摘要:#include<stdio.h> int main() { int n; scanf("%d", &n); while (n != 1) { if (n % 2 == 0)…… 题解列表 2021年11月06日 0 点赞 0 评论 458 浏览 评分:7.7
C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c; scanf("%d",&a); while(a!=1){ print…… 题解列表 2021年11月02日 0 点赞 0 评论 312 浏览 评分:9.9