基因相关性
来源:互联网 发布:淘宝上有高仿手表买么 编辑:程序博客网 时间:2024/04/27 21:48
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include <algorithm>
using namespace std;
int main()
{
int lena,i,sum=0;
double x;
char sa[505],sb[505];
cin>>x;
gets(sa);gets(sa);
gets(sb);
lena=strlen(sa);
for (i=0;i<lena;i++)
if (sa[i]==sb[i])sum++;
if (1.0*sum/lena>=x)
cout<<"yes"<<endl;
else cout<<"no"<<endl;
return 0;
}
#include<cstdio>
#include<cstring>
#include<cmath>
#include <algorithm>
using namespace std;
int main()
{
int lena,i,sum=0;
double x;
char sa[505],sb[505];
cin>>x;
gets(sa);gets(sa);
gets(sb);
lena=strlen(sa);
for (i=0;i<lena;i++)
if (sa[i]==sb[i])sum++;
if (1.0*sum/lena>=x)
cout<<"yes"<<endl;
else cout<<"no"<<endl;
return 0;
}
0 0
- 基因相关性
- 基因相关性
- noi-7548-基因相关性
- 03:基因相关性
- 1.7_03:基因相关性
- 3.基因相关性
- 03:基因相关性(1.7编程基础之字符串)
- 相关性
- 相关性
- 基因
- 序列相关性
- 相关性检验
- 相关性探索
- 相关性检验
- 相关性计算
- 相关性学习
- 相关性分析
- 基因预测
- OpenGL——封装自己的Opengl类
- 实现dubbo服务降级
- Ubuntu16.04 apache2配置虚拟主机
- jQuery 知识点汇总
- 生成模型与判别模型
- 基因相关性
- TV Picture菜单的基本参数和属性
- LUbuntu16.10下支持中文(搜狗)输入
- sublime text 3 less安装图文讲解
- 数据库 知识点汇总
- CF 222D Olympiad 双指针
- Android Studio 入门之ListView初级
- 4. HDFS 常用Java API 总结
- 使用Split分割字符串出现数组越界异常java.lang.ArrayIndexOutOfBoundsException