c++--study||O.o 摘要:参考代码:#include<bits/stdc++.h>usingnamespacestd;usingll=long…… 题解列表 2025年04月16日 0 点赞 0 评论 569 浏览 评分:10.0
题解 3320: 蓝桥杯2025年第十六届省赛真题-产值调整 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,c; …… 题解列表 2025年04月14日 8 点赞 0 评论 2019 浏览 评分:10.0
蓝桥杯2025年第十六届省赛真题-2025 图形 解题思路:把2025放到数组后输出注意事项:参考代码:#includeusingnamespacestd;inth,w;intg[4]={2,0,2,5};intmain(){ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);c 题解列表 2025年04月14日 0 点赞 0 评论 1088 浏览 评分:0.0
两种方法:不用deque和使用deque 解题思路:注意事项:参考代码:#include#include#include#include#include#include#include#include#incl 题解列表 2025年04月13日 1 点赞 0 评论 449 浏览 评分:0.0
行编辑程序代码Stack两种思路 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string str;…… 题解列表 2025年04月13日 0 点赞 0 评论 462 浏览 评分:0.0
简单的暴力 解题思路:注意事项:这个a数组我考试,以为只有100个,想了一下应该是100*100所以数组应该开1000以上参考代码:#includeusingnamespacestd;intmain(){inta[150]={2, 题解列表 2025年04月13日 0 点赞 0 评论 655 浏览 评分:0.0
并查集加上stl 解题思路:典型的并查集问题。同一个集合上可以相互跳跃。利用并查集,把所有元素合并,然后利用集合map统计各个根节点拥有的元素个数,然后利用优先队列,弹出前两个元素即为两个最大集合的数量,注意只有一个集合的情况。注意事项:参考代码:#include#defineendl 题解列表 2025年04月12日 1 点赞 0 评论 927 浏览 评分:9.0
暴力写法优化 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long re=0; …… 题解列表 2025年04月11日 0 点赞 0 评论 504 浏览 评分:0.0
链表代码参考如下 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct node{ int data; …… 题解列表 2025年04月11日 0 点赞 0 评论 667 浏览 评分:0.0
狡兔 k 窟-bfs 解题思路:要求两个点之间的最点距离,同时属于同一个洞窟的点他们之间的距离为0那么该问题可以转换为求解两个洞窟的最短距离依次构建的图是关于洞窟的而不是点例如132123:1和4点都属于1号洞窟那么他们两点邻接的其他点,也就等价于1号洞窟邻接了其他洞窟从而构建洞窟的邻接表然后通过bfs去求解两个洞窟之间的 题解列表 2025年04月11日 0 点赞 0 评论 618 浏览 评分:0.0