题解列表
题解 2214: 蓝桥杯算法提高-快速排序
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hanshu(int a[],int low,int high){ int pivot=a[low]; while(……
2854: 密码翻译
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s……
2855: 简单密码
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s……
2848: 基因相关性
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl……
2851: 合法C标识符
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ cin>>……
自定义函数来筛选N以内的素数
摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n)
{
int j=0;
for(j=2;j<n;j++)
……
最大公约数与最小公倍数
摘要:解题思路:由于两个数的乘积等于这两个数的最大公约数与最小公倍数的积。所以,求两个数的最小公倍数,就可以先求出它们的最大公约数,然后用两个数的积除去最大公约数得出它们的最小公倍数。参考代码:#inclu……
结构体之成绩记录(原始解法通俗易懂)
摘要:解题思路:原始解法,没有加任何指针或者链表。方便理解。注意事项:参考代码:#include<stdio.h>#include<string.h>struct Student { char id[128……