题解列表

筛选

1306: 老管家的忠诚2

摘要:```cpp #include using namespace std; int num[100001]; struct node { int l,r,w; }tree[4000……

1305: 老管家的忠诚

摘要:```cpp #include using namespace std; int divide(int *a,int *b,int low,int high) { int mid=a……

1304: 阶乘后K位

摘要:```cpp #include using namespace std; int main() { long long pro=1; int i,j,n,k; c……

1303: 统计数字

摘要:```cpp #include using namespace std; int a[500001],n,ans=1; void qs(int l,int r) { int m=a……

1302: 棋盘覆盖

摘要:```cpp #include #include int n,m,x[4]={0,0,1,-1},y[4]={-1,1,0,0},link[10201],head[10201],cnt; bo……

1301: 尼克的任务

摘要:```cpp #include #include using namespace std; long n,k,sum[10001],num=1,f[10001]; struct ren {……

1300: 悠闲的漫步

摘要:```cpp #include using namespace std; struct Node { int id,l,r; Node() { ……

1896: 蓝桥杯算法提高VIP-矩阵乘法

摘要: ##### 个人认为还是先记住那个矩阵连乘的公式比较好,关键就在那个公式取子问题能不能理解 *min(dp[i][j], dp[i][k]+dp[k+1][j]+p[i-1]*p[k]*p[j])……

简单的暴力求解

摘要:解题思路:遍历数组,选出其中最小值进行计算,然后删除该最小值。重复以上步骤到只剩下一个数为止。注意事项:参考代码:#include<iostream>#include<cstring>#include……