1147: C语言训练-角谷猜想 摘要:解题思路:循环注意事项:参考代码:#include <iomanip>#define PI 3.14159#include <bits/stdc++.h>using namespace std;int…… 题解列表 2024年07月07日 0 点赞 0 评论 61 浏览 评分:0.0
C语言训练-角骨猜想的C++简易代码 摘要:解题思路:首先,为了保守可以开一个long long类型的数据n,而后只需要进入一个while(n!=1)循环,在每个循环中先对n的次态进行一个奇偶的判别偶数就输出n/2=的算式,否则输出n*3+1=…… 题解列表 2024年06月20日 0 点赞 0 评论 226 浏览 评分:6.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 评论 98 浏览 评分: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 评论 197 浏览 评分: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 评论 96 浏览 评分:0.0
C语言训练-角谷猜想C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n!=1) { …… 题解列表 2024年02月19日 0 点赞 0 评论 92 浏览 评分:0.0
题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; fo…… 题解列表 2024年01月15日 0 点赞 0 评论 107 浏览 评分:9.9
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:此题需要把算式写出来参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; …… 题解列表 2024年01月15日 0 点赞 0 评论 63 浏览 评分:9.9
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long aj; cin>>aj; …… 题解列表 2024年01月15日 0 点赞 0 评论 73 浏览 评分:6.0
题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年01月15日 0 点赞 0 评论 98 浏览 评分:9.9