题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long m; cin>>m; whil…… 题解列表 2024年01月15日 0 点赞 0 评论 58 浏览 评分:0.0
题解 1147: C语言训练-角谷猜想 摘要:解题思路:没什么难想的。注意事项:在写判断奇数时要再写个不等于1,不然会无限重复。参考代码:#include <bits/stdc++.h>using namespace std;int main()…… 题解列表 2024年01月15日 0 点赞 0 评论 93 浏览 评分:9.9
1147: C语言训练-角谷猜想 摘要:解题思路:不为1持续循环注意事项:参考代码:n = int(input())while n != 1: if n % 2 == 0: print("%d/2=%d" %(n,n /…… 题解列表 2024年01月13日 0 点赞 0 评论 168 浏览 评分:8.0
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月12日 0 点赞 0 评论 97 浏览 评分:9.9
题解 1147: C语言训练-角谷猜想 摘要: #include using namespace std; int main(){ int a,b=0; cin>>a; while(1…… 题解列表 2023年11月15日 0 点赞 0 评论 84 浏览 评分:9.9
c代码记录之角谷猜想-C 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int deal(int m){ if(m%2==0){ printf("%d/2=%d\n",m,…… 题解列表 2023年11月14日 0 点赞 0 评论 56 浏览 评分:0.0
1147:C语言训练-角谷猜想 摘要:``` #include using namespace std; int a,x; int main(){ cin>>a; for( int i=1;1;i++ ){ if( …… 题解列表 2023年11月13日 0 点赞 0 评论 115 浏览 评分:0.0
C语言训练-角谷猜想(用do-while防止一开始a为1的情况) 摘要:注意事项: 这题我一看到就在想如果输入的数是1呢,这就显出do-while的效果了,先执行,后判断 参考代码: ```c #include int main() { int a,b,c…… 题解列表 2023年09月12日 0 点赞 0 评论 127 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要: #include int number_ou(int a)//当为偶数时 { printf("%d/2=%d\n",a,a/2); return a/2; } i…… 题解列表 2023年07月17日 0 点赞 0 评论 104 浏览 评分:0.0
C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int main(){ int N; cin >> N; while …… 题解列表 2023年07月11日 0 点赞 0 评论 115 浏览 评分:9.9