简单的循环判断语句嵌套 解题思路:对于输入的一个整数n,是偶数就/2,是奇数就*3再+1.每一个操作对应一句输出,别忘了换行。当n=1时循环终止注意事项:参考代码:#define_CRT_SECURE_NO_WARNINGS1#includeintmain(){intn;scanf("%d", 题解列表 2026年07月22日 0 点赞 0 评论 113 浏览 评分:0.0
Py1147-C语言训练-角谷猜想-步骤清晰 摘要:参考代码:n=int(input())m=nwhilen!=1:&n…… 题解列表 2025年11月08日 0 点赞 0 评论 407 浏览 评分:0.0
1147:角谷猜想 摘要:解题思路:注意事项:参考代码: 方法一:#include<stdio.h>int main(){ int num; scanf("%d&quo…… 题解列表 2025年11月04日 1 点赞 0 评论 451 浏览 评分:10.0
C语言训练-角谷猜想 解题思路:注意事项:参考代码:#includeusingnamespacestd;intmain(){intn;cin>>n;inta=n;while(a!=1){if(a%2==0){cout< 题解列表 2025年09月15日 0 点赞 0 评论 586 浏览 评分:0.0 1147 角谷猜想 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int ou(int x){ x /= 2; return x;}int…… 题解列表 2025年08月14日 0 点赞 0 评论 367 浏览 评分:0.0 2025/7/31刷题记录 摘要:解题思路:注意事项:递归要满足有明显的结束条件 有要趋于结束条件的趋势参考代码:#include<stdio.h>void avgerage(int num){ …… 题解列表 2025年07月31日 0 点赞 0 评论 307 浏览 评分:0.0 编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n…… 题解列表 2025年01月10日 0 点赞 0 评论 610 浏览 评分:0.0 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:printf写在式子前。参考代码:#include<stdio.h>#include<math.h> int main(){ int a; scanf("%d",&a); for …… 题解列表 2024年12月08日 0 点赞 0 评论 712 浏览 评分:0.0 最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); while(a!=1) { …… 题解列表 2024年11月18日 0 点赞 0 评论 467 浏览 评分:0.0 关于函数的简单写法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun (int n ){ int c ; scanf( "%d",&n ) ; if ( n%2==0…… 题解列表 2024年11月08日 0 点赞 0 评论 452 浏览 评分:0.0 « 12345678...1112 »
1147 角谷猜想 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int ou(int x){ x /= 2; return x;}int…… 题解列表 2025年08月14日 0 点赞 0 评论 367 浏览 评分:0.0
2025/7/31刷题记录 摘要:解题思路:注意事项:递归要满足有明显的结束条件 有要趋于结束条件的趋势参考代码:#include<stdio.h>void avgerage(int num){ …… 题解列表 2025年07月31日 0 点赞 0 评论 307 浏览 评分:0.0
编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n…… 题解列表 2025年01月10日 0 点赞 0 评论 610 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:printf写在式子前。参考代码:#include<stdio.h>#include<math.h> int main(){ int a; scanf("%d",&a); for …… 题解列表 2024年12月08日 0 点赞 0 评论 712 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); while(a!=1) { …… 题解列表 2024年11月18日 0 点赞 0 评论 467 浏览 评分:0.0
关于函数的简单写法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun (int n ){ int c ; scanf( "%d",&n ) ; if ( n%2==0…… 题解列表 2024年11月08日 0 点赞 0 评论 452 浏览 评分:0.0