class Solution {
public:
    int findMin(vector<int>& nums) {
        int low = 0;
        int high = nums.size() - 1;
        whi... 
    
    
    
    
        动态规划
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
    str... 
    
    
    
    
        1.力扣 寻找数组的中心索引
力扣参考答案
class Solution {
public:
    int pivotIndex(vector<int> &nums) {
        int total = accumulate(nums.beg... 
    
    
    
    
        
#include<iostream>
#include<cstring>
#include<vector>
using namespace std;
// 可以支配的钱数、清单上可选择的物品种类、输入物品的价格、输入物品的受欢迎程度、状态转移... 
    
    
    
    
        
#include<iostream>
using namespace std;
int main()
{
	int dp[1005][1005] = { 0 };//表示前i件物品是否能凑出重量为j的方案,0表示否,1表示是
	int w[1005];//单个物品... 
    
    
    
    
        
#include<iostream>
using namespace std;
int dp[21][1010];
int w[21], c[21];
int main()
{
	int N, V;
	cin >> N >> V;//物品数... 
    
    
    
    
        
#include<iostream>
using namespace std;
int dp[101][101];
int main()
{
	string a,b;
	memset(dp, 0, sizeof(dp));
	cin >> a >... 
    
    
    
    
        
#include <bits/stdc++.h>
using namespace std;
int n,a[105],dp_h[105],dp_t[105];
int main(){
    while(cin>>n){
        for(int i... 
    
    
    
    
        
#include<iostream>
using namespace std;
int dp[10000];
int a[10000];
int n;
//求长度和求和
int LIS_nn()
{
	int ans = 0;
	for (int i = 1;... 
    
    
    
    
        
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
int dp[1000010];
int a[1000010];
long long maxx;
int main()
... 
    
    
    
    
        
#include<bits/stdc++.h>
using namespace std;
#include<queue>
const int maxn = 505;
bool mpt[maxn][maxn];
int lev[maxn];//点的入度
v... 
    
    
    
    
        
#include<stdio.h>
#include<algorithm>
#include<iostream>
using namespace std;
#define INF 0x3f3f3f3f
const int maxn = 105;... 
    
    
    
    
        
#include<bits/stdc++.h>
using namespace std;
int m,n;
bool isVisit[105][105] = {false};
char a[105][105];
int dir[8][2] = {0,1,1,1,1,0... 
    
    
    
    
        
#include <bits/stdc++.h>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <math.h>
#include <... 
    
    
    
    
        
#include <iostream>
#include  <cstdio>
using namespace std;
int fa[1005];
int find(int x){
    if(x == fa[x]){
        return... 
    
    
    
    
        
#include <bits/stdc++.h>
#define rep(i, s, e) for (int i = s; i < e; i++)
using namespace std;
string s; // 输入的字符串
vector<bool&... 
    
    
    
    
        
#include<iostream>
#include<cstring>
#include<queue>
using namespace std;
const int maxn = 100 + 2;
char mpt[maxn][maxn]... 
    
    
    
    
        
#include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
using namespace std;
#define inf 0x3f3f3... 
    
    
    
    
        
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<vector>
using namespace std;
vector<int> path... 
    
    
    
    
        
public class Code02_TrieTree {
    
    private Node root;
    
    public Code02_TrieTree() {
        this.root = new Node();
    }
   ... 
    
    
    
    
        
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int L, M;
    while(cin>>L>>M)
    {
        int l, r, ... 
    
    
    
    
        
#include<iostream>
using namespace std;
typedef struct node {
    char data;
    struct node* lchild, * rchild;
}node, * Tree;
void... 
    
    
    
    
        
#include<bits/stdc++.h>
using namespace std;
string str;
int len, num[30];
int bfs() {
	priority_queue<int, vector<int>, ... 
    
    
    
    
        
// 快速幂经典题
#include <bits/stdc++.h>
using namespace std;
//定义模
#define MOD 233333;
//快速幂算法:
//其实就是二分思想,把幂减半后,减少计算时间
//n为偶数,a^n=a^... 
    
    
    
    
        1. 数据结构是研究计算机的操作对象的逻辑结构和物理结构以及在结构上定义的操作,逻辑结构包括线性结构和非线性结构,物理结构包括顺序结构、链式结构、索引结构和散列结构。
2. 时间复杂度:时间复杂度是指执行算法所需的计算工作量,所以将算法中基本操作的运行次数作为时间复杂度的度量,比如循环的... 
    
    
    
    
        
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
//getPrime就是统计质因子个数的。
void getPrime(vector&l... 
    
    
    
    
        
#include <bits/stdc++.h>
using namespace std;
int main(){
    int n,x,k,count;
    while(cin>>n){
        count = 0;
        ma...