5 solutions
-
-2
jike1994 LV 1 SU @ 3 个月前 #include<bits/stdc++.h> using namespace std; const int N=600; char s1[N],s2[N]; int main() { double m,n; cin>>m; cin>>s1>>s2; double l=strlen(s1); for(int i=0;i<l;i++) { if(s1[i]==s2[i]) { n+=1; } } double c=n/l; if(c>=m) { cout<<"yes"; } else { cout<<"no"; } return 0; }
Information
- ID
- 914
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 72
- Accepted
- 34
- Uploaded By