排序之后找断层和重复的 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<string>using namespace std;co…… 题解列表 2025年02月13日 0 点赞 0 评论 147 浏览 评分:0.0
纯循环(一下标题太短,一下标题敏感,神经) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<string>using namespace std;int n; &…… 题解列表 2025年02月13日 0 点赞 0 评论 222 浏览 评分:0.0
二维数组通过枚举求解所有等差数列个数 摘要:1. 问题描述 给出一个整数序列 1 4 2 3 7求其总共的等差数列 这里我给你枚举一下 当n==1时 {1} {4} {2} {3} {7} 共5种情况 对应n当n==2时 {1,4} {1,…… 题解列表 2025年02月11日 0 点赞 0 评论 122 浏览 评分:0.0
一个思想转弯拐过来秒了 摘要:解题思路:1找到最小的Ai,并统计输入的n个数据中各数出现的次数a[Ai]2.判断a[Ai]%(Ai+1)==0,符合Ai++并重复上述步骤,反之break注意事项:Ai<=1e9(10…… 题解列表 2025年02月11日 1 点赞 0 评论 309 浏览 评分:10.0
编写题解 1505: 蓝桥杯算法提高VIP-单词个数统计 摘要:解题思路:注意事项:参考代码:#include <iostream>#include "string"using namespace std;int main (){ …… 题解列表 2025年02月11日 0 点赞 0 评论 107 浏览 评分:0.0
[信息学奥赛一本通T1503-道路和航线] - 连通块+Dijkstra+拓扑排序(或者SPFA加一些优化,SLF,LLL,DFS这些) 摘要:## 方法一:DFS求连通块+块内Dijkstra+拓扑排序tip: 用SPFA只能大部分```cpp#include// #define int long long // memse…… 题解列表 2025年02月10日 1 点赞 0 评论 168 浏览 评分:10.0
蓝桥杯2024年第十五届决赛真题-兔子集结 摘要:解题思路:将兔子分为两种(1.它和它的同伴相向而行 2.它和它的同伴不相向而行)。不难发现最后兔子的位置都位于第一种(它和它的同伴相向而行)兔子最后的位置上。所以我们可以首先确定第一种兔子…… 题解列表 2025年02月09日 10 点赞 0 评论 1464 浏览 评分:9.3
编写题解 2946: 数制转换 摘要:```cpp#include using namespace std;typedef long long ll;char s[1000];int a[1000], cnt;in…… 题解列表 2025年02月08日 0 点赞 0 评论 105 浏览 评分:0.0
普通的循环遍历就能实现 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double m; double …… 题解列表 2025年02月07日 1 点赞 0 评论 521 浏览 评分:0.0
编写题解 1835: 蓝桥杯2016年第七届真题-碱基 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>#include <iostream>#include &l…… 题解列表 2025年02月07日 0 点赞 0 评论 136 浏览 评分:10.0