题解列表
蓝桥杯算法提高VIP-求指数
摘要:```c
#include
int main()
{
static int n, m;
scanf("%d%d", &n, &m);
int i = 1;
for (i = ……
删除重复元素(简单暴力循环)
摘要:```c
#include
void DelPack(char*);
int main()
{
char str[100] = { 0 };
gets(str);
DelPac……
编写题解 1130: C语言训练-数字母
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;const in……
个人觉得这解法是非常简单解法
摘要:解题思路我觉得代码能看懂,x=a/b,想要求x的最小,则x=a/(b+1)+1即可,x=a/b已经是最大的了。注意事项:参考代码:#include<iostream>#include<algorith……
阶乘差(阶乘一般都很大 直接上大范围类型)
摘要:```c
#include
unsigned long long int factorial(unsigned long long int n);
int main()
{
un……
优质题解
从记忆化搜索到动态规划
摘要:# 记忆化搜索
## 解题思路
思考:蜗牛在到达一根竹竿时,可能在竹竿的什么位置?
* 第一种:位于竹竿的底部
* 第二种:位于上一个传送门的终点位置
思考:蜗牛在离开一根竹竿时,可能会……