- 基因相关性
答案
- @ 2025-12-17 17:22:06
#include<bits/stdc++.h> using namespace std; int main(){ double k; cin>>k; string a,b;cin>>a>>b; int cnt=0; int n=a.length(); for(int i=0;i<n;i++){ if(a[i]==b[i]){ cnt++; } } double p=(double)cnt/n; if(p>=k){ cout<<"yes"; } else{ cout<<"no"; } return 0; }
1 条评论
-
万言 LV 4 @ 2025-12-17 17:22:17
??
- 1
信息
- ID
- 135
- 时间
- ms
- 内存
- MiB
- 难度
- 4
- 标签
- 递交数
- 112
- 已通过
- 50
- 上传者