优质题解 O(VN)_一维数组完全背包 摘要:基于一维的01背包首先想想为什么01背包中要按照v=V..0的逆序来循环。这是因为要保证第i次循环中的状态fi是由状态f[i-1] [v-c[i]]递推而来。换句话说,这正是为了保证每件物品只选一次,…… 题解列表 2022年03月09日 0 点赞 0 评论 637 浏览 评分:8.0
1507: 蓝桥杯算法提高VIP-去注释 摘要:解题思路:注意事项:参考代码:s=0 while True: try: st=input() if '/*' in st:   题解列表 2022年03月11日 0 点赞 0 评论 471 浏览 评分:8.0
字符串的输入输出处理(Java语言) 摘要:解题思路:注意事项:nextInt只取到数字,后面还有换行符,需用nextLine获取并自动丢弃,才可继续取下一行。参考代码:import java.io.*; import java.util.*…… 题解列表 2022年03月12日 0 点赞 0 评论 870 浏览 评分:8.0
[递归]母牛的故事 摘要:解题思路:注意事项:参考代码:while True: n = int(input()) a = b= c = 0 sum = d = 1 for i in range(n-1)…… 题解列表 2022年03月12日 0 点赞 0 评论 713 浏览 评分:8.0
快速排序!!!!! 摘要:```cpp #include using namespace std; const int L = 10 + 2; int q[L]; int len; void quick_sort(…… 题解列表 2022年03月13日 0 点赞 0 评论 374 浏览 评分:8.0
蓝桥杯算法提高VIP-勾股数python暴力求解 摘要: for i in range(1,998): for j in range(i+1,998): c = pow((i**2+…… 题解列表 2022年03月14日 0 点赞 0 评论 404 浏览 评分:8.0
2610: 蓝桥杯2021年第十二届省赛真题-杨辉三角形 摘要:解题思路:参考 https://blog.csdn.net/zy98zy998/article/details/122293334注意事项:参考代码:#include<iostream> using…… 题解列表 2022年03月14日 0 点赞 1 评论 3116 浏览 评分:8.0
1121题解python for循环 摘要:解题思路:不停地嵌套就行了注意事项:参考代码:for i in range(10000): if i%8==1: if (i//8)%8==1: if ((i…… 题解列表 2022年03月14日 0 点赞 0 评论 534 浏览 评分:8.0
单词分析(C代码) 摘要: #include #include char str[1010]; //建立count数组统计26个字母出现个数 int count[26]; …… 题解列表 2022年03月14日 0 点赞 0 评论 825 浏览 评分:8.0
一种容易理解的方法 摘要:解题思路:注意事项:参考代码:注意逻辑#include<stdio.h>int main(){ int a,b,c; scanf("%d""%d""%d",&a,&b,&c); if…… 题解列表 2022年03月14日 0 点赞 0 评论 792 浏览 评分:8.0