1151:计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; long result;&nb…… 题解列表 2025年10月21日 0 点赞 0 评论 122 浏览 评分:0.0
1031字符串反转 摘要:解题思路:注意事项:参考代码:#include"stdio.h"#include"string.h"int main(){ char …… 题解列表 2025年11月25日 0 点赞 0 评论 2 浏览 评分:0.0
1044:字符串排序 摘要:解题思路:使用冒泡排序注意事项:由于输入为字符串,因此采用char字符,同时无法直接使用比较符号,因此引入string函数,在比较上采用string compare参考代码:#include"…… 题解列表 2025年11月25日 0 点赞 0 评论 1 浏览 评分:10.0
使用%o直接输出八进制数 摘要:解题思路:在c语言里%o能直接输出八进制数注意事项:需要注意题目没有说明输入数的数目,在while循环中以EOF作为文件结束标志参考代码:#include <stdio.h>int mai…… 题解列表 2025年11月24日 0 点赞 0 评论 9 浏览 评分:0.0
题目要求是找出绝对值最小的数,而不是改变数据本身。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int number[10];int num[10];int main(){ int b=0;&n…… 题解列表 2025年11月23日 0 点赞 0 评论 10 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int is_prime(int num){ if(n…… 题解列表 2025年11月23日 0 点赞 0 评论 13 浏览 评分: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 评论 13 浏览 评分: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 评论 11 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long Sn=0; long m=1; int n; scanf("…… 题解列表 2025年11月22日 0 点赞 0 评论 12 浏览 评分: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 评论 13 浏览 评分:0.0