题解列表
Sn的公式求和(while循环求解)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int main(){ cin>>n;//输入n int sum=0;//计算总和……
2127: 信息学奥赛一本通T1258- 数字金字塔
摘要:解题思路:注意事项:参考代码://顺推法:#include<iostream>using namespace std;const int N = 1005;int arr[N][N];int dp[N……
蓝桥杯2023年第十四届省赛真题-冶炼金属(Java二分)
摘要:```java
import java.util.Scanner;
public class Main {
static int[] a;
static int[] b……
数据结构——堆排序(C++)
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <queue>
#include <vector>
using namespace std;
int……
信息学奥赛一本通T1437-扩散
摘要:解题思路: 二分+并查集注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;#define int long lo……
T1457Power Strings--KMP
摘要:```cpp
#include
#include
#include
using namespace std;
const int N=1e6+100;
char str[N];
i……
矩形总面积(附详细解释)
摘要:解题思路:* 思路算法* 使用一个八个位置的数组来容纳坐标点* (x1,y1)(x2,y2)(x3,y3)(x4,y4)* 对于不相交的矩形,其面积为* (x2-x1)*(y2-y1)+(x4-x3)……
C语言 最大数问题 快速排序求最大值
摘要:练练快排罢了不用参考参考代码:#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
in……