蓝桥杯2019年第十届真题-外卖店优先级-题解(Java代码) 摘要:解题思路:本题感觉就是阅读理解题,不算难题,只要认真点就行了。注意事项:①外卖店有订单时,优先级不增反减。②外卖店优先级超过5时,才能进入缓冲队列。小于等于3时被踢出。参考代码:import java…… 题解列表 2020年11月11日 0 点赞 0 评论 850 浏览 评分:8.0
[编程入门]完数的判断-题解(C语言代码) 摘要:解题思路:先找到完数,将其存储在数组中,再遍历数组,求他的因子注意事项:参考代码:#include<stdio.h> int main() { int a[20]={0};//赋值做标记 …… 题解列表 2020年11月13日 0 点赞 2 评论 713 浏览 评分:8.0
[编程入门]宏定义之找最大数-题解(C语言代码) 摘要:解题思路:函数中找最大值,就是两两比较,找出两数中的较大值,再将此处找出的较大值与剩下的一个值比较,然后找到最大值。注意事项:参考代码:#includefloat Max (float a,float…… 题解列表 2020年11月15日 0 点赞 0 评论 708 浏览 评分:8.0
[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要:解题思路:在讨论数字时记得要带上0,如果没带上0就要在后面再单独讨论一下,讨论字母时要分大小写,大小写两种均要被统计注意事项:参考代码:#include#define N 100int main(){…… 题解列表 2020年11月17日 0 点赞 0 评论 1123 浏览 评分:8.0
密码-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int n,b; char ch; int arr1[4],arr[4]={0,0,0,0}; int tur…… 题解列表 2020年11月17日 0 点赞 0 评论 962 浏览 评分:8.0
[编程入门]三个数字的排序-题解(C语言代码) 摘要:解题思路:注意事项:参考代码#include <stdio.h>int main(){ int x,y,z,temp; scanf("%d %d %d",&x,&y,&z); if(x>y) { …… 题解列表 2020年11月18日 0 点赞 1 评论 1449 浏览 评分:8.0
人见人爱A+B-题解(C语言代码) 摘要:分秒直接模60就行。 ```c #include int main() { int n; scanf("%d",&n); while(n--) { int h1,h2…… 题解列表 2020年11月20日 0 点赞 0 评论 683 浏览 评分:8.0
[编程入门]矩阵对角线求和-题解(C语言代码) 摘要:解题思路:while注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3], i = 0, j = 0, sum1 = 0, sum2 = 0; …… 题解列表 2020年11月21日 0 点赞 0 评论 1063 浏览 评分:8.0
数组的距离-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h> //绝对值函数,暴力求解int main(){ int m,n; int min; …… 题解列表 2020年11月23日 0 点赞 0 评论 637 浏览 评分:8.0
蓝桥杯2016年第七届真题-四平方和-题解(C++代码)简单暴力稍稍优化即可AC 摘要:解题思路:注意事项:参考代码:/* 时间复杂度:O((n^(3/2))/24) ,在n<=5e6的数据是可以过的 */ #include <iostream> #include <cmath…… 题解列表 2020年11月24日 0 点赞 0 评论 976 浏览 评分:8.0