蓝桥杯2023年第十四届省赛真题-飞机降落 简单的dfs 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年03月09日 3 点赞 0 评论 1066 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:```c#include int gcd(int a,int b){ return b==0?a:gcd(b,a%b);}int lcm(int a,int b){ r…… 题解列表 2025年03月09日 4 点赞 0 评论 1030 浏览 评分:0.0
C++ 使用 set库 和 克拉默法则解决蚂蚁开会 摘要:使用C++的 **set** 来存储符合条件的坐标,以防止坐标重复。在计算时采用 **克拉默法则** 计算线性方程组的解**注意:**1.防止坐标重复2.注意是线段而不是直…… 题解列表 2025年03月08日 5 点赞 0 评论 1356 浏览 评分:0.0
[CSP-J2020] 优秀的拆分 dfs大法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年03月08日 0 点赞 0 评论 211 浏览 评分:0.0
[编程入门]利润计算 摘要:```c#include int main() { int x; int l; scanf("%d",&x); if(x>1000000){ …… 题解列表 2025年03月08日 1 点赞 0 评论 890 浏览 评分:0.0
题解 1532: 蓝桥杯算法提高VIP-数组输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main()…… 题解列表 2025年03月08日 0 点赞 0 评论 174 浏览 评分:0.0
一维数组数组dp求解最长接龙子序列问题(参考别人代码“黑名单”写下的总结) 摘要:一开始没思路 我就想直接暴力dfs的写出来的 但是暴力过了3个点 (主要是练一下dfs)没绷住 看着这个圈一直转我就知道寄了 关键这个dfs时间复杂度太大了 用不了剪枝和打表 用dfs做感觉真是**赤…… 题解列表 2025年03月08日 3 点赞 1 评论 681 浏览 评分:10.0
题解 1113: C语言考试练习题_保留字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main() { char s…… 题解列表 2025年03月08日 0 点赞 0 评论 260 浏览 评分:0.0
蓝桥杯2016年第七届真题-路径之谜 简单的dfs 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年03月08日 0 点赞 0 评论 265 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:```c#include int main() { int x; int arr[5]; int i=0; scanf("%d",&x); …… 题解列表 2025年03月08日 13 点赞 0 评论 1352 浏览 评分:10.0