蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:####解题思路 假设当前位置为 i: 1.若是向右修剪,将会经过 i+1, i+2, ⋅⋅⋅, n-1, n; 再经过 n, n-1, ⋅⋅⋅, i+2, i+1; 则经过了 2 * (n…… 题解列表 2023年03月13日 0 点赞 1 评论 907 浏览 评分:9.9
计数排序思想求解 摘要:解题思路:利用计数排序思想,输出时,直接输出计数数组的值即可,这里多申请一个数组用来做输出时的标记注意事项:用到排序算法记得加头文件参考代码: …… 题解列表 2023年03月13日 0 点赞 0 评论 387 浏览 评分:9.9
蓝桥杯专题系列-1431(Python) 摘要:解题思路:模拟题,了解运作过程即可注意事项:使用lst.copy()静态改写列表,不要动态改写参考代码:n = int(input())lst = list(reversed(list((map(in…… 题解列表 2023年03月13日 0 点赞 0 评论 620 浏览 评分:9.9
自定义函数求一元二次方程 摘要:解题思路:注意事项:1、当判别式小于0时,会出现虚数;2、最终结果要保留三位小数;3、两个解是以空格分隔的。参考代码:a,b,c = map(int,input().split())d = b**2-…… 题解列表 2023年03月14日 0 点赞 0 评论 627 浏览 评分:9.9
DNA(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main{ public static void main(String[] …… 题解列表 2023年03月14日 0 点赞 0 评论 374 浏览 评分:9.9
题目 1115: DNA----题解 摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a,b; String arr[][]…… 题解列表 2023年03月14日 0 点赞 0 评论 462 浏览 评分:9.9
1268: 第K极值 摘要:```cpp #include using namespace std; const int maxn=10001; int n,k,arr[maxn],ans; string is_pre…… 题解列表 2023年03月14日 0 点赞 0 评论 681 浏览 评分:9.9
笨小猴,第一次写解析 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char z[101]; scanf("%s",z);//输入一个字符串…… 题解列表 2023年03月14日 0 点赞 0 评论 399 浏览 评分:9.9
python简单易懂解法 摘要:解题思路:可以在两个硬币之间想象出一个开关,控制它们的状态,如果硬币状态与目标不符,就按下开关,以此类推参考代码:start=list(str(input()))aim=list(str(input(…… 题解列表 2023年03月14日 0 点赞 0 评论 449 浏览 评分:9.9
说是考察搜索,其实更多是考字符串的操作,又是被难倒的一天 摘要:1.接收字符串 2.找到所有以c开头的字符串作为龙头 3。查找龙头可以拼接的所有单词 4.每个单词只能用两次。 import java.math.BigInteger; import…… 题解列表 2023年03月14日 0 点赞 0 评论 672 浏览 评分:9.9