1501: 蓝桥杯算法提高VIP-分苹果 摘要:这道题考察前缀和 , 差分 - 前缀和数组 : 定义一个数组 , 该数组 记录了 数列的前x个值的和 - 例如 数列 1 2 3 4 5,前缀和数组为a[N] 那么a[1]=1,a[…… 题解列表 2024年10月25日 0 点赞 4 评论 186 浏览 评分:0.0
DP入门 # 2809: 菲波那契数列 摘要:``` // 注意这道题第一下项的下标为0,所以我们最后输出的是dp[n-1] #include #include #include #include using namespace …… 题解列表 2024年10月25日 1 点赞 0 评论 272 浏览 评分:0.0
优质裁缝题解 摘要:#include int main() { int n; scanf("%d", &n); int sum = 0; int ok = 0; int val = 0; fo…… 题解列表 2024年10月25日 0 点赞 0 评论 115 浏览 评分:0.0
2016: 新生的入队仪式 摘要:#include int main() { long long n, m; scanf("%lld %lld", &n, &m); long long ok1 = 0,ok2=0; …… 题解列表 2024年10月25日 0 点赞 0 评论 117 浏览 评分:0.0
用啥写都一样 摘要:解题思路:e......注意事项:无参考代码:print(''' ******** ************ …… 题解列表 2024年10月25日 0 点赞 0 评论 251 浏览 评分:0.0
ctype优质实现 摘要:#include #include int main() { char ch; int ss=0,tt = 0; while (isalpha(ch = getchar())&&ch…… 题解列表 2024年10月25日 0 点赞 0 评论 102 浏览 评分:0.0
1316: 最长不下降子序列的长度 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().split()))memo = {}def find(i): if i in me…… 题解列表 2024年10月25日 0 点赞 0 评论 185 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:不要重复区域就行了注意事项:参考代码:#include<stdio.h>int main(){ int m,l,i; scanf("%d",&l); int arr[l+1…… 题解列表 2024年10月25日 1 点赞 0 评论 342 浏览 评分:0.0
[编程入门]数组插入处理的一种比较简单的方法 摘要:解题思路1.找到新元素应该插入的位置。2.从该位置开始,将数组中的元素向后移动一个位置,为新元素腾出空间。3.将新元素插入到正确的位置注意事项:键盘第一次录入数组数据时for循环的次数不要搞错。遍历数…… 题解列表 2024年10月25日 0 点赞 0 评论 202 浏览 评分:0.0
题解 1952: 求长方形面积 摘要:解题思路:考查长方形的周长和面积,整数类型,C语言基础知识注意事项:注意题目要求“C:”、“S:”参考代码:#include <stdio.h> int main() { int w,h; …… 题解列表 2024年10月25日 1 点赞 0 评论 447 浏览 评分:0.0