Rosalind第72题:Matching a Spectrum to a Protein

Problem

The complete spectrum of a weighted string  is the multiset  containing the weights of every prefix and suffix of .

Given: A positive integer  followed by a collection of  protein strings , , ...,  and a multiset  of positive numbers (corresponding to the complete spectrum of some unknown protein string).

Return: The maximum multiplicity of  taken over all strings , followed by the string  for which this maximum multiplicity occurs (you may output any such value if multiple solutions exist).

整个光谱一个的加权串 是多集 包含权重每隔的前缀后缀的。

给定:正整数 其次是  蛋白质串 , ,...,  和多集  正数(对应于一些未知蛋白质字符串的完整光谱)。

返回值:的最大多重性 接管所有琴弦 ,然后是字符串  发生最大多重性的原因(如果存在多个解,则可以输出任何这样的值)。

Sample Dataset

4
GSDMQS
VWICN
IASWMQS
PVSMGAD
445.17838
115.02694
186.07931
314.13789
317.1198
215.09061

Sample Output

3
IASWMQS
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值