先用cin 再用getline他会把上一个换行读入
#include<iostream>
#include<string>
using namespace std;
int main()
{
string s,p;
double k;
cin>>k;
cin.ignore();
getline(cin,s);
getline(cin,p);
double count=0.0;
for(int i=0;i<s.size();i++)
{
if(s[i]==p[i])count=count+1;
}
double len=s.size();
if((count/len)>=k) cout<<"yes"<<endl;
else cout<<"no"<<endl;
return 0;
}