蓝桥杯算法提高VIP-最大乘积(dfsn个选k个的模板题--直接记住模板) 摘要:参考代码:import java.util.*;public class Main {//组合型 static int n; static int r; static int[]arr=new int…… 题解列表 2024年03月12日 0 点赞 0 评论 447 浏览 评分:0.0
c++解修建灌木 摘要:解题思路:这道题是一道规律题,就是一颗树能长多高完全取决于什么时候被修剪。2 : 2 23 : 4 2 44 : 6 4 4 65 : 8 6 4 6 86 :10 8 6 6 8 10我们发…… 题解列表 2024年03月12日 0 点赞 0 评论 432 浏览 评分:0.0
1160: 出圈(好东西哈) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring> //memset()必备using namespace std;in…… 题解列表 2024年03月12日 0 点赞 0 评论 408 浏览 评分:9.9
编写题解 2858: 整理药名 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): a=input() b=[' ' for k in range(len(a)…… 题解列表 2024年03月12日 0 点赞 0 评论 435 浏览 评分:0.0
c++解刷题统计 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long a,b,n; cin>>a>>b; cin>>n;…… 题解列表 2024年03月12日 3 点赞 0 评论 346 浏览 评分:0.0
计算分数加减表达式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; float s=0.0; cin>>n; fl…… 题解列表 2024年03月12日 1 点赞 0 评论 420 浏览 评分:9.9
求分数序列和 摘要:解题思路:斐波那契数列n-2项/n-1项目注意事项:输出格式参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin…… 题解列表 2024年03月12日 1 点赞 0 评论 416 浏览 评分:9.9
1159: 偶数求和(还不错) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m; int num[100]; num…… 题解列表 2024年03月12日 1 点赞 0 评论 386 浏览 评分:9.9
C语言最简单易懂的01背包解法 摘要:解题思路:注意事项:参考代码:// DP动态规划 01背包#include<stdio.h>int main(){ int N, m, v[25], p[25], dp[30000] = { …… 题解列表 2024年03月12日 0 点赞 0 评论 546 浏览 评分:10.0
python 2803: 整数的个数 摘要:参考代码:k = int(input()) arr = map(int, input().split()) one, five, ten = 0, 0, 0 for i in arr: …… 题解列表 2024年03月12日 0 点赞 1 评论 497 浏览 评分:9.9