写一个标准归并模板思路解法吧,注释给大家详细打一下,c也可以借鉴 摘要:解题思路:首先做这个题的前提兄弟你要学一下归并排序,什么是归并排序,顾名思义就是把一个数组一分为二,给大家画一下q[6]=2,4,1,6,7,5;一分为二:2,4,1 …… 题解列表 2022年11月09日 0 点赞 0 评论 447 浏览 评分:9.9
利润计算(直接用if语句),没有什么操作的简单代码 摘要:解题思路:直接利用if语句注意事项:注意直接的思路,自己理好思路,有点麻烦而已。参考代码:#include <stdio.h>int main(){ int a = 0, b = 10000, …… 题解列表 2022年11月09日 0 点赞 0 评论 274 浏览 评分:0.0
最简单最基础的写发 摘要:解题思路:利用if语言和赋值法,简单暴力的直接写出!注意事项:没有什么需要注意的,看到就会参考代码:#include <stdio.h>int main(){ int a, b, c; s…… 题解列表 2022年11月09日 0 点赞 0 评论 298 浏览 评分:9.9
(结构体类型)病人排队 摘要:解题思路:排序就是简单的冒泡排序,重点核心内容是要学会使用结构体类型,这样以后写题就会变的方便注意事项:这里注意的是这个ID号是字符类型,因为可能包含字母,所以要声明char类型,参考代码:#incl…… 题解列表 2022年11月09日 0 点赞 0 评论 406 浏览 评分:7.0
校门外的树 C语音 23行代码 摘要:解题思路: 先定一个数组,全赋上1,表示是有树的,再将被挖去的赋为0,最后计算值为1的次数就行了注意事项:参考代码:#include<stdio.h>int main(){ int x[1000…… 题解列表 2022年11月09日 0 点赞 0 评论 297 浏览 评分:8.0
编写题解 2929: 网线主管 摘要:解题思路: 二分法注意事项:数组要定义成double类型的参考代码:#include<stdio.h>double a[10010]={0},mid;int n,k,mx;int m=1;int r=…… 题解列表 2022年11月09日 0 点赞 0 评论 321 浏览 评分:0.0
can can word代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n; scanf("%d ",&n); int arr[n]; for(int…… 题解列表 2022年11月09日 0 点赞 3 评论 998 浏览 评分:9.0
2884: 矩阵乘法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n,m,k; cin>>n>>m>>k;…… 题解列表 2022年11月09日 0 点赞 0 评论 479 浏览 评分:9.9
emm,感觉有点麻烦 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n; float a,b,c,d; a=0;b=0;c=0;d=0; scan…… 题解列表 2022年11月09日 0 点赞 2 评论 678 浏览 评分:9.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[100]={}, x, sum = 0, n; cin >…… 题解列表 2022年11月09日 0 点赞 0 评论 958 浏览 评分:8.4