2801: 奇数求和 摘要:``` #include using namespace std; int main(){ int m,n,sum=0;//sum这里要赋值0 cin>>m>>n; for(int …… 题解列表 2023年11月04日 0 点赞 0 评论 351 浏览 评分:9.9
自定义函数来筛选N以内的素数 摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n) { int j=0; for(j=2;j<n;j++) …… 题解列表 2023年11月04日 0 点赞 0 评论 386 浏览 评分:0.0
自定义函数打印100-200的素数个数和素数 摘要:解题思路:自定义函数is_prime判断n能否被n-1个数整除根据函数返回的值来判断是否是素数注意事项:!return 0的能力比break强, return 0可以彻底结束一个函数,break只能跳…… 题解列表 2023年11月04日 0 点赞 0 评论 722 浏览 评分:9.9
2851: 合法C标识符 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ cin>>…… 题解列表 2023年11月04日 0 点赞 0 评论 456 浏览 评分:0.0
2946: 数制转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int bbb[20]; int main() { int …… 题解列表 2023年11月04日 0 点赞 0 评论 483 浏览 评分:9.9
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl…… 题解列表 2023年11月04日 0 点赞 0 评论 426 浏览 评分:0.0
2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 388 浏览 评分:0.0
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 411 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){ cin.getline(…… 题解列表 2023年11月04日 0 点赞 0 评论 469 浏览 评分:9.9
题解 2214: 蓝桥杯算法提高-快速排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hanshu(int a[],int low,int high){ int pivot=a[low]; while(…… 题解列表 2023年11月04日 0 点赞 0 评论 488 浏览 评分:0.0