编写题解 2073: [STL训练]亲和串 摘要:解题思路:注意事项:参考代码:while True: try: a=input().strip() b=input().strip() …… 题解列表 2022年03月16日 0 点赞 0 评论 239 浏览 评分:0.0
明明的随机数——C语言代码 摘要:####解题思路 先去重,再排序 ####注意事项 去重时下标要后退一位,防止三个重复数字!!! - #### 代码如下 ```c #include int main() …… 题解列表 2022年03月16日 0 点赞 0 评论 487 浏览 评分:0.0
简单遍历解决 摘要:解题思路:即寻找两正整数a,b最大无法组合的数。已知a*b一定可以被组合,从a*b开始往小搜索即可。注意事项:参考代码:#include<iostream>using namespace std;in…… 题解列表 2022年03月16日 0 点赞 0 评论 464 浏览 评分:0.0
01背包问题!!! 摘要:```cpp #include using namespace std; const int L = 5001; int n, m; int v[L], w[L]; int dp[L]…… 题解列表 2022年03月16日 0 点赞 0 评论 394 浏览 评分:0.0
01背包问题 动态规划 摘要:```cpp #include using namespace std; const int L = 5000 + 50; int n, m; int v[L], w[L]; int dp…… 题解列表 2022年03月16日 0 点赞 0 评论 392 浏览 评分:0.0
多重背包 动态规划 摘要:```cpp #include using namespace std; const int L = 5000 + 50; int n, m; int v[L], w[L], q[L]; …… 题解列表 2022年03月16日 0 点赞 0 评论 399 浏览 评分:0.0
最长子序列 摘要:```cpp #include using namespace std; string s1; int ans = 0; const int L = 1000010; int arr[L]…… 题解列表 2022年03月16日 0 点赞 0 评论 431 浏览 评分:0.0
蓝桥杯算法提高VIP-数字黑洞 摘要:#include<iostream>#include<algorithm>using namespace std;int cnt=0;int fun(int n){ int sum[4]; …… 题解列表 2022年03月16日 0 点赞 0 评论 313 浏览 评分:0.0
暴力求解,菜鸟级别的 摘要:解题思路:暴力注意事项:参考代码:#include<stdio.h>int main(){ int n,a[100002]={0},q=0,min=100000,max=-1,x,m1,m2; sca…… 题解列表 2022年03月16日 0 点赞 0 评论 727 浏览 评分:0.0
DNA拆成两部分来分析 摘要:解题思路:DNA3 4第一行单独拿出来 剩下3-1行是循环部分注意事项:注意分行参考代码:def xunhuan(n): m = n-1 for i in range(m): …… 题解列表 2022年03月16日 0 点赞 0 评论 371 浏览 评分:0.0