使用stl的双向链表+数组 摘要:```cpp #include using namespace std; #define pr pair #define ll long long const int N = 5e5 + 5…… 题解列表 2023年04月10日 0 点赞 0 评论 863 浏览 评分:8.7
奶奶个蛋,比赛的时候写的一样,但是肯定不对 摘要:#include using namespace std; #define int long long int n; const int N=1e5+1; struct fly { i…… 题解列表 2023年04月10日 1 点赞 1 评论 1548 浏览 评分:2.6
map存储使用 摘要:解题思路:从前往后,提取每一个数的因子存入map中,时间复杂度O(n*sqrt(Ai)),每一次存储之前判断map里面是否为空,不为空表示前面有至少一个数可以与它组队,那么我们map里面存储的就是第一…… 题解列表 2023年04月10日 0 点赞 1 评论 1050 浏览 评分:6.0
弟弟的作业 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Dome04 { public static void main(Stri…… 题解列表 2023年04月10日 0 点赞 0 评论 559 浏览 评分:9.9
题目 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in…… 题解列表 2023年04月10日 0 点赞 0 评论 296 浏览 评分:0.0
数字整除按照题目步骤做 摘要:import java.math.BigInteger; import java.util.Scanner; public class Dome05 { public static v…… 题解列表 2023年04月10日 0 点赞 0 评论 470 浏览 评分:9.9
线性dp(感觉就是个桶) 摘要:#include using namespace std; #define int long long const int N=1e5+1; int a[N],b[N]; int f[N];…… 题解列表 2023年04月10日 0 点赞 0 评论 946 浏览 评分:2.2
前驱 后驱数组 + 优先队列 摘要:# 思路 ## 如何动态维护这个序列 对于这题我们需要维护一个前驱数组和后驱数组,当选中下标i作为被删除点时候进行如下操作 ; while (scanner.hasNext()) { int n = scanner.nextInt()…… 题解列表 2023年04月10日 0 点赞 0 评论 450 浏览 评分:9.9