70分, 求帮助

L123i 2025-08-28 15:59:08 1

#include <bits/stdc++.h> using namespace std;

int main() { string a, b; double k; int cnt; cin >> k >> a >> b; for(int i = 0;i <= a.size() - 1;i++){ if(a[i] == b[i]){ cnt++; } } if(cnt / a.size() * 1.0 >= k){ cout <<"yes"; }else{ cout << "no"; } }

{{ vote && vote.total.up }}