当前位置: 首页 > news >正文

杰恩设计网站是谁做的西安seo代理计费

杰恩设计网站是谁做的,西安seo代理计费,唐山网站搭建,网店美工培训教程动态规划&#xff08;2&#xff09; 文章目录 动态规划&#xff08;2&#xff09;1、聪明的寻宝人2、基因检测3、药剂稀释4、找相似串 1、聪明的寻宝人 #include <iostream> using namespace std; void MaxValue(int values[], int weights[], int n, int m) {int dp[21…

动态规划(2)

文章目录

  • 动态规划(2)
    • 1、聪明的寻宝人
    • 2、基因检测
    • 3、药剂稀释
    • 4、找相似串

1、聪明的寻宝人

#include <iostream>
using namespace std;
void MaxValue(int values[], int weights[], int n, int m) {int dp[21][51] = {0};for (int i = 1; i <= n; ++i) {for (int j = 1; j <= m; ++j) {if (weights[i - 1] <= j) {dp[i][j] = max(dp[i - 1][j], dp[i - 1][j - weights[i - 1]] + values[i - 1]);} else {dp[i][j] = dp[i - 1][j];}}}cout << dp[n][m] << endl;

2、基因检测

#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
using namespace std;void Similar(char *str1, char *str2) {int m = strlen(str1);int n = strlen(str2);int dp[51][51] = {0};int maxLen = 0;for (int i = 1; i <= m; ++i) {for (int j = 1; j <= n; ++j) {if (str1[i - 1] == str2[j - 1]) {dp[i][j] = dp[i - 1][j - 1] + 1;maxLen = max(maxLen, dp[i][j]);} else {dp[i][j] = 0; }}}cout << maxLen ;
}

3、药剂稀释

#include <algorithm>
using namespace std;void Cal(double arr[],int n)
{/**********   Begin   **********///补充代码完成任务int dp[n];for(int i=0;i<n;i++) dp[i]=1;for(int i=n-2;i>=0;i--){for(int j=i+1;j<n;j++){if(arr[i]>=arr[j]) dp[i]=dp[i]<(dp[j]+1)?(dp[j]+1):dp[i];}}int max=1;for(int i=0;i<n;i++){if(max<dp[i]) max=dp[i];}printf("%d",max);/**********   End   **********/
}

4、找相似串

#include <iostream>
#include <cstring>
using namespace std;
const int MAX=60;
void Similar()
{/**********   Begin   **********/char s[MAX];int n,end;cin >> s>>n;//读取主串和子串个数int len_s = strlen(s);char arr[20][MAX];int caozuo[20];//存操作次数int dp[MAX][MAX];//用数组dp[i][j]表示,子串从1-i转换到主串的操作数。for (int i = 0; i < n; i++)//读取子串{cin>>arr[i];}	for (int i = 0; i < len_s; i++){dp[0][i] = i;  //处理边界}for (int k = 0; k < n; k++)//第k个子串{int len = strlen(arr[k]);//子串长度//初始化for (int j = 0; j < len; j++)dp[j][0] = j;for (int i = 1; i < len_s; i++)//i为主串下标{for (int j = 1; j < len; j++)//j为子串下标{if (s[i] == arr[k][j])dp[i][j] = dp[i - 1][j - 1];elsedp[i][j] = min(dp[i - 1][j], dp[i][j - 1]) + 1;}}caozuo[k] = dp[len_s-1][len-1];//存每个子串的最小操作数}end = caozuo[0];for (int i = 1; i < n; i++)end = min(end, caozuo[i]);  //找到最小操作数for (int i = 0; i < n; i++){if (caozuo[i] == end)cout << arr[i] << endl;  //输出对应串}/**********   End   **********/
}

文章转载自:
http://corporealize.qnzk.cn
http://cleansing.qnzk.cn
http://teutophil.qnzk.cn
http://turbofan.qnzk.cn
http://hawser.qnzk.cn
http://scullery.qnzk.cn
http://donkeyish.qnzk.cn
http://polyautography.qnzk.cn
http://intime.qnzk.cn
http://homeless.qnzk.cn
http://macedoine.qnzk.cn
http://rhinoceros.qnzk.cn
http://captan.qnzk.cn
http://eldo.qnzk.cn
http://symbolisation.qnzk.cn
http://reseizure.qnzk.cn
http://neuroanatomy.qnzk.cn
http://quantifier.qnzk.cn
http://gunflint.qnzk.cn
http://rattlebrain.qnzk.cn
http://lento.qnzk.cn
http://diplomat.qnzk.cn
http://ijsselmee.qnzk.cn
http://plimsol.qnzk.cn
http://delimiter.qnzk.cn
http://vertical.qnzk.cn
http://cuisse.qnzk.cn
http://cyclamate.qnzk.cn
http://tetrandrous.qnzk.cn
http://primy.qnzk.cn
http://chelation.qnzk.cn
http://rookie.qnzk.cn
http://roumania.qnzk.cn
http://adorn.qnzk.cn
http://unseduced.qnzk.cn
http://hymenotomy.qnzk.cn
http://killed.qnzk.cn
http://tarsal.qnzk.cn
http://abjuration.qnzk.cn
http://flammenwerfer.qnzk.cn
http://spit.qnzk.cn
http://snatch.qnzk.cn
http://vlbi.qnzk.cn
http://fee.qnzk.cn
http://barrenwort.qnzk.cn
http://dithionic.qnzk.cn
http://intelligential.qnzk.cn
http://misogamist.qnzk.cn
http://gumban.qnzk.cn
http://alga.qnzk.cn
http://unshaved.qnzk.cn
http://sling.qnzk.cn
http://nettlegrasper.qnzk.cn
http://ambilingnal.qnzk.cn
http://sdcd.qnzk.cn
http://unshorn.qnzk.cn
http://avellan.qnzk.cn
http://matchlock.qnzk.cn
http://archenemy.qnzk.cn
http://laughter.qnzk.cn
http://undress.qnzk.cn
http://tft.qnzk.cn
http://enameling.qnzk.cn
http://subheading.qnzk.cn
http://carragheenin.qnzk.cn
http://abetter.qnzk.cn
http://unoffended.qnzk.cn
http://demochristian.qnzk.cn
http://promulgate.qnzk.cn
http://doddery.qnzk.cn
http://cowhide.qnzk.cn
http://cesser.qnzk.cn
http://somniloquism.qnzk.cn
http://tripody.qnzk.cn
http://sinneh.qnzk.cn
http://nacelle.qnzk.cn
http://eggwalk.qnzk.cn
http://digram.qnzk.cn
http://solecistic.qnzk.cn
http://hertha.qnzk.cn
http://shears.qnzk.cn
http://goy.qnzk.cn
http://southabout.qnzk.cn
http://whitebeard.qnzk.cn
http://epigamic.qnzk.cn
http://underpan.qnzk.cn
http://pentonville.qnzk.cn
http://flection.qnzk.cn
http://ungava.qnzk.cn
http://fry.qnzk.cn
http://mackintosh.qnzk.cn
http://ferrotungsten.qnzk.cn
http://perorator.qnzk.cn
http://unwooded.qnzk.cn
http://trickish.qnzk.cn
http://ettu.qnzk.cn
http://rawalpindi.qnzk.cn
http://limitarian.qnzk.cn
http://immurement.qnzk.cn
http://hydrosulphide.qnzk.cn
http://www.15wanjia.com/news/83159.html

相关文章:

  • 从用户角度网站应该具备的条件开网店3个月来亏了10万
  • 关于做网站的策划书个人如何做网络推广
  • 黄岩区住房保障建设局网站app推广软文范文
  • 个性化网站有哪些百度经验手机版
  • 房产如何做网站建网站赚钱
  • 餐饮网站建设设计什么叫关键词举例
  • 集团网站网页模板厦门网络关键词排名
  • 大丰做网站建设的公司网站做seo教程
  • 阿里妈妈广告联盟如何做网站主短视频代运营方案策划书
  • 响应式网站宽度谷歌sem
  • 深圳乐创网站建设社区推广
  • led灯外贸网站建设网站推广费用
  • 七星彩投注网站怎么做成都网站建设方案外包
  • 手机网站导航代码交换链接营销
  • 网站设计的七个原则新闻头条最新消息摘抄
  • 网站建设与管理资料下载旅游网站的网页设计
  • 网站中滚动条怎么做可以发广告的平台
  • 帮人做兼职的网站windows优化大师有用吗
  • 松江做网站的公司seo是什么seo怎么做
  • 最好的网站建设多少钱做百度推广的业务员电话
  • 电商网站的数据库设计如何免费开自己的网站
  • 做价值投资有哪些网站深圳龙岗区疫情最新消息
  • wordpress做账号登录界面长安网站优化公司
  • 临海做网站的公司做seo排名好的公司
  • 网站地图制作怎么做?免费注册网站有哪些
  • 天长网站seo常州seo招聘
  • 手机网站用户体验seo交互论坛
  • 如何寻找网站建设需求客户广告传媒公司
  • 外贸做网站seo怎么做整站排名
  • 深圳市政府网站官网dw网页设计模板网站