1147: C语言训练-角谷猜想
摘要:解题思路:注意事项:printf写在式子前。参考代码:#include<stdio.h>#include<math.h> int main(){ int a; scanf("%d",&a); for ……
编写题解 1147: C语言训练-角谷猜想
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n……
2025/7/31刷题记录
摘要:解题思路:注意事项:递归要满足有明显的结束条件 有要趋于结束条件的趋势参考代码:#include<stdio.h>void avgerage(int num){ ……
C语言训练-角谷猜想 (C语言代码)
摘要:解题思路:套循环,然后逐次分解注意事项:跳出循环的条件参考代码:#include<stdio.h>main(){ int a; scanf("%d",&a); while(1) { if(a!=1)……
C语言训练-新手while循环+if判定(C语言代码)
摘要:解题思路:注意事项:参考代码:int main(){ int num,t; scanf("%d",&num); while(num!=1) { if(num%2=……
C语言训练-角谷猜想-题解(C++代码)
摘要:解题思路:输入n,然后while循环当n不为1时判断n的奇偶,分别执行对应的操作,阅读理解题目即可注意事项:输出每句后要对n的值进行更新,输出句和更新句两两要写在一个域内参考代码:/*
*/
……