1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:printf写在式子前。参考代码:#include<stdio.h>#include<math.h> int main(){ int a; scanf("%d",&a); for …… 题解列表 2024年12月08日 0 点赞 0 评论 172 浏览 评分:0.0
C语言训练-角谷猜想C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n!=1) { …… 题解列表 2024年02月19日 0 点赞 0 评论 91 浏览 评分: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
C语言训练-角谷猜想 (C++代码)还是C语言好 摘要:解题思路: 还是C语言的printf好用啊,用cout要写好长参考代码:#include<bits/stdc++.h> using namespace std; int main(){ …… 题解列表 2018年12月12日 0 点赞 0 评论 490 浏览 评分: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