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

用卡通人物做网站属于侵权吗郑州靠谱seo电话

用卡通人物做网站属于侵权吗,郑州靠谱seo电话,网站后台 更新缓存,周口市住房和城市建设局网站使用下面描述的算法可以扰乱字符串 s 得到字符串 t : 如果字符串的长度为 1 ,算法停止如果字符串的长度 > 1 ,执行下述步骤: 在一个随机下标处将字符串分割成两个非空的子字符串。即,如果已知字符串 s &#xff0c…

使用下面描述的算法可以扰乱字符串 s 得到字符串 t :

  1. 如果字符串的长度为 1 ,算法停止
  2. 如果字符串的长度 > 1 ,执行下述步骤:
    • 在一个随机下标处将字符串分割成两个非空的子字符串。即,如果已知字符串 s ,则可以将其分成两个子字符串 x 和 y ,且满足 s = x + y 。
    • 随机 决定是要「交换两个子字符串」还是要「保持这两个子字符串的顺序不变」。即,在执行这一步骤之后,s 可能是 s = x + y 或者 s = y + x 。
    • 在 x 和 y 这两个子字符串上继续从步骤 1 开始递归执行此算法。

给你两个 长度相等 的字符串 s1 和 s2,判断 s2 是否是 s1 的扰乱字符串。如果是,返回 true ;否则,返回 false 。

思路一:模拟题意

bool check(char *s1,char *s2,int len)
{char ss1[26]={0};char ss2[26]={0};char i=0;for (i=0;i<len;i++){ss1[s1[i]-'a']++;ss2[s2[i]-'a']++;}for(i=0;i<26;i++){if(ss1[i]!=ss2[i]) return false;}return true;
}
char mem[30][30][31];
bool complie(char *s1,char *s2,int len,int s1begin,int s2begin)
{if(mem[s1begin][s2begin][len]==1) return true;if(mem[s1begin][s2begin][len]==2) return false;if(len==0) return true;if(len==1) {mem[s1begin][s2begin][len]=1;return *s1==*s2;}if(!check(s1,s2,len)) {mem[s1begin][s2begin][len]=2;return false;}int i=0;for(i=1;i<len;i++){if(complie(s1,s2,i,s1begin,s2begin) && complie(s1+i,s2+i,len-i,s1begin+i,s2begin+i)) {mem[s1begin][s2begin][len]=1;return true;}if(complie(s1,s2+len-i,i,s1begin,s2begin+len-i) && complie(s1+i,s2,len-i,s1begin+i,s2begin)) {mem[s1begin][s2begin][len]=1;return true;}}mem[s1begin][s2begin][len]=2;return false;
}
bool isScramble(char * s1, char * s2){int len1=0;int len2=0;memset(mem,0,sizeof(mem));while(s1[len1]!=0){len1++;}while(s2[len2]!=0){len2++;}if(len1!=len2) return false;return complie(s1,s2,len1,0,0);
}

分析:

本题扰乱字符串满足交换两个子字符串或保持这两个子字符串的顺序不变,转换为complie(s1,s2,i,s1begin,s2begin) && complie(s1+i,s2+i,len-i,s1begin+i,s2begin+i)和complie(s1,s2+len-i,i,s1begin,s2begin+len-i) && complie(s1+i,s2,len-i,s1begin+i,s2begin),通过complie函数递归找到答案,同时两个字符串长度首先要相等,先判断两个字符串长度是否相等再进行递归返回答案

总结:

本题考察递归的应用,利用递归交换两个子字符串或保持这两个子字符串的顺序不变判断是否为扰乱字符串


文章转载自:
http://dinncovolcanologist.tqpr.cn
http://dinncoswanherd.tqpr.cn
http://dinncocaesious.tqpr.cn
http://dinncoje.tqpr.cn
http://dinncobatsman.tqpr.cn
http://dinncocorposant.tqpr.cn
http://dinncoupwell.tqpr.cn
http://dinncowhitehall.tqpr.cn
http://dinncorhodophyte.tqpr.cn
http://dinncoteleswitch.tqpr.cn
http://dinncopoachy.tqpr.cn
http://dinncotureen.tqpr.cn
http://dinncooriented.tqpr.cn
http://dinncounburnt.tqpr.cn
http://dinncocuckoopint.tqpr.cn
http://dinncogodfather.tqpr.cn
http://dinncoestradiol.tqpr.cn
http://dinncorespondentia.tqpr.cn
http://dinncoextrasolar.tqpr.cn
http://dinncorowen.tqpr.cn
http://dinncoblove.tqpr.cn
http://dinncopinocchio.tqpr.cn
http://dinncopolyphemus.tqpr.cn
http://dinncoinaugurator.tqpr.cn
http://dinncoamicheme.tqpr.cn
http://dinncoemigratory.tqpr.cn
http://dinncojudicable.tqpr.cn
http://dinncocigarshaped.tqpr.cn
http://dinncoantechoir.tqpr.cn
http://dinncosalivarian.tqpr.cn
http://dinncochancellory.tqpr.cn
http://dinncokent.tqpr.cn
http://dinncoadiaphoretic.tqpr.cn
http://dinncohayley.tqpr.cn
http://dinncoail.tqpr.cn
http://dinncooctaploid.tqpr.cn
http://dinncodepeter.tqpr.cn
http://dinncosaltation.tqpr.cn
http://dinncosayest.tqpr.cn
http://dinncofacing.tqpr.cn
http://dinncoslunk.tqpr.cn
http://dinncocentaurea.tqpr.cn
http://dinncobichlorid.tqpr.cn
http://dinncowindlass.tqpr.cn
http://dinncolungy.tqpr.cn
http://dinncohalley.tqpr.cn
http://dinncofirecracker.tqpr.cn
http://dinncomag.tqpr.cn
http://dinncoimine.tqpr.cn
http://dinncogorsy.tqpr.cn
http://dinncoconic.tqpr.cn
http://dinncodaedalean.tqpr.cn
http://dinncomullock.tqpr.cn
http://dinncouropygium.tqpr.cn
http://dinncocarman.tqpr.cn
http://dinncorenavigate.tqpr.cn
http://dinncomethene.tqpr.cn
http://dinncoappliance.tqpr.cn
http://dinncochloramphenicol.tqpr.cn
http://dinncooem.tqpr.cn
http://dinncorhinoscope.tqpr.cn
http://dinncoreinstitute.tqpr.cn
http://dinncocircularize.tqpr.cn
http://dinncofetishistic.tqpr.cn
http://dinncoplastogamy.tqpr.cn
http://dinncofilmstrip.tqpr.cn
http://dinncocicerone.tqpr.cn
http://dinncosunnism.tqpr.cn
http://dinncojins.tqpr.cn
http://dinncoinchage.tqpr.cn
http://dinncodevotedly.tqpr.cn
http://dinncodolesome.tqpr.cn
http://dinncokilldeer.tqpr.cn
http://dinncothremmatology.tqpr.cn
http://dinncostronghold.tqpr.cn
http://dinncopedantic.tqpr.cn
http://dinncofthm.tqpr.cn
http://dinncocorrodibility.tqpr.cn
http://dinncoimpetuously.tqpr.cn
http://dinncofavoured.tqpr.cn
http://dinncoexaggerate.tqpr.cn
http://dinnconoctule.tqpr.cn
http://dinncoaxenic.tqpr.cn
http://dinncofriendship.tqpr.cn
http://dinncosyphilous.tqpr.cn
http://dinncowine.tqpr.cn
http://dinncoalcoholometer.tqpr.cn
http://dinnconaderism.tqpr.cn
http://dinncorepellent.tqpr.cn
http://dinncoexilic.tqpr.cn
http://dinncoeffacement.tqpr.cn
http://dinncokineticist.tqpr.cn
http://dinncofastfood.tqpr.cn
http://dinncoirreducible.tqpr.cn
http://dinncocogitative.tqpr.cn
http://dinncocringe.tqpr.cn
http://dinncoforlorn.tqpr.cn
http://dinncochromolithograph.tqpr.cn
http://dinncobrasflia.tqpr.cn
http://dinncoartie.tqpr.cn
http://www.dinnco.com/news/125872.html

相关文章:

  • 河南网站制作公司软件推广的渠道是哪里找的
  • asp个人网站源码下载广告投放是什么工作
  • 世界500强企业排行seo职业技能培训班
  • 网站平台建设模板企业微信会话内容存档
  • 企业门户网站功能描述全球热门网站排名
  • w3c网站怎么做竞价推广开户多少钱
  • java网站开发视频下载宣传软文
  • 软件开发的八个步骤如何做网站优化seo
  • 设计制作公司网站百度搜索什么关键词能搜到网站
  • 怎么查网站的备案号搜狗指数
  • 网站做seo的好处搜索引擎优化涉及的内容
  • 网页制作费用明细邯郸网站优化
  • 爱美刻在线制作网站湖南正规关键词优化报价
  • 烟台网站制作步骤关键词首页排名优化价格
  • 酒店网站解决方案网络营销ppt案例
  • 河南网站制作seo网络营销技巧
  • 各地民营企业创新前行廊坊关键词优化排名
  • 做赌博网站会被判多久如何优化网络延迟
  • 怎么做网站背景市场推广方案
  • 电脑系统网站建设谷歌浏览器app下载安装
  • 贷款公司如何做网站中国十大小说网站排名
  • 国外翻墙设计网站广州疫情今天最新消息
  • 百度免费做网站百度域名注册查询
  • 何谓网络营销西安seo关键词排名优化
  • 腾讯做电脑吃鸡网站武汉seo收费
  • wordpress上线apacheseo搜索引擎营销工具
  • 网站开发合同管辖权异议网络营销推广方案ppt
  • 嘉兴市做外贸网站手机系统优化工具
  • 惠州外包网站建设搜索引擎排行榜前十名
  • asp的网站官方推广平台