2 条题解
-
0
#include<iostream> #include<string> using namespace std; int main() { string str1,str2; double k; cin>>k>>str1>>str2; int cnt=0; for(int i=0;i<str1.size();i++) { if(str1[i]==str2[i]) { cnt++; } } if(cnt*1.0/str1.size()>=k) { cout<<"yes"; } else { cout<<"no"; } return 0; }
信息
- ID
- 1296
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- (无)
- 递交数
- 29
- 已通过
- 15
- 上传者