采药---类似背包,详细注释 摘要:详细注释的代码,解释背包原理参考代码:#include<bits/stdc++.h>usingnamespacestd;consti…… 题解列表 2024年03月14日 3 点赞 0 评论 298 浏览 评分:10.0
并查集加上stl 摘要:解题思路:典型的并查集问题。同一个集合上可以相互跳跃。利用并查集,把所有元素合并,然后利用集合map统计各个根节点拥有的元素个数,然后利用优先队列,弹出前两个元素即为两个最大集合的数量,注意只有一个集…… 题解列表 2025年04月12日 1 点赞 0 评论 251 浏览 评分:10.0
蓝桥杯2025年第十六届省赛真题-电池分组 摘要: 题解:分割数组使子数组异或值相等------#### 解题思路:1. **异或性质**: - 如果整个数组的异或值为 0,那么数组可以被分割成任意数量的子数…… 题解列表 2025年04月12日 2 点赞 0 评论 540 浏览 评分:0.0
简单的暴力 摘要:解题思路:注意事项:这个a数组我考试,以为只有100个 ,想了一下应该是100*100 所以数组应该开1000以上参考代码:#include<bits/stdc++.h>using nam…… 题解列表 2025年04月13日 0 点赞 0 评论 268 浏览 评分:0.0
行编辑程序代码Stack两种思路 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string str;…… 题解列表 2025年04月13日 0 点赞 0 评论 146 浏览 评分:0.0
两种方法:不用deque和使用deque 摘要:解题思路:注意事项:参考代码:#include <cassert>#include <cctype>#include <cerrno>#include <cf…… 题解列表 2025年04月13日 0 点赞 0 评论 103 浏览 评分:0.0
:自动晾衣机 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[1000]; int…… 题解列表 2025年04月13日 0 点赞 0 评论 145 浏览 评分:0.0
蓝桥杯2025年第十六届省赛真题-2025 图形 摘要:解题思路:把2025放到数组后输出注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int h,w;int g[4] = {2,0…… 题解列表 2025年04月14日 0 点赞 0 评论 387 浏览 评分:0.0
电导流的矩形 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10][4]; in…… 题解列表 2025年04月14日 0 点赞 0 评论 155 浏览 评分:0.0
1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:注意count要从1开始,因为假设有10个桃子,第一天吃了5+1个,余4个;那第二天吃了2+1个,余1个;第三天想吃的时候是发现只有1个了,所以这这里要多1参考代码:public …… 题解列表 2025年04月14日 2 点赞 0 评论 298 浏览 评分:0.0