1510: 蓝桥杯算法提高VIP-士兵排队问题(狗币java + 拓扑) 摘要:[https://www.dotcpp.com/oj/problem1510.html](https://www.dotcpp.com/oj/problem1510.html) - 思路&注意事…… 题解列表 2022年03月22日 0 点赞 0 评论 547 浏览 评分:0.0
输入输出练习之格式控制 摘要:解题思路:注意事项:左对齐八个字符要用‘-8’来表示,同理其他也一样。参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a…… 题解列表 2022年03月22日 0 点赞 0 评论 2010 浏览 评分:9.4
简单的动态规划 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int dp[40][40] = {0}; int n,m…… 题解列表 2022年03月22日 0 点赞 0 评论 438 浏览 评分:9.9
是个人都能看懂(仅限于《秒杀》本道题)#1026 摘要:解题思路: 由于某些同学实在是看不懂例如:#include<stdio.h> int main() { int a[10],i,k; for(i=0;i<10;i++) …… 题解列表 2022年03月22日 0 点赞 0 评论 436 浏览 评分:9.9
1620: 蓝桥杯算法训练VIP-字符串的展开 摘要:step1:先找出有几个'-' strp2:设置初始指针sta=0,while循环一个一个'-'判断,每次循环从sta开始遍历,若找到'-'(只要找到一次'-',处理完后面的步骤就推出循环),更新s…… 题解列表 2022年03月22日 0 点赞 0 评论 465 浏览 评分:0.0
用vector巧解高精度问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <vector> using namespace std;vector<int> add(vector <int> …… 题解列表 2022年03月22日 0 点赞 0 评论 363 浏览 评分:0.0
暴力做法!!! 摘要:```cpp #include using namespace std; int n, m, ans = 0; const int N = 40; //行号和列号都是偶数不能步入当前…… 题解列表 2022年03月22日 0 点赞 0 评论 407 浏览 评分:0.0
蓝桥杯2017年第八届真题-合根植物 并查集 摘要:```cpp #include using namespace std; int n, m,k; int fa[1005 * 1005]; int map[1005][1005]; int…… 题解列表 2022年03月22日 0 点赞 0 评论 554 浏览 评分:9.9
1649: 蓝桥杯算法训练VIP-特殊的数字四十 python 摘要:解题思路:简单题,直接暴力注意事项:cnt 不能写在外面了,每次循环初始值要为0参考代码:# for i in range(1000,10000):# cnt = 0# for j i…… 题解列表 2022年03月22日 0 点赞 0 评论 476 浏览 评分:9.9
1434: 蓝桥杯历届试题-回文数字——python 摘要:解题思路:直接遍历的话,运行时间较多,虽然这道题暴力也能通过。我们从数位来判断的话就简单多了。注意事项:参考代码:#高效解法# n = int(input())# p=0# for i in rang…… 题解列表 2022年03月22日 0 点赞 0 评论 640 浏览 评分:9.9