角谷的猜想(递归思想) ```javaimportjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);intn=scanner.nextInt();result(n) 题解列表 2024年10月17日 0 点赞 0 评论 490 浏览 评分:9.9
关于函数的简单写法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun (int n ){ int c ; scanf( "%d",&n ) ; if ( n%2==0…… 题解列表 2024年11月08日 0 点赞 0 评论 458 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); while(a!=1) { …… 题解列表 2024年11月18日 0 点赞 0 评论 478 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:printf写在式子前。参考代码:#include<stdio.h>#include<math.h> int main(){ int a; scanf("%d",&a); for …… 题解列表 2024年12月08日 0 点赞 0 评论 723 浏览 评分:0.0
编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n…… 题解列表 2025年01月10日 0 点赞 0 评论 631 浏览 评分:0.0
2025/7/31刷题记录 摘要:解题思路:注意事项:递归要满足有明显的结束条件 有要趋于结束条件的趋势参考代码:#include<stdio.h>void avgerage(int num){ …… 题解列表 2025年07月31日 0 点赞 0 评论 313 浏览 评分:0.0
1147 角谷猜想 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int ou(int x){ x /= 2; return x;}int…… 题解列表 2025年08月14日 0 点赞 0 评论 376 浏览 评分:0.0
C语言训练-角谷猜想 解题思路:注意事项:参考代码:#includeusingnamespacestd;intmain(){intn;cin>>n;inta=n;while(a!=1){if(a%2==0){cout< 题解列表 2025年09月15日 0 点赞 0 评论 607 浏览 评分:0.0 1147:角谷猜想 摘要:解题思路:注意事项:参考代码: 方法一:#include<stdio.h>int main(){ int num; scanf("%d&quo…… 题解列表 2025年11月04日 1 点赞 0 评论 457 浏览 评分:10.0 Py1147-C语言训练-角谷猜想-步骤清晰 摘要:参考代码:n=int(input())m=nwhilen!=1:&n…… 题解列表 2025年11月08日 0 点赞 0 评论 419 浏览 评分:0.0 « 12...456789101112 »
1147:角谷猜想 摘要:解题思路:注意事项:参考代码: 方法一:#include<stdio.h>int main(){ int num; scanf("%d&quo…… 题解列表 2025年11月04日 1 点赞 0 评论 457 浏览 评分:10.0
Py1147-C语言训练-角谷猜想-步骤清晰 摘要:参考代码:n=int(input())m=nwhilen!=1:&n…… 题解列表 2025年11月08日 0 点赞 0 评论 419 浏览 评分:0.0