编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int GongYueShu(int a,int b){ int temp; while(b!=0){ temp=a%b;…… 题解列表 2025年11月22日 1 点赞 0 评论 8 浏览 评分:0.0
c++最大和最小差值的两种方法 摘要:方法一:使用climits头文件定义最大数,不需要数组#include <iostream>#include <climits>//包含INT_MAX和INT_MIN#incl…… 题解列表 2025年11月22日 0 点赞 0 评论 3 浏览 评分:0.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int sum=0; int s=1; int n; int y=0; scanf(&…… 题解列表 2025年11月22日 0 点赞 0 评论 5 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long Sn=0; long m=1; int n; scanf("…… 题解列表 2025年11月22日 0 点赞 0 评论 4 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int get(int n,int facs[]){ if(n<6){ return 0; } int sum=0;…… 题解列表 2025年11月22日 0 点赞 0 评论 5 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float n=1.00,m=2.00; float sum=0.00; int N; scanf(…… 题解列表 2025年11月22日 0 点赞 0 评论 5 浏览 评分:0.0
题解 2012: 百分制成绩转换-只用了if、for、数组 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ i…… 题解列表 2025年11月23日 0 点赞 0 评论 3 浏览 评分:0.0
题解 2096: 打印平行四边形-while和for 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ i…… 题解列表 2025年11月23日 0 点赞 0 评论 4 浏览 评分:0.0
题解 2750: 字符菱形--终于写这个两for循环 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ i…… 题解列表 2025年11月23日 0 点赞 0 评论 4 浏览 评分:0.0
题解 1022: [编程入门]筛选N以内的素数-复盘 摘要:#includeusing namespace std;int su(int i){ if(i==2||i==3)return 1; for(int j=2;j>n; for(…… 题解列表 2025年11月23日 0 点赞 0 评论 4 浏览 评分:0.0