题解列表
题解 2214: 蓝桥杯算法提高-快速排序
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hanshu(int a[],int low,int high){ int pivot=a[low]; while(……
2850: 输出亲朋字符串
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){ cin.getline(……
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……
2946: 数制转换
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>
using namespace std;
int bbb[20];
int main()
{
int ……
2851: 合法C标识符
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ cin>>……
自定义函数打印100-200的素数个数和素数
摘要:解题思路:自定义函数is_prime判断n能否被n-1个数整除根据函数返回的值来判断是否是素数注意事项:!return 0的能力比break强, return 0可以彻底结束一个函数,break只能跳……
自定义函数来筛选N以内的素数
摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n)
{
int j=0;
for(j=2;j<n;j++)
……