题解列表
2797: 最高的分数--用自定义函数解决(C++)
摘要:解题思路:定义一个数组来存储学生的分数。从键盘输入学生的分数,并将其存储在数组中。定义一个自定义函数,用于计算数组中的最大值。调用自定义函数来计算数组中的最大值,并将其输出。注意事项:该代码假设输入的……
使用stl的双向链表+数组
摘要:```cpp
#include
using namespace std;
#define pr pair
#define ll long long
const int N = 5e5 + 5……
奶奶个蛋,比赛的时候写的一样,但是肯定不对
摘要:#include
using namespace std;
#define int long long
int n;
const int N=1e5+1;
struct fly
{
i……
题目 1635: 蓝桥杯算法训练VIP-整数平均值
摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in……
数字整除按照题目步骤做
摘要:import java.math.BigInteger;
import java.util.Scanner;
public class Dome05 {
public static v……
线性dp(感觉就是个桶)
摘要:#include
using namespace std;
#define int long long
const int N=1e5+1;
int a[N],b[N];
int f[N];……
前驱 后驱数组 + 优先队列
摘要:# 思路
## 如何动态维护这个序列
对于这题我们需要维护一个前驱数组和后驱数组,当选中下标i作为被删除点时候进行如下操作
![](/image_editor_upload/20230410/2……