[无聊君]蓝桥杯历届试题-九宫重排 简单题解,一次就过 摘要:解题思路:一道简单的BFS(广度优先搜索)题目,套模板可直接解题与输入地图的题目一样,只是将地图的位移数组上 -1,0下 1,0左 0,-1右 0,1改为在字符串中模拟地图位移数组上 -3下 3左 -…… 题解列表 2022年01月19日 0 点赞 3 评论 894 浏览 评分:9.9
2012: 百分制成绩转换 易理解版 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int n,a[1000],m,count=0; scanf…… 题解列表 2022年01月19日 0 点赞 0 评论 391 浏览 评分:9.9
外卖店优先级(详细解答) 摘要:|1|1| | ------------ | ------------ | |2|1| |3|1| |5|2| |6|2| |6|2| 将示例按照先编号id,后时间ts排序, 因此创建…… 题解列表 2022年01月19日 1 点赞 0 评论 869 浏览 评分:9.9
二级C语言-公约公倍(python代码) 摘要:解题思路:注意事项:有两种输入方式,参考代码:c=list(map(int,input().split()))if(len(c))<2: c.extend(list(map(int,input(…… 题解列表 2022年01月19日 0 点赞 1 评论 844 浏览 评分:9.9
用筛法求之N内的素数:C语言素数筛 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[1000];int main(){ int n,m,i,j,cnt=0; scanf("%d",&n); for(i=2;i…… 题解列表 2022年01月19日 0 点赞 0 评论 380 浏览 评分:9.9
[c++]蓝桥杯算法训练VIP-数的统计 摘要:解题思路:参考代码:#include<iostream>#include<algorithm>using namespace std;struct Number{ //将每个数与出现个…… 题解列表 2022年01月19日 0 点赞 0 评论 395 浏览 评分:9.9
论进行循环前比大小的重要性 摘要:解题思路:优先比较输入的两个数的大小,从而可以比较方便地开始进行循环,大大减少了两个数的比较相关代码行数。注意事项:两个for循环第一次找到最大公约数和最小公倍数之后要有break退出循环。参考代码:…… 题解列表 2022年01月19日 0 点赞 0 评论 461 浏览 评分:9.9
暴力出奇迹 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int n; int sum; bool check(int n) { …… 题解列表 2022年01月19日 0 点赞 0 评论 537 浏览 评分:9.9
注意w大于2^k进制数所能达到的最大的位数 摘要: #include #include using namespace std; int Level(int k, int w){ //计算用2^k进制表示的数,最多的…… 题解列表 2022年01月19日 0 点赞 0 评论 613 浏览 评分:9.9
约瑟夫环——循环链表 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> struct student { int num; struct st…… 题解列表 2022年01月19日 0 点赞 0 评论 363 浏览 评分:9.9