题解 2214: 蓝桥杯算法提高-快速排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hanshu(int a[],int low,int high){ int pivot=a[low]; while(…… 题解列表 2023年11月04日 0 点赞 0 评论 306 浏览 评分:0.0
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 254 浏览 评分:0.0
2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 204 浏览 评分:0.0
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl…… 题解列表 2023年11月04日 0 点赞 0 评论 248 浏览 评分:0.0
2851: 合法C标识符 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ cin>>…… 题解列表 2023年11月04日 0 点赞 0 评论 278 浏览 评分:0.0
自定义函数来筛选N以内的素数 摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n) { int j=0; for(j=2;j<n;j++) …… 题解列表 2023年11月04日 0 点赞 0 评论 200 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:由于两个数的乘积等于这两个数的最大公约数与最小公倍数的积。所以,求两个数的最小公倍数,就可以先求出它们的最大公约数,然后用两个数的积除去最大公约数得出它们的最小公倍数。参考代码:#inclu…… 题解列表 2023年11月04日 0 点赞 0 评论 221 浏览 评分:0.0
结构体之成绩记录(原始解法通俗易懂) 摘要:解题思路:原始解法,没有加任何指针或者链表。方便理解。注意事项:参考代码:#include<stdio.h>#include<string.h>struct Student { char id[128…… 题解列表 2023年11月04日 0 点赞 0 评论 175 浏览 评分:0.0
for循环c语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int Y; float M,R; scanf("%f %f %d",&R,&M,&Y); …… 题解列表 2023年11月04日 0 点赞 0 评论 252 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:在这题中使用定义宏的方法比使用定义函数的方法更简单注意事项:#define 定义常量和宏注意 #define 后面没有分号;#define 常量名 常量值#define 宏名 宏表达式参考代…… 题解列表 2023年11月05日 0 点赞 0 评论 184 浏览 评分:0.0