[NOIP2001]装箱问题 摘要:解题思路: 二维数组递归,01背包问题注意事项: dp[i][j]为只用前i个箱子(包含第i个)在不超过j体积下的最大利用空间参考代码:import java.util.*;public class…… 题解列表 2022年08月07日 0 点赞 0 评论 528 浏览 评分:0.0
蛇形矩阵(python) 摘要:解题思路:找到合适的算法,定义函数进行计算注意事项:参考代码:def f(N): for i in range(1, N + 1): for j in range(i, N + 1…… 题解列表 2022年08月07日 0 点赞 0 评论 408 浏览 评分:0.0
2664: 蓝桥杯2022年第十三届省赛真题-求和 c++题解 摘要:解题思路:首先想到的是用for循环暴力解决,但即使优化后,时间复杂度O(n2), 对于20万的大小,达到了整整400亿, 所以肯定行不通由于此处数据范围较大,我们观察到原式等于=a1(a2+a3+..…… 题解列表 2022年08月07日 2 点赞 0 评论 1277 浏览 评分:4.5
1111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t=0; wh…… 题解列表 2022年08月07日 0 点赞 0 评论 410 浏览 评分:0.0
11111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[3][4],i,j,max; int x,y; for(i=0;i<…… 题解列表 2022年08月07日 0 点赞 0 评论 441 浏览 评分:0.0
简短11111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,v; int t=0; …… 题解列表 2022年08月07日 0 点赞 0 评论 436 浏览 评分:0.0
VIP-01背包(简洁) 摘要:#include<stdio.h>#include<string.h>int a[1000][10000];int main(){ int n, m; scanf("%d%d", &n, &m); i…… 题解列表 2022年08月07日 0 点赞 0 评论 562 浏览 评分:9.9
关于三个数字比较建议 摘要:解题思路:通过比较a,b得最大值max1,再比较b,c得最大值max2;再比较max1与max2得出最终结果。注意事项:注意格式最好是能连续输出和输入,这样程序的使用价值更高。参考代码:#includ…… 题解列表 2022年08月07日 0 点赞 0 评论 521 浏览 评分:0.0
还差50分的话,就要while多组输入。29行代码搞定 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; while(cin>>n>>m…… 题解列表 2022年08月07日 0 点赞 0 评论 488 浏览 评分:9.9
18行代码就可搞定了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int i,…… 题解列表 2022年08月07日 0 点赞 1 评论 389 浏览 评分:9.9