蓝桥杯算法提高VIP-夺宝奇兵(C语言,动态规划) 摘要:思路,动态规划 #include int a[101][101]={0},b[105]={0}; int swap(int a,int b) { …… 题解列表 2022年04月06日 1 点赞 0 评论 400 浏览 评分:0.0
C++暴力破解,无废话 摘要:解题思路:按照要求编写即可注意事项:字符串与数字的转化参考代码:#include<bits/stdc++.h>using namespace std;bool fun(int n,int m){ st…… 题解列表 2022年04月06日 0 点赞 0 评论 957 浏览 评分:5.7
JAVA - 1144-自守数问题【暴力遍历】 摘要: 解题思路: /** * 自守数是指一个数的平方的尾数等于该数自身的自然数。 & 题解列表 2022年04月06日 0 点赞 0 评论 868 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:先判断平闰年,并用数组列出该年每月天数,遍历前几个月的天数求和后加上输入的几号即为结果。注意事项:参考代码:#include<stdio.h>struct dijitian{ int …… 题解列表 2022年04月06日 0 点赞 0 评论 386 浏览 评分:0.0
(C++)蓝桥杯2020年第十一届省赛真题-成绩统计 摘要:解题思路:一般思路注意事项:四舍五入判定,样例42.8571%要判定43%,直接int会42%参考代码:#include<iostream>using namespace std;int main()…… 题解列表 2022年04月06日 0 点赞 0 评论 636 浏览 评分: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 评论 352 浏览 评分:0.0
蓝桥杯2020年第十一届国赛真题-天干地支 摘要:解题思路:把庚子年作为开始年,每过60年一个循环注意事项:正年数与负年数方向不一样(2019 是己亥年 2021是辛丑年)都与2020差一年参考代码:#include <iostream> #inc…… 题解列表 2022年04月06日 0 点赞 0 评论 755 浏览 评分:0.0
蓝桥杯2018年第九届真题-日志统计 摘要:很坑,但凡一处处理不好,就超时== ```cpp #include #include #include #include #include using namespace std; s…… 题解列表 2022年04月06日 0 点赞 0 评论 512 浏览 评分: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 评论 341 浏览 评分:0.0
if嵌套解决,思路简单 摘要:解题思路:逐步检查个、十、百、千位,最大数字10000,所以不特别考虑万位注意事项:if判断时要注意判断i/10之后是否为0。例如n=7时,i=7,第一次if判断到7的个位不为0,1,2,9,进入第二…… 题解列表 2022年04月06日 0 点赞 0 评论 743 浏览 评分:0.0