用指针数组和字符串解决 摘要:解题思路:声明一个指针数组和字符串,然后更改指针方向后输出指针数组注意事项:参考代码:#include <stdio.h>typedef struct bo { …… 题解列表 2025年04月11日 0 点赞 0 评论 389 浏览 评分:10.0
并查集加上stl 摘要:解题思路:典型的并查集问题。同一个集合上可以相互跳跃。利用并查集,把所有元素合并,然后利用集合map统计各个根节点拥有的元素个数,然后利用优先队列,弹出前两个元素即为两个最大集合的数量,注意只有一个集…… 题解列表 2025年04月12日 1 点赞 0 评论 650 浏览 评分:10.0
蓝桥杯2025年第十六届省赛真题-电池分组 摘要: 题解:分割数组使子数组异或值相等------#### 解题思路:1. **异或性质**: - 如果整个数组的异或值为 0,那么数组可以被分割成任意数量的子数…… 题解列表 2025年04月12日 3 点赞 0 评论 1251 浏览 评分:10.0
题解 3320: 蓝桥杯2025年第十六届省赛真题-产值调整 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a,b,c; …… 题解列表 2025年04月14日 7 点赞 0 评论 1680 浏览 评分:10.0
c++--study||O.o 摘要:参考代码:#include<bits/stdc++.h>usingnamespacestd;usingll=long…… 题解列表 2025年04月16日 0 点赞 0 评论 404 浏览 评分:10.0
c++--study||O.o 摘要:参考代码:#include<bits/stdc++.h>usingnamespacestd;usingll=long…… 题解列表 2025年04月16日 1 点赞 0 评论 340 浏览 评分:10.0
python--study||O.o 摘要:参考代码:a,b,m=map(int,input().split())print(pow(a,b,m))…… 题解列表 2025年04月16日 1 点赞 0 评论 314 浏览 评分:10.0
c++--study||O.o 深搜DFS(两种写法) 摘要:参考代码:利用设置外部变量#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年04月16日 1 点赞 0 评论 460 浏览 评分:10.0
c++--study||O.o 全排列枚举 摘要:解题思路:数据量最多只有10,考虑复杂度为阶乘的全排列模拟参考代码:#include<bits/stdc++.h>usingnamespacestd;&nb…… 题解列表 2025年04月16日 1 点赞 0 评论 392 浏览 评分:10.0