(C++)蓝桥杯2020年第十一届省赛真题-成绩统计 摘要:解题思路:一般思路注意事项:四舍五入判定,样例42.8571%要判定43%,直接int会42%参考代码:#include<iostream>using namespace std;int main()…… 题解列表 2022年04月06日 0 点赞 0 评论 721 浏览 评分:9.9
C语言--------和最大子序列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i,sum=0,max=0; scanf("%d",&N); int A[N]; …… 题解列表 2022年04月06日 0 点赞 0 评论 441 浏览 评分:0.0
蓝桥杯2020年第十一届国赛真题-天干地支 摘要:解题思路:把庚子年作为开始年,每过60年一个循环注意事项:正年数与负年数方向不一样(2019 是己亥年 2021是辛丑年)都与2020差一年参考代码:#include <iostream> #inc…… 题解列表 2022年04月06日 0 点赞 0 评论 903 浏览 评分:0.0
蓝桥杯2018年第九届真题-日志统计 摘要:很坑,但凡一处处理不好,就超时== ```cpp #include #include #include #include #include using namespace std; s…… 题解列表 2022年04月06日 0 点赞 0 评论 607 浏览 评分:9.9
题解 1563: 蓝桥杯算法提高VIP-质因数 摘要:````python n = int(input()) x = n s = '' while x > 1: for i in range(2,x+1): if x%…… 题解列表 2022年04月06日 0 点赞 0 评论 416 浏览 评分:0.0
if嵌套解决,思路简单 摘要:解题思路:逐步检查个、十、百、千位,最大数字10000,所以不特别考虑万位注意事项:if判断时要注意判断i/10之后是否为0。例如n=7时,i=7,第一次if判断到7的个位不为0,1,2,9,进入第二…… 题解列表 2022年04月06日 0 点赞 0 评论 821 浏览 评分:0.0
暴力法+轰炸与排雷 综合法 的 简化版 完成 Minesweeper 摘要:解题思路:给出2种解法,时间复杂度几乎一样,但空间复杂度约为一半的关系。注意事项:暴力法:1.int s[102][102] = {0}为通用写法,若使用c++14,可使用int s[x+2][y+2…… 题解列表 2022年04月06日 0 点赞 0 评论 846 浏览 评分:9.9
蓝桥杯2018年第九届真题-全球变暖 摘要:思路:无需判断有多少个岛屿,只要判断这一个由'#'组成的连通块(可能是岛屿)是否会被完全淹没,如果连通块中间存在一个'#'的四周都是'#',那么该连通块就不会被淹没。 ```cpp #incl…… 题解列表 2022年04月06日 0 点赞 0 评论 741 浏览 评分:9.9
暴力写法简单易懂 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a[100]; int m,n; scanf("%d",&m); for(int i=0;i<m;i++) { scan…… 题解列表 2022年04月06日 0 点赞 0 评论 448 浏览 评分:9.9
利用列表求得最大值 摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) if a==[0]: break a=a[1:]…… 题解列表 2022年04月06日 0 点赞 0 评论 360 浏览 评分:0.0