数列排序 (C语言代码) 摘要:解题思路: 思路1:将比K1大的数字用一个变量保存,然后再这个数之前的数全部往后移动一位,最后把变量中的数放到数组最前面。(无需管比K1大的数字) 思路2:重新定义两个数组,…… 题解列表 2019年05月02日 0 点赞 0 评论 1205 浏览 评分:0.0
校门外的树 (C语言代码) 摘要:参考代码:#include<stdio.h>int main(void){ int a[100][2],count=0, l, j,m; //a[100][2]用来存储m个区域的起始位…… 题解列表 2019年05月02日 1 点赞 0 评论 1601 浏览 评分:0.0
C语言训练-最大数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,max; scanf("%d",&n); if(n!=-1) { max=n; while(n!…… 题解列表 2019年05月02日 0 点赞 0 评论 720 浏览 评分:0.0
蓝桥杯算法提高VIP-计算器 (C++代码)map+二进制+异或操作 摘要:解题思路: 利用map+二进制的压缩,通过异或操作写的这题,不知道怎么回事总是不通过,有没有大牛帮我看一下问题出在哪里了的?参考代码:#include<bits/stdc++.h> #defi…… 题解列表 2019年05月03日 1 点赞 0 评论 975 浏览 评分:0.0
查找最大元素 (C++代码)水一下 摘要: 水一下,其实可以更多利用字符串比较的相关内容的...题目考的太浅没办法参考代码:#include<bits/stdc++.h> using namespace std; int main(){…… 题解列表 2019年05月03日 0 点赞 0 评论 977 浏览 评分:0.0
实际上并没有那么难,一小步解决最大难点 摘要:解题思路:1、每次求完平均值后把那两个数(就是那m个数中的最大和最小值)给定位好。2、可能项数n和m的商不是整数(即n/m不为整数),我会在代码中标注出解法。3、总的来讲还是建立大数组求每段的平均值注…… 题解列表 2019年05月03日 0 点赞 0 评论 621 浏览 评分:0.0
[编程入门]报数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码: 我的手机 2019/5/3 星期五 14:33:23 #include<stdio.h> int main() { int i,j,k=0,n;…… 题解列表 2019年05月03日 0 点赞 0 评论 813 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() {struct Date {int year; int month; …… 题解列表 2019年05月03日 0 点赞 0 评论 730 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> #define P(a,b,c) (a+b+c)/2 #define S(p,a,b,c) s…… 题解列表 2019年05月03日 0 点赞 0 评论 850 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define R(a,b) a%b int main() { int a,b,rem; scanf("…… 题解列表 2019年05月03日 0 点赞 0 评论 895 浏览 评分:0.0