题解
2023-08-26 16:09:51
发布于:浙江
5阅读
0回复
0点赞
#include <iostream>
#include <string>
using namespace std;
int main(){
string s,s1;
double f;
cin >> f >> s >> s1;//错了改成getline
int count = 0;
for(int i = 0;i < s.length();i++){
if(s[i] == s1[i]){
count++;
}
}
double rate = double(count)/s.length();
if(rate >= f){
cout << "yes";
}else{
cout<< "no";
}
return 0;
}
这里空空如也
有帮助,赞一个