蓝桥杯2023年第十四届省赛真题-网络稳定性 摘要:解题思路:先用最小生成树的方法生成一个最大生成树,在使用倍增做lca的同时将最小值找出来(类似于st表,st也是用倍增,相当于使用倍增同时搞出lca与st表)注意事项:读入与输出较大,使用较快的输入输…… 题解列表 2024年04月13日 1 点赞 1 评论 767 浏览 评分: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 评论 166 浏览 评分:0.0
优先队列(根据每次加人各项目会产生多少增益) 摘要:```cpp #include #include #include using namespace std; const int N = 1e5 + 10; struct money …… 题解列表 2024年04月13日 0 点赞 0 评论 251 浏览 评分:0.0
求三个数的最大值 摘要:解题思路:使用三目运算符运算更加简便注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); …… 题解列表 2024年04月13日 0 点赞 0 评论 172 浏览 评分: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 评论 229 浏览 评分: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 评论 183 浏览 评分: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 评论 204 浏览 评分: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 评论 180 浏览 评分:10.0
日期换算--易懂版 摘要:解题思路:注意事项:参考代码:x,y = map(int,input().split()) // 设置一个列表储存2019年每月的天数,2019年是平年,2月份是28天,在最前面加个[0]是为了列表…… 题解列表 2024年04月12日 0 点赞 0 评论 214 浏览 评分:0.0
一些强迫症的输出 摘要:## 浏览了一些题解,发现输出格式与题目要求不一致,多加了一些代码,调成了与题目要求一致的输出格式//勿喷 ## 代码 #include #include usin…… 题解列表 2024年04月12日 0 点赞 0 评论 208 浏览 评分:0.0