最简单的解法 摘要:解题思路:注意事项:参考代码:#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 评论 544 浏览 评分: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 评论 863 浏览 评分:0.0
编写题解 1536: 蓝桥杯算法提高VIP-最长单词 摘要:解题思路:注意事项:按空格分割为多个字符串,在比较每个字符串的长度。参考代码:#include<stdio.h>#include<string.h>void max(char* p, char sz[…… 题解列表 2024年03月30日 0 点赞 0 评论 945 浏览 评分:0.0
题目 1051: [编程入门]结构体之成绩统计2 摘要:#include <stdio.h> // 定义学生结构体 typedef struct { char id[20]; char name[20]; int …… 题解列表 2024年03月30日 0 点赞 0 评论 490 浏览 评分:0.0
题目 1050: [编程入门]结构体之成绩记录 摘要:#include <stdio.h> // 定义学生结构体 typedef struct { char id[20]; char name[20]; int s…… 题解列表 2024年03月30日 0 点赞 0 评论 520 浏览 评分: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 评论 644 浏览 评分: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 评论 577 浏览 评分:9.9
最简单对角线求和方式 摘要:解题思路:一眼就懂注意事项:无参考代码:#include <stdio.h>#include <math.h>#include <stdbool.h>int main(){ int a[3][3]; …… 题解列表 2024年03月29日 0 点赞 0 评论 599 浏览 评分:9.9
有规律的数列求和 解题思路:这道题首先发现规律,首项是2/1,第二项3/2,第三项是5/3,由此我们可以发现下一项的分母是前一项的分子,而分子则是前一项的分子加分母。由此,规律找到,接下来难点在于怎么让分子和分母自己完成操作,我们要借助第三者来帮我们完成。因为, 题解列表 2024年03月29日 0 点赞 0 评论 676 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-冶炼金属(简单易懂) 摘要:解题思路:冶炼金属转换率V最大不会超过N组数据中A/B的最小值,最小不会超过A/B的最大值+1注意事项:计算最小界限时,由于向下取整,结果值需加一参考代码:#include<stdio.h> int…… 题解列表 2024年03月28日 2 点赞 0 评论 845 浏览 评分:8.0