绝对值排序(动态内存分配(calloc) 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<stdlib.h>int main(){ int i,j,n,*p,*t; scanf("%d",&n); while(…… 题解列表 2024年03月30日 0 点赞 0 评论 610 浏览 评分:9.9
最简单的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i=1; long long j=1,sum=0; for…… 题解列表 2024年03月30日 0 点赞 0 评论 509 浏览 评分:0.0
编写题解 1487: 蓝桥杯算法提高VIP-不同单词个数统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void max(char* p, char sz[110][15],int s){ i…… 题解列表 2024年03月30日 0 点赞 0 评论 817 浏览 评分:0.0
编写题解 1536: 蓝桥杯算法提高VIP-最长单词 摘要:解题思路:注意事项:按空格分割为多个字符串,在比较每个字符串的长度。参考代码:#include<stdio.h>#include<string.h>void max(char* p, char sz[…… 题解列表 2024年03月30日 0 点赞 0 评论 896 浏览 评分:0.0
题目 1051: [编程入门]结构体之成绩统计2 摘要:#include <stdio.h> // 定义学生结构体 typedef struct { char id[20]; char name[20]; int …… 题解列表 2024年03月30日 0 点赞 0 评论 435 浏览 评分:0.0
题目 1050: [编程入门]结构体之成绩记录 摘要:#include <stdio.h> // 定义学生结构体 typedef struct { char id[20]; char name[20]; int s…… 题解列表 2024年03月30日 0 点赞 0 评论 471 浏览 评分:0.0
1150: C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路: 类似 sum=sum+i;注意事项: 除法时,俩个数相除都是整数,截取了小数部分,用强制类型转换或者 1.0* 的形式来表示其小数部分参考代码: # include <stdio.h>i…… 题解列表 2024年03月29日 0 点赞 0 评论 595 浏览 评分:0.0
史上最简单数组插入 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <stdbool.h>int main(){ int i,a1,a[4],q=0;…… 题解列表 2024年03月29日 0 点赞 0 评论 511 浏览 评分:9.9
最简单对角线求和方式 摘要:解题思路:一眼就懂注意事项:无参考代码:#include <stdio.h>#include <math.h>#include <stdbool.h>int main(){ int a[3][3]; …… 题解列表 2024年03月29日 0 点赞 0 评论 534 浏览 评分:9.9
有规律的数列求和 解题思路:这道题首先发现规律,首项是2/1,第二项3/2,第三项是5/3,由此我们可以发现下一项的分母是前一项的分子,而分子则是前一项的分子加分母。由此,规律找到,接下来难点在于怎么让分子和分母自己完成操作,我们要借助第三者来帮我们完成。因为, 题解列表 2024年03月29日 0 点赞 0 评论 620 浏览 评分:9.9