蓝桥杯算法训练VIP-单词接龙 就离谱 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义字符串数组,用于存储输入的字符串 string s[30]; …… 题解列表 2024年12月13日 0 点赞 0 评论 196 浏览 评分:0.0
分成互质组 为了这题开了张月卡 哈哈哈哈哈 呃 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int f(int b, int c) { if (c == 0)…… 题解列表 2024年12月13日 0 点赞 0 评论 195 浏览 评分:0.0
用三个数组储存数值,原顺序,大小顺序 摘要:解题思路:有三个数组,p,b,a。p为从小到大元素数值排序,并且起到储存元素数值的作用。a为p对应到原位置的顺序,从0开始,注意a也是按某种意义的从小到大排序,与p不同的是,它存的是原位置不是数值。b…… 题解列表 2024年12月14日 0 点赞 0 评论 204 浏览 评分:0.0
最长上升子序列 入门dp练习题 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和x,用于存储输入的整数数…… 题解列表 2024年12月14日 0 点赞 0 评论 221 浏览 评分:0.0
三角形 简单dp练习 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和t,分别表示测试用例的数…… 题解列表 2024年12月14日 2 点赞 0 评论 473 浏览 评分:0.0
找啊找啊找GF 题目描述有点东西 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量 int n, m, r; // n表示物品MM数量,m…… 题解列表 2024年12月14日 1 点赞 0 评论 228 浏览 评分:0.0
1282: 公交汽车 dp和dfs 还是dfs更好用 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int a[11],n,kkk[110]; void dfs(int x,…… 题解列表 2024年12月14日 0 点赞 0 评论 245 浏览 评分:0.0
[NOIP2001]装箱问题 dfs超时的看这里 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int v,n,kkk[35]; int a[35]; bool vis…… 题解列表 2024年12月14日 0 点赞 0 评论 203 浏览 评分:0.0
1301: 尼克的任务 常规做法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义两个数组,dp用于存储动态规划结果,kk用于记录每个位置的工作个数…… 题解列表 2024年12月14日 0 点赞 0 评论 208 浏览 评分:0.0
信息学奥赛一本通TT1262-挖地雷 差点睡不着觉 服了 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; struct f{ int xi,yi; }t[20005];…… 题解列表 2024年12月15日 0 点赞 0 评论 177 浏览 评分:0.0