[编程入门]分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int x,y; scanf("%d",&x); if(x<1…… 题解列表 2023年11月04日 0 点赞 0 评论 539 浏览 评分:9.9
【编程入门】利润计算(比较容易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int x,w; scanf("%d",&x); i…… 题解列表 2023年11月04日 0 点赞 0 评论 532 浏览 评分:9.9
2801: 奇数求和 摘要:``` #include using namespace std; int main(){ int m,n,sum=0;//sum这里要赋值0 cin>>m>>n; for(int …… 题解列表 2023年11月04日 0 点赞 0 评论 439 浏览 评分:9.9
自定义函数来筛选N以内的素数 摘要:解题思路:——————————————定义函数+循环注意事项:参考代码:#include int is_prime(int n) { int j=0; for(j=2;j<n;j++) …… 题解列表 2023年11月04日 0 点赞 0 评论 523 浏览 评分:0.0
自定义函数打印100-200的素数个数和素数 解题思路:自定义函数is_prime判断n能否被n-1个数整除根据函数返回的值来判断是否是素数注意事项:!return0的能力比break强,return0可以彻底结束一个函数,break只能跳出循环!参考代码:#includeintis_prime(intn){intj=0;for 题解列表 2023年11月04日 0 点赞 0 评论 892 浏览 评分:9.9
2848: 基因相关性 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000],a[1000];int main(){ doubl…… 题解列表 2023年11月04日 0 点赞 0 评论 557 浏览 评分:0.0
2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 505 浏览 评分:0.0
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s…… 题解列表 2023年11月04日 0 点赞 0 评论 529 浏览 评分:0.0
题解 2214: 蓝桥杯算法提高-快速排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hanshu(int a[],int low,int high){ int pivot=a[low]; while(…… 题解列表 2023年11月04日 0 点赞 0 评论 613 浏览 评分:0.0
二维数组的转置 摘要:解题思路:当j>i时换(等号有没有都行)注意事项:参考代码:#include<stdio.h>int main(){ int i, j; int temp; int arr[3][3…… 题解列表 2023年11月04日 0 点赞 0 评论 463 浏览 评分:0.0