题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long m; cin>>m; whil…… 题解列表 2024年01月15日 0 点赞 0 评论 76 浏览 评分:0.0
C语言训练-角谷猜想C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n!=1) { …… 题解列表 2024年02月19日 0 点赞 0 评论 105 浏览 评分:0.0
编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:n=int(input())while n>1: if n%2==0: print(f'{int(n)}/2={int(n/2)}')…… 题解列表 2024年03月02日 0 点赞 0 评论 127 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:参考代码:n = int(input()) while n != 1: n = int(n) if n % 2 == 0: print(f"{n}/2={int…… 题解列表 2024年03月16日 1 点赞 0 评论 377 浏览 评分:0.0
编写题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){int a; cin>>a;while(a!=1){ if(…… 题解列表 2024年05月21日 0 点赞 0 评论 127 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:解题思路:循环注意事项:参考代码:#include <iomanip>#define PI 3.14159#include <bits/stdc++.h>using namespace std;int…… 题解列表 2024年07月07日 0 点赞 0 评论 72 浏览 评分:0.0
1147角谷猜想(while循环) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin >> N; while (N != 1) { …… 题解列表 2024年07月08日 0 点赞 0 评论 359 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d",&n); while(n>1) { if(n%2==0) …… 题解列表 2024年07月18日 0 点赞 0 评论 147 浏览 评分:0.0
C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:n = int(input())while n != 1: if n%2 == 0: print(f"{int(n)}/2={int(n/2)}") …… 题解列表 2024年07月30日 0 点赞 0 评论 245 浏览 评分:0.0
模块化(自定义函数)验证角谷猜想 摘要:解题思路:角谷猜想:任给一个自然数,若为偶数除以2,若为奇数则乘3加1,得到一个新的自然数后按照上面的法则继续演算,若干次后得到的结果必然为1。从这句话可以看出,只有当新的自然数为1时,才会停止循环。…… 题解列表 2024年08月01日 0 点赞 0 评论 174 浏览 评分:0.0