蓝桥杯2023年第十四届省赛真题-网络稳定性 解题思路:先用最小生成树的方法生成一个最大生成树,在使用倍增做lca的同时将最小值找出来(类似于st表,st也是用倍增,相当于使用倍增同时搞出lca与st表)注意事项:读入与输出较大,使用较快的输入输出,不然会超时参考代码:#includeusingnamespacest 题解列表 2024年04月13日 1 点赞 1 评论 1210 浏览 评分:9.0
题解 2804: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月13日 0 点赞 0 评论 455 浏览 评分:0.0
优先队列(根据每次加人各项目会产生多少增益) ```cpp#include#include#includeusingnamespacestd;constintN=1e5+10;structmoney{intk,b,wcount,incre;//wcount是已经选择多少人;incre是wcount到wcount+1的增益}mon[N];doubl 题解列表 2024年04月13日 0 点赞 0 评论 547 浏览 评分:0.0
2840: 向量点积计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3+5;ll …… 题解列表 2024年04月13日 0 点赞 0 评论 430 浏览 评分:0.0
题解 2840: 向量点积计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3+5;ll …… 题解列表 2024年04月13日 0 点赞 0 评论 450 浏览 评分:0.0
1131: C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7+5;ll …… 题解列表 2024年04月13日 1 点赞 0 评论 464 浏览 评分:10.0
题解 1131: C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;ll a[45];int main(){ …… 题解列表 2024年04月13日 1 点赞 0 评论 483 浏览 评分:10.0
一些强迫症的输出 ##浏览了一些题解,发现输出格式与题目要求不一致,多加了一些代码,调成了与题目要求一致的输出格式//勿喷##代码#include#includeusingnamespacestd;#include#include#include#includeintmain(){intn, 题解列表 2024年04月12日 0 点赞 0 评论 484 浏览 评分:0.0
暴力画矩形 【简单易懂】 摘要:#include <iostream> #include <cmath> using namespace std; /* 画矩形 */ int main() { // …… 题解列表 2024年04月12日 1 点赞 0 评论 511 浏览 评分:0.0
最长单词2,简单方法 摘要:解题思路:从找到第一个字母开始计数,并记录位置,直到找到空格或者‘。’,不断更新注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef…… 题解列表 2024年04月12日 1 点赞 0 评论 757 浏览 评分:9.9