题解列表
编写题解 1179: 上车人数
摘要:解题思路:注意事项:参考代码:a,n,m,x=map(int,input().split())
up=[a]
def get(a,x,z):
up=[a,x]
down=[0,……
两次01背包-砝码称重
摘要:```cpp
#include
#define int long long
using namespace std;
const int N=100010;
int dp[N],a[105]……
1021: [编程入门]迭代法求平方根
摘要:解题思路:首先要输入一个值,这道题是运用迭代法来进行计算,有3个未知数,x(n+1),x(n),a可以自己用m,n来表示不断变化的x(n+1),x(n)这是迭代需要用到循环,可以先计算一次,再运用wh……
1593: 蓝桥杯算法训练VIP-Hankson的趣味题
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstdio>
#include<math.h>
#include<algorithm>
using na……
1501: 蓝桥杯算法提高VIP-分苹果(c++版)运用差分数组降低时间复杂度
摘要: :tw-2600:**解题思路:**
题目中m n数据量达是1e5限时1sec显然暴力枚举会超时,因此我们就需要使用到**差分数组**,这样可以**降低时间复杂度**
**关于差分数组,如果你想……
1181: 不容易系列2
摘要:解题思路:两种方法 :一种用数学组合,一种用递归注意事项:参考代码:数学方法:def f(x):
s=1
for i in range(1,x):
s *=i
……
编写题解 1676: 数据结构-链表的基本操作
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//结构体定义
typedef str……