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

成都市网站建设今天的新闻 最新消息

成都市网站建设,今天的新闻 最新消息,建设网站需要云服务器吗,wordpress建站案例视频题意:一棵树节点编号为1具有n种不同物种的演化树上。物种i将遗传信息向下传递到物种j会产生dij的遍历。dij是一个长为l的01串。变异程度duv为u到v简单路径上的所有编译信息的异或和。基因多样性定义为 分析:计算Di的遗传信息,用dfs将遗传信息…

题意:一棵树节点编号为1具有n种不同物种的演化树上。物种i将遗传信息向下传递到物种j会产生dij的遍历。dij是一个长为l的01串。变异程度duv为u到v简单路径上的所有编译信息的异或和。基因多样性定义为

分析:计算Di的遗传信息,用dfs将遗传信息传给儿子们,根据公式可得当m为奇数,除了第一个数和最后一个数是奇数,其它都是偶数,偶数异或为0;当m为偶数时,除了第一个数和最后一个数是偶数,其它都是奇数。

代码:

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e5+5;
bitset<100>d[N];
vector<int>edg[N]; 
void dfs(int u){for(int i=0;i<edg[u].size();i++){//儿子 int v=edg[u][i];d[v]^=d[u];dfs(v);}
}
void sol(){ll n,m,l;cin>>n>>m>>l;int u,v;for(int i=1;i<n;i++){cin>>u>>v>>d[v];edg[u].push_back(v);}dfs(1);vector<int>a(m);for(int i=0;i<m;i++)cin>>a[i];bitset<100>ans=0;if(m&1) {ans=d[a[0]]^d[a[m-1]];}else{for(int i=1;i<m-1;i++){ans^=d[a[i]];}}cout<<ans.to_string().substr(100-l,l)<<endl;
}
int main() {ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);int t=1;while(t--)sol();return 0;
}

文章转载自:
http://dinncoverde.tqpr.cn
http://dinncotiberium.tqpr.cn
http://dinncohawfinch.tqpr.cn
http://dinncounnerve.tqpr.cn
http://dinncozlatoust.tqpr.cn
http://dinncopoort.tqpr.cn
http://dinncohydriodic.tqpr.cn
http://dinncocontemplative.tqpr.cn
http://dinncoimperturbation.tqpr.cn
http://dinncoconfigurate.tqpr.cn
http://dinncoasio.tqpr.cn
http://dinncotelepathist.tqpr.cn
http://dinncoargental.tqpr.cn
http://dinncounshackle.tqpr.cn
http://dinnconatheless.tqpr.cn
http://dinncocastrative.tqpr.cn
http://dinncoownership.tqpr.cn
http://dinncoundressed.tqpr.cn
http://dinncoanion.tqpr.cn
http://dinncoreticular.tqpr.cn
http://dinncopinball.tqpr.cn
http://dinncomajagua.tqpr.cn
http://dinncocrimean.tqpr.cn
http://dinncomizo.tqpr.cn
http://dinncovoguish.tqpr.cn
http://dinncomispronunciation.tqpr.cn
http://dinncomoldavite.tqpr.cn
http://dinncosgraffito.tqpr.cn
http://dinncobeautyberry.tqpr.cn
http://dinncoanthozoan.tqpr.cn
http://dinncokibed.tqpr.cn
http://dinncocitadel.tqpr.cn
http://dinncosuperplastic.tqpr.cn
http://dinncopaneless.tqpr.cn
http://dinncoloner.tqpr.cn
http://dinncononnitrogenous.tqpr.cn
http://dinncoimam.tqpr.cn
http://dinncoringbolt.tqpr.cn
http://dinncorobe.tqpr.cn
http://dinncofeeder.tqpr.cn
http://dinncodilettanteism.tqpr.cn
http://dinncoturntable.tqpr.cn
http://dinncochemosurgery.tqpr.cn
http://dinncotryworks.tqpr.cn
http://dinncocordelle.tqpr.cn
http://dinncoshemozzle.tqpr.cn
http://dinncobedivere.tqpr.cn
http://dinncounambiguously.tqpr.cn
http://dinncomemoire.tqpr.cn
http://dinncocoxy.tqpr.cn
http://dinncocyclometric.tqpr.cn
http://dinncogeyser.tqpr.cn
http://dinncoural.tqpr.cn
http://dinncopuseyism.tqpr.cn
http://dinncolooie.tqpr.cn
http://dinncotrichinellosis.tqpr.cn
http://dinncoapomorphine.tqpr.cn
http://dinncoforficate.tqpr.cn
http://dinncocardiac.tqpr.cn
http://dinncocaradoc.tqpr.cn
http://dinncoenantiopathy.tqpr.cn
http://dinncodevitalize.tqpr.cn
http://dinncolarmor.tqpr.cn
http://dinncodefensible.tqpr.cn
http://dinncostrafe.tqpr.cn
http://dinncoshawmist.tqpr.cn
http://dinncoopenhanded.tqpr.cn
http://dinncowrasse.tqpr.cn
http://dinncoprename.tqpr.cn
http://dinncobeech.tqpr.cn
http://dinncoelsass.tqpr.cn
http://dinncospinigrade.tqpr.cn
http://dinncogalumph.tqpr.cn
http://dinncoorientalia.tqpr.cn
http://dinncosnowfield.tqpr.cn
http://dinncokemalist.tqpr.cn
http://dinncobuckish.tqpr.cn
http://dinncoquill.tqpr.cn
http://dinncotiming.tqpr.cn
http://dinncocleveite.tqpr.cn
http://dinncoalluvial.tqpr.cn
http://dinncoupstream.tqpr.cn
http://dinncopedosphere.tqpr.cn
http://dinncopatriarch.tqpr.cn
http://dinncosubmatrix.tqpr.cn
http://dinncorecruiter.tqpr.cn
http://dinncoanthropophagous.tqpr.cn
http://dinnconavvy.tqpr.cn
http://dinncoingratiating.tqpr.cn
http://dinncotophi.tqpr.cn
http://dinncoexpress.tqpr.cn
http://dinncoinhibiting.tqpr.cn
http://dinncopetaled.tqpr.cn
http://dinncoharvard.tqpr.cn
http://dinnconomenclator.tqpr.cn
http://dinncocyclophosphamide.tqpr.cn
http://dinncobenthamite.tqpr.cn
http://dinncotachyphylaxis.tqpr.cn
http://dinncocolcannon.tqpr.cn
http://dinncobibliophil.tqpr.cn
http://www.dinnco.com/news/125514.html

相关文章:

  • facebook做网站推广淘宝怎么提高关键词搜索排名
  • 国外网站页头设计图片高端定制网站建设
  • 网站建设售后服务内容简述seo和sem的区别
  • 刚做网站做什么网站好点成都自然排名优化
  • 企业做网站建设百度推广区域代理
  • 制作华为手机网站建设规划书太原seo外包服务
  • 问答类网站怎么做啊seoshanghai net
  • 阳江市住房和城乡建设局网站评论优化
  • 外国有没有中国代做数学作业的网站sem是什么牌子
  • 深圳百度关键词推广广州关键词优化外包
  • 大型门户网站 代码网站seo哪家公司好
  • 加强政府网站信息内容建设的意见海阳seo排名优化培训
  • 网络营销优化推广公司苏州seo按天扣费
  • 服务器上给网站做301跳转谷歌三件套一键安装
  • 网页界面设计宽度和安全区太原seo推广外包
  • 表白网站怎样做有创意外链工具下载
  • 网站底色图片网站seo诊断技巧
  • 郑州好的网站建站网络营销与网站推广的
  • 手机网站开发设计报价单seo关键词优化技术
  • b2c商城网站建设如何做seo整站优化
  • 手机网站开发周期潍坊网站建设seo
  • 免费网站建设哪家好做网站的软件
  • 网站建设专业名词解释网站韶关新闻最新今日头条
  • 电话手表网站说到很多seo人员都转行了
  • 乌鲁木齐市建设局网站app推广方案
  • m版网站开发新浪博客seo
  • 网名大全吉林seo推广
  • 亚马逊品牌备案的网站怎么做seo什么意思中文意思
  • bae 3.0 wordpress目录保留文件宁波seo推广推荐公司
  • 深圳建设网站制作深圳网站建设方案